/* =========================================================
   Kenyatta Road Community — professional dark theme
   Playfair Display headings + Inter body. Warm dark surfaces,
   amber primary buttons, green action accents. Mobile-first.
   ========================================================= */

:root {
    /* Core palette */
    --bg-base:        #1A1614;
    --bg-surface:     #241E1A;
    --bg-raised:      #2E2620;
    --accent-amber:   #E8913A;
    --accent-amber-hover: #f5a04d;
    --accent-green:   #3ECF8E;
    --accent-green-hover: #35b37d;
    --accent-green-text: #1A1614;
    --text-primary:   #F5F0EA;
    --text-secondary: #A89E93;
    --border-subtle:  #3A322B;
    --danger:         #D94F6B;
    --danger-bg:      #2E1C20;
    --danger-text:    #F5C2CB;

    /* Legacy aliases so existing selectors keep working */
    --cream:        var(--bg-base);
    --ink:          var(--text-primary);
    --muted:        var(--text-secondary);
    --accent:       var(--accent-green);
    --accent-hover: var(--accent-green-hover);
    --line:         var(--border-subtle);
    --card:         var(--bg-surface);
    --accent-tint:  var(--bg-raised);
    --accent-tint2: #3A322B;
    --orange:       var(--accent-amber);
    --orange-hover: var(--accent-amber-hover);

    --radius:       8px;       /* thumbnails, inputs, small elements */
    --radius-lg:    12px;      /* cards, panels */
    --transition:   200ms ease;

    /* Spacing scale — single source of vertical & interior rhythm */
    --space-1:  4px;
    --space-2:  8px;
    --space-3:  12px;
    --space-4:  16px;
    --space-5:  24px;
    --space-6:  32px;
    --space-7:  48px;
    --space-8:  64px;
    --space-9:  80px;
    --space-10: 96px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
}

a {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

/* ---------- Header: slim utility bar + solid main nav ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Main navigation (warm dark surface — teal/orange stay accents, not fills) */
.main-nav {
    position: relative;
    background: var(--card);              /* #241f1c */
    color: var(--ink);
    border-bottom: 1px solid var(--line); /* #38312c */
}

.main-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    min-height: 64px;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ink);            /* #f2ede7 */
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-logo:hover,
.nav-logo:focus-visible { color: var(--accent); outline: none; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

.nav-item {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
}

a.nav-item:hover,
a.nav-item:focus-visible { color: var(--accent); outline: none; }

/* Services dropdown */
.nav-has-drop { position: relative; }

.nav-drop-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 44px;
    padding: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    background: none;
    border: none;
    cursor: pointer;
    transition: color var(--transition);
}

.nav-drop-toggle:hover,
.nav-drop-toggle:focus-visible { color: var(--accent); outline: none; }
.nav-drop-toggle .ti { font-size: 1rem; transition: transform var(--transition); }

.nav-drop {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 230px;
    background: var(--accent-tint);      /* #2b2521 — raised dark surface */
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    padding: var(--space-2);
    display: none;
    z-index: 20;
}

.nav-drop a {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--ink);
    text-decoration: none;
}

.nav-drop a:hover { background: var(--accent-tint2); color: var(--accent); }

@keyframes navDropIn {
    from { opacity: 0; transform: translateX(-50%) translateY(6px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-has-drop:hover .nav-drop,
.nav-has-drop.is-open .nav-drop {
    display: block;
    animation: navDropIn var(--transition) both;
}

.nav-has-drop:hover .nav-drop-toggle .ti,
.nav-has-drop.is-open .nav-drop-toggle .ti { transform: rotate(180deg); }

/* Orange CTA — deliberately the brightest thing in the header */
.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--orange);
    color: var(--cream);           /* #1a1715 dark text on orange */
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.7rem 1.1rem;
    border-radius: var(--radius);
    text-decoration: none;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    background: var(--orange-hover);
    color: var(--cream);
    transform: translateY(-1px);
    outline: none;
}

/* Phone number in the nav row (desktop visible; tucked inside mobile menu) */
.nav-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-phone:hover,
.nav-phone:focus-visible {
    color: var(--text-primary);
    outline: none;
}

.nav-phone .ti {
    font-size: 16px;
    color: var(--accent-amber);
    flex-shrink: 0;
}

/* Hamburger (mobile only) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav (<820px) */
@media (max-width: 819px) {
    .nav-toggle { display: inline-flex; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--card);              /* #241f1c, matching the bar */
        border-bottom: 1px solid var(--line);
        padding: var(--space-3) 0 var(--space-4);
        box-shadow: 0 14px 24px rgba(0, 0, 0, 0.45);
    }

    .nav-menu.is-open { display: flex; }

    .nav-item,
    .nav-drop-toggle {
        width: 100%;
        min-height: 48px;
        padding: 0 var(--space-4);
        justify-content: flex-start;
    }

    .nav-has-drop { width: 100%; flex-direction: column; align-items: stretch; }

    .nav-drop {
        position: static;
        transform: none;
        display: none;
        opacity: 1;
        visibility: visible;
        min-width: 0;
        margin: var(--space-1) var(--space-4) 0;
        padding: var(--space-1);
        background: var(--accent-tint);       /* #2b2521 */
        border: none;
        box-shadow: none;
    }

    .nav-has-drop.is-open .nav-drop { display: block; }
    .nav-drop a { color: var(--ink); }
    .nav-drop a:hover { background: var(--accent-tint2); color: var(--accent); }

    .nav-phone {
        width: 100%;
        min-height: 48px;
        padding: 0 var(--space-4);
        justify-content: flex-start;
        border-top: 1px solid var(--line);
        margin-top: var(--space-2);
    }

    .nav-cta {
        margin: var(--space-3) var(--space-4) 0;
        min-height: 48px;
    }
}

/* ---------- Welcome banner (post-registration flash) ---------- */

.welcome-banner {
    background: var(--card);                    /* #241f1c */
    border-bottom: 1px solid var(--line);       /* #38312c */
}

.welcome-inner {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) 0;
}

.welcome-icon {
    flex-shrink: 0;
    font-size: 1.35rem;
    line-height: 1.3;
    color: var(--accent);                       /* teal accent */
}

.welcome-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-family: 'Inter', sans-serif;
}

.welcome-title {
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);                          /* #f2ede7 */
}

.welcome-sub {
    font-size: 0.9rem;
    color: var(--muted);                        /* #b3a89f */
}

/* Dev-only verification card (hidden the moment SMTP is configured) */
.dev-verify-wrap {
    padding-top: var(--space-5);
}

.dev-verify {
    max-width: 40rem;
    padding: var(--space-5);
    background: var(--card);              /* #241f1c */
    border: 1px solid var(--line);        /* #38312c */
    border-left: 3px solid var(--orange); /* #f4a259 accent */
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
}

.dev-verify-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0 0 var(--space-2);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--orange);
}

.dev-verify-text {
    margin: 0 0 var(--space-4);
    font-size: 0.92rem;
    color: var(--muted);
}

.dev-verify-raw {
    display: block;
    margin-top: var(--space-3);
    font-size: 0.78rem;
    color: var(--muted);
    word-break: break-all;
}

.dev-verify-raw:hover { color: var(--accent); }

.welcome-close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: none;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color var(--transition), border-color var(--transition);
}

.welcome-close:hover,
.welcome-close:focus-visible {
    color: var(--accent);
    border-color: var(--line);
    outline: none;
}

/* =========================================================
   Desktop homepage (Jiji-style): category sidebar + fly-outs
   + "Recommended for you" feed. DESKTOP ONLY — the mobile
   stacked hub grid is untouched below 900px.
   ========================================================= */

/* Mobile-first default: show the stacked grid, hide the desktop layout. */
.home-desktop { display: none; }

