/* ==========================================================================
   Havenly Public Website — Premium Editorial Design System
   Palette: ink #14211c · moss #2f4438 · bronze #b08d57 · paper #faf8f4
   Type: Fraunces (display serif) · Inter (body)
   ========================================================================== */

:root {
    --ink: #14211c;
    --ink-soft: #1c2d26;
    --moss: #2f4438;
    --moss-soft: #46604f;
    --bronze: #b08d57;
    --bronze-dark: #8f7444;
    --paper: #faf8f4;
    --paper-dim: #f3efe7;
    --paper-deep: #ece7db;
    --line: #e3ddd0;
    --white: #ffffff;
    --muted: #6f6a5e;
    --ok: #2e7d52;
    --shadow-sm: 0 1px 2px rgba(20, 33, 28, .06), 0 2px 8px rgba(20, 33, 28, .05);
    --shadow-md: 0 4px 12px rgba(20, 33, 28, .08), 0 12px 32px rgba(20, 33, 28, .08);
    --shadow-lg: 0 12px 24px rgba(20, 33, 28, .12), 0 32px 64px rgba(20, 33, 28, .14);
    --radius: 14px;
    --radius-lg: 20px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

html { scroll-behavior: smooth; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, .display-serif {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: var(--ink);
    line-height: 1.12;
}

a { color: var(--bronze-dark); text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: var(--ink); }

img { max-width: 100%; }

/* ---------- Type helpers ---------- */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    font-family: 'Inter', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--bronze-dark);
    margin-bottom: 1rem;
}
.eyebrow::before {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--bronze);
    display: inline-block;
}
.eyebrow.eyebrow-center::after {
    content: "";
    width: 26px;
    height: 1px;
    background: var(--bronze);
    display: inline-block;
}

