/* =============================================
   The Nest, Asese — Custom Styles
   ============================================= */

:root {
    /* The Nest brand palette (Forest Green primary, Nest Gold secondary) */
    --color-primary: #2E7D4A;          /* Forest Green */
    --color-primary-focus: #246138;    /* darker green for hover/focus */
    --color-primary-on-dark: #5BB279;  /* lighter green for dark backgrounds */
    --color-secondary: #D1B17A;        /* Nest Gold */
    --color-secondary-soft: #E8D6B4;
    --color-canvas: #ffffff;
    --color-canvas-parchment: #F2EDE4; /* Warm Beige */
    --color-surface-pearl: #faf7f1;
    --color-tile-1: #1A1A1A;           /* Charcoal Black */
    --color-tile-2: #222222;
    --color-tile-3: #2a2a2a;
    --color-black: #1A1A1A;            /* Charcoal Black */
    --color-ink: #1A1A1A;
    --color-muted: #6e6e73;
    --color-muted-dark: #cccccc;
    --color-hairline: #E6E6E6;         /* Soft Grey */
    --shadow-product: rgba(0, 0, 0, 0.18) 3px 5px 30px 0;
    --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-text: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--color-canvas-parchment);
    color: var(--color-ink);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
}

*, *::before, *::after {
    box-sizing: border-box;
}

input,
select,
textarea,
button {
    max-width: 100%;
    font-family: var(--font-text);
}

input,
select,
textarea {
    min-width: 0;
}

body.page-loading {
    overflow: hidden;
}

body.page-ready #page-loader {
    opacity: 0;
    pointer-events: none;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.page-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--color-hairline);
    border-top-color: var(--color-primary);
    border-radius: 999px;
    animation: spin 0.8s linear infinite;
}

.fade-in-up { animation: fadeInUp 0.7s ease-out both; }
.fade-in    { animation: fadeIn 0.5s ease-out both; }