@media (min-width: 900px) {
    .home-mobile-grid { display: none; }

    .home-desktop {
        display: grid;
        grid-template-columns: 260px minmax(0, 1fr);
        gap: var(--space-6);
        align-items: start;
    }

    /* ----- Category sidebar ----- */
    .cat-sidebar {
        position: relative;              /* fly-outs anchor to each item */
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        padding: var(--space-3);
    }

    .cat-side-head {
        margin: 0.25rem 0.5rem 0.5rem;
        font-family: 'Inter', sans-serif;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .cat-side-list { list-style: none; margin: 0; padding: 0; }
    .cat-side-item { position: relative; }

    .cat-side-row {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.55rem 0.6rem;
        border-radius: var(--radius);
        text-decoration: none;
        color: var(--ink);
        font-family: 'Inter', sans-serif;
        font-size: 0.92rem;
        transition: background var(--transition), color var(--transition);
    }

    .cat-side-row:hover,
    .cat-side-item:focus-within .cat-side-row { background: var(--accent-tint); color: var(--accent); }

    .cat-side-ico {
        display: inline-flex;
        justify-content: center;
        width: 24px;
        font-size: 1.15rem;
        color: var(--accent);
        flex-shrink: 0;
    }

    /* Rotating square photo thumbnail (Jiji-style) — same size for every hub */
    .cat-side-thumb {
        position: relative;
        width: 40px;
        height: 40px;
        flex-shrink: 0;
        border-radius: var(--radius);
        border: 1px solid var(--line);
        overflow: hidden;
        background: var(--accent-tint);
    }

    .cat-side-thumb img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    /* JS-added overlay used for the crossfade; sits on top of the base image */
    .cat-side-thumb .cat-side-thumb-next {
        opacity: 0;
        transition: opacity 0.55s ease;
    }

    @media (prefers-reduced-motion: reduce) {
        .cat-side-thumb .cat-side-thumb-next { transition: none; }
    }

    .cat-side-name {
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .cat-side-count {
        font-size: 0.72rem;
        color: var(--muted);
        background: var(--accent-tint);
        border: 1px solid var(--line);
        border-radius: 999px;
        padding: 0 0.5rem;
        flex-shrink: 0;
    }

    .cat-side-chev { color: var(--muted); font-size: 1rem; flex-shrink: 0; }

    .cat-side-all {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        margin: var(--space-2) 0.5rem 0.25rem;
        font-family: 'Inter', sans-serif;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--accent);
        text-decoration: none;
    }
    .cat-side-all:hover { text-decoration: underline; }

    /* ----- Fly-out panel ----- */
    .cat-flyout {
        position: absolute;
        top: -1px;
        left: 100%;                      /* flush with the item edge (no dead gap) */
        z-index: 40;
        padding-left: 12px;              /* transparent hover "bridge" to the panel */
        opacity: 0;
        visibility: hidden;
        transform: translateX(4px);
        transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
        pointer-events: none;
    }

    .cat-side-item:hover .cat-flyout,
    .cat-side-item:focus-within .cat-flyout {
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
    }

    .cat-flyout-inner {
        width: 480px;
        max-width: 42vw;
        padding: var(--space-4);
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    }

    .cat-flyout-title {
        margin: 0 0 var(--space-3);
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 1.05rem;
        font-weight: 600;
        color: var(--ink);
    }

    .cat-flyout-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.25rem;
    }

    .cat-flyout-link {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.5rem 0.6rem;
        border-radius: var(--radius);
        text-decoration: none;
        color: var(--ink);
        font-family: 'Inter', sans-serif;
        font-size: 0.9rem;
    }
    .cat-flyout-link:hover { background: var(--accent-tint); color: var(--accent); }

    .cat-flyout-ico {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 26px;
        height: 26px;
        flex-shrink: 0;
        font-size: 1.1rem;
        color: var(--accent);
        overflow: hidden;
    }
    .cat-flyout-img { width: 26px; height: 26px; border-radius: 4px; object-fit: cover; }
    .cat-flyout-emoji { font-size: 1.1rem; line-height: 1; }
    .cat-flyout-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

    /* ----- Recommended feed ----- */
    .rec-feed { min-width: 0; }

    .rec-title {
        margin: 0 0 var(--space-4);
        font-family: 'Playfair Display', Georgia, serif;
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--ink);
    }

    .rec-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }

    .rec-more-wrap { text-align: center; margin-top: var(--space-6); }
}

/* =========================================================
   All-categories directory page
   ========================================================= */

.allcat-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.allcat-hub {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
}

.allcat-hub-head {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--line);
}

.allcat-hub-ico { font-size: 1.4rem; color: var(--accent); }

.allcat-hub-name {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
}

.allcat-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.2rem;
}

.allcat-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
}
.allcat-link:hover { background: var(--accent-tint); color: var(--accent); }

.allcat-link-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 1.15rem;
    color: var(--accent);
    overflow: hidden;
}
.allcat-img { width: 28px; height: 28px; border-radius: 4px; object-fit: cover; }
.allcat-emoji { font-size: 1.15rem; line-height: 1; }
.allcat-link-name { flex: 1; min-width: 0; }

@media (min-width: 640px) {
    .allcat-grid { grid-template-columns: repeat(2, 1fr); }
    .allcat-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .allcat-grid { grid-template-columns: repeat(3, 1fr); }
    .allcat-list { grid-template-columns: 1fr; }
}

/* ---------- Hero: full-width image, centred text ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    max-height: 70vh;
    padding: 56px 0;
    /* Dark fallback when no hero image is set — white text stays readable
       both here and over the image + slate overlay. */
    background: var(--card);
    color: var(--text-primary);
    text-align: center;
    overflow: hidden;
}

/* the uploaded image (with slate overlay baked into the inline gradient) */
.hero-has-bg {
    background-size: cover;
    background-position: center;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-eyebrow {
    margin: 0 0 var(--space-3);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--orange);
}

.hero-title {
    position: relative;
    margin: 0 0 var(--space-5);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2rem, 3.4vw, 44px);   /* ~44px desktop, normal size */
    font-weight: 700;
    line-height: 1.15;
    color: #F5F0EA;
    max-width: 720px;
}

/* soft amber radial glow behind the headline so words feel lit */
.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130%;
    height: 220%;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(232,145,58,.12) 0%, rgba(232,145,58,0) 70%);
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
}

.hero-search {
    position: relative;   /* anchor for a future autocomplete dropdown */
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 14px 14px 14px 0.9rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.5);
    transition: box-shadow var(--transition), border-color var(--transition);
}

.hero-search:focus-within {
    border-color: rgba(232,145,58,.6);
    box-shadow: 0 8px 32px rgba(0,0,0,.5), 0 0 0 3px rgba(232,145,58,.25);
}

.hero-search .ti-search {
    color: var(--muted);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    padding: 0.6rem 0.25rem;
}

.hero-search input::placeholder {
    color: var(--muted);
}

.hero-search button {
    flex-shrink: 0;
    min-height: 44px;
    border: none;
    background: var(--accent);
    color: var(--cream);           /* dark text on teal */
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 500;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.hero-search button:hover,
.hero-search button:focus-visible {
    background: var(--accent-hover);
    transform: scale(1.03);
    outline: none;
}

.hero-search button:active {
    transform: scale(0.97);
    background: var(--accent-hover);
}

/* Trust row — one clean inline line, no bullets */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.hero-trust li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: rgba(245, 240, 234, 0.75);
}

.hero-trust .tick {
    color: var(--accent-green);
    font-weight: 700;
}

/* ---------- Hub cards ---------- */

main.container {
    padding-top: var(--space-8);    /* 64px section rhythm on mobile */
    padding-bottom: var(--space-8);
}

/* One column by default so the extra-large icons stay readable on phones */
.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
    max-width: 1120px;
    margin: 0 auto;
}

/* Two columns from small tablets up */
@media (min-width: 720px) {
    .hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.hub-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    transition: border-color var(--transition);
}

.hub-card:hover {
    border-color: var(--muted);
}

.hub-card-header {
    margin-bottom: var(--space-4);
}

.hub-card-title {
    display: inline-block;
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
    line-height: 1.25;
    color: var(--ink);
}

.hub-card-desc {
    margin: var(--space-3) 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--muted);
}

/* thin divider under the header */
.hub-card-body {
    border-top: 1px solid var(--line);
    padding-top: var(--space-2);
    display: flex;
    flex-direction: column;
}

.hub-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-height: 104px;
    padding: var(--space-3) var(--space-2);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--ink);
    transition: background var(--transition);
}

/* thin divider between rows */
.hub-item + .hub-item {
    border-top: 1px solid var(--line);
}

.item-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    border-radius: var(--radius);
    background: var(--accent-tint);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 40px;
    overflow: hidden;
    transition: background var(--transition), border-color var(--transition);
}

/* Uploaded image fills the whole tile, crisp and undimmed */
.item-ico-img {
    width: 88px;
    height: 88px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    display: block;
    border: 1px solid var(--line);
}

.item-emoji {
    font-size: 44px;
    line-height: 1;
}

.item-name {
    flex: 1;
    min-width: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ink);
}

.count-badge {
    flex-shrink: 0;
    min-width: 24px;
    padding: 2px 10px;
    border-radius: 999px;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
}

.item-chevron {
    margin-left: 2px;
    color: var(--muted);
    font-size: 22px;
    flex-shrink: 0;
}

/* ---------- Kenyan flag bands — one solid tint per service row ----------
   Each row gets a single, edge-to-edge flag colour, cycling black → red →
   green by its position, so no row is ever split. :nth-child means any
   service added later is coloured automatically. White is skipped as a band
   (invisible on the card) and lives instead as the divider between rows.
   >>> The three tint alphas live on the next three rules. <<< */