.h-display { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.h-section { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }

.lede {
    font-size: 1.13rem;
    color: var(--muted);
    max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn-havenly {
    --btn-bg: var(--ink);
    --btn-fg: var(--paper);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .82rem 1.7rem;
    background: var(--btn-bg);
    color: var(--btn-fg) !important;
    border: 1px solid var(--btn-bg);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .13em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .22s var(--ease), border-color .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
}
.btn-havenly:hover { background: var(--moss); border-color: var(--moss); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-havenly:active { transform: translateY(0); }

.btn-ghost {
    --btn-bg: transparent;
    --btn-fg: var(--ink);
    border-color: rgba(20, 33, 28, .28);
    background: transparent;
    color: var(--ink) !important;
}
.btn-ghost:hover { background: rgba(20, 33, 28, .05); border-color: var(--ink); box-shadow: none; }

.btn-bronze { --btn-bg: var(--bronze); --btn-fg: #fff; }
.btn-bronze:hover { --btn-bg: var(--bronze-dark); border-color: var(--bronze-dark); }

.btn-hero {
    --btn-bg: var(--paper);
    --btn-fg: var(--ink);
    border-color: var(--paper);
}
.btn-hero:hover { --btn-bg: #fff; border-color: #fff; --btn-fg: var(--ink); }

.btn-hero-ghost {
    --btn-bg: transparent;
    --btn-fg: #fff;
    border-color: rgba(255, 255, 255, .55);
    color: #fff !important;
    backdrop-filter: blur(4px);
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.btn-lg-h { padding: 1rem 2.1rem; font-size: .84rem; }

/* ---------- Navigation ---------- */
.pub-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1040;
    background: transparent;
    transition: background .35s var(--ease), box-shadow .35s var(--ease), padding .35s var(--ease);
    padding: 1.1rem 0;
}
.pub-nav.scrolled,
.pub-nav.nav-solid {
    background: rgba(250, 248, 244, .92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(20, 33, 28, .07);
    padding: .55rem 0;
}
.pub-nav .navbar-brand { padding: 0; margin: 0; flex-shrink: 0; }
.brand-mark {
    font-family: 'Fraunces', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .01em;
    color: var(--ink);
    line-height: 1;
    display: inline-flex;
    align-items: baseline;
    gap: 2px;
}
.brand-mark .tint { color: var(--bronze); }
.brand-dot {
    width: 7px; height: 7px;
    background: var(--bronze);
    border-radius: 50%;
    display: inline-block;
    margin-left: 4px;
    transform: translateY(-9px);
}
.nav-on-hero .brand-mark { color: #fff; }

.pub-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
}
.nav-cta-group {
    flex-shrink: 0;
    margin-left: 1.5rem;
}
.pub-links .nav-a {
    position: relative;
    font-size: .78rem;
    font-weight: 500;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ink);
    padding: .4rem 0;
    white-space: nowrap;
}
.nav-on-hero .pub-links .nav-a { color: rgba(255, 255, 255, .88); }
.pub-links .nav-a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%;
    height: 1.5px;
    background: var(--bronze);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s var(--ease);
}
.pub-links .nav-a:hover::after,
.pub-links .nav-a.active::after { transform: scaleX(1); }
.nav-on-hero .pub-links .nav-a:hover,
.nav-on-hero .pub-links .nav-a.active { color: #fff; }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .62rem 1.25rem;
    background: var(--ink);
    color: var(--paper) !important;
    border-radius: 8px;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .22s var(--ease), transform .22s var(--ease);
}
.nav-cta:hover { background: var(--moss); color: var(--paper); transform: translateY(-1px); }
.nav-on-hero .nav-cta { background: var(--paper); color: var(--ink) !important; }
.nav-on-hero .nav-cta:hover { background: #fff; }
.nav-login {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--ink);
    padding: .55rem .4rem;
}
.nav-login i { color: var(--bronze-dark); }
.nav-on-hero .nav-login { color: #fff; }

/* Burger */
.nav-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
    z-index: 1101;
}
.nav-burger span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .25s var(--ease), background .3s var(--ease);
}
.nav-on-hero .nav-burger span { background: #fff; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-burger[aria-expanded="true"] span { background: var(--ink) !important; }

/* Mobile drawer */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--paper);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    padding: 5.5rem 2rem 2.5rem;
    transform: translateX(100%);
    transition: transform .38s var(--ease);
    visibility: hidden;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu .m-links { list-style: none; padding: 0; margin: 0 0 2rem; }
.mobile-menu .m-links li { border-bottom: 1px solid var(--line); }
.mobile-menu .m-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.05rem .25rem;
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    color: var(--ink);
}
.mobile-menu .m-links a i { color: var(--bronze); font-size: .9rem; }
.mobile-menu .m-cta-area { margin-top: auto; display: grid; gap: .8rem; }
.mobile-menu .m-note { font-size: .8rem; color: var(--muted); text-align: center; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: flex-end;
    color: #fff;
    isolation: isolate;
    overflow: hidden;
}
.hero-media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: heroZoom 18s var(--ease) forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-fallback {
    position: absolute;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(1200px 500px at 75% 10%, rgba(176, 141, 87, .35), transparent 60%),
        linear-gradient(160deg, #1c2d26 0%, #14211c 55%, #0d1713 100%);
}
.hero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(13, 23, 19, .55) 0%, rgba(13, 23, 19, .18) 40%, rgba(13, 23, 19, .82) 100%);
}
.hero-inner {
    position: relative;
    width: 100%;
    padding: 9.5rem 0 4.5rem;
}
.hero .eyebrow { color: #e8cba0; }
.hero .eyebrow::before { background: #e8cba0; }
.hero h1 {
    color: #fff;
    max-width: 15ch;
    margin-bottom: 1.2rem;
}
.hero-lede {
    color: rgba(255, 255, 255, .85);
    font-size: 1.15rem;
    max-width: 54ch;
    margin-bottom: 2.2rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3.2rem; }

/* Search bar (integrated into hero bottom) */
.hero-search {
    background: rgba(250, 248, 244, .97);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 1.1rem 1.25rem;
}
.hero-search .row { --bs-gutter-x: 1rem; }
.hs-field label {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
    display: block;
}
.hs-field .form-control, .hs-field .form-select {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: .45rem 0;
    font-size: .95rem;
    background: transparent;
    box-shadow: none;
}
.hs-field .form-control:focus, .hs-field .form-select:focus {
    border-bottom-color: var(--bronze);
    box-shadow: none;
    outline: 0;
    background: transparent;
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-deep { background: var(--ink); color: var(--paper); }
.section-deep h2, .section-deep h3 { color: var(--paper); }
.section-deep .lede { color: rgba(250, 248, 244, .72); }
.section-deep .eyebrow { color: #d9b98a; }
.section-deep .eyebrow::before, .section-deep .eyebrow.eyebrow-center::after { background: #d9b98a; }

.section-head { margin-bottom: 3.2rem; }
.section-head.center { text-align: center; }
.section-head.center .lede { margin: 0 auto; }

/* ---------- Unit / property cards ---------- */
.unit-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    height: 100%;
}
.unit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.uc-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--paper-deep);
    overflow: hidden;
}
.uc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s var(--ease);
}
.unit-card:hover .uc-media img { transform: scale(1.05); }
.uc-noimg {
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    color: #a49c8c;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.uc-noimg i { font-size: 2rem; opacity: .6; }
.uc-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(250, 248, 244, .95);
    color: var(--ink);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .32rem .7rem;
    border-radius: 6px;
}
.uc-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.uc-kicker {
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
}
.uc-title {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: .5rem;
}
.uc-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .9rem;
    margin: .6rem 0 1rem;
    padding: 0;
    list-style: none;
}
.uc-amenities li {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .78rem;
    color: var(--muted);
}
.uc-amenities i { color: var(--bronze-dark); font-size: .8rem; }
.uc-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.uc-rate { line-height: 1.1; }
.uc-rate .amount { font-family: 'Fraunces', serif; font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.uc-rate .per { font-size: .74rem; color: var(--muted); letter-spacing: .06em; }
.uc-link {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--bronze-dark);
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    white-space: nowrap;
}
.uc-link i { transition: transform .25s var(--ease); }
.uc-link:hover i { transform: translateX(4px); }

/* ---------- Editorial property showcase ---------- */
.prop-feature { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.prop-feature img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.prop-feature:hover img { transform: scale(1.04); }
.pf-min {
    min-height: 460px;
}
.pf-sm {
    min-height: 218px;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.prop-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 2rem 1.75rem 1.6rem;
    background: linear-gradient(180deg, transparent, rgba(13, 23, 19, .78) 62%);
    color: #fff;
}
.prop-overlay .pf-name { font-family: 'Fraunces', serif; font-size: 1.5rem; color: #fff; margin-bottom: .25rem; }
.prop-overlay .pf-meta { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.82); display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.pf-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    font-size: 0;
    color: transparent;
}

/* ---------- Amenities ---------- */
.amen-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    border-top: 1px solid rgba(250, 248, 244, .18);
}
.amen-row.has-6 { border-bottom: 1px solid rgba(250, 248, 244, .18); }
.amen-cell {
    padding: 1.9rem 1.6rem;
    border-right: 1px solid rgba(250, 248, 244, .12);
    transition: background .25s var(--ease);
}
.amen-cell:hover { background: rgba(250, 248, 244, .05); }
.amen-cell:last-child { border-right: 0; }
.amen-cell i { font-size: 1.5rem; color: #d9b98a; margin-bottom: .9rem; display: block; }
.amen-cell .a-name { color: var(--paper); font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.amen-cell .a-sub { font-size: .78rem; color: rgba(250, 248, 244, .6); }

/* ---------- How it works ---------- */
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    counter-reset: step;
    position: relative;
}
.hiw-step { position: relative; padding-top: 1.4rem; }
.hiw-step::before {
    counter-increment: step;
    content: "0" counter(step);
    position: absolute;
    top: 0; left: 0;
    font-family: 'Fraunces', serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: var(--bronze);
    opacity: .9;
    line-height: 1;
}
.hiw-step .s-line {
    display: block;
    width: 44px;
    height: 1px;
    background: var(--line);
    margin: 1.4rem 0 1.1rem;
}
.hiw-step h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.hiw-step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gal-hero {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    cursor: zoom-in;
}
.gal-hero img { width: 100%; height: 480px; object-fit: cover; transition: transform .7s var(--ease); }
.gal-hero:hover img { transform: scale(1.03); }
.gal-side {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    height: 480px;
}
.gal-item {
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
    background: var(--paper-deep);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gal-item:hover img { transform: scale(1.05); }

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(10, 16, 13, .93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    border-radius: 10px;
    box-shadow: var(--shadow-lg);
}
.lightbox .lb-close {
    position: absolute;
    top: 1.2rem; right: 1.4rem;
    width: 46px; height: 46px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}
.lightbox .lb-close:hover { background: rgba(255, 255, 255, .12); }
.lightbox .lb-caption {
    position: absolute;
    bottom: 1.4rem;
    left: 0; right: 0;
    text-align: center;
    color: rgba(255, 255, 255, .85);
    font-size: .85rem;
    letter-spacing: .06em;
}

/* ---------- Trust ---------- */
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.2rem;
}
.trust-item { display: flex; gap: 1.1rem; align-items: flex-start; }
.trust-item .t-icon {
    flex: 0 0 48px;
    width: 48px; height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(250, 248, 244, .28);
    border-radius: 12px;
    color: #d9b98a;
    font-size: 1.15rem;
}
.trust-item h3 { font-size: 1.02rem; margin-bottom: .35rem; }
.trust-item p { color: rgba(250, 248, 244, .68); font-size: .88rem; margin: 0; }

/* ---------- Final CTA ---------- */
.cta-final {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: #fff;
    isolation: isolate;
}
.cta-final .cta-img {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.cta-final .cta-img img { width: 100%; height: 100%; object-fit: cover; }
.cta-final .cta-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(100deg, rgba(13, 23, 19, .92) 20%, rgba(13, 23, 19, .55) 70%, rgba(13, 23, 19, .35));
}
.cta-final .cta-inner { padding: clamp(3.2rem, 7vw, 5.5rem) clamp(1.6rem, 5vw, 4.5rem); }
.cta-final h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; }
.cta-final p { color: rgba(255, 255, 255, .82); }

/* ---------- Footer ---------- */
.pub-footer {
    background: #0d1713;
    color: #9aa69e;
    padding: 4.5rem 0 2rem;
    margin-top: 0;
}
.pub-footer .f-brand { font-family: 'Fraunces', serif; font-size: 1.6rem; color: #fff; }
.pub-footer h6 {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #d9b98a;
    margin-bottom: 1.1rem;
}
.pub-footer a { color: #9aa69e; }
.pub-footer a:hover { color: #e8cba0; }
.pub-footer .f-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.pub-footer .f-links a { font-size: .92rem; }
.pub-footer .f-contact li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    margin-bottom: .6rem;
    font-size: .9rem;
}
.pub-footer .f-contact i { color: #d9b98a; margin-top: .3rem; width: 16px; text-align: center; }
.f-bottom {
    border-top: 1px solid rgba(250, 248, 244, .1);
    margin-top: 3rem;
    padding-top: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    gap: .8rem 2rem;
    justify-content: space-between;
    font-size: .8rem;
}
.f-social { display: flex; gap: .9rem; }
.f-social a {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(250, 248, 244, .2);
    border-radius: 50%;
    transition: border-color .2s, color .2s, background .2s;
}
.f-social a:hover { border-color: #d9b98a; color: #d9b98a; background: rgba(217, 185, 138, .08); }

/* ---------- Forms (public pages) ---------- */
.pub-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.pub-card .card-body { padding: 2rem; }
.form-label-p {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .35rem;
}
.form-control, .form-select {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: .68rem .85rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--bronze);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, .14);
}

/* ---------- Tables & detail pages ---------- */
.spec-table { width: 100%; }
.spec-table td { padding: .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table td:first-child {
    width: 38%;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
}

.detail-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.detail-media img { width: 100%; height: 440px; object-fit: cover; }
.detail-noimg {
    height: 440px;
    border-radius: var(--radius-lg);
    background: var(--paper-deep);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    color: #a49c8c;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-size: .8rem;
}

.breadcrumb-p { font-size: .82rem; letter-spacing: .04em; }
.breadcrumb-p .breadcrumb-item a { color: var(--muted); }
.breadcrumb-p .breadcrumb-item.active { color: var(--ink); font-weight: 600; }

.price-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.8rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 96px;
}
.price-box .amount { font-family: 'Fraunces', serif; font-size: 2.2rem; font-weight: 700; }

.badge-avail {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(46, 125, 82, .1);
    color: var(--ok);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .4rem .75rem;
    border-radius: 6px;
}
.badge-avail::before {
    content: "";
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ok);
}

/* ---------- Reveal animation ---------- */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
    will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ---------- Alerts ---------- */
.alert { border-radius: 10px; border: 1px solid transparent; }
.alert-success { background: rgba(46, 125, 82, .08); color: #1d5c3a; border-color: rgba(46, 125, 82, .25); }
.alert-danger { background: rgba(178, 58, 58, .07); color: #8f2f2f; border-color: rgba(178, 58, 58, .22); }
.alert-warning { background: rgba(176, 141, 87, .12); color: #7c6435; border-color: rgba(176, 141, 87, .35); }
.alert-info { background: rgba(47, 68, 56, .07); color: var(--moss); border-color: rgba(47, 68, 56, .2); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
    background:
        radial-gradient(900px 320px at 85% -10%, rgba(176, 141, 87, .25), transparent 60%),
        linear-gradient(165deg, var(--ink-soft), var(--ink) 70%);
    color: #fff;
    padding: 8.5rem 0 4.5rem;
}
.page-hero h1 { color: #fff; }
.page-hero .breadcrumb-p .breadcrumb-item a { color: rgba(255, 255, 255, .65); }
.page-hero .breadcrumb-p .breadcrumb-item.active { color: #fff; }
.page-hero .lede { color: rgba(255, 255, 255, .78); }

/* ---------- Auth pages ---------- */
.auth-wrap {
    min-height: 100vh;
    background:
        radial-gradient(800px 400px at 90% 0%, rgba(176, 141, 87, .16), transparent 60%),
        var(--paper);
    padding: 7.5rem 0 4rem;
}

/* ---------- Contact page ---------- */
.ct-info-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ct-info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ct-icon {
    width: 52px; height: 52px;
    display: grid; place-items: center;
    background: rgba(176, 141, 87, .1);
    border-radius: 14px;
    color: var(--bronze-dark);
    font-size: 1.2rem;
    margin: 0 auto .75rem;
}
.ct-label {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--ink);
    margin-bottom: .4rem;
}
.ct-value {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.5;
    word-break: break-word;
}
.ct-link { color: var(--bronze-dark); }
.ct-link:hover { color: var(--ink); text-decoration: underline; }
.ct-form-title {
    font-family: 'Fraunces', serif;
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
}
.ct-field { margin-bottom: .85rem; }
.ct-label-input {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .3rem;
}
.ct-required { color: var(--bronze); }
.ct-map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.ct-map-wrap iframe {
    display: block;
    width: 100%;
    height: 400px;
}
.ct-icon-sm {
    flex: 0 0 40px;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: rgba(176, 141, 87, .1);
    border-radius: 10px;
    color: var(--bronze-dark);
    font-size: 1rem;
}
.ct-card-h {
    font-family: 'Inter', sans-serif;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: .2rem;
}
.ct-card-p {
    font-size: .85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ---------- Scroll margin for anchors ---------- */
section[id] { scroll-margin-top: 84px; }

/* ---------- Public page shared responsive ---------- */
.pub-hero-compact { padding: 7.5rem 0 3rem; }
.pub-hero-xs { padding: 7rem 0 2.5rem; }
.pub-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
}
.pub-filter-bar .btn-havenly {
    padding: .4rem .9rem;
    font-size: .72rem;
}
.pub-search-row .form-control { font-size: .95rem; }
.pub-empty-state {
    text-align: center;
    padding: 3rem 1rem;
}
.pub-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    text-align: center;
}
.pub-cta-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .9rem;
}

/* ---------- Responsive ---------- */
/* xl squeeze (placed after all base nav rules so it wins by source order):
   7 nowrap links + brand + CTAs exceed the container below 1400px and
   .pub-links (centered, min-width:0) overflows BOTH sides over the brand
   and CTA group. Between 1200–1399px tighten the type. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .pub-links { gap: .65rem; }
    .pub-links .nav-a { font-size: .7rem; letter-spacing: .04em; }
    .nav-login { font-size: .74rem; }
    .nav-cta-group { gap: 1rem !important; margin-left: .75rem; }
}
@media (max-width: 1199.98px) {
    .pub-links, .nav-cta-desktop { display: none !important; }
    .nav-burger { display: flex; }
}
@media (max-width: 991.98px) {
    .pf-min { min-height: 360px; }
    .gal-hero img { height: 360px; }
    .gal-side { height: 360px; }
    .hero { min-height: 88vh; }
    .ct-map-wrap iframe { height: 360px; }
    .pub-stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px) {
    .hero-inner { padding: 7.5rem 0 3rem; }
    .hero h1 { max-width: none; }
    .hero-search { padding: 1.1rem; }
    .hs-field { margin-bottom: .9rem; }
    .pf-min { min-height: 300px; }
    .gal-side { grid-template-rows: repeat(3, 1fr); height: auto; gap: .8rem; }
    .gal-item { height: 110px; }
    .detail-media img, .detail-noimg { height: 300px; }
    .price-box { position: static; margin-top: 1.5rem; }
    .pub-footer { padding: 3.5rem 0 1.6rem; }
    .f-bottom { flex-direction: column; }
    .page-hero { padding: 7.5rem 0 3rem; }
    .ct-map-wrap iframe { height: 320px; }
    .ct-info-card .card-body { padding: 1.2rem !important; }
    .ct-icon { width: 46px; height: 46px; }
}

@media (max-width: 575.98px) {
    .h-display { font-size: 2.3rem; }
    .hero-ctas .btn-havenly { width: 100%; }
    .uc-foot { flex-direction: column; align-items: flex-start; gap: .8rem; }
    .uc-foot .uc-link { align-self: flex-end; }
    .amen-cell { padding: 1.3rem 1.1rem; }
    .lightbox { padding: 1rem; }
    .page-hero { padding: 7rem 0 3rem; }
    .ct-info-card .card-body { padding: 1rem !important; }
    .ct-icon { width: 44px; height: 44px; font-size: 1rem; margin-bottom: .5rem; }
    .ct-label { font-size: .7rem; }
    .ct-value { font-size: .8rem; }
    .ct-map-wrap iframe { height: 260px; }
    .ct-form-title { font-size: 1.2rem; }
    .pub-filter-bar { gap: .4rem; }
    .pub-filter-bar .btn-havenly { padding: .35rem .7rem; font-size: .68rem; }
    .pub-stat-grid { gap: .6rem; }
    .pub-stat-grid .uc-rate .amount { font-size: 1.6rem; }
    .pub-hero-xs { padding: 6.5rem 0 2rem; }
    .hiw-steps { grid-template-columns: 1fr !important; gap: 2rem; }
    .hiw-step::before { font-size: 2rem; }
    .unit-card .uc-body { padding: 1rem 1.1rem 1.2rem; }
    .uc-title { font-size: 1.15rem; }
    .uc-amenities { gap: .3rem .6rem; }
    .uc-amenities li { font-size: .72rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Catalog pages: amenities + properties listing (/site/amenities, /site/properties) ---------- */
.am-stats {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 2.25rem;
}
.am-stat {
    display: inline-flex;
    align-items: baseline;
    gap: .45rem;
    padding: .5rem .95rem;
    border: 1px solid rgba(232, 203, 160, .3);
    border-radius: 999px;
    background: rgba(250, 248, 244, .06);
    color: rgba(255, 255, 255, .88);
    font-size: .82rem;
    font-family: 'Inter', sans-serif;
}
.am-stat strong {
    font-family: 'Fraunces', serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: #e8cba0;
}
.am-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--line);
    margin-bottom: 2rem;
}
.am-head .eyebrow { margin-bottom: .6rem; }
.am-meta {
    font-family: 'Inter', sans-serif;
    font-size: .85rem;
    color: var(--muted);
    margin: 0;
    white-space: nowrap;
}
.am-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem 1.35rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.am-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(176, 141, 87, .45);
}
.am-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.1rem;
}
.am-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(176, 141, 87, .16), rgba(176, 141, 87, .05));
    border: 1px solid rgba(176, 141, 87, .28);
    font-size: 1.25rem;
    color: var(--bronze-dark);
    transition: background .25s var(--ease);
}
.am-card:hover .am-icon {
    background: linear-gradient(135deg, rgba(176, 141, 87, .3), rgba(176, 141, 87, .12));
}
.am-cat {
    font-family: 'Inter', sans-serif;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--moss-soft);
    background: var(--paper-dim);
    border: 1px solid var(--line);
    padding: .32rem .6rem;
    border-radius: 999px;
    line-height: 1.3;
    text-align: right;
    max-width: 62%;
}
.am-name {
    font-size: 1.12rem;
    margin: 0 0 .55rem;
}
.am-avail {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    color: var(--muted);
}
.am-avail::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 3px rgba(46, 125, 82, .14);
    flex: 0 0 auto;
}
.am-avail.is-soon::before {
    background: var(--bronze);
    box-shadow: 0 0 0 3px rgba(176, 141, 87, .16);
}
.am-cta {
    margin-top: 3rem;
    padding: 2.5rem 1.5rem;
    text-align: center;
    background: var(--paper-dim);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.am-cta p {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.am-empty-icon {
    font-size: 2.5rem;
    color: var(--bronze);
    opacity: .5;
}
@media (max-width: 575.98px) {
    .am-head { flex-direction: column; align-items: flex-start; }
    .am-meta { white-space: normal; }
    .am-cat { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .am-card { transition: none; }
    .am-card:hover { transform: none; }
}

/* ---------- Location map (contact + property detail) ---------- */
.loc-shell { overflow: hidden; }
.loc-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.loc-head .eyebrow { margin-bottom: .5rem; }
.loc-title { font-size: 1.6rem; margin: 0; }
.loc-count {
    font-family: 'Inter', sans-serif;
    font-size: .76rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}
.loc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.15rem;
}
.loc-pill {
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    border-radius: 999px;
    padding: .42rem .95rem;
    font-family: 'Inter', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    cursor: pointer;
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}
.loc-pill:hover { border-color: var(--bronze); color: var(--bronze-dark); transform: translateY(-1px); }
.loc-pill.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.loc-info { display: flex; gap: 1rem; align-items: flex-start; }
.loc-pin-badge {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(176, 141, 87, .18), rgba(176, 141, 87, .06));
    border: 1px solid rgba(176, 141, 87, .3);
    color: var(--bronze-dark);
    font-size: 1.15rem;
}
.loc-name { font-size: 1.22rem; margin: 0 0 .45rem; }
.loc-line {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 .35rem;
    word-break: break-word;
}
.loc-line i {
    color: var(--bronze-dark);
    margin-top: .25rem;
    width: 16px;
    flex: 0 0 16px;
    text-align: center;
    font-size: .85rem;
}
.loc-dir { margin-top: .55rem; }
.loc-map-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    margin-top: 1.15rem;
}
.loc-map { width: 100%; height: 380px; background: var(--paper-deep); }
.loc-nomap {
    display: flex;
    gap: .9rem;
    align-items: center;
    background: var(--paper-dim);
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    padding: 1.35rem 1.3rem;
    color: var(--muted);
    font-size: .9rem;
    margin-top: 1.15rem;
}
.loc-nomap i { font-size: 1.6rem; color: var(--bronze); flex: 0 0 auto; }
.loc-nomap p { margin: 0; line-height: 1.55; }
.loc-map-wrap[hidden], .loc-nomap[hidden], .loc-line[hidden] { display: none !important; }