.skeleton-block {
    background: linear-gradient(90deg, #ececec 25%, #f5f5f5 50%, #ececec 75%);
    background-size: 200% 100%;
    animation: shimmer 1.3s infinite linear;
}

.empty-state,
.error-state {
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid var(--color-hairline);
    font-family: var(--font-text);
}

.empty-state {
    background: #ffffff;
    color: var(--color-muted);
}

.error-state {
    background: #fff5f5;
    border-color: #fecaca;
    color: #b91c1c;
}

.state-title {
    color: var(--color-ink);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.button-loading {
    opacity: 0.8;
    pointer-events: none;
}

.button-loading::after {
    content: "";
    width: 0.9rem;
    height: 0.9rem;
    margin-left: 0.6rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 999px;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar       { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-canvas-parchment); }
::-webkit-scrollbar-thumb { background: #d2d2d7; border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-primary); }

/* ---- Focus styles ---- */
*:focus-visible {
    outline: 2px solid var(--color-primary-focus);
    outline-offset: 2px;
}

/* ---- Gallery grid rows ---- */
.auto-rows-48 > * {
    min-height: 200px;
}

.apartment-gallery-main {
    cursor: zoom-in;
    touch-action: pan-y;
    user-select: none;
}

.apartment-gallery.is-zoomed {
    position: fixed;
    inset: 0;
    z-index: 10001;
    border: 0;
    border-radius: 0;
    background: #000000;
    display: flex;
    flex-direction: column;
}

.apartment-gallery.is-zoomed > .relative {
    flex: 1;
    min-height: 0;
}

.apartment-gallery.is-zoomed .apartment-gallery-main {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    cursor: zoom-out;
}

.apartment-gallery.is-zoomed [data-gallery-prev],
.apartment-gallery.is-zoomed [data-gallery-next],
.apartment-gallery.is-zoomed [data-gallery-counter] {
    position: fixed;
}

.apartment-gallery.is-zoomed [data-gallery-prev],
.apartment-gallery.is-zoomed [data-gallery-next] {
    top: 50%;
}

.apartment-gallery.is-zoomed [data-gallery-prev] {
    left: 1rem;
}

.apartment-gallery.is-zoomed [data-gallery-next] {
    right: 1rem;
}

.apartment-gallery.is-zoomed [data-gallery-counter] {
    right: 1rem;
    bottom: 1rem;
}

.gallery-zoom-open {
    overflow: hidden;
}

/* ---- Booking radio cards — checked indicator ---- */
input[type="radio"]:checked + div .peer-checked\:flex {
    display: flex;
}

/* ---- Date input styling ---- */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.5;
    cursor: pointer;
}

/* ---- Sticky nav shadow on scroll ---- */
nav.scrolled {
    box-shadow: none;
}

/* ---- Apple-inspired design system overrides ---- */
.font-syne {
    font-family: var(--font-display) !important;
    font-weight: 700;
    letter-spacing: 0;
}

.font-inter {
    font-family: var(--font-text) !important;
    letter-spacing: 0;
}

/* Brand gold accent helpers */
.text-n-gold { color: var(--color-secondary) !important; }
.bg-n-gold { background-color: var(--color-secondary) !important; }
.border-n-gold { border-color: var(--color-secondary) !important; }

.text-n-orange,
.hover\:text-n-orange:hover {
    color: var(--color-primary) !important;
}

.text-n-mid {
    color: var(--color-muted) !important;
}

.text-n-black {
    color: var(--color-ink) !important;
}

.text-n-white {
    color: #ffffff !important;
}

.bg-n-light,
.bg-n-lavender {
    background-color: var(--color-canvas-parchment) !important;
}

.bg-n-white {
    background-color: var(--color-canvas) !important;
}

.bg-n-blue,
.bg-n-orange {
    background-color: var(--color-primary) !important;
}

.bg-n-black {
    background-color: var(--color-black) !important;
}

section.bg-n-black:nth-of-type(2n),
.product-tile-dark-2 {
    background-color: var(--color-tile-2) !important;
}

main > section.bg-n-black:not(:first-child) {
    background-color: var(--color-tile-1) !important;
}

.site-nav {
    backdrop-filter: saturate(180%) blur(20px);
    background: rgba(0, 0, 0, 0.94) !important;
}

.site-nav a,
.site-nav button {
    letter-spacing: 0;
}

.site-footer {
    background: var(--color-canvas-parchment) !important;
    color: var(--color-ink) !important;
}

.site-footer a {
    color: var(--color-muted);
}

.rounded-3xl,
.rounded-2xl {
    border-radius: 18px !important;
}

.rounded-xl {
    border-radius: 11px !important;
}

.rounded-pill,
.rounded-full {
    border-radius: 9999px !important;
}

.shadow-sm,
.shadow,
.shadow-md,
.shadow-lg,
.shadow-xl,
.shadow-2xl {
    box-shadow: none !important;
}

.bg-n-white.rounded-3xl,
.bg-n-white.rounded-2xl,
.bg-n-white.rounded-xl,
.bg-n-white.rounded-lg,
.bg-white.rounded-3xl,
.bg-white.rounded-2xl,
.bg-white.rounded-xl,
.bg-white\/95 {
    border: 1px solid var(--color-hairline);
    box-shadow: none !important;
}

img.object-cover,
.apartment-gallery-main {
    background: var(--color-canvas-parchment);
}

.group img.object-cover,
.apartment-gallery-main,
.apartment-gallery-thumb img,
.sticky img.object-cover {
    filter: saturate(1.03) contrast(1.02);
}

.apartment-gallery-main {
    box-shadow: var(--shadow-product);
}

a.bg-n-black,
button.bg-n-black,
a.bg-n-orange,
button.bg-n-orange,
input[type="submit"].bg-n-black,
input[type="submit"].bg-n-orange {
    background: var(--color-primary) !important;
    color: #ffffff !important;
    border-color: var(--color-primary) !important;
    font-weight: 400 !important;
    letter-spacing: -0.224px;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

a.bg-n-black:active,
button.bg-n-black:active,
a.bg-n-orange:active,
button.bg-n-orange:active,
a.bg-n-white:active,
button.bg-n-white:active,
a.border:active,
button.border:active {
    transform: scale(0.95);
}

a.bg-n-white,
button.bg-n-white {
    background: var(--color-surface-pearl) !important;
    color: var(--color-ink) !important;
    border: 1px solid rgba(0, 0, 0, 0.04);
    font-weight: 400 !important;
}

a.border,
button.border {
    border-color: var(--color-primary) !important;
}

.border-n-black,
.hover\:border-n-black:hover,
.border-white\/20,
.border-white\/40 {
    border-color: var(--color-primary) !important;
}

input,
select,
textarea {
    background: var(--color-canvas);
    border-color: rgba(0, 0, 0, 0.08) !important;
    border-radius: 9999px !important;
    color: var(--color-ink);
    font-size: 17px;
    line-height: 1.47;
}

textarea {
    border-radius: 18px !important;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--color-primary-focus) !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.14);
}

h1,
h2,
h3 {
    letter-spacing: -0.374px;
}

p,
li,
label {
    letter-spacing: -0.224px;
}

.bg-gradient-to-r {
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.08)) !important;
}

.crm-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--color-hairline);
    border-radius: 18px;
    background: var(--color-canvas);
}

.crm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
    font-family: var(--font-text);
}

.crm-table thead th {
    position: sticky;
    top: 0;
    background: var(--color-canvas-parchment);
    color: var(--color-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--color-hairline);
}

.crm-table tbody td {
    padding: 1rem 1.25rem;
    vertical-align: top;
    border-bottom: 1px solid #f0f0f0;
    color: var(--color-ink);
    font-size: 0.95rem;
}