.hub-card-body .hub-item:nth-child(3n + 1) { background: rgba(242, 237, 231, 0.05); }  /* warm-grey band */
.hub-card-body .hub-item:nth-child(3n + 2) { background: rgba(248, 113, 113, 0.10); }  /* red band   */
.hub-card-body .hub-item:nth-child(3n + 3) { background: rgba(74, 222, 128, 0.08); }   /* green band */

.hub-item:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--accent);
}

/* Hover/focus deepens the row's OWN band colour (never switches colour) */
.hub-card-body .hub-item:nth-child(3n + 1):hover,
.hub-card-body .hub-item:nth-child(3n + 1):focus-visible { background: rgba(242, 237, 231, 0.09); }
.hub-card-body .hub-item:nth-child(3n + 2):hover,
.hub-card-body .hub-item:nth-child(3n + 2):focus-visible { background: rgba(248, 113, 113, 0.16); }
.hub-card-body .hub-item:nth-child(3n + 3):hover,
.hub-card-body .hub-item:nth-child(3n + 3):focus-visible { background: rgba(74, 222, 128, 0.14); }

.hub-item:hover .item-ico,
.hub-item:focus-visible .item-ico {
    background: var(--accent-tint2);
    border-color: var(--accent);
}

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 3rem 1rem;
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--cream);
    border-top: 1px solid var(--line);
    color: var(--muted);
    padding: var(--space-8) 0;
    text-align: center;
}

.site-footer .footer-brand {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--ink);
    margin: 0 0 0.3rem;
}

.site-footer .footer-tagline {
    margin: 0 0 0.6rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.site-footer .footer-copy {
    margin: 0;
    font-size: 0.82rem;
    color: var(--muted);
}

/* =========================================================
   Browse flow — category & listing pages
   ========================================================= */

/* Sub-category page heading (no card) */
.subcat-heading {
    margin: 24px 0;
}
.subcat-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 30px;
    font-weight: 700;
    color: #F5F0EA;
    line-height: 1.2;
    margin: 0;
}
.subcat-underline {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--accent, #E8913A);
    border-radius: 2px;
    margin-top: 12px;
}
.subcat-count {
    margin: 10px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--muted);
}

.page-section {
    padding-top: 0;
    padding-bottom: var(--space-8);
}

/* ---------- Breadcrumb ---------- */

/* ---------- Breadcrumb pills ---------- */

.breadcrumb {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    scrollbar-width: none;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    padding: 16px 0;
    margin: 0;
}

.breadcrumb::-webkit-scrollbar {
    display: none;
}

/* Pills inside the scrollable row may extend past the viewport — that's the
   intended scroll behavior; clip them so they never widen the page. */
.breadcrumb .crumb-pill,
.breadcrumb .crumb-sep {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
}

.breadcrumb .crumb-sep {
    overflow: visible;
}

.crumb-pill {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 0;
    max-width: 100%;
    padding: 6px 14px;
    border-radius: 999px;
    background: #2E2620;
    border: 1px solid #3A322B;
    color: #A89E93;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background var(--transition), color var(--transition);
}

/* Inside the clipped breadcrumb row, pills must be allowed to shrink so a
   long trail never paints past the row's edge. */
.breadcrumb .crumb-pill {
    flex-shrink: 1;
}

a.crumb-pill:hover,
a.crumb-pill:focus-visible {
    background: #3A322B;
    color: #F5F0EA;
}

.crumb-current {
    background: var(--crumb-accent, #E8913A);
    border-color: var(--crumb-accent, #E8913A);
    color: #1A1614;
    font-weight: 700;
}

.breadcrumb .crumb-sep {
    margin: 0;
    color: var(--accent-amber, #E8913A);
    flex-shrink: 0;
    overflow: visible;
}

/* The scrollable breadcrumb row intentionally lets pills run past the
   viewport edge (user swipes to see them) — hide the overflow so the page
   itself never scrolls horizontally. */
.breadcrumb {
    overflow: hidden;
}

/* ---------- Page heading ---------- */

.page-head {
    margin-top: 24px;
    margin-bottom: var(--space-5);
}

.breadcrumb + .page-head {
    margin-top: 8px;
}

.page-head h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.page-head-sub {
    margin: var(--space-3) 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--muted);
    max-width: 42rem;
}

/* Full, multi-paragraph description on a category/hub page header */
.page-head-desc {
    max-width: 700px;
    line-height: 1.7;
}

.page-head-desc p {
    margin: 0 0 var(--space-4);
}

.page-head-desc p:last-child {
    margin-bottom: 0;
}

/* Category page header with a large service icon */
.page-head-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    /* single faint flag tint (green) — solid, never split */
    background: rgba(0, 102, 0, 0.06);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
}

.page-head-icon .page-head-text {
    min-width: 0;
}

.cat-hero-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 104px;
    height: 104px;
    border-radius: var(--radius);
    background: var(--accent-tint);
    border: 1px solid var(--line);
    color: var(--accent);
    font-size: 56px;
    overflow: hidden;
}

/* Uploaded image fills the whole tile, sharp and undistorted */
.cat-hero-img {
    width: 104px;
    height: 104px;
    border-radius: var(--radius);
    object-fit: cover;
    display: block;
    border: 1px solid var(--line);
}

.cat-hero-emoji {
    font-size: 60px;
    line-height: 1;
}

/* Icon beside the title from small tablets up */
@media (min-width: 560px) {
    .page-head-icon {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: var(--space-5);
    }
    .cat-hero-ico,
    .cat-hero-img {
        width: 120px;
        height: 120px;
    }
    .cat-hero-ico {
        font-size: 64px;
    }
    .cat-hero-emoji {
        font-size: 70px;
    }
}

/* ---------- Generic accent button ---------- */

.btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.6rem 1.3rem;
    border: none;
    border-radius: var(--radius);
    background: var(--accent-amber);
    color: var(--bg-base);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-accent:hover,
.btn-accent:focus-visible {
    background: var(--accent-amber-hover);
    color: var(--bg-base);
    transform: translateY(-1px);
    outline: none;
}

.btn-accent:active {
    transform: translateY(0);
}

.btn-green {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 44px;
    padding: 0.6rem 1.3rem;
    border: none;
    border-radius: var(--radius);
    background: var(--accent-green);
    color: var(--accent-green-text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-decoration: none;
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.btn-green:hover,
.btn-green:focus-visible {
    background: var(--accent-green-hover);
    color: var(--accent-green-text);
    transform: translateY(-1px);
    outline: none;
}

.btn-green:active {
    transform: translateY(0);
}

/* ---------- House-type filter ---------- */

.filter-form {
    margin-bottom: 2rem;
}

.filter-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.filter-controls {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-select {
    flex: 1;
    min-width: 180px;
    min-height: 44px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.filter-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.filter-view {
    flex-shrink: 0;
}

/* House-type chooser: landing intro + results header */
.houses-intro {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    color: var(--ink);
    margin: 0 0 0.85rem;
}

.houses-result-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 1.5rem;
}

.showing-label {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
}

.showing-label strong {
    color: var(--ink);
    font-weight: 700;
}

.back-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

.back-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

/* Same-page houses loader + injected results */
.houses-loading {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
    padding: 0.6rem 0 0.2rem;
}

/* Crawlable house-type links (no-JS fallback + SEO discovery) */
.type-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.75rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    margin: 0 0 1.25rem;
    background: var(--cream);   /* #1a1715 — stays dark on any surface */
}

.type-links-label {
    color: var(--muted);        /* muted separators/label */
}

.type-links a {
    color: var(--accent);       /* #2dd4bf */
    text-decoration: none;
}

.type-links a:hover,
.type-links a[aria-current="true"] {
    text-decoration: underline;
}

.houses-results .listing-grid {
    animation: housesFadeIn 0.35s ease;
}

@keyframes housesFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .houses-results .listing-grid {
        animation: none;
    }
}

/* ---------- Listing grid + cards ---------- */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: var(--space-5);
}

.listing-card {
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition);
}

.listing-card:hover {
    border-color: var(--muted);
}

.lc-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--card);      /* #241f1c — same dark surface as the body */
    overflow: hidden;
}

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

/* Placeholder when no image */
.lc-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--card);      /* #241f1c — intentional dark placeholder */
    color: var(--muted);          /* #b3a89f */
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
}

.lc-placeholder svg {
    width: 46px;
    height: 46px;
    color: var(--muted);
    opacity: 0.7;                 /* softer than the label, still clearly visible */
}