/* Map marker (Leaflet divIcon) */
.loc-pin-wrap { background: transparent; border: 0; }
.loc-pin {
    display: block;
    width: 24px;
    height: 24px;
    background: var(--bronze);
    border: 3px solid #fff;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 6px 14px rgba(20, 33, 28, .4);
}
.loc-pop { line-height: 1.45; font-family: 'Inter', sans-serif; font-size: .84rem; }
.loc-pop strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: .98rem;
    color: var(--ink);
    margin-bottom: .15rem;
}
.loc-pop-addr { color: var(--muted); margin-bottom: .45rem; max-width: 210px; }
.loc-pop a {
    color: var(--bronze-dark);
    font-weight: 700;
    font-size: .68rem;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.loc-pop a:hover { color: var(--ink); }

@media (max-width: 767.98px) {
    .loc-map { height: 300px; }
    .loc-info { gap: .8rem; }
}
@media (max-width: 575.98px) {
    .loc-map { height: 260px; }
    .loc-head { flex-direction: column; align-items: flex-start; gap: .3rem; }
    .loc-title { font-size: 1.4rem; }
    .loc-pin-badge { width: 40px; height: 40px; flex-basis: 40px; font-size: 1rem; }
    .loc-name { font-size: 1.1rem; }
    .loc-nomap { flex-direction: column; align-items: flex-start; gap: .5rem; }
}
