/* ==========================================================================
   Property Detail — Ultra Modern Dark
   Styles for the Houzez single-property CPT detail page.
   Top area: Version 4 (slideshow). Content layout: Default (simple).
   Source: ultra modern dark design guide.md
   ========================================================================== */

/* ==========================================================================
   1. TOP SECTION — V4 Slideshow (.detail-top-slideshow)
   ========================================================================== */

.detail-top {
  background: var(--bg-primary);
  padding-bottom: 0;
}

.detail-top-slideshow {
  padding-top: 0;
}

/* ---------- Header detail bar ---------- */

.header-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px 0 20px;
  gap: 16px;
}

.header-detail .header-left {
  flex: 1 1 0%;
  min-width: 0;
}

.header-detail .header-right {
  flex-shrink: 0;
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

/* Breadcrumb */
.header-detail .breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0 0 10px;
  font-size: 13px;
  font-family: var(--font-body);
  color: var(--text-muted);
  border-radius: 0;
}

.header-detail .breadcrumb li {
  color: var(--text-muted);
}

.header-detail .breadcrumb li a,
.header-detail .breadcrumb li span {
  color: var(--text-muted);
  transition: var(--transition);
}

.header-detail .breadcrumb li a:hover {
  color: var(--text-primary);
}

.header-detail .breadcrumb > li + li::before {
  color: var(--text-dim);
}

.header-detail .breadcrumb li.active {
  color: var(--text-secondary);
}

/* Title */
.header-detail .table-list {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 6px;
}

.header-detail .table-list h1 {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 32px);
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.header-detail .table-list .label-wrap .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  border: none;
  line-height: 1;
}

/* Address */
.header-detail .property-address {
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 15px;
  font-style: normal;
  margin: 0;
}