.lc-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-5);
    background: var(--card);             /* #241f1c — dark card surface */
    border-top: 1px solid var(--line);   /* divider between photo and body */
}

.lc-title-link {
    text-decoration: none;
}

.lc-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
}

.lc-title-link:hover .lc-title {
    color: var(--accent);
}

.lc-loc {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    color: var(--muted);   /* #b3a89f */
}

.lc-loc .ti {
    font-size: 1rem;
    flex-shrink: 0;
}

.lc-price {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.lc-amount {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);   /* #2dd4bf */
}

.lc-per {
    font-size: 0.85rem;
    color: var(--muted);    /* #b3a89f */
}

/* Solid teal button with dark text — the strongest element on the card.
   NOTE: --cream is the warm-dark page colour (#1a1715) in this theme, so it is
   the correct "dark text" value to sit on the teal fill. */
.lc-btn {
    margin-top: auto;
    width: 100%;
    background: var(--accent);
    color: var(--cream);
}

.lc-btn:hover,
.lc-btn:focus-visible {
    background: var(--accent-hover);   /* #14b8a6 */
    color: var(--cream);
}

/* ---------- Listing detail ---------- */

/* ---------- Listing detail: two-column redesign ---------- */
.ld-head { margin: 16px 0 24px; }

.ld-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.ld-main,
.ld-side {
    min-width: 0;
}

.ld-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.ld-card {
    background: var(--card);
    border: 1px solid #3A322B;
    border-radius: 16px;
    padding: 20px;
}

/* Photo card: blurred backdrop fills the frame, image contained on top */
.ld-photo-card { padding: 0; overflow: hidden; }
.ld-photo-frame {
    position: relative;
    max-height: 420px;
    overflow: hidden;
}
.ld-photo-blur {
    position: absolute;
    inset: -30px;
    width: calc(100% + 60px);
    height: calc(100% + 60px);
    object-fit: cover;
    filter: blur(20px);
    transform: scale(1.1);
}
.ld-photo {
    position: relative;
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: contain;
    margin: 0 auto;
}
.ld-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
}

/* Details definition list */
.detail-list { margin: 0; }
.detail-row {
    display: flex;
    justify-content: space;
    align-items: baseline;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #3A322B;
}
.detail-list .detail-row:last-child { border-bottom: 0; }
.detail-row dt {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin: 0;
}
.detail-row dd {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    margin: 0;
    text-align: right;
}
.listing-description {
    padding: 16px;
    border-top: 1px solid #3A322B;
    font-size: 15px;
    line-height: 1.7;
}
.listing-description p:last-child { margin-bottom: 0; }

/* Reviews empty state */
.reviews-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 28px 16px;
    border: 2px dashed #3A322B;
    border-radius: 12px;
}
.reviews-empty p { margin: 0; color: var(--muted); }
.review-count-badge {
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
    padding: 2px 10px;
    border-radius: 999px;
    background: var(--accent-tint, rgba(232,145,58,.15));
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
}

/* Sidebar */
.ld-price {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-green, #3E9B4F);
    margin: 0 0 6px;
}
.ld-wa-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.ld-wa-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0,0,0,.25);
}
.ld-safety {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--muted);
}

/* Share card: compact icon buttons in a row */
.ld-share-title {
    margin: 0 0 12px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.ld-share-row {
    display: flex;
    gap: 12px;
}
.share-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #3A322B;
    background: transparent;
    color: var(--text-primary, inherit);
    font-size: 20px;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.share-icon-btn:hover { background: rgba(255,255,255,.06); transform: translateY(-2px); }
.share-icon-btn.is-copied { color: var(--accent-green, #3E9B4F); }
.share-icon-wa:hover { color: #25D366; }
.share-icon-fb:hover { color: #1877F2; }

@media (min-width: 900px) {
    .ld-columns {
        grid-template-columns: minmax(0, 65fr) minmax(280px, 35fr);
        column-gap: 32px;
        align-items: start;
    }
    .ld-side {
        position: sticky;
        top: 90px;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }
}

/* ---------- Gallery: swipe carousel (mobile) / thumbnails (desktop) ---------- */

.gallery {
    min-width: 0;
}

.gallery-viewport {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.gallery-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar {
    display: none;
}

.gallery-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    aspect-ratio: 16 / 10;
    background: var(--cream);
}

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

.gallery-empty {
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lc-placeholder-lg svg {
    width: 72px;
    height: 72px;
}

.lc-placeholder-lg {
    font-size: 0.95rem;
}

/* Dot indicators — shown on mobile */
.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
}

.gallery-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--line);
    cursor: pointer;
    transition: background var(--transition), transform var(--transition);
}

.gallery-dot.is-active {
    background: var(--accent);
    transform: scale(1.25);
}

/* Thumbnail strip — shown on desktop */
.gallery-thumbs {
    display: none;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 72px;
    height: 56px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream);
    cursor: pointer;
    transition: border-color var(--transition);
}

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

.gallery-thumb.is-active {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
}

.listing-title {
    margin: 0 0 0.6rem;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink);
}

.listing-loc {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0 0 0.75rem;
    font-family: 'Inter', sans-serif;
    color: var(--muted);
}

.listing-price {
    margin: 0 0 1.5rem;
    font-family: 'Inter', sans-serif;
}

.lp-amount {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.lp-per {
    font-size: 0.95rem;
    color: var(--muted);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* WhatsApp / Call buttons */
.btn-whatsapp,
.btn-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 48px;
    padding: 0.7rem 1.4rem;
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition), border-color var(--transition);
}

.btn-whatsapp {
    background: var(--accent-green);
    color: var(--accent-green-text);
    border: 1px solid var(--accent-green);
}

.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background: var(--accent-green-hover);
    border-color: var(--accent-green-hover);
    transform: scale(1.02);
    outline: none;
}

.btn-call {
    background: var(--card);
    color: var(--accent);
    border: 1px solid var(--line);
}

.btn-call:hover,
.btn-call:focus-visible {
    border-color: var(--accent);
    transform: scale(1.02);
    outline: none;
}

.btn-whatsapp .ti,
.btn-call .ti {
    font-size: 1.2rem;
}

/* Details definition list */
.listing-details {
    border-top: 1px solid var(--line);
    padding-top: var(--space-6);
}

.section-title {
    margin: 0 0 var(--space-4);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--ink);
}

.detail-list {
    margin: 0 0 var(--space-5);
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--line);
}

.detail-row dt {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0;
}

.detail-row dd {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
    text-align: right;
}

.listing-description {
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    line-height: 1.7;
}

.listing-description p {
    margin: 0 0 var(--space-4);
}

/* ---------- Title head + share ---------- */

.ld-head .listing-title {
    margin-bottom: 0.5rem;
}

.share-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 4px;
}

.share-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--ink);
    margin-right: 2px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--card);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
    min-height: 40px;
}

.share-btn i {
    font-size: 1.05rem;
}

.share-btn:hover,
.share-btn:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
    outline: none;
}

/* WhatsApp share = green, primary */
.share-wa {
    background: var(--accent-green);
    border-color: var(--accent-green);
    color: var(--accent-green-text);
    font-weight: 600;
}

.share-wa:hover,
.share-wa:focus-visible {
    background: var(--accent-green-hover);
    border-color: var(--accent-green-hover);
    color: var(--accent-green-text);
}

.share-copy.is-copied {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-tint);
}

/* ---------- Key-facts + contact card (sticky aside on desktop) ---------- */

