/* Mobile leasing enhancements; loaded after the existing visual theme. */
.sms-consent-block { display: none; }
body[data-texting="enabled"] .sms-consent-block:not([hidden]) { display: block; }
body:not([data-texting="enabled"]) a[href^="sms:"] { display: none !important; }
.inquiry-form input:focus-visible,
.inquiry-form select:focus-visible,
.inquiry-form textarea:focus-visible { outline: 3px solid #3c5247; outline-offset: 3px; }
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea { font-size: 16px; max-width: 100%; }
.inquiry-form .contact-preference { grid-column: 1 / -1; }
.inquiry-form .contact-preference select { width: 100%; }
.contact-grid .soft-panel .button + .button { margin-left: 8px; }

@media (max-width: 900px) {
  html { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px)); }
  .mobile-dock.leasing-dock {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    gap: 8px;
    padding: 10px max(12px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px));
    background: rgba(250, 249, 246, .98);
    border-top: 1px solid var(--line);
    box-shadow: 0 -3px 18px #2221;
  }
  .mobile-dock.leasing-dock a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 6px;
    border: 1px solid var(--brand, #3c5247);
    border-radius: 6px;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
  }
  .mobile-dock.leasing-dock a:first-child {
    color: #fff;
    background: var(--brand, #3c5247);
    border-color: var(--brand, #3c5247);
  }
  .mobile-dock.leasing-dock a:focus-visible { outline-offset: 2px; }
  body.leasing-field-active .mobile-dock.leasing-dock { display: none; }
  body:has(dialog[open]) .mobile-dock.leasing-dock { visibility: hidden; }
  .offer-popup { display: none !important; }
  .offer-bar { padding: 5px 12px; gap: 0; }
  .offer-bar > span { display: none; }
  .offer-bar a { min-height: 44px; white-space: normal; text-align: center; justify-content: center; }
  .header-inner { gap: 10px; padding: 10px 16px; min-height: 72px; }
  .header-inner .brand { min-width: 0; flex: 1 1 auto; }
  .header-inner .brand-logo { width: min(185px, 48vw); max-width: 100%; height: auto; }
  .site-header .lang-toggle { min-height: 44px; min-width: 44px; justify-content: center; padding: 8px; }
  .site-header .menu-toggle { min-height: 44px; min-width: 68px; padding: 8px; gap: 5px; }
  .site-header nav { max-height: calc(100dvh - var(--offer-bar-height,44px) - var(--site-header-height,72px) - 85px - env(safe-area-inset-bottom,0px)); }
  .hero-full { min-height: 0; }
  .hero-full-copy { padding: 52px 24px 32px; }
  .hero-full-copy h1 { font-size: clamp(42px, 9vw, 64px); line-height: 1.02; margin-bottom: 18px; }
  .hero-full-copy p { font-size: 16px; line-height: 1.6; }
  .hero-full-copy .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .hero-full-copy .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .hero-full-copy .actions .button { flex: 0 1 auto; width: auto; max-width: 100%; min-height: 44px; padding: 10px 14px; gap: 8px; font-size: 14px; justify-content: center; }
  .hero-full-copy .hero-note { font-size: 12px; line-height: 1.5; margin-top: 20px; }
  .hero-gallery-link { min-height: 44px; display: inline-flex; align-items: center; margin-top: 8px; }
  .quick-strip { gap: 8px; }
  .quick-strip a { min-height: 44px; display: inline-flex; align-items: center; }
  .section-heading > .text-link,
  .plan-info > .text-link { display: inline-flex; align-items: center; min-height: 44px; }
  .filter-row button { min-height: 44px; }
  .offers { grid-template-columns: minmax(0, 1fr); }
  .offers .offer { min-width: 0; }
  .offer-top { flex-wrap: wrap; gap: 6px 12px; }
  .offer-top > span { min-width: 0; overflow-wrap: anywhere; }
  .offer .price { font-size: clamp(38px, 10vw, 58px); overflow-wrap: anywhere; }
  .offer p { overflow-wrap: anywhere; }
  .offer .button { width: auto; min-width: 0; gap: 8px; white-space: normal; }
  .detail .button { min-height: 48px; }
  .contact-grid .soft-panel .button { width: auto; max-width: 100%; justify-content: center; margin: 0 8px 12px 0; }
  .contact-grid .soft-panel .button + .button { margin-left: 0; }
  .inquiry-form { padding: 24px 20px; }
  .inquiry-form .form-grid { grid-template-columns: 1fr; gap: 18px; }
  .inquiry-form h2 { font-size: 30px; line-height: 1.1; }
  .inquiry-form label { font-size: 15px; line-height: 1.5; }
  .inquiry-form input,
  .inquiry-form select,
  .inquiry-form textarea { min-height: 48px; font-size: 16px; width: 100%; }
  .inquiry-form input[type="checkbox"] { width: 22px; min-height: 22px; height: 22px; }
  .inquiry-form .sms-consent-block { padding: 16px 12px; }
  .inquiry-form .consent { min-height: 44px; }
  .inquiry-form button[type="submit"] { min-height: 52px; width: 100%; justify-content: center; font-size: 16px; }
  footer { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 360px) {
  .header-inner { gap: 7px; padding: 10px 12px; }
  .header-inner .brand-logo { width: min(150px, 45vw); }
  .site-header .menu-toggle { min-width: 62px; font-size: 12px; }
  .hero-full-copy { padding: 38px 20px 26px; }
  .mobile-dock.leasing-dock a { font-size: 13px; }
  .inquiry-form { padding: 22px 16px; }
}