/* Actions (share, fav, print) */
.header-detail .actions {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.header-detail .actions li span,
.header-detail .actions li a {
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.header-detail .actions li span:hover,
.header-detail .actions li a:hover {
  color: var(--text-primary);
}

.header-detail .actions .fa {
  color: inherit;
}

/* Price display */
.header-detail .item-price {
  display: block;
  font-family: var(--font-body);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.header-detail .price-start {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

/* ==========================================================================
   2. SLIDESHOW / MEDIA AREA
   ========================================================================== */

.detail-media {
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.detail-media .tab-content {
  background: var(--bg-primary);
}

/* Owl carousel slider */
.detail-slider-wrap {
  position: relative;
}

.detail-slider .item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 500px;
  cursor: pointer;
}

.detail-slider .owl-nav button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 50% !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 22px !important;
  transition: all 0.3s ease;
  z-index: 5;
}

.detail-slider .owl-nav button:hover {
  background: rgba(0, 0, 0, 0.7) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

.detail-slider .owl-nav .owl-prev {
  left: 16px;
}

.detail-slider .owl-nav .owl-next {
  right: 16px;
}

/* Thumbnail navigation strip */
.detail-slider-nav-wrap {
  background: var(--bg-secondary);
  padding: 10px 0;
}

.detail-slider-nav .item {
  padding: 0 3px;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.detail-slider-nav .item:hover,
.detail-slider-nav .owl-item.current .item {
  opacity: 1;
}

.detail-slider-nav .item img {
  border-radius: 6px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  object-fit: cover;
}

.detail-slider-nav .owl-item.current .item img,
.detail-slider-nav .item:hover img {
  border-color: var(--accent-red);
}

/* Status badge overlay on gallery */
.detail-media .label-wrap {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
}

.detail-media .label-status {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 4px;
  border: none;
  line-height: 1;
}

/* Map & street view placeholders */
#singlePropertyMap,
#street-map {
  min-height: 500px;
  background: var(--bg-secondary);
}

.mapPlaceholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background: var(--bg-secondary);
}

.loader-ripple {
  position: relative;
  width: 64px;
  height: 64px;
}

.loader-ripple div {
  position: absolute;
  border: 3px solid var(--accent-red);
  opacity: 1;
  border-radius: 50%;
  animation: ripple 1.2s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.loader-ripple div:nth-child(2) {
  animation-delay: -0.5s;
}

@keyframes ripple {
  0% {
    top: 28px;
    left: 28px;
    width: 0;
    height: 0;
    opacity: 1;
  }
  100% {
    top: -1px;
    left: -1px;
    width: 58px;
    height: 58px;
    opacity: 0;
  }
}

/* ---------- Media tabs (photo/map/street view icons) ---------- */

.media-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
}

.media-tabs-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.media-tabs-list li {
  margin: 0;
  padding: 0;
}

.media-tabs-list li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
  text-decoration: none;
}

.media-tabs-list li a:hover,
.media-tabs-list li.active a {
  color: var(--text-primary);
  background: var(--surface-elevated);
}

.media-tabs .actions {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.media-tabs .actions li {
  padding: 0;
}

.media-tabs .actions li span,
.media-tabs .actions li a {
  color: var(--text-muted);
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
}

.media-tabs .actions li span:hover,
.media-tabs .actions li a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   3. PROPERTY NAVIGATION BAR
   ========================================================================== */

.property-menu-wrap {
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 100;
}

.property-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.property-menu li {
  margin: 0;
}

.property-menu li a {
  display: block;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
}

.property-menu li a:hover,
.property-menu li a.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-red);
}

.property-menu li a.back-top {
  padding: 14px 14px;
  color: var(--text-dim);
}

.property-menu li a.back-top:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   4. MAIN CONTENT — DETAIL BAR
   ========================================================================== */

.section-detail-content {
  background: var(--bg-primary);
  padding: 40px 0 60px;
}

.detail-bar {
  color: var(--text-secondary);
}

/* ---------- Detail block — shared pattern ---------- */

.detail-block {
  margin-bottom: 36px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.single-property .detail-bar .detail-block {
  margin: 0 0 36px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

/* Section title inside each block */
.detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.detail-title h2.title-left,
.detail-title h2 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

.detail-title .title-right {
  color: var(--text-muted);
  font-size: 13px;
}

.detail-title .title-right a {
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 13px;
}

.detail-title .title-right a:hover {
  color: var(--accent-red);
}

.detail-title .title-right p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.detail-title-inner {
  margin: 24px 0 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.detail-title-inner h4.title-inner {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--text-primary);
  margin: 0;
}

/* ---------- Alert info — property details grid ---------- */

.detail-block .alert-info,
.detail-list .alert-info {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0;
  margin: 0;
  border-radius: 0;
}

/* ---------- Three-column list ---------- */

.list-three-col {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.list-three-col > li {
  width: 33.333%;
  padding: 10px 12px 10px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}

.list-three-col > li strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 4px;
}

/* Two-column list (used by IDX listing detail) */
.list-two-col {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.list-two-col > li {
  width: 50%;
  padding: 10px 12px 10px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  line-height: 1.5;
}

.list-two-col > li strong {
  color: var(--text-primary);
  font-weight: 600;
  margin-right: 4px;
}

/* ---------- Features list ---------- */

.list-features {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.list-features > li {
  width: 33.333%;
  padding: 8px 12px 8px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.list-features > li a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.list-features > li a:hover {
  color: var(--accent-red);
}

.list-features > li .fa,
.list-features > li i {
  color: var(--accent-red);
  margin-right: 8px;
  font-size: 13px;
  width: 14px;
  text-align: center;
}

.list-features > li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   5. DESCRIPTION BLOCK
   ========================================================================== */

.property-description {
  color: var(--text-secondary);
}

.property-description p {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Document list */
.document-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.document-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.document-list li .fa {
  color: var(--text-muted);
  margin-right: 8px;
}

.document-list li a {
  color: var(--accent-red);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: var(--transition);
}

.document-list li a:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   6. ADDRESS BLOCK
   ========================================================================== */

.detail-address .title-right a {
  color: var(--accent-red);
  font-weight: 500;
}

.detail-address .title-right a:hover {
  color: var(--text-primary);
}

.detail-address .title-right .fa {
  margin-left: 4px;
}

/* ==========================================================================
   7. FEATURES BLOCK — IDX-style with grouped sections
   ========================================================================== */

.features-list .features,
.detail-features .features,
#features .features {
  margin-bottom: 24px;
}

.features-list .features .title,
.detail-features .features .title,
#features .features .title,
.features h4.title {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--text-primary);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-subtle);
}

.feature_div {
  list-style: none;
}

ul.feature_div {
  padding: 0;
  margin: 0;
}

li.feature_div {
  padding: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  border-bottom: 1px solid var(--border-subtle);
}

li.feature_div:last-child {
  border-bottom: none;
}

li.feature_div strong {
  color: var(--text-primary);
  font-weight: 600;
}

li.feature_div .fa-check {
  color: var(--accent-red);
  margin-right: 8px;
  font-size: 12px;
}

/* ==========================================================================
   8. VIRTUAL TOUR
   ========================================================================== */

.property-virtual-tour .virtual-tour-block {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
}

.property-virtual-tour .virtual-tour-block iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   9. VIDEO BLOCK
   ========================================================================== */

.property-video .video-block {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.property-video .video-block img {
  width: 100%;
  display: block;
}

.property-video .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 24px;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.property-video .play-btn:hover {
  background: var(--accent-red);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ==========================================================================
   10. FLOOR PLANS
   ========================================================================== */

.floor-plans .floor-plan {
  margin-bottom: 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.floor-plans .floor-plan .panel-heading,
.floor-plans .floor-plan .panel-title {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border: none;
}

.floor-plans .floor-plan .panel-title a {
  color: var(--text-primary);
  text-decoration: none;
  padding: 14px 20px;
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
}

.floor-plans .floor-plan .panel-body {
  background: var(--surface);
  color: var(--text-secondary);
  padding: 20px;
}

.floor-plans .floor-plan .panel-body img {
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   11. WALK SCORE
   ========================================================================== */

.walk-score-block {
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* ==========================================================================
   12. PROPERTY STATS
   ========================================================================== */

.property-stats .stats-block {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 20px;
}

/* ==========================================================================
   13. SIMILAR / RELATED PROPERTIES
   ========================================================================== */

.similar-properties .property-item-v2 {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.similar-properties .property-item-v2:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

/* ==========================================================================
   14. NEXT / PREV NAVIGATION
   ========================================================================== */

.next-prev-blog {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
}

.next-prev-blog .media {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  flex: 1;
  transition: var(--transition);
}

.next-prev-blog .media:hover {
  border-color: var(--border-strong);
}

.next-prev-blog .media-heading {
  color: var(--text-primary);
  font-size: 14px;
}

.next-prev-blog .media p {
  color: var(--text-muted);
  font-size: 12px;
}

/* ==========================================================================
   15. PROPERTY RATINGS / REVIEWS
   ========================================================================== */

.property-reviews .detail-block {
  background: var(--surface);
}

.property-reviews .reviews-list .media {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.property-reviews .reviews-list .media-heading {
  color: var(--text-primary);
  font-weight: 600;
}

.property-reviews .reviews-list .media-body p {
  color: var(--text-secondary);
}

/* ==========================================================================
   16. SIDEBAR
   ========================================================================== */

.container-sidebar .sidebar-white,
.container-sidebar aside.sidebar-white {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.widget-contact-agent {
  background: var(--surface);
  border-radius: var(--radius-md);
}

.widget-contact-agent .widget-body {
  padding: 24px;
}

.widget-contact-agent h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text-primary);
  margin: 0 0 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Agent form inputs */
.widget-contact-agent input[type="text"],
.widget-contact-agent input[type="email"],
.widget-contact-agent input[type="tel"],
.widget-contact-agent textarea,
.widget-contact-agent select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition);
}

.widget-contact-agent input:focus,
.widget-contact-agent textarea:focus,
.widget-contact-agent select:focus {
  border-color: var(--input-focus-border);
  box-shadow: var(--input-focus-shadow);
  outline: none;
}

.widget-contact-agent input::placeholder,
.widget-contact-agent textarea::placeholder {
  color: var(--input-placeholder);
}

.widget-contact-agent input[type="submit"],
.widget-contact-agent button[type="submit"] {
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.widget-contact-agent input[type="submit"]:hover,
.widget-contact-agent button[type="submit"]:hover {
  background: #b8222a;
}

/* Agent info card in sidebar */
.agent-info-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.agent-info-top img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-subtle);
}

.agent-info-top .agent-name {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
}

.agent-info-top .agent-phone,
.agent-info-top .agent-email {
  color: var(--text-muted);
  font-size: 13px;
}

.agent-info-top .agent-phone a,
.agent-info-top .agent-email a {
  color: var(--text-muted);
  transition: var(--transition);
}

.agent-info-top .agent-phone a:hover,
.agent-info-top .agent-email a:hover {
  color: var(--accent-red);
}

/* Property sidebar widget generic */
.sidebar-property .widget,
.container-sidebar .widget {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  padding: 24px;
  overflow: hidden;
}

.container-sidebar .widget-title,
.sidebar-property .widget-title {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--text-primary);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   17. LIGHTBOX
   ========================================================================== */

#lightbox-popup-main {
  background: rgba(0, 0, 0, 0.92);
}

#lightbox-popup-main .lightbox-popup {
  background: var(--bg-primary);
}

#lightbox-popup-main .popup-inner {
  background: var(--bg-primary);
}

#lightbox-popup-main .lightbox-left {
  background: var(--bg-primary);
}

#lightbox-popup-main .lightbox-right {
  background: var(--surface);
  border-left: 1px solid var(--border-subtle);
}

#lightbox-popup-main .lightbox-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 20px;
}

#lightbox-popup-main .lightbox-header .header-title p {
  color: var(--text-primary);
  margin: 0;
  font-size: 15px;
}

#lightbox-popup-main .lightbox-header .header-actions .actions li span {
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

#lightbox-popup-main .lightbox-header .header-actions .actions li span:hover {
  color: var(--text-primary);
}