.crm-table tbody tr:hover {
    background: var(--color-surface-pearl);
}

.crm-table tbody tr:last-child td {
    border-bottom: 0;
}

.crm-cell-muted {
    color: var(--color-muted);
    font-size: 0.82rem;
    margin-top: 0.25rem;
}

.crm-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.crm-badge-success { background: #e8f5e9; color: #1b5e20; }
.crm-badge-warning { background: #fff8e1; color: #8a5a00; }
.crm-badge-danger { background: #ffebee; color: #b71c1c; }
.crm-badge-muted { background: #f5f5f7; color: var(--color-muted); }
.crm-badge-info { background: #eaf4ff; color: var(--color-primary); }

.crm-inline-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.crm-inline-form select,
.crm-inline-form button {
    width: 100%;
}

.crm-feedback {
    min-height: 1rem;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.toast-root {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: min(24rem, calc(100vw - 2rem));
}

.toast {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid var(--color-hairline);
    border-radius: 18px;
    padding: 1rem;
    background: var(--color-canvas);
    box-shadow: none;
    font-family: var(--font-text);
    font-size: 0.9rem;
}

.toast-success { border-color: #c8e6c9; color: #1b5e20; }
.toast-error { border-color: #ffcdd2; color: #b71c1c; }
.toast-info { border-color: #b9dcff; color: var(--color-primary); }

.toast-close {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    border: 0;
    background: transparent;
    color: currentColor;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.toast.is-hiding {
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

@media (max-width: 767px) {
    .crm-table-wrap {
        overflow-x: visible;
        border: 0;
    }

    .crm-table {
        min-width: 0;
        border-collapse: collapse;
    }

    .crm-table thead {
        display: none;
    }

    .crm-table,
    .crm-table tbody,
    .crm-table tr,
    .crm-table td {
        display: block;
        width: 100%;
    }

    .crm-table tr {
        border: 1px solid var(--color-hairline);
        border-radius: 18px;
        padding: 0.85rem;
        margin-bottom: 1rem;
        background: var(--color-canvas);
    }

    .crm-table tbody td {
        display: grid;
        grid-template-columns: minmax(7rem, 35%) minmax(0, 1fr);
        gap: 1rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid #f0f0f0;
        font-size: 0.9rem;
    }

    .crm-table tbody td::before {
        content: attr(data-label);
        color: var(--color-muted);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .crm-table tbody td:last-child {
        border-bottom: 0;
    }
}

/* ---- Print ---- */
@media print {
    nav, footer, .no-print { display: none; }
}

/* ---- Social icons (state-driven via --brand custom property) ---- */
.social-icon:hover,
.social-icon:focus-visible {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.social-pill:hover,
.social-pill:focus-visible {
    background-color: var(--brand);
    color: #fff;
    box-shadow: 0 8px 20px -10px var(--brand);
}
.social-pill,
.social-icon { outline: none; }
.social-pill:focus-visible,
.social-icon:focus-visible { box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 0 0 5px var(--brand); }

/* ---- Full-screen mobile menu ---- */
.mobile-menu {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, visibility 0s linear .25s;
}
.mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .25s ease, visibility 0s linear 0s;
}
.mobile-menu__backdrop {
    transform: translateY(-12px);
    opacity: 0;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease;
}
.mobile-menu.is-open .mobile-menu__backdrop {
    transform: translateY(0);
    opacity: 1;
}
.mobile-menu__item {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .35s ease, transform .35s cubic-bezier(.2,.7,.2,1);
    transition-delay: calc(60ms * var(--i, 1));
}
.mobile-menu.is-open .mobile-menu__item {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Gallery filter chips ---- */
.gallery-chip {
    background: #fff;
    color: #6e6e73;
    border-color: rgba(0,0,0,.1);
}
.gallery-chip:hover { color: #000; border-color: #000; }
.gallery-chip.is-active {
    background: #000;
    color: #fff;
    border-color: #000;
}

/* ---- Gallery tile reveal on scroll ---- */
.gallery-tile {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s cubic-bezier(.2,.7,.2,1);
}
.gallery-tile.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Google Forms-style fields (.gform) ---------------------------- */
.gform { display: flex; flex-direction: column; gap: 28px; }

.gform-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 1px 2px rgba(60,64,67,.08), 0 1px 3px rgba(60,64,67,.06);
    transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.gform-card.is-focused { border-color: rgba(46,125,74,.35); }
.gform-card + .gform-card { margin-top: 0; }
.gform-card.is-focused { box-shadow: 0 4px 14px rgba(46,125,74,.12), 0 1px 3px rgba(60,64,67,.08); }
.gform-card-title {
    font-family: 'SF Pro Display','Syne',sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 4px;
}
.gform-card-sub { font-size: 13px; color: #6e6e73; margin: 0 0 18px; }

/* Field wrapper */
.gfield { position: relative; padding-top: 18px; }
/* Vertical spacing handled by parent grid/flex gap — no margin between siblings
   (margin-top on adjacent siblings breaks horizontal alignment inside CSS grid). */

/* Input / textarea / select base */
.gfield-input,
.gfield-select,
.gfield-textarea {
    width: 100%;
    padding: 10px 0 8px;
    font-family: 'SF Pro Text','Inter',sans-serif;
    font-size: 15px;
    color: #1d1d1f;
    background: transparent !important;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border-top: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #dadce0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none;
    transition: border-color .2s ease;
}
.gfield-textarea { resize: vertical; min-height: 96px; }
/* (focus border-bottom override removed — handled by box-shadow underline below) */
.gfield-select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #6e6e73 50%), linear-gradient(135deg, #6e6e73 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 28px; }

/* Floating label */
.gfield-label {
    position: absolute;
    left: 0;
    top: 28px;
    font-size: 15px;
    font-family: 'SF Pro Text','Inter',sans-serif;
    color: #6e6e73;
    pointer-events: none;
    transform-origin: left top;
    transition: transform .18s ease, color .18s ease;
}
/* Float on focus or when populated (data-filled) or when not empty via :not(:placeholder-shown) */
.gfield-input:focus ~ .gfield-label,
.gfield-textarea:focus ~ .gfield-label,
.gfield-select:focus ~ .gfield-label,
.gfield-input:not(:placeholder-shown) ~ .gfield-label,
.gfield-textarea:not(:placeholder-shown) ~ .gfield-label,
.gfield.is-filled .gfield-label {
    transform: translateY(-22px) scale(.78);
    color: var(--color-primary);
    font-weight: 600;
    letter-spacing: .02em;
}

/* Animated underline — drawn with inset box-shadow on the input itself so
   there is never a separate element that could double-up with the input's
   own border-bottom. The wipe-from-center is faked with two transitions. */
.gfield-underline { display: none !important; } /* legacy span — never render */

.gfield-input,
.gfield-select,
.gfield-textarea {
    box-shadow: inset 0 -1px 0 0 transparent !important;
    transition: box-shadow .25s ease, border-color .2s ease !important;
}
.gfield-input:focus,
.gfield-select:focus,
.gfield-textarea:focus {
    box-shadow: inset 0 -2px 0 0 var(--color-primary) !important;
    /* gray border stays; the inset shadow draws the blue on top */
}

/* Helper text */
.gfield-help {
    font-size: 12px;
    color: #6e6e73;
    margin-top: 6px;
    min-height: 14px;
}

/* Submit button (Google Forms-ish, but themed) */
.gform-submit {
    align-self: flex-start;
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 999px;
    font-family: 'SF Pro Text','Inter',sans-serif;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
    box-shadow: 0 1px 2px rgba(46,125,74,.25);
}
.gform-submit:hover { background: #246138; box-shadow: 0 6px 18px rgba(46,125,74,.28); }
.gform-submit:active { transform: scale(.97); }
.gform-submit-block { width: 100%; text-align: center; align-self: stretch; }

/* Radio tiles (used by the apartment selector) */
.gtile {
    position: relative;
    display: block;
    cursor: pointer;
    border: 2px solid #e0e0e2;
    border-radius: 16px;
    padding: 12px;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.gtile:hover { border-color: #b8b8bd; }
.gtile input[type="radio"]:checked + .gtile-body {
    /* fallback handled by .peer-checked: in markup */
}

/* ---- FAQ smooth eased toggle ---- */
.faq-item .faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .42s cubic-bezier(.22,.61,.36,1);
}
.faq-item .faq-answer > .faq-answer-inner {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity .35s ease .05s, transform .42s cubic-bezier(.22,.61,.36,1);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > .faq-answer-inner { opacity: 1; transform: translateY(0); }

/* Trigger + icon */
.faq-item .faq-icon {
    transition: transform .35s cubic-bezier(.22,.61,.36,1),
                background-color .25s ease, color .25s ease, border-color .25s ease;
}
.faq-item .faq-icon i { transition: transform .35s cubic-bezier(.22,.61,.36,1); }
.faq-item.is-open {
    box-shadow: 0 10px 30px -18px rgba(0,0,0,.18);
    border-color: rgba(0,0,0,.08);
}
.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.faq-item .faq-trigger:hover .faq-icon { border-color: var(--color-primary); color: var(--color-primary); }
.faq-item.is-open .faq-trigger:hover .faq-icon { color: #fff; }

/* ---- Material-style radio circle for .peer apartment tiles ---- */
.gradio {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    border: 2px solid #c0c0c5;
    background: #fff;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.gradio::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: 999px;
    background: var(--color-primary);
    transform: scale(0);
    transition: transform .2s cubic-bezier(.22,.61,.36,1);
}
.peer:checked ~ * .gradio,
label:has(.peer:checked) .gradio {
    border-color: var(--color-primary);
}
.peer:checked ~ * .gradio::after,
label:has(.peer:checked) .gradio::after {
    transform: scale(1);
}
.peer:focus-visible ~ * .gradio,
label:has(.peer:focus-visible) .gradio {
    box-shadow: 0 0 0 4px rgba(46,125,74,.18);
}

/* ---- Suppress global focus-visible outline on gform inputs ----------
   The gform fields ship their own underline/ring indicators (.gfield-underline,
   .gradio halo). The site-wide *:focus-visible blue box doubles up and clashes
   with the new style, so we remove it on the relevant elements only. */
.gfield-input:focus,
.gfield-input:focus-visible,
.gfield-select:focus,
.gfield-select:focus-visible,
.gfield-textarea:focus,
.gfield-textarea:focus-visible,
.gform .peer:focus,
.gform .peer:focus-visible,
input.peer.sr-only:focus,
input.peer.sr-only:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
}

/* ---- Kill browser autofill border/background ring on gfield inputs ----
   Chrome/Safari paint a coloured inset shadow + tinted background on
   autofilled name/email fields. That reads as a second underline below the
   normal one, especially on First Name. Force the autofilled state to look
   identical to the resting state. */
.gfield-input:-webkit-autofill,
.gfield-input:-webkit-autofill:hover,
.gfield-input:-webkit-autofill:focus,
.gfield-input:-webkit-autofill:active,
.gfield-select:-webkit-autofill,
.gfield-textarea:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
            box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1d1d1f !important;
    caret-color: #1d1d1f;
    border-radius: 0 !important;
    transition: background-color 9999s ease-in-out 0s,
                color           9999s ease-in-out 0s;
}

/* ---- Star rating buttons: no focus ring (the fill IS the indicator) ---- */
.star-btn,
.star-btn:focus,
.star-btn:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}
.star-btn .star-svg { transition: color .15s ease, fill .15s ease, stroke .15s ease; }

/* Display-only stars (FA / Lucide) shouldn't show a focus ring or weird stroke */
i.fa-star,
[data-lucide="star"] {
    outline: none !important;
}

/* =============================================
   ADMIN CONSOLE — dedicated layout / chrome
   ============================================= */

:root {
    --admin-sidebar-w: 256px;
    --admin-topbar-h: 64px;
    --admin-bg: #F2EDE4;
    --admin-surface: #ffffff;
    --admin-border: #E6E6E6;
    --admin-border-soft: rgba(0,0,0,0.05);
    --admin-text: #1A1A1A;
    --admin-text-muted: #6e6e73;
}

.admin-body {
    background: var(--admin-bg);
    color: var(--admin-text);
    font-family: var(--font-text);
    min-height: 100vh;
    margin: 0;
}

.admin-shell { display: block; min-height: 100vh; }

/* ---- Sidebar ---- */
.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--admin-sidebar-w);
    background: #1A1A1A;
    color: #f5f5f7;
    display: flex;
    flex-direction: column;
    z-index: 40;
    transform: translateX(0);
    transition: transform .25s ease;
    border-right: 1px solid rgba(255,255,255,.05);
}
.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.admin-sidebar-logo { width: 38px; height: 38px; object-fit: contain; }
.admin-sidebar-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: #fff; line-height: 1.1; margin: 0; }
.admin-sidebar-sub { font-size: 11px; color: rgba(255,255,255,.55); margin: 2px 0 0; letter-spacing: .04em; }

.admin-sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 14px 12px;
}
.admin-sidebar-group { margin-bottom: 18px; }
.admin-sidebar-group-title {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: rgba(255,255,255,.4);
    padding: 8px 14px;
    margin: 0;
}
.admin-sidebar-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin: 2px 0;
    border-radius: 10px;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background .18s ease, color .18s ease;
}
.admin-sidebar-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-sidebar-link.is-active {
    background: rgba(46,125,74,.18);
    color: #fff;
}
.admin-sidebar-link.is-active::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: var(--color-primary);
}
.admin-sidebar-icon {
    width: 22px;
    text-align: center;
    color: rgba(255,255,255,.65);
    font-size: 13px;
}
.admin-sidebar-link.is-active .admin-sidebar-icon { color: var(--color-secondary); }
.admin-sidebar-foot {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 12px;
}
.admin-sidebar-link-muted { font-size: 13px; color: rgba(255,255,255,.55); }
.admin-sidebar-link-muted:hover { color: rgba(255,255,255,.9); }

/* ---- Topbar ---- */
.admin-topbar {
    position: fixed;
    top: 0;
    left: var(--admin-sidebar-w);
    right: 0;
    height: var(--admin-topbar-h);
    background: rgba(255,255,255,0.9);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--admin-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    z-index: 30;
}
.admin-topbar-left { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.admin-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--admin-text-muted); }
.admin-breadcrumb a { color: var(--admin-text-muted); text-decoration: none; }
.admin-breadcrumb a:hover { color: var(--color-primary); }
.admin-breadcrumb-sep { font-size: 8px; opacity: .5; }
.admin-page-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--admin-text);
    margin: 0;
    line-height: 1.2;
}

.admin-topbar-right { display: flex; align-items: center; gap: 16px; }
.admin-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--admin-text-muted);
    text-decoration: none;
    transition: all .18s ease;
}
.admin-topbar-link:hover { color: var(--color-primary); border-color: var(--color-primary); }
.admin-topbar-link span { display: inline; }
.admin-topbar-user { display: flex; align-items: center; gap: 10px; }
.admin-avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    display: flex; align-items: center; justify-content: center;
}
.admin-user-meta { line-height: 1.1; }
.admin-user-name { font-size: 13px; font-weight: 600; color: var(--admin-text); margin: 0; }
.admin-user-logout { font-size: 11px; color: var(--admin-text-muted); text-decoration: none; }
.admin-user-logout:hover { color: var(--color-primary); }

/* ---- Content area ---- */
.admin-content {
    margin-left: var(--admin-sidebar-w);
    padding: calc(var(--admin-topbar-h) + 24px) 28px 40px;
    min-height: 100vh;
}
.admin-page { display: flex; flex-direction: column; gap: 20px; }

/* Reusable cards */
.admin-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 16px;
    padding: 22px;
}
.admin-card-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--admin-text);
    margin: 0 0 18px;
}
.admin-card-pad-tight { padding: 0; overflow: hidden; }

/* Hero block (dashboard intro) */
.admin-hero {
    background: linear-gradient(135deg, #1A1A1A 0%, #222 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 32px;
    border: 1px solid rgba(255,255,255,.05);
    position: relative;
    overflow: hidden;
}
.admin-hero::after {
    content: '';
    position: absolute;
    right: -40px; top: -40px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,125,74,.35), transparent 70%);
    pointer-events: none;
}
.admin-hero-eyebrow {
    color: var(--color-secondary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .22em;
    margin: 0 0 6px;
}
.admin-hero-title { font-family: var(--font-display); font-weight: 700; font-size: 28px; margin: 0 0 6px; }
.admin-hero-sub { color: rgba(255,255,255,.7); font-size: 14px; margin: 0; max-width: 60ch; }

/* Metric tiles */
.admin-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px;
}
.admin-metric {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    padding: 18px 18px 16px;
    transition: border-color .18s ease, transform .18s ease;
}
.admin-metric:hover { border-color: rgba(46,125,74,.4); transform: translateY(-1px); }
.admin-metric-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--admin-text-muted);
    margin: 0 0 8px;
}
.admin-metric-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 28px;
    color: var(--admin-text);
    margin: 0;
    line-height: 1.1;
}
.admin-metric-hint {
    font-size: 12px;
    color: var(--admin-text-muted);
    margin: 6px 0 0;
}

