/* Listing detail: roomy photography and an independent price/contact column. */
body[data-view="detail"] { background: #fff; }
body[data-view="detail"] .search-band[hidden] { display: none !important; }
.detail-redesign { max-width: 1240px; margin: 0 auto; padding: 20px 0 48px; gap: 26px; color: #182638; }
.detail-redesign .detail-page-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.detail-redesign .back-button { border: 0; padding: 8px 0; background: transparent; color: #56657a; box-shadow: none; }
.detail-redesign .detail-top-actions { position: static; display: flex; gap: 20px; }
.detail-text-action { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0; border: 0; background: transparent; color: #182638; font-size: 14px; font-weight: 600; }
.detail-text-action span { font-size: 22px; font-weight: 400; }
.detail-text-action.is-favorite { color: #2563eb; }
.detail-redesign .detail-heading h1 { max-width: 920px; margin: 0 0 12px; font-size: clamp(25px, 2.5vw, 36px); line-height: 1.23; font-weight: 650; letter-spacing: -.8px; overflow-wrap: anywhere; }
.detail-key-specs { margin: 0 0 12px; font-size: 17px; color: #182638; font-weight: 500; line-height: 1.5; }
.detail-address-link { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; padding: 0; border: 0; background: none; color: #56657a; text-align: left; font-size: 14px; line-height: 1.6; }
.detail-address-link span { color: #2563eb; text-decoration: underline; text-underline-offset: 3px; }
.detail-address-text { margin: 0; color: #56657a; font-size: 14px; }
.detail-redesign .detail-hero { grid-template-columns: minmax(0, 1fr) minmax(300px, 350px); gap: 28px 36px; align-items: start; }
.detail-redesign .detail-gallery { grid-column: 1; grid-row: 1; padding: 0; gap: 10px; border: 0; border-radius: 16px; box-shadow: none; background: transparent; }
.detail-redesign .detail-gallery-frame { border-radius: 16px; isolation: isolate; }
.detail-redesign .detail-main-image { aspect-ratio: 4 / 3; width: 100%; max-height: 560px; object-fit: cover; }
.detail-redesign .detail-gallery-nav { width: 40px; height: 40px; border: 0; color: #182638; background: rgba(255,255,255,.96); box-shadow: 0 2px 8px #18263814; transition: background 180ms ease; }
.detail-redesign .detail-gallery-nav:hover { background: #fff; }
.detail-redesign .detail-gallery-count { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 12px; border: 0; border-radius: 8px; background: #ffffffed; color: #182638; font-size: 13px; font-weight: 600; }
.detail-redesign .detail-thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0; scrollbar-width: thin; }
.detail-redesign .detail-thumbs button { flex: 0 0 88px; width: 88px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; opacity: .75; overflow: hidden; transition: opacity 180ms ease, border-color 180ms ease; }
.detail-redesign .detail-thumbs button.active { border-color: #2563eb; opacity: 1; }
.detail-redesign .detail-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail-redesign .detail-summary { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: 104px; display: flex; flex-direction: column; gap: 24px; align-self: start; height: auto; max-height: none; overflow: visible; padding: 26px; border: 1px solid #dce3ed; border-radius: 16px; background: #fff; box-shadow: 0 8px 28px #1826380b; }
.detail-price-block { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.detail-deal-label { color: #56657a; font-size: 13px; }
.detail-redesign .detail-price-block .price { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; margin: 0; width: 100%; white-space: normal; }
.detail-redesign .detail-price-block .price-main { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; font-weight: 750; color: #182638; letter-spacing: -.65px; overflow-wrap: anywhere; }
.detail-rental-period { color: #56657a; font-size: 14px; font-weight: 400; }
.detail-redesign .detail-price-block .price-per-sqm { display: block; margin: 0; padding: 0; border: 0; background: none; color: #56657a; font-size: 14px; font-weight: 500; }
.detail-redesign .detail-price-block .price-converted { color: #788393; font-size: 13px; line-height: 1.4; font-weight: 400; }
.detail-redesign .contact-box { display: flex; flex-direction: column; gap: 18px; max-height: none; padding: 22px 0 0; border: 0; border-top: 1px solid #e7ebf0; border-radius: 0; overflow: visible; background: transparent; }
.detail-redesign .detail-seller-row { gap: 12px; }
.detail-redesign .seller-avatar { width: 46px; height: 46px; background: #f0f4fa; color: #56657a; font-weight: 600; }
.detail-redesign .detail-seller-row strong { font-size: 16px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.detail-redesign .detail-seller-row small { margin-top: 4px; color: #56657a; font-size: 12px; line-height: 1.4; white-space: normal; }
.detail-verified { color: #18714e; font-size: 12px; line-height: 1.45; }
.detail-redesign .detail-contact-actions { display: flex; flex-direction: column; gap: 10px; }
.detail-redesign .detail-contact-actions button { display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; height: auto; max-height: none; padding: 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; white-space: normal; font-weight: 600; }
.detail-redesign .detail-call-button { background: #2563eb; color: #fff; border: 1px solid #2563eb; box-shadow: none; }
.detail-redesign .detail-call-button:hover { background: #1d4ed8; }
.detail-redesign .detail-message-button { color: #182638; border: 1px solid #dce3ed; background: #fff; }
.detail-redesign .contact-protected { display: block; color: #788393; font-size: 12px; line-height: 1.6; white-space: normal; overflow: visible; }
.detail-redesign #contactResult:empty { display: none; }
.detail-redesign #contactResult { font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.detail-messengers { display: flex; align-items: center; gap: 10px; }
.detail-messengers > span { margin-right: auto; color: #56657a; font-size: 12px; }
.detail-messengers .messenger-action { width: 38px; min-height: 38px; background: #f5f7fb; }
.detail-content-column { grid-column: 1; grid-row: 2; display: grid; gap: 0; min-width: 0; }
.detail-redesign .detail-description, .detail-redesign .detail-section { padding: 28px 0; border: 0; border-bottom: 1px solid #e7ebf0; border-radius: 0; background: transparent; box-shadow: none; }
.detail-redesign .detail-description { padding-top: 8px; }
.detail-redesign h2 { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.35px; }
.detail-prose { max-width: 70ch; margin-top: 18px; }
.detail-redesign .detail-prose p { margin: 0 0 16px; color: #46566b; font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-read-more summary { display: inline-flex; cursor: pointer; padding: 3px 0 12px; color: #182638; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; list-style: none; }
.detail-read-more summary::-webkit-details-marker { display: none; }
.detail-read-more .detail-read-close, .detail-read-more[open] .detail-read-open { display: none; }
.detail-read-more[open] .detail-read-close { display: inline; }
.detail-redesign .detail-table { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 20px; }
.detail-redesign .detail-table > div { display: flex; flex-direction: column; gap: 6px; min-height: 64px; padding: 12px 14px; background: #f5f7fb; border-radius: 10px; }
.detail-redesign .detail-table span { color: #56657a; font-size: 13px; font-weight: 400; }
.detail-redesign .detail-table strong { font-size: 15px; line-height: 1.4; font-weight: 550; overflow-wrap: anywhere; }
.detail-redesign .option-tags { flex-wrap: wrap; overflow: visible; gap: 10px; margin-top: 20px; }
.detail-redesign .option-tags .tag { padding: 8px 12px; border: 1px solid #e7ebf0; border-radius: 8px; background: #fff; color: #46566b; font-size: 13px; }
.detail-redesign .detail-location-card { display: grid; grid-template-rows: auto 340px auto; height: auto; max-height: none; min-width: 0; margin-top: 28px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; }
.detail-redesign .detail-location-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 14px; padding: 0 0 18px; background: transparent; }
.detail-redesign .detail-location-head strong { display: block; font-size: 22px; font-weight: 650; line-height: 1.3; margin-bottom: 8px; }
.detail-redesign .detail-location-head span { font-size: 14px; color: #56657a; line-height: 1.6; }
.detail-redesign .detail-location-map { height: 340px; max-height: none; min-height: 0; border-radius: 14px; isolation: isolate; }
.detail-redesign .detail-location-meta { padding: 10px 0 0; color: #788393; font-size: 11px; }
.detail-redesign .detail-id-section { justify-content: space-between; gap: 14px; font-size: 12px; border-bottom: 0; }
.detail-redesign .similar-section { margin-top: 12px; padding: 30px 0 0; border: 0; border-top: 1px solid #e7ebf0; border-radius: 0; box-shadow: none; background: transparent; }
.detail-redesign .similar-grid { margin-top: 22px; gap: 20px; }
.detail-redesign .similar-card { border: 0; border-radius: 12px; background: transparent; box-shadow: none; text-align: left; }
.detail-redesign .similar-card img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; }
.detail-redesign .similar-card .price-main { font-size: 19px; font-weight: 700; color: #182638; }
.detail-redesign .similar-card .price-converted { display: none; }
.detail-redesign button:focus-visible, .detail-redesign summary:focus-visible, .detail-redesign a:focus-visible { outline: 3px solid #93b4ff; outline-offset: 3px; }
@media (max-width: 1040px) and (min-width: 761px) {
  .detail-redesign .detail-hero { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .detail-redesign .detail-summary { padding: 20px; }
}
@media (max-width: 760px) {
  body[data-view="detail"] .mobile-bottom-nav { display: none; }
  body[data-view="detail"] .detail-page { overflow: visible; padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .detail-redesign { gap: 20px; padding-top: 12px; padding-bottom: 20px; }
  .detail-redesign .detail-heading h1 { font-size: 26px; letter-spacing: -.5px; }
  .detail-key-specs { font-size: 16px; }
  .detail-redesign .detail-top-actions { gap: 14px; }
  .detail-text-action { font-size: 12px; }
  .detail-redesign .detail-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .detail-redesign .detail-gallery, .detail-redesign .detail-summary, .detail-redesign .detail-content-column { grid-column: 1; grid-row: auto; }
  .detail-redesign .detail-main-image { aspect-ratio: 4/3; }
  .detail-redesign .detail-thumbs button { flex-basis: 72px; width: 72px; height: 54px; }
  .detail-redesign .detail-summary { position: static; padding: 22px; gap: 20px; box-shadow: none; }
  .detail-redesign .detail-price-block .price-main { font-size: 28px; }
  .detail-redesign .detail-price-block .price { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
  .detail-redesign .detail-contact-actions { position: fixed; z-index: 1090; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dce3ed; box-shadow: 0 -6px 24px #18263808; }
  .detail-redesign .detail-contact-actions button { min-height: 48px; font-size: 13px; padding: 10px; }
  .detail-redesign .contact-box .seller-avatar { width: 46px; height: 46px; }
  .detail-redesign .contact-box .detail-seller-row small { font-size: 12px; }
  .detail-redesign .contact-box .contact-protected { font-size: 12px; }
  .detail-redesign .detail-table { gap: 10px; }
  .detail-redesign .detail-table > div { padding: 12px; }
  .detail-redesign .detail-location-card { grid-template-rows: auto 280px auto; }
  .detail-redesign .detail-location-map { height: 280px; }
  .detail-redesign .detail-description, .detail-redesign .detail-section { padding: 24px 0; }
  .detail-redesign .similar-grid { grid-auto-columns: minmax(220px, 75%); gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .detail-redesign *, .detail-image-overlay * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