.ld-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.facts-card {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.facts-price {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.facts-loc {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--muted);
}

.facts-chips {
    list-style: none;
    margin: 0;
    padding: 0.9rem 0 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.fact-chip {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.55rem 0.7rem;
    background: var(--accent-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.fact-chip-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.fact-chip-value {
    font-family: 'Inter', sans-serif;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
}

.facts-card .contact-actions {
    flex-direction: column;
    margin-top: 0.1rem;
}

.facts-card .contact-actions .btn-whatsapp,
.facts-card .contact-actions .btn-call {
    width: 100%;
}

.contact-note {
    margin: 0.1rem 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

/* ---------- "More like this" strip ---------- */

.similar {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--line);
}

.similar .section-title {
    margin-bottom: var(--space-5);
}

.similar-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: var(--space-5);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.similar-strip::-webkit-scrollbar {
    display: none;
}

.similar-card {
    scroll-snap-align: start;
}

/* ---------- Mobile sticky contact bar ---------- */

.contact-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--card);
    border-top: 1px solid var(--line);
    box-shadow: 0 -2px 14px rgba(15, 23, 42, 0.08);
}

.cb-price {
    font-family: 'Inter', sans-serif;
    line-height: 1.15;
    min-width: 0;
}

.cb-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.cb-per {
    font-size: 0.78rem;
    color: var(--muted);
}

.cb-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.cb-wa {
    min-height: 46px;
}

.cb-call {
    min-height: 46px;
    width: 46px;
    padding: 0;
    flex-shrink: 0;
}

.contact-bar-spacer {
    height: 76px;
}

/* ---------- Not found ---------- */

.not-found {
    text-align: center;
    padding: 3rem 1rem 4rem;
    max-width: 32rem;
    margin: 0 auto;
}

.not-found h1 {
    font-size: 1.9rem;
    color: var(--ink);
    margin: 0 0 0.75rem;
}

.not-found p {
    font-family: 'Inter', sans-serif;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

/* ---------- Scroll reveal ---------- */

.reveal {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ---------- Wider screens ---------- */

@media (min-width: 560px) {
    .hub-grid {
        gap: var(--space-5);
    }
}

@media (min-width: 720px) {
    .detail-list {
        grid-template-columns: 1fr;
    }

    /* No bottom bar on desktop — contact lives in the sticky card */
    .contact-bar,
    .contact-bar-spacer { display: none; }

    /* Similar listings become a responsive grid */
    .similar-strip {
        grid-auto-flow: row;
        grid-auto-columns: auto;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        overflow: visible;
    }
}

@media (min-width: 900px) {
    .container {
        padding: 0 var(--space-6);   /* 32px side gutters on desktop */
    }
    .hero {
        padding: 64px 0;
    }
    .hero-title {
        font-size: 44px;
    }
    main.container {
        padding-top: 0;
        padding-bottom: 48px;
    }
    .page-section {
        padding-top: 0;
        padding-bottom: var(--space-10);
    }
    .breadcrumb {
        padding-top: 16px;
    }
    .breadcrumb + .page-head {
        margin-top: 24px;
    }
    .page-head {
        margin-bottom: 32px;
    }
    .site-footer {
        padding: 56px 0 28px;
    }
    .similar {
        margin-top: var(--space-10);
    }
    .hub-card-title {
        font-size: 1.3rem;
    }
    .page-head h1 {
        font-size: 2.4rem;
    }
    .listing-title {
        font-size: 2.3rem;
    }
}

/* ---------- Footer navigation ---------- */
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem 1.25rem;
    margin: 0 0 0.9rem;
}

.footer-nav a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
}

.footer-nav a:hover { text-decoration: underline; }

/* =========================================================
   Shared content-page primitives (About + List business)
   ========================================================= */
.page-narrow { max-width: 900px; margin: 0 auto; }

.section-pad { padding: var(--space-8) 0; }

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 1.5rem;
}

.about-page h1,
.lb-hero h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.15;
    margin: 0 0 1rem;
    font-size: 2rem;
}

.lead {
    font-family: 'Inter', sans-serif;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 46ch;
    margin: 0;
}

.about-intro .lead { max-width: 62ch; }

.muted-note { color: var(--muted); }

.step-grid,
.value-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

.step-card,
.value-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    transition: border-color var(--transition), transform var(--transition);
}

.step-card:hover,
.value-card:hover {
    border-color: var(--muted);
    transform: translateY(-2px);
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: var(--accent-tint);
    color: var(--accent);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.step-card h3,
.value-card h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.5rem;
}

.step-card p,
.value-card p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.trust-section {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.trust-body { max-width: 62ch; }

.trust-body p {
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--ink);
    margin: 0 0 var(--space-4);
}

.find-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

.find-hub h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.find-hub ul { list-style: none; margin: 0; padding: 0; }
.find-hub li { margin: 0.3rem 0; }

.find-hub a {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
}

.find-hub a:hover { color: var(--accent); text-decoration: underline; }

.cta-band {
    text-align: center;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: var(--space-8) var(--space-4);
}

.cta-band h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 0.5rem;
}

.cta-band p {
    font-family: 'Inter', sans-serif;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

/* =========================================================
   List-your-business specifics
   ========================================================= */
.lb-hero {
    background: var(--card);
    border-bottom: 1px solid var(--line);
}

.lb-hero-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    padding: var(--space-8) 0;
}

.lb-hero-text { flex: 1.1; }

.lb-eyebrow {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.6rem;
}

.lb-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.text-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
}

.text-link:hover { text-decoration: underline; }

.lb-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.shopfronts { width: 100%; max-width: 340px; }
.shopfronts svg { width: 100%; height: auto; display: block; }

.sf-card { fill: var(--cream); stroke: var(--line); stroke-width: 1.5; }
.sf-card-accent { fill: var(--accent-tint); stroke: var(--accent); stroke-width: 1.5; }
.sf-awning { fill: var(--ink); opacity: 0.12; }
.sf-awning-accent { fill: var(--accent); }
.sf-door { fill: var(--ink); opacity: 0.22; }
.sf-ground { stroke: var(--line); stroke-width: 2; stroke-linecap: round; }

.form-shell {
    max-width: 640px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem 1.5rem 2rem;
}

.form-intro h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.35rem;
}

.form-intro p {
    font-family: 'Inter', sans-serif;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.lb-form { display: flex; flex-direction: column; gap: 1rem; }
.lb-form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }

.field-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--ink);
}

.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; font-size: 0.82rem; }

.input {
    width: 100%;
    min-height: 46px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--ink);
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 0.6rem 0.8rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

textarea.input { min-height: auto; resize: vertical; line-height: 1.6; }

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 1px var(--accent);
    background: var(--card);
}

.lb-submit { width: 100%; margin-top: 0.25rem; }

.form-fineprint {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
    margin: 0.25rem 0 0;
}

/* Honeypot — visually hidden, still present for bots */
.hp-field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-alert {
    background: var(--danger-bg);
    border: 1px solid var(--danger);
    color: var(--danger-text);
    border-radius: var(--radius);
    padding: 0.75rem 0.9rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.form-alert ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }

.lb-success { text-align: center; padding: 1rem 0.5rem; }

.lb-success-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--accent);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.lb-success h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.lb-success p {
    font-family: 'Inter', sans-serif;
    color: var(--muted);
    margin: 0 0 1.25rem;
}

/* FAQ accordion (pure CSS) */
.faq { max-width: 720px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
    list-style: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink);
    padding: 1rem 2rem 1rem 0;
    position: relative;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent);
    font-size: 1.3rem;
    line-height: 1;
}

.faq details[open] summary::after { content: "\2212"; }

.faq details p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 0 var(--space-4);
    max-width: 62ch;
}

.cell-wrap { max-width: 260px; white-space: normal; }

/* =========================================================
   Public auth + provider area
   ========================================================= */

.auth-banner {
    background: var(--accent-tint);
    border: 1px solid var(--accent);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    padding: var(--space-3) var(--space-4);
    margin-bottom: var(--space-4);
}

.auth-banner-warn {
    border-color: var(--orange);
}

.dev-notice {
    background: var(--accent-tint);
    border: 1px dashed var(--orange);
    border-radius: var(--radius);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
    font-family: 'Inter', sans-serif;
    font-size: 0.88rem;
}

.dev-notice p { margin: var(--space-2) 0; color: var(--muted); }
.dev-notice a { word-break: break-all; font-weight: 600; }

.auth-choice {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    margin-top: var(--space-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    transition: border-color var(--transition);
}

.auth-choice:hover { border-color: var(--accent); }
.auth-choice input { margin-top: 3px; flex-shrink: 0; }

.auth-sep {
    border: none;
    border-top: 1px solid var(--line);
    margin: var(--space-6) 0;
}

/* "Remember me" + forgot-password row on the login form */
.login-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.check-inline {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    min-height: 44px;      /* comfortable thumb target */
    color: var(--ink);
    cursor: pointer;
}

.check-inline input {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    flex-shrink: 0;
    cursor: pointer;
}

/* Provider dashboard */
.prov-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.prov-stats {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: var(--muted);
}

.prov-stats strong { color: var(--ink); }

.prov-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
}

.prov-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
}

.prov-table th,
.prov-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.prov-table th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    font-weight: 600;
}

.prov-table tr:last-child td { border-bottom: none; }
.prov-title { display: block; font-weight: 600; color: var(--ink); }
.prov-date  { display: block; color: var(--muted); font-size: 0.8rem; }
.prov-actions { white-space: nowrap; }
.prov-status-line { font-family: 'Inter', sans-serif; margin: 0 0 var(--space-4); }
.prov-photos { margin-top: var(--space-5); }

/* Status pills */
.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 0.78rem;
    font-weight: 600;
}

.pill-approved { color: var(--accent-green); border-color: rgba(74, 222, 128, 0.5); }
.pill-pending  { color: var(--orange); border-color: rgba(244, 162, 89, 0.5); }
.pill-rejected { color: var(--danger); border-color: rgba(248, 113, 113, 0.5); }