#lightbox-popup-main .gallery-area {
  background: var(--bg-primary);
}

#lightbox-popup-main .slider-placeholder {
  background: var(--bg-secondary);
  color: var(--text-muted);
}

#lightbox-popup-main .lightbox-slide-nav {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
}

#lightbox-popup-main .lightbox-nav-title {
  color: var(--text-secondary);
  font-size: 14px;
}

#lightbox-popup-main .lightbox-arrow {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: var(--transition);
}

#lightbox-popup-main .lightbox-arrow:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

#lightbox-popup-main .expand-icon {
  color: var(--text-muted);
  transition: var(--transition);
}

#lightbox-popup-main .expand-icon:hover {
  color: var(--text-primary);
}

/* ==========================================================================
   18. SCHEDULE TOUR
   ========================================================================== */

.schedule-tour .detail-block {
  background: var(--surface);
}

.schedule-tour .btn-group .btn {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  transition: var(--transition);
}

.schedule-tour .btn-group .btn.active,
.schedule-tour .btn-group .btn:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.schedule-tour input[type="text"],
.schedule-tour input[type="email"],
.schedule-tour textarea,
.schedule-tour select {
  background: var(--input-bg);
  border: 1px solid var(--input-border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   19. IDX LISTING DETAIL PAGE (idx-listing-detail.php)
   The custom IDX page template shares many classes with the Houzez detail.
   These supplement the idx.css rules.
   ========================================================================== */

.detail-top-grid {
  background: var(--bg-primary);
  padding: 0;
}

.detail-top-grid .header-detail {
  padding: 28px 0 24px;
}

/* Listing detail bar (IDX) */
.listing-detail-bar {
  color: var(--text-secondary);
}

.listing-detail-bar .detail-block {
  margin-bottom: 36px;
  padding: 28px 30px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.listing-detail-bar .detail-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

/* Listing detail footer */
#listing-foot {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

#listing-foot .footer-title {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

#listing-foot small {
  color: var(--text-dim);
  font-size: 12px;
}

/* ==========================================================================
   20. RESPONSIVE — Property Detail
   ========================================================================== */

@media (max-width: 991px) {

  .header-detail {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 0 16px;
  }

  .header-detail .header-right {
    align-items: flex-start;
    text-align: left;
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
  }

  .list-three-col > li {
    width: 50%;
  }

  .list-features > li {
    width: 50%;
  }

  .detail-block {
    padding: 22px 24px;
  }

  .property-menu li a {
    padding: 12px 14px;
    font-size: 12px;
  }
}

@media (max-width: 767px) {

  .header-detail .table-list h1 {
    font-size: 22px;
  }

  .header-detail .item-price {
    font-size: 24px;
  }

  .list-three-col > li {
    width: 100%;
  }

  .list-two-col > li {
    width: 100%;
  }

  .list-features > li {
    width: 100%;
  }

  .detail-block {
    padding: 18px 16px;
    border-radius: var(--radius-sm);
  }

  .detail-slider .item {
    min-height: 280px;
  }

  #singlePropertyMap,
  #street-map,
  .mapPlaceholder {
    min-height: 300px;
  }

  .detail-title h2.title-left,
  .detail-title h2 {
    font-size: 19px;
  }

  .property-menu-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .property-menu {
    flex-wrap: nowrap;
    white-space: nowrap;
  }

  .header-detail .header-right {
    flex-direction: column;
    gap: 8px;
  }

  .next-prev-blog {
    flex-direction: column;
  }

  .section-detail-content {
    padding: 24px 0 40px;
  }

  .widget-contact-agent .widget-body {
    padding: 18px;
  }
}

@media (max-width: 575px) {

  .media-tabs {
    flex-direction: column;
    gap: 8px;
    padding: 8px 12px;
  }

  .header-detail {
    padding: 16px 0 12px;
  }
}

/* ==========================================================================
   21. VRBO BOOKING BUTTON
   ========================================================================== */

.widget-vrbo-booking {
  margin-bottom: 24px;
}

.vrbo-book-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 14px 28px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
}

.vrbo-book-btn:hover,
.vrbo-book-btn:focus {
  background: #b8222a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 41, 47, 0.35);
}

.vrbo-book-btn:active {
  transform: translateY(0);
}

.vrbo-book-btn .fa {
  font-size: 14px;
  opacity: 0.85;
}
.sidebar-white .widget:not(.widget-range) {
  padding: 40px 20px !important;
  background: var(--surface);
}

.property-item {
  padding: 8px;
  background-color:  var(--surface);
}