/* FasilKiray property detail: bring landlord actions forward and shorten the inquiry flow. */
.property-modal {
  width: min(980px, calc(100% - 28px));
  max-height: min(93dvh, 920px);
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.property-modal #propertyDetail { display: grid; gap: 12px; min-width: 0; }
.property-modal .property-detail-gallery .property-detail-image {
  height: clamp(190px, 27vw, 310px);
  margin: 0;
  border-radius: 17px;
  overflow: hidden;
}
.property-modal .detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(285px, 340px);
  grid-template-areas: "overview contact" "copy contact";
  align-items: start;
  gap: 13px 22px;
}
.property-modal .detail-overview { grid-area: overview; min-width: 0; }
.property-modal .detail-copy {
  grid-area: copy;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid var(--line, #e4ebe5);
}
.property-modal .detail-copy .detail-description { margin: 8px 0; }
.property-modal .contact-box {
  grid-area: contact;
  position: sticky;
  top: 0;
  align-self: start;
  display: grid;
  gap: 11px;
  min-width: 0;
  margin: 0;
  padding: 17px;
  border: 1px solid #dce8df;
  border-radius: 18px;
  background: #f5f9f6;
  box-shadow: 0 8px 24px rgba(19, 61, 39, .07);
}
.property-modal .contact-box h3 {
  margin: 0;
  color: #183d2d;
  font-size: 20px;
  line-height: 1.25;
}
.property-modal .contact-box .contact-safety-note {
  margin: 0;
  color: #617469;
  font-size: 12px;
  line-height: 1.5;
}
.landlord-contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.landlord-contact-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 9px 10px;
  justify-content: center;
  font-size: 12px;
  white-space: nowrap;
}
.landlord-contact-actions .btn:only-child { grid-column: 1 / -1; }
.landlord-contact-actions .landlord-contact-call {
  background: linear-gradient(135deg, #208455, #145b3c);
  color: #fff;
  box-shadow: 0 5px 13px rgba(24, 112, 69, .16);
}
.landlord-contact-actions .landlord-contact-whatsapp {
  border-color: #c9dfd0;
  background: #fff;
  color: #176642;
}
.property-inquiry-disclosure {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e0e9e2;
  border-radius: 14px;
  background: #fff;
}
.property-inquiry-disclosure > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.property-inquiry-disclosure > summary::-webkit-details-marker { display: none; }
.property-inquiry-summary-icon {
  display: grid;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 11px;
  background: #eaf3ec;
  color: #176844;
}
.property-inquiry-summary-icon .bf-icon { width: 19px; height: 19px; }
.property-inquiry-summary-copy { display: grid; flex: 1; min-width: 0; gap: 2px; }
.property-inquiry-summary-copy strong { color: #183d2d; font-size: 13px; line-height: 1.35; }
.property-inquiry-summary-copy small { color: #718077; font-size: 11px; line-height: 1.4; }
.property-inquiry-chevron {
  flex: 0 0 auto;
  color: #547361;
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease;
}
.property-inquiry-disclosure[open] > summary { border-bottom: 1px solid #e8eee9; }
.property-inquiry-disclosure[open] .property-inquiry-chevron { transform: rotate(180deg); }
.property-modal .property-inquiry-form {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  animation: propertyInquiryReveal .18s ease-out both;
}
.property-modal .property-inquiry-form label {
  margin: 0;
  color: #244a38;
  font-size: 12px;
  font-weight: 800;
}
.property-modal .property-inquiry-form textarea {
  width: 100%;
  min-height: 76px;
  max-height: 116px;
  padding: 10px 12px;
  border: 1px solid #d6e3da;
  border-radius: 11px;
  background: #fff;
  color: #19352b;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}
.property-modal .property-inquiry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.property-modal .property-inquiry-footer small {
  max-width: 155px;
  color: #708077;
  font-size: 10px;
  line-height: 1.4;
}
.property-modal .property-inquiry-footer .btn {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 13px;
  font-size: 12px;
  white-space: nowrap;
}
.property-modal .property-inquiry-status { margin: 0; font-size: 11px; }
.property-secondary-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.property-secondary-actions .btn {
  width: 100%;
  min-width: 0;
  min-height: 39px;
  margin: 0;
  padding: 7px 9px;
  font-size: 11px;
}
@keyframes propertyInquiryReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
html[data-theme="dark"] .property-modal .contact-box,
html[data-theme="dark"] .property-inquiry-disclosure {
  border-color: #30483a;
  background: #192920;
}
html[data-theme="dark"] .property-modal .contact-box h3,
html[data-theme="dark"] .property-inquiry-summary-copy strong,
html[data-theme="dark"] .property-modal .property-inquiry-form label { color: #e7f0e9; }
html[data-theme="dark"] .property-modal .contact-safety-note,
html[data-theme="dark"] .property-inquiry-summary-copy small,
html[data-theme="dark"] .property-modal .property-inquiry-footer small { color: #afc3b5; }
html[data-theme="dark"] .property-inquiry-disclosure > summary { color: #e7f0e9; }
html[data-theme="dark"] .property-modal .property-inquiry-form textarea {
  border-color: #365040;
  background: #101d16;
  color: #e6f1e9;
}
html[data-theme="dark"] .landlord-contact-actions .landlord-contact-whatsapp {
  border-color: #365b43;
  background: #213b2b;
  color: #bce5c8;
}
html[data-theme="dark"] .property-inquiry-disclosure[open] > summary { border-bottom-color: #30483a; }
@media (max-width: 760px) {
  .property-modal {
    width: calc(100% - 14px);
    max-height: 94dvh;
    padding: 15px 13px;
    border-radius: 19px;
  }
  .property-modal #propertyDetail { gap: 10px; }
  .property-modal .property-detail-gallery .property-detail-image { height: 185px; border-radius: 14px; }
  .property-modal .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "overview" "contact" "copy";
    gap: 11px;
  }
  .property-modal .detail-overview h2 { margin: 5px 0 4px; font-size: 22px; line-height: 1.2; }
  .property-modal .detail-price { font-size: 22px; }
  .property-modal .detail-features { gap: 8px 12px; margin: 9px 0 2px; font-size: 11px; }
  .property-modal .contact-box {
    position: static;
    gap: 9px;
    padding: 13px;
    border-radius: 15px;
  }
  .property-modal .contact-box h3 { font-size: 18px; }
  .property-modal .contact-box .contact-safety-note { font-size: 11px; line-height: 1.4; }
  .landlord-contact-actions { gap: 7px; }
  .landlord-contact-actions .btn { min-height: 42px; font-size: 12px; }
  .property-inquiry-disclosure > summary { min-height: 56px; padding: 8px 10px; }
  .property-modal .property-inquiry-form { padding: 10px; gap: 7px; }
  .property-modal .property-inquiry-form textarea { min-height: 70px; max-height: 100px; }
  .property-modal .property-inquiry-footer { align-items: center; flex-direction: row; }
  .property-modal .property-inquiry-footer small { max-width: 48%; }
  .property-modal .property-inquiry-footer .btn { width: auto; }
  .property-modal .detail-copy { padding-top: 7px; }
}
@media (max-width: 370px) {
  .landlord-contact-actions .btn { gap: 6px; padding-inline: 7px; font-size: 11px; }
  .property-modal .property-inquiry-footer { align-items: stretch; flex-direction: column; }
  .property-modal .property-inquiry-footer small { max-width: none; }
  .property-modal .property-inquiry-footer .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .property-inquiry-chevron, .property-modal .property-inquiry-form { animation: none !important; transition: none !important; }
}