/* Order status pills: paid/delivered = teal, in-flight = orange, inert = muted */
.pill-paid        { color: var(--accent); border-color: rgba(45, 212, 191, 0.5); }
.pill-delivered   { color: var(--accent); border-color: rgba(45, 212, 191, 0.5); }
.pill-partial     { color: var(--orange); border-color: rgba(244, 162, 89, 0.5); }
.pill-in_progress { color: var(--orange); border-color: rgba(244, 162, 89, 0.5); }
.pill-unpaid      { color: var(--muted); border-color: var(--line); }
.pill-cancelled   { color: var(--muted); border-color: var(--line); }

/* =========================================================
   My orders (customer, read-only)
   ========================================================= */

/* Header -> summary -> content all share one rhythm, so there is no void */
.orders-page .page-head { margin-bottom: var(--space-6); }

.order-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

/* Empty state — a real card, not floating in whitespace */
.order-empty {
    max-width: 34rem;
    margin: 0 auto;
    padding: var(--space-7) var(--space-5);
    text-align: center;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.order-empty-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-4);
    border-radius: 50%;
    background: var(--accent-tint);
    color: var(--muted);
    font-size: 1.9rem;
}

/* Icon -> 16px -> heading -> 24px -> button, so it never reads cramped. */
.order-empty-title {
    margin: 0 0 var(--space-5);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
}

.order-stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-4);
    font-family: 'Inter', sans-serif;
}

.order-stat.is-flagged { border-color: var(--orange); }

.order-stat-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: var(--space-1);
}

.order-stat-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
}

.order-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.order-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
}

.order-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-3);
}

.order-title {
    margin: 0 0 var(--space-2);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
}

.order-ref {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--muted);
}

.order-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.order-money {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-6);
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--line);
    font-family: 'Inter', sans-serif;
}

.order-money-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--muted);
}

.order-money-value {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}

.order-balance { color: var(--orange); }

.order-notes {
    margin: var(--space-4) 0 0;
    padding: var(--space-3);
    background: var(--accent-tint);
    border-radius: var(--radius);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.order-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* =========================================================
   Reviews
   ========================================================= */

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

.stars {
    display: inline-flex;
    gap: 2px;
    color: var(--line);
    line-height: 1;
}

.stars .is-on { color: var(--orange); }
.stars-sm { font-size: 0.85rem; }
.stars-lg { font-size: 1.4rem; }

.reviews {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--line);
}

.rating-summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    font-family: 'Inter', sans-serif;
}

.rating-avg {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
}

.rating-count { color: var(--muted); font-size: 0.92rem; }
.reviews-none { color: var(--muted); font-family: 'Inter', sans-serif; margin: 0 0 var(--space-5); }
.review-cta { margin: 0 0 var(--space-5); }

/* Review list */
.review-list {
    list-style: none;
    margin: var(--space-5) 0 0;
    padding: 0;
}

.review-item {
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--line);
}

.review-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-bottom: var(--space-2);
    font-family: 'Inter', sans-serif;
}

.review-author { color: var(--ink); }
.review-date   { color: var(--muted); font-size: 0.82rem; }

.review-text {
    margin: var(--space-2) 0 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    color: var(--ink);
    white-space: normal;
    overflow-wrap: anywhere;
}

.review-note {
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--muted);
}

.review-meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin: var(--space-3) 0 0;
}

.reviews-more { margin-top: var(--space-3); }

.reviews-more summary {
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    padding: var(--space-2) 0;
}

/* The user's own review + the write form */
.review-mine,
.review-form {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.review-form { display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.review-form .field { width: 100%; }
.review-form-title {
    margin: 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--ink);
}

.review-form fieldset { border: none; margin: 0; padding: 0; }

/* Star picker: rendered right-to-left so `~` fills every star to the left */
.star-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 2px;
    margin-top: var(--space-2);
}

.star-input input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.star-input label {
    font-size: 1.7rem;
    line-height: 1;
    color: var(--line);
    cursor: pointer;
    padding: 2px;
    transition: color var(--transition), transform var(--transition);
}

.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--orange); }
.star-input label:hover { transform: scale(1.1); }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Rating line on listing cards */
.lc-rating {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.lc-rating-num   { font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.lc-rating-count { font-size: 0.8rem;  color: var(--muted); }

/* Small primitives the provider pages borrow from the admin look */
.field-hint {
    display: block;
    margin-top: var(--space-1);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--muted);
}

.form-panel-title {
    margin: 0 0 var(--space-4);
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
}

.admin-back {
    margin: 0 0 var(--space-4);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.btn-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card);
    color: var(--ink);
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color var(--transition), color var(--transition);
}

.btn-mini:hover { border-color: var(--accent); color: var(--accent); }
.btn-mini-danger:hover { border-color: var(--danger); color: var(--danger); }

.img-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.img-thumb {
    position: relative;
    width: 160px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--accent-tint);
}

.img-thumb.is-primary { border-color: var(--accent); }

.img-thumb img {
    display: block;
    width: 100%;
    height: 110px;
    object-fit: cover;
}

.img-primary-tag {
    position: absolute;
    top: var(--space-2);
    left: var(--space-2);
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-green-text);
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
}

.img-thumb-actions {
    display: flex;
    gap: var(--space-2);
    padding: var(--space-2);
}

.img-thumb-actions form { margin: 0; }

/* ---------- Wider screens: content pages ---------- */
@media (min-width: 720px) {
    .step-grid,
    .value-grid { grid-template-columns: repeat(3, 1fr); }
    .find-grid { grid-template-columns: 1fr 1fr; }
    .lb-form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
    .section-pad { padding: var(--space-10) 0; }
    .cta-band { padding: var(--space-10) var(--space-4); }
    .about-page h1, .lb-hero h1 { font-size: 2.5rem; }
    .section-heading { font-size: 1.8rem; }
    .lb-hero-inner { flex-direction: row; align-items: center; padding: var(--space-9) 0; }
    .lb-submit { width: auto; }
}

/* Smooth in-page scroll to the form (respecting reduced motion) */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

#list-form { scroll-margin-top: 80px; }

/* ---------- List-business rhythm fix ----------
   Consistent vertical rhythm on this landing page only:
   max 48px between major sections, 24px heading→content.
   (.section-pad / .lb-hero / .cta-band are shared with the About page,
   so overrides are scoped under .listbiz.) */
.listbiz .section-pad {
    padding: var(--space-7) 0; /* 48px */
}

.listbiz .section-heading {
    margin-bottom: var(--space-5); /* 24px heading → content */
}

.listbiz .lb-hero-inner {
    padding: var(--space-7) 0;
}

.listbiz .cta-band {
    padding: var(--space-7) var(--space-4);
}

@media (min-width: 860px) {
    .listbiz .section-pad,
    .listbiz .lb-hero-inner {
        padding-top: var(--space-7);
        padding-bottom: var(--space-7); /* kills the old 96px bands */
    }

    .listbiz .cta-band {
        padding: var(--space-7) var(--space-4);
    }
}


/* =========================================================
   Refactor additions — category/provider cards, grids,
   homepage sections, footer, nav dropdown
   ========================================================= */

/* ---------- Layout grids ---------- */

.card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .provider-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Browse by Category grid — always 2 wide columns on desktop,
   independent of the generic .card-grid breakpoints. */
.browse-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .browse-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.provider-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .provider-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- Section headings ---------- */

.section-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 24px;
}

.page-head h1 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
}

@media (min-width: 900px) {
    .page-head h1 {
        font-size: 40px;
    }
}

/* ---------- Category card ---------- */

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    min-width: 0;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: 4px solid var(--cat-color, var(--accent-amber));
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text-primary);
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.category-card:hover,
.category-card:focus-visible {
    background: var(--bg-raised);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    outline: none;
}

.category-card:hover .category-card-chevron,
.category-card:focus-visible .category-card-chevron {
    transform: translateX(4px);
}

.category-card-strip {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--cat-color, var(--accent-amber));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.category-card-thumb {
    position: relative;
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 8px;
    background: var(--bg-raised);
    border: 1px solid var(--border-subtle);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-secondary);
    font-size: 40px;
}

.category-card-thumb img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.category-card-thumb-ico {
    position: relative;
    z-index: 1;
    color: var(--cat-color, var(--accent-amber));
}

.category-card-body {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.category-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.category-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.3;
}

.category-card-count {
    flex-shrink: 0;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
    background: color-mix(in srgb, var(--cat-color, var(--accent-amber)) 15%, transparent);
    padding: 2px 8px;
    border-radius: 999px;
}

