/* ============================================================
   PAGES/PROPERTY.CSS - Single property detail page styles
   ============================================================ */

/* ── Hero price and meta ── */

.prop-price {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1.1;
  margin-bottom: 0.75rem;
}

.prop-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

.prop-status-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.875rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-primary);
}

.prop-status-badge--active {
  background: var(--color-accent);
  color: var(--color-primary);
}

.prop-status-badge--sold,
.prop-status-badge--closed {
  background: #64748b;
  color: var(--color-white);
}

.prop-status-badge--pending,
.prop-status-badge--under-contract {
  background: #0ea5e9;
  color: var(--color-white);
}

.prop-mls-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.75rem;
  letter-spacing: 0.04em;
}


/* ── Gallery ── */

.prop-gallery {
  margin-bottom: 2.5rem;
}

.prop-gallery__main {
  width: 100%;
  max-height: 560px;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #0a0f1a;
  border: 1px solid var(--color-border);
  position: relative;
}

/* Button wrapper that makes the whole main photo clickable */
.prop-gallery__open-lightbox {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  position: relative;
}

.prop-gallery__open-lightbox img {
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  display: block;
  border-radius: var(--radius-md);
  transition: opacity 0.2s ease;
}

/* "View Photos" hint that appears on hover */
.prop-gallery__zoom-hint {
  position: absolute;
  bottom: 0.875rem;
  right: 0.875rem;
  background: rgba(10, 39, 73, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.prop-gallery__open-lightbox:hover .prop-gallery__zoom-hint,
.prop-gallery__open-lightbox:focus-visible .prop-gallery__zoom-hint {
  opacity: 1;
}

/* Prev/next arrow buttons overlaid on main photo */
.prop-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 39, 73, 0.82);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.prop-gallery__nav--prev { left: 1rem; }
.prop-gallery__nav--next { right: 1rem; }

.prop-gallery__main:hover .prop-gallery__nav,
.prop-gallery__nav:focus-visible {
  opacity: 1;
}

.prop-gallery__nav:hover {
  background: var(--color-primary);
  transform: translateY(-50%) scale(1.06);
}

.prop-gallery__nav:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.prop-gallery__nav[hidden] {
  display: none;
}

.prop-gallery__main--empty {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.prop-gallery__thumbs {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  overflow-x: auto;
  margin-top: 0.75rem;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border) transparent;
}

.prop-gallery__thumbs::-webkit-scrollbar {
  height: 4px;
}

.prop-gallery__thumbs::-webkit-scrollbar-track {
  background: transparent;
}

.prop-gallery__thumbs::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 2px;
}

.prop-gallery__thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--color-bg-slate);
  transition: border-color var(--transition), opacity var(--transition);
  outline: none;
}

.prop-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prop-gallery__thumb:hover {
  border-color: var(--color-accent);
  opacity: 0.9;
}

.prop-gallery__thumb.is-active {
  border-color: var(--color-accent);
}

.prop-gallery__thumb:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10, 39, 73, 0.2);
}

.prop-gallery__count {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  font-weight: 500;
}


/* ── Specs bar ── */

.prop-specs-bar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-white);
}

.prop-spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1rem;
  text-align: center;
  border-right: 1px solid var(--color-border);
  gap: 0.35rem;
}

.prop-spec-item:last-child {
  border-right: none;
}

.prop-spec-item__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.prop-spec-item__value {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-primary);
}


/* ── Gated section ── */

#gatedSection {
  position: relative;
}

/* Gated content wrapper — gate overlay positions against this */
.prop-gated-content {
  position: relative;
  margin-top: 2rem;
}

/* Blur all gated content children (except the gate card itself) when locked */
#gatedSection:not(.is-unlocked) .prop-gated-content > :not(.prop-gate) {
  filter: blur(7px);
  opacity: 0.45;
  user-select: none;
  pointer-events: none;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

/* Also blur the sidebar when locked */
#gatedSection:not(.is-unlocked) .prop-detail-layout__sidebar {
  filter: blur(7px);
  opacity: 0.45;
  user-select: none;
  pointer-events: none;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

/* Smooth reveal when unlocked */
#gatedSection.is-unlocked .prop-gated-content > :not(.prop-gate) {
  filter: none;
  opacity: 1;
}

#gatedSection.is-unlocked .prop-detail-layout__sidebar {
  filter: none;
  opacity: 1;
  pointer-events: auto;
}

.prop-gate {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10rem 1.5rem 2rem;
  background: transparent;
  pointer-events: none;
}

/* The actual card inside the overlay */
.prop-gate__inner {
  max-width: 500px;
  width: 100%;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 60px rgba(10, 39, 73, 0.18), 0 4px 16px rgba(10, 39, 73, 0.08);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* auth-tabs bleed correction — card has 2.5rem padding so bleed must match */
.prop-gate__inner .auth-tabs {
  margin: -2.5rem -2.5rem 2rem;
  padding: 0 2.5rem;
}

.prop-gate__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: rgba(10, 39, 73, 0.06);
  border-radius: 50%;
  color: var(--color-primary);
}