/* Buttons */
.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid var(--admin-border);
    background: var(--admin-surface);
    color: var(--admin-text);
    cursor: pointer;
    transition: all .15s ease;
    text-decoration: none;
}
.admin-btn:hover { border-color: var(--color-primary); color: var(--color-primary); }
.admin-btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.admin-btn-primary:hover { background: var(--color-primary-focus); border-color: var(--color-primary-focus); color: #fff; }
.admin-btn-danger {
    background: #fff;
    border-color: #fecaca;
    color: #b91c1c;
}
.admin-btn-danger:hover { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.admin-btn-sm { padding: 6px 12px; font-size: 12px; }

/* Sidebar mobile toggle */
.admin-sidebar-toggle {
    display: none;
    position: fixed;
    top: 14px;
    left: 14px;
    z-index: 60;
    width: 40px; height: 40px;
    border-radius: 10px;
    background: #1A1A1A;
    color: #fff;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
@media (max-width: 1024px) {
    .admin-sidebar { transform: translateX(-100%); box-shadow: 4px 0 24px rgba(0,0,0,.2); }
    .admin-sidebar.is-open { transform: translateX(0); }
    .admin-topbar { left: 0; padding-left: 64px; }
    .admin-content { margin-left: 0; padding-left: 18px; padding-right: 18px; }
    .admin-sidebar-toggle { display: flex; align-items: center; justify-content: center; }
}

/* =============================================
   ADMIN TABLES — denser, modern, sticky head
   ============================================= */

.crm-table-wrap {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 14px;
    overflow: auto;
    max-height: calc(100vh - var(--admin-topbar-h) - 200px);
}
.crm-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 13px;
}
.crm-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #FBF8F2;
    color: var(--admin-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: .14em;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--admin-border);
    white-space: nowrap;
}
.crm-table tbody td {
    padding: 14px 14px;
    border-bottom: 1px solid var(--admin-border-soft);
    vertical-align: top;
    color: var(--admin-text);
    line-height: 1.4;
}
.crm-table tbody tr:nth-child(even) { background: rgba(242,237,228,.35); }
.crm-table tbody tr:hover { background: rgba(46,125,74,.05); }
.crm-table tbody tr:last-child td { border-bottom: none; }
.crm-cell-muted { color: var(--admin-text-muted); font-size: 12px; margin-top: 2px; }

/* Badges */
.crm-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
}
.crm-badge::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    opacity: .7;
}
.crm-badge-success { background: #e8f5e9; color: #1b5e20; }
.crm-badge-warning { background: #fff8e1; color: #8a5a00; }
.crm-badge-danger  { background: #ffebee; color: #b71c1c; }
.crm-badge-muted   { background: #f1f1f4; color: var(--admin-text-muted); }
.crm-badge-info    { background: #e6f1ec; color: var(--color-primary); }

/* Inline form (in-table status updates) */
.crm-inline-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.crm-inline-form select,
.crm-inline-form input,
.crm-inline-form button {
    height: 34px;
    padding: 0 12px;
    border-radius: 8px !important;
    border: 1px solid var(--admin-border);
    background: #fff;
    font-size: 12px;
    font-family: var(--font-text);
    color: var(--admin-text);
    appearance: auto;
}
.crm-inline-form select { padding-right: 24px; }
.crm-inline-form button {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
}
.crm-inline-form button:hover:not(:disabled) { background: var(--color-primary-focus); }
.crm-inline-form button:disabled { opacity: .7; cursor: progress; }
.crm-feedback { font-size: 11px; color: var(--admin-text-muted); margin-left: 6px; }

/* Mobile table → card layout */
@media (max-width: 880px) {
    .crm-table-wrap { border: none; background: transparent; max-height: none; }
    .crm-table thead { display: none; }
    .crm-table, .crm-table tbody, .crm-table tr, .crm-table td { display: block; width: 100%; }
    .crm-table tr {
        background: var(--admin-surface);
        border: 1px solid var(--admin-border);
        border-radius: 14px;
        margin-bottom: 12px;
        padding: 8px 14px;
    }
    .crm-table tr:nth-child(even) { background: var(--admin-surface); }
    .crm-table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid var(--admin-border-soft);
    }
    .crm-table tbody td::before {
        content: attr(data-label);
        font-weight: 600;
        font-size: 11px;
        color: var(--admin-text-muted);
        text-transform: uppercase;
        letter-spacing: .12em;
    }
    .crm-table tbody td:last-child { border-bottom: none; }
}

/* =============================================
   ADMIN MODAL + FORM CONTROLS
   ============================================= */

.admin-modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, visibility 0s linear .22s;
}
.admin-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transition: opacity .22s ease;
}
.admin-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 22, 0.55);
    backdrop-filter: blur(6px);
}
.admin-modal-dialog {
    position: relative;
    background: #fff;
    border-radius: 16px;
    width: min(720px, 100%);
    max-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.35);
    transform: translateY(12px) scale(.98);
    transition: transform .26s cubic-bezier(.2,.7,.2,1);
}
.admin-modal.is-open .admin-modal-dialog { transform: translateY(0) scale(1); }

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid var(--admin-border);
    background: #fff;
    flex-shrink: 0;
}
.admin-modal-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--admin-text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-modal-title i { color: var(--color-primary); font-size: 14px; }
.admin-modal-close {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 36px; height: 36px;
    border-radius: 8px;
    color: var(--admin-text-muted);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s ease, color .15s ease;
}
.admin-modal-close:hover { background: var(--admin-bg); color: var(--admin-text); }