.category-card-preview {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-card-chevron {
    flex-shrink: 0;
    font-size: 22px;
    color: var(--text-secondary);
    transition: transform var(--transition);
}

/* ---------- Provider card ---------- */

.provider-card {
    position: relative;
    display: flex;
    flex-direction: column;
    max-width: 360px;
    background: #241E1A;
    border: 1px solid #3A322B;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 200ms ease, box-shadow 200ms ease;
}

.provider-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent, var(--accent-amber));
    z-index: 2;
}

.provider-card:hover,
.provider-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.provider-card-media {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--bg-base);
    overflow: hidden;
}

.provider-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.provider-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    flex: 1;
}

.provider-card-title-link {
    text-decoration: none;
}

.provider-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #F5F0EA;
    line-height: 1.3;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.provider-card-title-link:hover .provider-card-title {
    color: var(--accent-amber);
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 6px;
    border-radius: 50%;
    background: var(--accent-green);
    color: var(--bg-base);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
}

.provider-card-rating {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 5px;
    margin: 0;
    padding: 4px 10px;
    background: #2E2620;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    color: var(--text-primary);
}

.provider-card-rating .ti-star-filled {
    color: var(--accent-amber);
    font-size: 12px;
}

.provider-card-rating-count,
.provider-card-rating-new {
    color: var(--text-secondary);
    font-size: 12px;
}

.provider-card-loc {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #A89E93;
}

.provider-card-loc .ti {
    font-size: 14px;
    color: var(--accent-amber);
    flex-shrink: 0;
}

.provider-card-price {
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.provider-card-price .lc-amount {
    font-size: 15px;
    font-weight: 600;
    color: #3ECF8E;
}

.provider-card-price .lc-per {
    font-size: 13px;
    font-weight: 600;
    color: #3ECF8E;
}

.provider-card-btn {
    margin-top: auto;
    width: 100%;
    background: #3ECF8E;
    color: #14261D;
    border-radius: 8px;
    font-weight: 600;
    transition: background 200ms ease;
}

.provider-card-btn:hover,
.provider-card-btn:focus-visible {
    background: #38BA80;
    color: #14261D;
}

/* Sub-category pills inside category cards */
.category-card-pills {
    display: block;
    overflow: hidden;
    max-width: 100%;
    min-width: 0;
}

/* Marquee wrapper: clips the scrolling track, fades both edges so partial
   pills read as motion, not a hard cut. */
.category-card-pills {
    mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 24px, black calc(100% - 24px), transparent 100%);
}

.pill-track {
    display: inline-flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
}

@media (prefers-reduced-motion: no-preference) {
    .category-card-pills:not(.is-static) .pill-track {
        animation: pillScroll 18s linear infinite;
    }

    .category-card:hover .pill-track,
    .category-card:focus-visible .pill-track {
        animation-play-state: paused;
    }
}

@keyframes pillScroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.cat-pill {
    pointer-events: none;
    cursor: default;
    flex-shrink: 0;
    padding: 4px 10px;
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
    background: color-mix(in srgb, var(--pill-color, var(--accent-amber)) 15%, transparent);
    color: var(--pill-color, var(--accent-amber));
    border: 1px solid color-mix(in srgb, var(--pill-color, var(--accent-amber)) 30%, transparent);
}

.cat-pill-more {
    background: #2E2620;
    color: #A89E93;
    border-color: #3A322B;
}


/* ---------- Empty state ---------- */

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.empty-state p {
    margin: 0 0 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
}

/* ---------- Homepage sections ---------- */

.rec-grid {
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .rec-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .rec-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.rec-more-wrap {
    text-align: center;
    margin-top: 32px;
}

/* How it works */
.how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .how-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.how-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 24px;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}

.how-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: var(--bg-raised);
    color: var(--accent-amber);
    font-size: 24px;
}

.how-num {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.how-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.how-card p {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.55;
}

/* Trust strip */
.trust-strip {
    padding: 24px 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.trust-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
}

.trust-list li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-list .ti {
    color: var(--accent-green);
    font-size: 18px;
}

/* CTA banner */
.cta-banner {
    margin-bottom: 0;
    padding-bottom: 0;
}

.cta-banner-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: linear-gradient(135deg, #E8913A 0%, #B96A24 100%);
    border-radius: 16px;
    padding: 40px;
    overflow: hidden;
}

.cta-banner-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.08) 1px, transparent 1px), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' opacity='1'%3E%3Cpath d='M20 24 l8 -6 8 6 v10 h-16 z'/%3E%3Ccircle cx='76' cy='28' r='7'/%3E%3Cpath d='M66 46 h20 M70 40 h12'/%3E%3Cpath d='M30 78 q10 -14 20 0'/%3E%3Ccircle cx='40' cy='68' r='4'/%3E%3Cpath d='M84 72 h18 v18 h-18 z M84 72 l9 8 9 -8'/%3E%3C/g%3E%3C/svg%3E");
    background-size: auto, 160px 160px;
    opacity: 0.05;
    pointer-events: none;
}

.cta-banner-text {
    position: relative;
    z-index: 1;
}

.cta-banner h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 8px;
}

.cta-banner p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

.cta-banner-btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    color: #1A1614;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-decoration: none;
    padding: 14px 28px;
    border-radius: 8px;
    transition: transform var(--transition), box-shadow var(--transition);
}

.cta-banner-btn:hover,
.cta-banner-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    outline: none;
}

@media (max-width: 640px) {
    .cta-banner-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 32px 24px;
    }

    .cta-banner-btn {
        width: 100%;
    }
}

/* ---------- Footer — "luxury editorial meets warm community" ---------- */

.site-footer {
    background: #0F0D0B;
    border-top: none;
    color: var(--text-secondary);
    padding: 64px 0 32px;
    position: relative;
    overflow: hidden;
}

.footer-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }

/* Animated gradient mesh — slow-drifting amber/green/coral blurs */
.footer-mesh {
    position: absolute;
    inset: 0 0 auto 0;
    height: 420px;
    overflow: hidden;
    pointer-events: none;
}
.mesh-blob {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(90px);
    opacity: .08;
    will-change: transform;
}
.mesh-amber  { background: #E8913A; top: -220px; left: 8%;  animation: meshDrift1 20s ease-in-out infinite alternate; }
.mesh-green  { background: #3ECF8E; top: -260px; left: 42%; animation: meshDrift2 20s ease-in-out infinite alternate; }
.mesh-coral  { background: #E85D5D; top: -200px; left: 72%; animation: meshDrift3 20s ease-in-out infinite alternate; }
@keyframes meshDrift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(120px,40px) scale(1.15); } }
@keyframes meshDrift2 { from { transform: translate(0,0) scale(1.1); } to { transform: translate(-100px,30px) scale(.95); } }
@keyframes meshDrift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-140px,50px) scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
    .mesh-amber, .mesh-green, .mesh-coral { animation: none; }
}