.prop-gate__title {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.prop-gate__desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.prop-gate__form {
  text-align: left;
}

.prop-gate__field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.prop-gate__required {
  color: var(--color-accent);
}

.prop-gate__optional {
  font-weight: 400;
  font-size: 0.7rem;
  color: var(--color-text-muted);
  letter-spacing: 0;
  text-transform: none;
}

.prop-gate__error {
  font-size: 0.8rem;
  color: #dc2626;
  margin-bottom: 1rem;
  min-height: 1.2em;
}

.prop-gate__submit {
  width: 100%;
  justify-content: center;
}

/* Hide overlay when unlocked */
#gatedSection.is-unlocked .prop-gate {
  display: none;
}


/* ── Gated content sections ── */

.prop-section {
  margin-bottom: 3rem;
}

.prop-section:last-of-type {
  margin-bottom: 0;
}

.prop-section__title {
  font-family: var(--font-subheading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}


/* ── Property description ── */

.prop-description {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--color-text);
}


/* ── Details grouped layout ── */

.prop-details-group {
  margin-bottom: 2rem;
}

.prop-details-group:last-child {
  margin-bottom: 0;
}

.prop-details-group__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--color-border);
}

.prop-details-group__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prop-detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.875rem 1.125rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-white);
}

/* Remove right border on every 3rd item */
.prop-detail-item:nth-child(3n) {
  border-right: none;
}

/* Remove bottom border on last row items */
.prop-detail-item:nth-last-child(-n+3):nth-child(3n+1),
.prop-detail-item:nth-last-child(-n+3):nth-child(3n+2),
.prop-detail-item:nth-last-child(-n+3):nth-child(3n) {
  border-bottom: none;
}
/* Also handle last row when items < 3 */
.prop-detail-item:last-child,
.prop-detail-item:nth-last-child(2):nth-child(3n+1) {
  border-bottom: none;
}

.prop-detail-item__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.prop-detail-item__value {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: break-word;
}

.prop-detail-item__link {
  color: var(--color-primary);
  text-decoration: underline;
  transition: color var(--transition);
}

.prop-detail-item__link:hover {
  color: var(--color-accent);
}


/* ── Agent card ── */

.prop-agent {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.prop-agent__info {
  flex: 1;
  min-width: 200px;
}

.prop-agent__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(10, 39, 73, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.prop-agent__name {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.prop-agent__blurb {
  font-size: 0.875rem;
  color: var(--color-text-muted, #6b7280);
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.prop-agent__role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.875rem;
}

.prop-agent__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prop-agent__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--transition);
  text-decoration: none;
}

.prop-agent__contact-link:hover {
  color: var(--color-primary);
}

.prop-agent__contact-link svg {
  stroke: var(--color-primary);
  flex-shrink: 0;
}

.prop-agent__btn {
  flex-shrink: 0;
}


/* ── REALTOR badge ── */

.realtor-badge {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.realtor-badge__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
}

.realtor-badge__link:hover {
  color: var(--color-accent);
}

.realtor-badge__icon {
  stroke: currentColor;
  flex-shrink: 0;
}

.realtor-badge__note {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}


/* ── Error state ── */

.prop-error {
  max-width: 480px;
  margin: 0 auto;
  padding: 4rem 2rem;
  text-align: center;
  color: var(--color-text-muted);
}

.prop-error svg {
  stroke: var(--color-text-muted);
  margin-bottom: 1.25rem;
  opacity: 0.6;
}

.prop-error__title {
  font-family: var(--font-subheading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.875rem;
}

.prop-error__message {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}


/* ── Map ── */

.prop-map {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-bg-slate);
}

.prop-map iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

.prop-map__link {
  display: block;
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
  text-decoration: none;
  border-top: 1px solid var(--color-border);
  transition: color var(--transition);
}

.prop-map__link:hover { color: var(--color-primary); }


/* ── CTA section centered variant ── */

.cta-section__centered {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-section__actions--center {
  justify-content: center;
}


/* ── Responsive ── */

@media (max-width: 1024px) {
  .prop-specs-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .prop-spec-item:nth-child(3) {
    border-right: none;
  }

  .prop-spec-item:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }
}

@media (max-width: 768px) {
  .prop-gallery__main {
    max-height: 320px;
  }

  .prop-gallery__main img {
    max-height: 320px;
  }

  .prop-specs-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .prop-spec-item:nth-child(odd) {
    border-right: 1px solid var(--color-border);
  }

  .prop-spec-item:nth-child(even) {
    border-right: none;
  }

  .prop-spec-item:nth-child(n+3) {
    border-top: 1px solid var(--color-border);
  }

  .prop-gate__inner {
    padding: 2rem 1.5rem;
  }

  .prop-gate__inner .auth-tabs {
    margin: -2rem -1.5rem 2rem;
    padding: 0 1.5rem;
  }

  .prop-agent {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .prop-agent__btn {
    width: 100%;
    justify-content: center;
  }

  .prop-details-group__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .prop-detail-item:nth-child(3n) {
    border-right: 1px solid var(--color-border);
  }
  .prop-detail-item:nth-child(even) {
    border-right: none;
  }
}

@media (max-width: 480px) {
  .prop-specs-bar {
    grid-template-columns: 1fr;
  }

  .prop-spec-item {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 0.875rem 1rem;
  }

  .prop-spec-item:last-child {
    border-bottom: none;
  }

  .prop-gallery__thumbs {
    gap: 0.375rem;
  }

  .prop-gallery__thumb {
    width: 64px;
    height: 48px;
  }

  .prop-gate__inner {
    padding: 1.75rem 1.25rem;
  }

  .prop-gate__inner .auth-tabs {
    margin: -1.75rem -1.25rem 1.75rem;
    padding: 0 1.25rem;
  }

  .prop-gate__title {
    font-size: 1.25rem;
  }

  .realtor-badge {
    flex-direction: column;
    align-items: flex-start;
  }

  .prop-details-group__grid {
    grid-template-columns: 1fr;
  }
  .prop-detail-item {
    border-right: none;
  }
  .prop-detail-item:last-child {
    border-bottom: none;
  }
}


/* Wider container for the details section (gallery stays at 1280px default) */
#gatedSection .container {
  max-width: 1600px;
}


/* ── Two-column detail layout (main content + sidebar) ── */

.prop-detail-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

.prop-detail-layout__sidebar {
  /* position handled by initStickyPropertySidebar() in property.js */
}

.prop-sidebar {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(10, 39, 73, 0.07);
}

.prop-sidebar__logo {
  display: block;
  max-width: 150px;
  height: auto;
  margin: 0 auto 1.5rem;
}

.prop-sidebar__agent {
  text-align: center;
  margin-bottom: 1.5rem;
}

.prop-sidebar__agent-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto 0.75rem;
  border: 3px solid var(--color-accent);
}

.prop-sidebar__agent-name {
  font-family: var(--font-body);
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.prop-sidebar__agent-role {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.prop-sidebar__contacts {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
}

.prop-sidebar__contact-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.18s;
}

.prop-sidebar__contact-link:hover {
  color: var(--color-primary);
}

.prop-sidebar__contact-link svg {
  flex-shrink: 0;
  stroke: var(--color-accent);
}

.prop-sidebar__divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 1.5rem 0;
}

.prop-sidebar__request-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.prop-sidebar__note {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  margin-bottom: 0;
}


/* ── Ask About This Property button ── */

.prop-sidebar__ask-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  margin-top: 0.75rem;
  border: 1.5px solid var(--color-primary);
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}