.admin-modal-body {
    padding: 22px;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.admin-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 22px;
    border-top: 1px solid var(--admin-border);
    background: #FBF8F2;
    margin: 22px -22px -22px;
}

/* Modal form fields */
.admin-form-row { display: flex; flex-direction: column; gap: 6px; }
.admin-form-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--admin-text-muted);
}
.admin-form-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--admin-border);
    border-radius: 8px !important;
    background: #fff;
    font-family: var(--font-text);
    font-size: 14px;
    color: var(--admin-text);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.admin-form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(46,125,74,.12);
}
.admin-form-input[type="file"] { padding: 7px 12px; }
textarea.admin-form-input { resize: vertical; min-height: 64px; }

.admin-form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
    .admin-form-grid-2, .admin-form-grid-3 { grid-template-columns: 1fr; }
}

/* =============================================
   HERO — split layout search bar
   ============================================= */

.hero-search-cell {
    display: flex;
    flex-direction: column;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 14px;
    transition: background .15s ease;
}
.hero-search-cell:hover { background: #F2EDE4; }
.hero-search-cell:focus-within { background: rgba(46,125,74,.06); }
.hero-search-cell-divided { border-left: 1px solid var(--admin-border, #E6E6E6); }
@media (max-width: 640px) {
    .hero-search-cell-divided { border-left: 0; border-top: 1px solid var(--admin-border, #E6E6E6); }
}
.hero-search-label {
    font-size: 10px;
    font-family: var(--font-text);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--color-muted);
    margin-bottom: 2px;
}
.hero-search-input {
    width: 100%;
    padding: 0;
    border: none;
    background: transparent;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-ink);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}
.hero-search-input:focus { box-shadow: none !important; outline: none !important; }

/* =============================================
   IMAGE LOAD FADE-IN — eased, site-wide
   ============================================= */
img {
    /* Pre-load state: stays VISIBLE but blurred + light warm-grey placeholder
       behind the alt area. No opacity fade — image just sharpens in. */
    background-color: #efeae3; /* faint whitish-grey, matches brand beige */
    filter: blur(14px);
    transform: scale(1.03);
    transition: filter .6s ease,
                transform .6s cubic-bezier(.2,.7,.2,1),
                background-color .3s ease .15s;
}
img.is-loaded,
img[data-noanim] {
    filter: blur(0);
    transform: scale(1);
    background-color: transparent;
}
/* Broken images still settle to a neutral state */
img[alt]:not([src]),
img[src=""] { filter: none; transform: none; background-color: #efeae3; }

/* ---- Apartment lightbox loading state ---- */
.apt-lb-loader {
    background: rgba(0,0,0,0.4);
    border-radius: 16px;
    backdrop-filter: blur(2px);
}
.apt-lb-spinner {
    width: 56px;
    height: 56px;
    border: 3px solid rgba(255,255,255,0.18);
    border-top-color: var(--color-secondary);
    border-radius: 999px;
    animation: spin 0.85s linear infinite;
}
[data-lb-img].opacity-40 { opacity: 0.4; transition: opacity .2s ease; }

/* =============================================
   MODERN SEARCH BAR — pill, segmented, premium
   ============================================= */
.nest-search {
    display: flex;
    align-items: center;
    gap: 0;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 9999px;
    padding: 6px;
    box-shadow: 0 22px 48px -28px rgba(0,0,0,0.25),
                0 1px 0 rgba(255,255,255,0.6) inset;
    transition: box-shadow .25s ease, transform .25s ease;
}
.nest-search:hover {
    box-shadow: 0 28px 60px -28px rgba(0,0,0,0.32),
                0 1px 0 rgba(255,255,255,0.6) inset;
}

.nest-search-cell {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    border-radius: 9999px;
    cursor: pointer;
    transition: background .2s ease;
    min-width: 0;
}
.nest-search-cell:hover { background: var(--color-canvas-parchment); }
.nest-search-cell:focus-within { background: rgba(46,125,74,0.06); }

.nest-search-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--color-canvas-parchment);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background .2s ease, color .2s ease;
}
.nest-search-cell:focus-within .nest-search-icon {
    background: var(--color-primary);
    color: #ffffff;
}

.nest-search-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}
.nest-search-label {
    font-family: var(--font-text);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-ink);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}
