/* Additive multi-page styles; preserve the shared design tokens. */
#main-content .apartment-detail {
  display: block;
}
.page, .page-section {
  padding: var(--spacing-8) 0;
}
.page__intro, .page-intro {
  max-width: 75ch;
  margin-bottom: var(--spacing-4);
  color: var(--color-neutral-700);
}
.breadcrumbs {
  margin-bottom: var(--spacing-3);
  font-size: var(--font-size-sm);
}
.page__actions, .page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-2);
  margin-top: var(--spacing-3);
}
.page-note {
  padding: var(--spacing-2);
  background: var(--color-neutral-50);
  border-left: 3px solid var(--color-primary);
}
/* Existing modal styles use opacity; hide closed controls from hit testing too. */
.modal[aria-hidden="true"], .lightbox[aria-hidden="true"] {
  visibility: hidden;
  pointer-events: none;
}
.modal [hidden], .lightbox [hidden] { display: none !important; }
.modal__container { max-height: calc(100dvh - var(--spacing-4)); }
.lightbox button:disabled { visibility: hidden; }
#main-content { overflow-wrap: break-word; }
@media (max-width: 1023px) {
  body.loaded .nav:not(.active) { visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .modal, .modal__container, .hero__slide, .about__carousel-slide, .nav { transition: none; animation: none; }
}

/* Fit the hero box to its container, including both nested padding layers. */
@media (max-width: 1024px) {
  .hero .hero__content {
    box-sizing: border-box;
    width: 100%;
    max-width: 640px;
    min-width: 0;
    margin: 0 auto;
    padding: 0;
  }
  .hero__text-box {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: clamp(var(--spacing-2), 4vw, var(--spacing-4));
  }
  .hero__cta--inline { flex-wrap: wrap; }
  .hero__cta .btn {
    min-width: 0;
    max-width: 100%;
    height: auto;
    min-height: 56px;
    padding: var(--spacing-1) var(--spacing-2);
    white-space: normal;
  }
  /* Let long copy set the height on short/landscape screens instead of clipping it. */
  .hero { display: grid; padding: 0; }
  .hero__slide {
    position: relative;
    grid-area: 1 / 1;
    height: auto;
    min-height: 100svh;
    padding: var(--spacing-8) 0;
  }
}

/* Keep contact cards within narrow grids; preserve readable phone digits. */
.contact__actions { grid-template-columns: minmax(0, 1fr); }
.contact__actions > * { min-width: 0; max-width: 100%; box-sizing: border-box; }
@media (max-width: 767px) {
  .contact__phone, .contact__form-btn { padding: var(--spacing-2); gap: var(--spacing-2); }
  .contact__phone-content, .contact__form-content { min-width: 0; }
  .contact__phone-number { font-size: clamp(1.05rem, 5.7vw, 1.5rem); white-space: normal; }
}
@media (min-width: 768px) { .contact__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Reserve space for the shared fixed header and keep desktop links beside the logo. */
.logo { flex-shrink: 0; }
.logo picture { display: block; flex: none; }
body:not([data-page-id="home"]) #main-content { padding-top: 40px; }
#main-content [id] { scroll-margin-top: 60px; }
@media (min-width: 1024px) {
  .header__content { gap: 16px; }
  .header .nav { width: auto; min-width: 0; flex: 1; gap: 12px; }
  .header .nav__list { min-width: 0; gap: 16px; margin-right: auto; }
  .header .nav__link { padding: 8px 16px; font-size: var(--font-size-base); }
  .header .nav__actions { gap: 12px; }
  .header .nav__cta { padding: 12px 16px; font-size: var(--font-size-lg); }
  body:not([data-page-id="home"]) #main-content { padding-top: 128px; }
  #main-content [id] { scroll-margin-top: 144px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav__phone-number { display: none; }
  .header .nav__list { gap: 4px; flex-shrink: 0; }
}

/* Original information tabs remain readable when scripting is unavailable. */
body:not(.loaded) .tabs__panel {
  display: block;
  opacity: 1;
  visibility: visible;
  position: relative;
}
body:not(.loaded) .tabs__nav { display: none; }
/* The reference completion date is unconfirmed; do not add it through CSS. */
.about__carousel::after { content: none; }
.catalog__lead a { color: inherit; text-decoration: underline; }

/* Keep long action labels readable within cards and narrow contact grids. */
#main-content .btn {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
}

/* Secondary actions in light contact sections need dark text and outlines. */
.contact .btn--secondary,
.page__actions .btn--secondary {
  color: var(--color-neutral-900);
  border-color: var(--color-neutral-700);
}
.contact .btn--secondary:hover,
.page__actions .btn--secondary:hover {
  background-color: var(--color-neutral-100);
  color: var(--color-neutral-900);
}

/* Analytics choice is isolated from the existing page typography and navigation. */
#bv-consent-panel:not([hidden]) {
  position: fixed; inset: auto 16px 16px; z-index: 1035;
  max-width: 620px; max-height: 70svh; overflow-y: auto; margin-left: auto;
  padding: 20px; background: #fff; color: #26342c;
  border: 1px solid #d5dcd7; border-radius: 8px;
  box-shadow: 0 4px 24px #0002; font-size: 14px; line-height: 1.5;
}
#bv-consent-panel h2 { margin: 0 0 8px; font-size: 18px; }
#bv-consent-panel p { margin: 0 0 12px; }
#bv-consent-panel a { color: inherit; text-decoration: underline; overflow-wrap: anywhere; }
#bv-consent-panel summary { cursor: pointer; text-decoration: underline; margin-bottom: 12px; }
#bv-consent-panel .bv-consent-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#bv-consent-panel .btn { font-size: 14px; padding: 10px 16px; white-space: normal; }
#bv-consent-settings-wrap { padding: 12px 0; text-align: center; }
#bv-consent-settings { background: none; border: 0; text-decoration: underline; color: inherit; cursor: pointer; font: inherit; font-size: 14px; }
@media (max-width: 480px) {
  #bv-consent-panel:not([hidden]) { inset: auto 8px 8px; padding: 16px; }
  #bv-consent-panel .bv-consent-actions > button { flex: 1; }
}

/* Keep announcements available to assistive technology without visible footer copy. */
#bv-consent-status {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