.prop-sidebar__ask-btn:hover {
  background: #fff;
  border-color: #fff;
  color: var(--color-primary);
}

.prop-sidebar__ask-btn.is-open {
  background: #0d3260;
}

/* ── Ask form expand/collapse ── */

.prop-sidebar__ask-wrap {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
}

.prop-sidebar__ask-wrap.is-open {
  max-height: 800px;
  opacity: 1;
}

.prop-sidebar__ask-wrap form {
  padding-top: 1.25rem;
}

.prop-sidebar__ask-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.625rem;
  margin-bottom: 0.625rem;
}

.prop-sidebar__ask-field {
  margin-bottom: 0.625rem;
}

.prop-sidebar__ask-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.3rem;
}

.prop-sidebar__ask-field input,
.prop-sidebar__ask-field textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.825rem;
  color: var(--color-text);
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.18s;
}

.prop-sidebar__ask-field input:focus,
.prop-sidebar__ask-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.prop-sidebar__ask-field textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}

.prop-sidebar__ask-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.25rem;
  font-size: 0.875rem;
}

.prop-sidebar__ask-result {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.625rem;
  min-height: 1.2em;
}

@media (max-width: 1024px) {
  .prop-detail-layout {
    grid-template-columns: 1fr;
  }

  .prop-detail-layout__sidebar {
    position: static;
  }

  #propSidebarPanel {
    position: static !important;
    width: auto !important;
    left: auto !important;
    top: auto !important;
  }
}


/* ── CTA overrides for property page ── */

.prop-contact-section {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.prop-contact-section__title {
  font-family: var(--font-subheading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1.75rem;
}

/* Override the prop-agent flex so it centers in this context */
.prop-contact-section .prop-agent {
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.prop-contact-section .prop-agent__info {
  align-items: center;
  text-align: center;
}

.prop-contact-section .prop-agent__blurb {
  max-width: 420px;
  margin: 0 auto 0.5rem;
}


/* ── Lightbox ── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(5, 10, 20, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox__stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 160px);
  max-height: 100vh;
  padding: 2.5rem 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  user-select: none;
}

/* Arrow buttons */
.lightbox__arrow {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  margin: 0 0.75rem;
  transition: background 0.18s, border-color 0.18s;
}

.lightbox__arrow:hover:not(:disabled) {
  background: rgba(202, 164, 93, 0.25);
  border-color: var(--color-accent);
}

.lightbox__arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

/* Close button */
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background 0.18s;
  z-index: 1;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Counter */
.lightbox__counter {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  pointer-events: none;
}

@media (max-width: 600px) {
  .lightbox__stage {
    max-width: calc(100vw - 80px);
  }

  .lightbox__arrow {
    width: 38px;
    height: 38px;
    margin: 0 0.25rem;
  }
}