/* Giant wordmark — fits container, auto shimmer sweep, breathing glow */
.footer-wordmark-wrap { text-align: center; margin-bottom: 40px; }
.footer-wordmark {
    margin: 0;
    max-width: 100%;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(36px, 7.5vw, 100px);
    line-height: .95;
    letter-spacing: -0.02em;
    white-space: nowrap;
    text-align: center;
    user-select: none;
    background: linear-gradient(90deg, #3A322B, #3ECF8E, #E8913A, #3ECF8E, #3A322B);
    background-size: 200% 100%;
    background-position: 0% 50%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: wmShimmer 6s ease-in-out infinite, wmBreath 4s ease-in-out infinite alternate;
}
@keyframes wmShimmer {
    from { background-position: 0% 50%; }
    to   { background-position: 200% 50%; }
}
@keyframes wmBreath {
    from { text-shadow: 0 0 30px rgba(62,207,142,.15); filter: brightness(1); }
    to   { text-shadow: 0 0 50px rgba(232,145,58,.25); filter: brightness(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .footer-wordmark { animation: none; background-position: 50% 50%; text-shadow: none; filter: none; }
}
.wm-ch, .wm-space {
    color: inherit;
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}
.wm-space { display: inline-block; width: .26em; }

.footer-wordmark-sub {
    margin: 10px 0 0;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5em;
    text-indent: .5em; /* balance the trailing tracking */
    color: var(--accent-amber);
}

/* Horizon: hairline + glowing amber orb at center (sunrise point) */
.footer-horizon {
    position: relative;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, rgba(58,50,43,0), #3A322B 18%, #3A322B 82%, rgba(58,50,43,0));
    margin: 36px 0 40px;
}
.horizon-orb {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #E8913A;
    box-shadow: 0 0 40px 6px rgba(232,145,58,.45), 0 0 12px 2px rgba(232,145,58,.7);
}

/* Staggered fade/rise reveal per zone */
.reveal-zone {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 500ms cubic-bezier(.4,0,.2,1) var(--rd, 0ms),
                transform 500ms cubic-bezier(.4,0,.2,1) var(--rd, 0ms);
}
.reveal-zone.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
    .reveal-zone { opacity: 1; transform: none; transition: none; }
}

/* Premium glass panel wrapping all zones */
.footer-panel {
    max-width: 1200px;
    margin: 0 auto 32px;
    padding: 40px;
    border-radius: 20px;
    background: rgba(255,255,255,.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.07);
}

/* Content zones — 4 columns inside the panel */
.footer-zones {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}
@media (min-width: 900px) {
    .footer-zones { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
}

.fz h3 {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #6B6157;
    margin: 0 0 16px;
}
.fz h3::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    margin-top: 7px;
    border-radius: 2px;
    background: currentColor;
}
/* Colourful column titles with matching underlines */
.footer-zones nav[aria-label="Explore"] h3 { color: var(--accent-amber); }
.footer-zones nav[aria-label="For Businesses"] h3 { color: var(--accent-green); }
.footer-zones div.fz:last-of-type h3 { color: #E85D5D; }

.fz ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.fz ul a {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 2.1;
    color: #A89E93;
    text-decoration: none;
    display: inline-flex;
    align-items: baseline;
    transition: color 250ms cubic-bezier(.4,0,.2,1), transform 250ms cubic-bezier(.4,0,.2,1);
}
.fz ul a::before {
    content: '\203A';
    display: inline-block;
    width: 0;
    overflow: hidden;
    color: var(--accent-amber);
    opacity: 0;
    transform: translateX(-4px);
    transition: width 250ms cubic-bezier(.4,0,.2,1), opacity 250ms cubic-bezier(.4,0,.2,1), transform 250ms cubic-bezier(.4,0,.2,1);
}
.fz ul a:hover,
.fz ul a:focus-visible {
    color: #F5F0EA;
    transform: translateX(4px);
}
.fz ul a:hover::before,
.fz ul a:focus-visible::before {
    width: 14px;
    opacity: 1;
    transform: translateX(0);
}

/* Brand zone */
.fz-brand .footer-app-icon { display: inline-flex; margin-bottom: 14px; }
.fz-brand .footer-app-icon svg { display: block; border-radius: 10px; animation: brandPulse 2.4s ease-in-out infinite; }
@keyframes brandPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
    .fz-brand .footer-app-icon svg { animation: none; }
}
.fz-brand-name {
    margin: 0 0 6px;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}
.footer-tagline {
    margin: 0 0 18px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.65;
    color: #A89E93;
    max-width: 280px;
}

/* Contact zone — warm text lines */
.contact-line {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 8px;
    color: #C9BFB4;
}
.contact-line .ti { color: var(--accent-amber); margin-right: 8px; font-size: 16px; }

/* Glassmorphism social circles */
.footer-social {
    list-style: none;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,.08);
    color: #A89E93;
    font-size: 17px;
    text-decoration: none;
    transition: box-shadow 250ms cubic-bezier(.4,0,.2,1), color 250ms cubic-bezier(.4,0,.2,1), transform 250ms cubic-bezier(.4,0,.2,1), border-color 250ms cubic-bezier(.4,0,.2,1);
}
.footer-social a:hover,
.footer-social a:focus-visible {
    transform: translateY(-3px);
}
/* Brand-coloured glows per social circle */
.footer-social a[aria-label="WhatsApp"]:hover,
.footer-social a[aria-label="WhatsApp"]:focus-visible {
    color: #25D366;
    border-color: rgba(37,211,102,.55);
    box-shadow: 0 0 18px rgba(37,211,102,.35);
}
.footer-social a[aria-label="Facebook"]:hover,
.footer-social a[aria-label="Facebook"]:focus-visible {
    color: #1877F2;
    border-color: rgba(24,119,242,.55);
    box-shadow: 0 0 18px rgba(24,119,242,.35);
}
.footer-social a[aria-label="Instagram"]:hover,
.footer-social a[aria-label="Instagram"]:focus-visible {
    color: #E1306C;
    border-color: rgba(225,48,108,.55);
    box-shadow: 0 0 18px rgba(225,48,108,.35);
}

/* Mobile: zones stack, wordmark scales via clamp, glass kept */
@media (max-width: 767px) {
    .site-footer { padding: 48px 0 24px; }
    .footer-panel { padding: 24px 20px; border-radius: 16px; }
    .footer-zones { gap: 28px; }
    .fz-brand { text-align: center; }
    .fz-brand .footer-tagline { margin-left: auto; margin-right: auto; }
    .fz h3::after { margin-left: auto; margin-right: auto; }
    .footer-social { justify-content: center; }
    .btn-whatsapp-footer { width: 100%; justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ---------- Search results page + hero suggestions ---------- */

.search-head { margin-bottom: 1.25rem; }
.search-head .section-heading { margin-bottom: 0.35rem; }
.search-count { color: var(--muted, #6b6360); font-size: 0.95rem; margin: 0; }

.hero-search { position: relative; }
.hero-suggest {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    margin: 0;
    padding: 6px;
    list-style: none;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(20, 17, 16, 0.22);
    overflow: hidden;
}
.hero-suggest li + li { border-top: 1px solid #f0ece8; }
.hero-suggest a {
    display: block;
    padding: 10px 14px;
    color: #2a2420;
    text-decoration: none;
    font-size: 0.95rem;
}
.hero-suggest a:hover,
.hero-suggest a:focus {
    background: #faf5ef;
    color: #b06a1e;
}

@media (max-width: 767px) {
    .hero-suggest { border-radius: 10px; }
}

/* WhatsApp pill — dark text on green, inner shadow, green-glow lift */
.btn-whatsapp-footer {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: 999px;
    background: #25D366;
    color: #0B1F14;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: inset 0 -2px 4px rgba(0,0,0,.15);
    transition: transform 250ms cubic-bezier(.4,0,.2,1), box-shadow 250ms cubic-bezier(.4,0,.2,1);
}
.btn-whatsapp-footer:hover,
.btn-whatsapp-footer:focus-visible {
    background: #25D366;
    color: #0B1F14;
    text-decoration: none;
    transform: translateY(-3px) scale(1.02);
    box-shadow: inset 0 -2px 4px rgba(0,0,0,.15), 0 10px 24px rgba(37,211,102,.3);
}
.btn-whatsapp-footer .ti { color: inherit; margin-right: 0; }
.wa-icon-wrap { position: relative; display: inline-flex; }
.wa-online-dot {
    position: absolute;
    top: -3px;
    right: -4px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0B1F14;
    box-shadow: 0 0 0 2px #25D366;
    animation: waDotPulse 1.6s ease-in-out infinite;
}
@keyframes waDotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: .55; transform: scale(.82); }
}

/* Bottom bar — flexbox spread with fading hairline above */
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 24px;
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, rgba(58,50,43,0), #3A322B 25%, #3A322B 75%, rgba(58,50,43,0)) 1;
    padding-top: 22px;
    font-family: 'Inter', sans-serif;
}
.fb-left, .fb-center, .fb-right { margin: 0; font-size: 13px; color: #A89E93; }
.fb-center { font-size: 12px; }
.fb-right a {
    color: #A89E93;
    font-size: 12px;
    text-decoration: none;
    transition: color 200ms cubic-bezier(.4,0,.2,1);
}
.fb-right a:hover { color: var(--accent-amber); }
.dot-sep { color: var(--accent-amber); margin: 0 6px; }

.heart-beat {
    color: #E85D5D;
    display: inline-block;
    animation: heartBeat 1.5s ease-in-out infinite;
}
@keyframes heartBeat {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.2); }
    60%  { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .heart-beat, .wa-online-dot { animation: none; }
}

/* Mobile: zones stack, wordmark scales via clamp, glass kept */
@media (max-width: 767px) {
    .site-footer { padding: 48px 0 24px; }
    .footer-panel { padding: 24px 20px; border-radius: 16px; }
    .footer-zones { gap: 28px; }
    .fz-brand { text-align: center; }
    .fz-brand .footer-tagline { margin-left: auto; margin-right: auto; }
    .footer-social { justify-content: center; }
    .btn-whatsapp-footer { width: 100%; justify-content: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
}



/* =========================================================
   Sub-category page heading
   ========================================================= */
.subcat-heading-wrap { margin: 24px 0; }
.subcat-heading {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: #F5F0EA;
    display: inline-block;
    padding-bottom: 12px;
    border-bottom: 3px solid #E8913A;
    margin: 0;
}
.subcat-sub {
    margin: 24px 0 0;
    font-size: 14px;
    color: #A89E93;
}