.nest-search-input {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    font-family: var(--font-text);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-muted);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.nest-search-input:focus { outline: none !important; box-shadow: none !important; }
.nest-search-input::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }

.nest-search-divider {
    width: 1px;
    align-self: center;
    height: 34px;
    background: rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.nest-search-submit {
    margin-left: 4px;
    flex-shrink: 0;
    align-self: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--color-primary);
    color: #ffffff;
    font-family: var(--font-text);
    font-weight: 600;
    font-size: 14px;
    border: none;
    border-radius: 9999px;
    padding: 0 24px;
    height: 56px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 20px -8px rgba(46,125,74,0.45);
    transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.nest-search-submit i { font-size: 14px; }
.nest-search-submit:hover {
    background: var(--color-primary-focus);
    box-shadow: 0 14px 28px -10px rgba(46,125,74,0.55);
    transform: translateY(-1px);
}
.nest-search-submit:active { transform: translateY(0); }

/* Mobile: stack the cells, no rounded pill, full-width submit */
@media (max-width: 768px) {
    .nest-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 22px;
        padding: 10px;
    }
    .nest-search-cell { width: 100%; padding: 12px 14px; border-radius: 14px; }
    .nest-search-divider { display: none; }
    .nest-search-submit {
        margin: 6px 0 0;
        width: 100%;
        height: 50px;
    }
}
