/* ===== Tokens ===== */
:root {
    --primary: #4F46E5;
    --primary-dark: #3730A3;
    --primary-light: #EEF2FF;
    --accent: #0D9488;
    --accent-light: #CCFBF1;
    --accent-2: #DB2777;
    --warm: #F59E0B;
    --ink: #0F172A;
    --cozy-dark: #2A1E4A;
    --cozy-dark-2: #1B1233;
    --cozy-surface: linear-gradient(160deg, var(--cozy-dark) 0%, var(--cozy-dark-2) 100%);
    --cozy-line: rgba(255, 255, 255, 0.08);
    --cozy-text-muted: #BCB2DC;
    --cozy-text-soft: #D8D2EC;
    --text: #1E293B;
    --text-muted: #64748B;
    --text-soft: #94A3B8;
    --bg: #FFFFFF;
    --bg-soft: #F8FAFC;
    --bg-tint: #F5F3FF;
    --border: #E2E8F0;
    --border-soft: #EEF2F7;
    --success: #059669;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 999px;
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);
    --shadow-glow: 0 12px 32px rgba(79, 70, 229, 0.22);
    --font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container: 1240px;
    --header-h: 76px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 700;
    letter-spacing: -0.02em;
}
p { margin: 0 0 1em; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; flex-shrink: 0; }
.skip-link {
    position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff;
    padding: 10px 18px; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus { left: 0; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font-heading); font-weight: 600; font-size: 15px;
    padding: 13px 24px; border-radius: var(--radius-full); border: 1.5px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
    white-space: nowrap; cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(79,70,229,.3); }
.btn-secondary { background: var(--cozy-dark); color: #fff; }
.btn-secondary:hover { background: var(--cozy-dark-2); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost { background: transparent; color: var(--primary); padding: 13px 6px; }
.btn-ghost:hover { color: var(--primary-dark); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1FB959; transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-block { width: 100%; }

/* ===== Topbar ===== */
.topbar { background: var(--cozy-surface); color: var(--cozy-text-soft); font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 20px; }
.topbar-contact { display: flex; gap: 20px; }
.topbar-contact a, .topbar-social a { display: inline-flex; align-items: center; gap: 6px; color: var(--cozy-text-soft); }
.topbar-contact a:hover, .topbar-social a:hover { color: #fff; }
.topbar-tagline { display: flex; align-items: center; gap: 6px; color: #C4B5FD; font-weight: 500; }
.topbar-social { display: flex; gap: 14px; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.9);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 21px; color: var(--ink); }
.brand-accent { color: var(--primary); }
.main-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.main-nav ul { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; white-space: nowrap; }
.main-nav > ul > li { flex-shrink: 0; }
.main-nav > ul > li > a, .dropdown-toggle {
    display: flex; align-items: center; gap: 4px; padding: 8px 12px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 14px; color: var(--text); background: none; border: none; white-space: nowrap;
}
.main-nav > ul > li > a:hover, .dropdown-toggle:hover { background: var(--primary-light); color: var(--primary); }
.main-nav a.is-active { background: var(--primary-light); color: var(--primary); }
.has-dropdown { position: relative; }
.dropdown-panel {
    position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%);
    background: #fff; border-radius: var(--radius-md); box-shadow: var(--shadow-lg); border: 1px solid var(--border-soft);
    padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 460px;
    opacity: 0; visibility: hidden; transform: translateX(-50%) translateY(8px); transition: all .18s ease; z-index: 50;
    white-space: normal;
}
.has-dropdown:hover .dropdown-panel,
.has-dropdown.is-open .dropdown-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown-panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text); }
.dropdown-panel a:hover { background: var(--bg-soft); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-actions .header-cta { white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; padding: 6px; color: var(--ink); }

@media (max-width: 1100px) {
    .main-nav > ul > li > a, .dropdown-toggle { padding: 8px 10px; font-size: 13px; }
    .header-actions .btn-ghost { display: none; }
}

/* ===== Hero ===== */
.hero {
    position: relative; overflow: hidden; padding: 90px 0 110px;
    background: linear-gradient(180deg, #F5F3FF 0%, #FFFFFF 70%);
}
.hero::before, .hero::after {
    content: ''; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0;
}
.hero::before { width: 420px; height: 420px; background: #C7D2FE; top: -140px; right: -80px; }
.hero::after { width: 360px; height: 360px; background: #99F6E4; bottom: -160px; left: -100px; }
.hero-inner { position: relative; z-index: 1; max-width: 780px; margin: 0 auto; text-align: center; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--border);
    padding: 7px 16px; border-radius: var(--radius-full); font-size: 13px; font-weight: 600; color: var(--primary);
    box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 20px; }
.hero h1 .accent { color: var(--primary); position: relative; }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 620px; margin: 0 auto 36px; }

.search-card {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 1px solid var(--border-soft);
    padding: 14px; display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 10px; max-width: 900px; margin: 0 auto;
    position: relative; z-index: 1; text-align: left;
}
.search-field { position: relative; }
.search-field label { display: block; font-size: 12px; font-weight: 600; color: var(--text-soft); text-transform: uppercase; letter-spacing: .04em; padding: 6px 14px 0; }
.search-field select, .search-field input {
    width: 100%; border: none; background: none; padding: 2px 14px 10px; font-size: 15px; font-family: inherit;
    color: var(--ink); font-weight: 600; appearance: none;
}
.search-field:not(:last-of-type) { border-right: 1px solid var(--border-soft); }
.search-field select:focus, .search-field input:focus { outline: none; }
.search-card .btn { align-self: center; margin: 4px; }

.hero-tags { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-tags span:first-child { color: var(--text-soft); font-size: 14px; }
.hero-tags a { font-size: 14px; font-weight: 600; color: var(--primary); background: var(--primary-light); padding: 6px 14px; border-radius: var(--radius-full); }
.hero-tags a:hover { background: var(--primary); color: #fff; }

/* ===== Stats ===== */
.stats-strip { background: var(--cozy-surface); padding: 46px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item .stat-num { font-family: var(--font-heading); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; color: #fff; }
.stat-item .stat-num span { color: #C4B5FD; }
.stat-item .stat-label { color: var(--cozy-text-muted); font-size: 14px; margin-top: 4px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head.align-left { margin: 0 0 44px; text-align: left; }
.section-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { color: var(--text-muted); font-size: 16.5px; }
.section-foot { text-align: center; margin-top: 48px; }
.row-between { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; }
.row-between .section-head { margin: 0; }

/* ===== How it works ===== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.step-card { position: relative; background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 34px 26px; box-shadow: var(--shadow-sm); }
.step-num { position: absolute; top: 22px; right: 26px; font-family: var(--font-heading); font-weight: 800; font-size: 34px; color: var(--border); }
.step-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--primary-light); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.step-card h3 { font-size: 18px; margin-bottom: 8px; }
.step-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

/* ===== Category tiles ===== */
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category-tile {
    background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 26px 20px;
    text-align: center; transition: all .2s ease; box-shadow: var(--shadow-sm);
}
.category-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.category-tile .cat-icon {
    width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
    background: var(--primary-light); color: var(--primary);
}
.category-tile h3 { font-size: 15.5px; margin-bottom: 4px; }
.category-tile span { font-size: 13px; color: var(--text-soft); }

/* ===== Business cards ===== */
.business-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.business-card {
    background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-sm); transition: all .22s ease; display: flex; flex-direction: column;
}
.business-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.business-card-top { height: 64px; background: linear-gradient(120deg, var(--primary-light), var(--accent-light)); position: relative; }
.business-card-badge {
    position: absolute; top: 14px; left: 14px; background: #fff; color: var(--primary); font-size: 12px; font-weight: 700;
    padding: 5px 12px; border-radius: var(--radius-full); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 5px;
}
.business-card-badge.badge-new { color: var(--accent); }
.business-card-body { padding: 18px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.avatar { width: 66px; height: 66px; border-radius: 18px; border: 4px solid #fff; box-shadow: var(--shadow-sm); object-fit: cover; background: #fff; }
.avatar-initials {
    display: flex; align-items: center; justify-content: center; color: #fff; font-family: var(--font-heading);
    font-weight: 800; font-size: 22px;
}
.business-card h3 { font-size: 17.5px; margin: 14px 0 4px; }
.business-card h3 a { color: var(--ink); }
.business-card h3 a:hover { color: var(--primary); }
.biz-meta { display: flex; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }
.biz-meta span { display: inline-flex; align-items: center; gap: 5px; }
.biz-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 14px; flex: 1; }
.biz-rating { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.stars { display: inline-flex; gap: 2px; }
.star { width: 15px; height: 15px; }
.star-full { color: var(--warm); }
.star-half { color: var(--warm); opacity: .55; }
.star-empty { color: var(--border); }
.rating-num { font-weight: 700; font-size: 13.5px; color: var(--ink); }
.rating-count { font-size: 13px; color: var(--text-soft); }
.biz-card-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--border-soft); }
.cat-pill { font-size: 12px; font-weight: 600; color: var(--accent); background: var(--accent-light); padding: 5px 12px; border-radius: var(--radius-full); }
.biz-card-foot .link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 700; font-size: 13.5px; }

/* ===== Tabs (Featured / Recent) ===== */
.tab-switch { display: inline-flex; background: var(--bg-soft); border-radius: var(--radius-full); padding: 5px; gap: 4px; }
.tab-switch button { border: none; background: none; padding: 10px 22px; border-radius: var(--radius-full); font-weight: 600; font-size: 14.5px; color: var(--text-muted); }
.tab-switch button.is-active { background: #fff; color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ===== Cities ===== */
.city-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.city-tile { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 20px 14px; text-align: center; box-shadow: var(--shadow-sm); }
.city-tile:hover { border-color: var(--primary); transform: translateY(-4px); }
.city-flag { display: flex; justify-content: center; margin-bottom: 10px; }
.country-badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 26px; padding: 0 8px;
    border-radius: 8px; color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 12px; letter-spacing: .03em;
}
.city-tile h4 { font-size: 14.5px; margin-bottom: 2px; }
.city-tile span { font-size: 12.5px; color: var(--text-soft); }

/* ===== Services (what a4array offers) ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: #fff; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); padding: 30px; box-shadow: var(--shadow-sm); }
.service-card .cat-icon { width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.service-card h3 { font-size: 18px; margin-bottom: 8px; }
.service-card p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 0; }
.service-card:nth-child(6n+1) .cat-icon, .service-card.tone-indigo .cat-icon { background: var(--primary-light); color: var(--primary); }
.service-card:nth-child(6n+2) .cat-icon, .service-card.tone-teal .cat-icon { background: var(--accent-light); color: var(--accent); }
.service-card:nth-child(6n+3) .cat-icon, .service-card.tone-pink .cat-icon { background: #FCE7F3; color: var(--accent-2); }
.service-card:nth-child(6n+4) .cat-icon, .service-card.tone-amber .cat-icon { background: #FEF3C7; color: var(--warm); }
.service-card:nth-child(6n+5) .cat-icon, .service-card.tone-violet .cat-icon { background: #EDE9FE; color: #7C3AED; }
.service-card:nth-child(6n+6) .cat-icon, .service-card.tone-green .cat-icon { background: #D1FAE5; color: var(--success); }

/* ===== Mission / split section ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split-visual { position: relative; }
.mission-card { background: linear-gradient(155deg, var(--primary) 0%, #6D28D9 100%); border-radius: var(--radius-lg); padding: 44px; color: #fff; position: relative; overflow: hidden; }
.mission-card::after { content: ''; position: absolute; width: 220px; height: 220px; background: rgba(255,255,255,.08); border-radius: 50%; bottom: -80px; right: -60px; }
.mission-card h3 { color: #fff; font-size: 22px; }
.mission-card p { color: #E0E7FF; }
.mission-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; position: relative; z-index: 1; }
.mission-stats div strong { display: block; font-family: var(--font-heading); font-size: 26px; }
.mission-stats div span { font-size: 13px; color: #C7D2FE; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; font-size: 15px; }
.check-list li svg { flex-shrink: 0; width: 22px; height: 22px; background: var(--accent-light); color: var(--accent); border-radius: 50%; padding: 4px; margin-top: 1px; }

/* ===== Testimonials ===== */
.testimonial-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-sm); }
.testimonial-card .quote-icon { color: var(--primary-light); width: 34px; height: 34px; margin-bottom: 10px; }
.testimonial-card p { font-size: 15px; color: var(--text); margin-bottom: 20px; }
.testimonial-person { display: flex; align-items: center; gap: 12px; }
.testimonial-person .avatar-initials { width: 44px; height: 44px; border-radius: 50%; font-size: 15px; border: none; }
.testimonial-person strong { display: block; font-size: 14.5px; }
.testimonial-person span { font-size: 13px; color: var(--text-soft); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; }
.faq-question {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none;
    padding: 20px 24px; text-align: left; font-family: var(--font-heading); font-weight: 700; font-size: 15.5px; color: var(--ink);
}
.faq-question svg { flex-shrink: 0; transition: transform .2s ease; color: var(--primary); }
.faq-item.is-open .faq-question svg { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-answer-inner { padding: 0 24px 22px; color: var(--text-muted); font-size: 14.5px; }
.faq-item.is-open .faq-answer { max-height: 400px; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--primary) 0%, #6D28D9 60%, #0D9488 130%); padding: 64px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { color: #fff; font-size: 1.7rem; margin-bottom: 8px; }
.cta-band p { color: #E0E7FF; margin: 0; max-width: 520px; }
.cta-band .btn-light { flex-shrink: 0; }

/* ===== Footer ===== */
.site-footer { background: var(--cozy-surface); color: var(--cozy-text-muted); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.1fr; gap: 30px; padding-bottom: 50px; border-bottom: 1px solid var(--cozy-line); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; margin: 16px 0 20px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--cozy-line); border-radius: 50%; color: var(--cozy-text-soft); }
.footer-social a:hover { background: var(--primary); color: #fff; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 11px; }
.footer-col a { font-size: 14px; color: var(--cozy-text-muted); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding: 24px 0; flex-wrap: wrap; gap: 12px; }
.footer-bottom-inner p { margin: 0; font-size: 13.5px; }
.footer-bottom-inner ul { display: flex; gap: 22px; }
.footer-bottom-inner a { font-size: 13.5px; color: var(--cozy-text-muted); }
.footer-bottom-inner a:hover { color: #fff; }

#back-to-top {
    position: fixed; bottom: 28px; right: 28px; width: 46px; height: 46px; border-radius: 50%; background: var(--cozy-dark);
    color: #fff; border: none; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .2s ease; z-index: 90;
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--primary); }

/* ===== Breadcrumbs ===== */
.breadcrumb-bar { background: var(--bg-soft); border-bottom: 1px solid var(--border-soft); padding: 16px 0; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--text-soft); }
.breadcrumb a { color: var(--text-muted); font-weight: 500; }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb .current { color: var(--ink); font-weight: 600; }

/* ===== Page hero (inner pages) ===== */
.page-hero { padding: 60px 0 70px; background: linear-gradient(180deg, #F5F3FF 0%, #fff 100%); text-align: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); }
.page-hero p { color: var(--text-muted); font-size: 16.5px; max-width: 620px; margin: 0 auto; }

/* ===== Listing page ===== */
.filters-bar { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 20px; margin-top: -54px; position: relative; z-index: 2; }
.filters-form { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr auto; gap: 12px; }
.filters-form .field label { display: block; font-size: 12px; font-weight: 700; color: var(--text-soft); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.filters-form .field .input-wrap { position: relative; }
.filters-form .field .input-wrap svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-soft); }
.filters-form input, .filters-form select {
    width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14.5px;
    font-family: inherit; color: var(--ink); background: var(--bg-soft); appearance: none;
}
.filters-form input.has-icon, .filters-form select.has-icon { padding-left: 38px; }
.filters-form input:focus, .filters-form select:focus { outline: none; border-color: var(--primary); background: #fff; }
.filters-form .field.field-btn { display: flex; align-items: flex-end; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.filter-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: var(--radius-full); }
.filter-chip a { display: flex; }
.listing-results-head { display: flex; align-items: center; justify-content: space-between; margin: 40px 0 26px; flex-wrap: wrap; gap: 14px; }
.listing-results-head h1, .listing-results-head h2 { font-size: 1.3rem; margin: 0; }
.listing-results-head p { margin: 0; color: var(--text-muted); font-size: 14.5px; }
.sort-select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 9px 14px; font-size: 14px; background: #fff; }
.empty-state { text-align: center; padding: 70px 20px; color: var(--text-muted); }
.empty-state .icon-lg { width: 52px; height: 52px; color: var(--border); margin: 0 auto 16px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 50px; }
.pagination a, .pagination span { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1.5px solid var(--border); font-weight: 600; font-size: 14px; color: var(--text); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination .is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== Business landing page (website.php) ===== */
.biz-site-ribbon { background: var(--primary-light); border-bottom: 1px solid var(--border-soft); font-size: 13.5px; }
.biz-site-ribbon-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; flex-wrap: wrap; color: var(--primary-dark); }
.biz-site-ribbon-inner > span { display: inline-flex; align-items: center; gap: 6px; }
.biz-site-ribbon-links { display: flex; gap: 20px; }
.biz-site-ribbon-links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); }
.biz-site-ribbon-links a:hover { color: var(--primary-dark); }
.biz-site-hero {
    padding: 64px 0 56px; text-align: center;
    background: linear-gradient(180deg, color-mix(in srgb, var(--biz-color, var(--primary)) 12%, white) 0%, #fff 80%);
}
.biz-site-hero-inner { max-width: 720px; margin: 0 auto; }
.biz-site-avatar { width: 104px; height: 104px; border-radius: 26px; font-size: 34px; margin: 0 auto 22px; }
.biz-site-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 10px; }
.biz-site-tagline { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto 18px; }
.biz-site-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: start; }

/* ===== Business detail page ===== */
.biz-header { padding: 40px 0 30px; }
.biz-header-top { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.biz-header .avatar, .biz-header .avatar-initials { width: 96px; height: 96px; border-radius: 22px; font-size: 30px; }
.biz-header h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 6px; }
.biz-header-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 14.5px; margin-bottom: 10px; }
.biz-header-meta span { display: inline-flex; align-items: center; gap: 6px; }
.biz-actions { margin-left: auto; display: flex; gap: 12px; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-full); }
.status-open { background: #D1FAE5; color: var(--success); }
.status-closed { background: #FEE2E2; color: #DC2626; }

.biz-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; padding-bottom: 90px; align-items: start; }
.biz-section { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 30px; margin-bottom: 26px; box-shadow: var(--shadow-sm); }
.biz-section h2 { font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.biz-section h2 svg { color: var(--primary); }

/* Anything written in the back-office rich-text editor lands in here. */
.rich-text > :first-child { margin-top: 0; }
.rich-text > :last-child { margin-bottom: 0; }
.rich-text p { margin: 0 0 14px; }
.rich-text h2 { font-size: 18px; margin: 24px 0 10px; }
.rich-text h3 { font-size: 16px; margin: 20px 0 9px; }
.rich-text h4 { font-size: 15px; margin: 18px 0 8px; }
.rich-text ul, .rich-text ol { margin: 0 0 14px; padding-left: 22px; }
.rich-text li { margin-bottom: 6px; }
.rich-text blockquote { margin: 0 0 14px; padding: 4px 0 4px 16px; border-left: 3px solid var(--primary-light); color: var(--text-muted); font-style: italic; }
.rich-text a { color: var(--primary); text-decoration: underline; }
.rich-text a:hover { text-decoration: none; }
.rich-text code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: var(--bg-soft); padding: 2px 6px; border-radius: 5px; }
.rich-text hr { border: none; border-top: 1px solid var(--border-soft); margin: 22px 0; }
.rich-text-center { text-align: center; }
.rich-text-center ul, .rich-text-center ol { display: inline-block; text-align: left; }

.services-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.services-tags span { background: var(--bg-soft); border: 1px solid var(--border-soft); padding: 8px 16px; border-radius: var(--radius-full); font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.services-tags span svg { color: var(--accent); width: 16px; height: 16px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hours-table td { padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.hours-table td:first-child { font-weight: 600; color: var(--ink); width: 130px; }
.hours-table tr.is-today td { color: var(--primary); font-weight: 700; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-grid .gallery-tile { aspect-ratio: 4/3; border-radius: 14px; background: linear-gradient(135deg, var(--primary-light), var(--accent-light)); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.map-placeholder {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
    background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 10px, #eef2f7 10px, #eef2f7 20px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-soft);
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 13.5px;
}
.map-placeholder--lg,
.map-embed--lg { min-height: 380px; aspect-ratio: 16 / 9; }
@media (max-width: 860px) {
    .map-placeholder--lg,
    .map-embed--lg { min-height: 260px; }
}
.map-address { font-size: 13.5px; color: var(--text-soft); margin: 0 0 10px; }
.map-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 220px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-soft);
}
.map-embed iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.map-embed--linked .map-embed-hit { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.map-embed + .contact-list { margin-top: 18px; }

.review-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 8px;
    padding: 16px 18px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
}
.review-summary-num {
    font-size: 36px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--ink);
}
.review-summary-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.review-summary-meta .stars { gap: 3px; }
.review-summary-meta .star { width: 18px; height: 18px; }
.review-empty { margin: 0 0 6px; color: var(--text-muted); font-size: 14.5px; }
.review-list { margin-top: 4px; }
.review-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--border-soft); }
.review-item:last-child { border-bottom: none; }
.review-item .avatar-initials { width: 42px; height: 42px; border-radius: 50%; font-size: 14px; border: none; flex-shrink: 0; }
.review-body { flex: 1; min-width: 0; }
.review-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.review-head strong { font-size: 14.5px; }
.review-date { font-size: 12.5px; color: var(--text-soft); white-space: nowrap; }
.review-item .stars { margin-bottom: 2px; }
.review-item p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--text-muted); }

.review-compose {
    margin-top: 22px;
    padding: 22px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
}
.review-compose h3 { font-size: 17px; margin: 0 0 16px; }
.review-compose-note { color: var(--text-muted); font-size: 14.5px; margin: 0 0 14px; }
.review-compose-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.review-form { display: block; width: 100%; }
.review-field { display: block; width: 100%; margin: 0 0 18px; }
.review-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
    margin: 0 0 8px;
}

.star-picker {
    position: relative;
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 4px;
}
.star-picker-input {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.star-picker-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #CBD5E1;
    line-height: 0;
}
.star-picker-star svg { width: 28px; height: 28px; }
.star-picker-star:hover,
.star-picker-star:hover ~ .star-picker-star,
.star-picker-input:checked ~ .star-picker-star {
    color: #F59E0B;
}

.review-textarea {
    display: block;
    width: 100%;
    min-height: 120px;
    box-sizing: border-box;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    font-family: inherit;
    line-height: 1.5;
    color: var(--ink);
    background: #fff;
    resize: vertical;
}
.review-textarea:focus {
    outline: none;
    border-color: var(--primary);
}
.review-char-count {
    display: block;
    text-align: right;
    font-size: 12.5px;
    color: var(--text-soft);
    margin-top: 6px;
}
.review-char-count.is-over { color: #DC2626; font-weight: 700; }
.review-form .btn { margin-top: 4px; }

.sidebar-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 15.5px; margin-bottom: 16px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; font-size: 14px; }
.contact-list li:last-child { margin-bottom: 0; }
.contact-list svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.contact-list a { font-weight: 600; }
.cta-visit { text-align: center; background: linear-gradient(155deg, var(--primary), #6D28D9); border-radius: var(--radius-lg); padding: 30px 24px; color: #fff; }
.cta-visit h3 { color: #fff; font-size: 17px; }
.cta-visit p { color: #E0E7FF; font-size: 13.5px; }

.related-list li { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.related-list li:last-child { margin-bottom: 0; }
.related-list .avatar-initials { width: 40px; height: 40px; border-radius: 12px; font-size: 13px; border: none; }
.related-list a { font-size: 14px; font-weight: 600; color: var(--ink); }
.related-list a:hover { color: var(--primary); }
.related-list span { display: block; font-size: 12.5px; color: var(--text-soft); }

/* ===== Contact page ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 46px; align-items: start; }
.contact-info-card { background: var(--cozy-surface); border-radius: var(--radius-lg); padding: 40px 34px; color: #fff; }
.contact-info-card h2 { color: #fff; font-size: 22px; }
.contact-info-card > p { color: var(--cozy-text-soft); font-size: 14.5px; }
.contact-info-card .contact-list { margin: 26px 0; }
.contact-info-card .contact-list svg { color: #C4B5FD; }
.contact-info-card .contact-list a, .contact-info-card .contact-list span.value { color: #fff; }
.contact-info-card .footer-social a { background: var(--cozy-line); }
.form-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-md); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.form-group .req { color: #DC2626; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 13px 16px; font-size: 14.5px;
    font-family: inherit; color: var(--ink); background: var(--bg-soft); transition: border-color .15s ease, background .15s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); background: #fff; }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-error { color: #DC2626; font-size: 12.5px; margin-top: 6px; display: none; }
.form-group.has-error input, .form-group.has-error select, .form-group.has-error textarea { border-color: #DC2626; }
.form-group.has-error .form-error { display: block; }
.service-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.service-toggle { position: relative; }
.service-toggle input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.service-toggle span {
    display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: var(--radius-full);
    font-size: 13.5px; font-weight: 600; color: var(--text-muted); background: var(--bg-soft);
}
.service-toggle input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.form-success { display: none; text-align: center; padding: 40px 20px; }
.form-success.is-visible { display: block; }
.form-success .icon-lg { width: 60px; height: 60px; color: var(--success); margin: 0 auto 16px; }
.form-success h3 { font-size: 20px; }
#contact-form.is-hidden { display: none; }

.faq-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }

/* ===== About page ===== */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value-card { text-align: center; padding: 10px; }
.value-card .cat-icon { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center; background: var(--primary-light); color: var(--primary); }
.value-card h3 { font-size: 16px; }
.value-card p { font-size: 13.5px; color: var(--text-muted); margin: 0; }
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 30px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; padding-bottom: 40px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content: ''; position: absolute; left: -37px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--primary-light); }
.timeline-item .year { font-family: var(--font-heading); font-weight: 800; color: var(--primary); font-size: 14px; }
.timeline-item h3 { font-size: 17px; margin: 4px 0 6px; }
.timeline-item p { color: var(--text-muted); font-size: 14.5px; margin: 0; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.team-card h4 { font-size: 15.5px; margin-bottom: 2px; }
.team-card span { font-size: 13px; color: var(--text-soft); }

/* ===== Legal pages ===== */
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: start; padding: 60px 0 100px; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); background: var(--bg-soft); border-radius: var(--radius-md); padding: 22px; }
.legal-toc h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-soft); margin-bottom: 14px; }
.legal-toc li { margin-bottom: 10px; }
.legal-toc a { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.legal-toc a:hover { color: var(--primary); }
.legal-content h2 { font-size: 20px; margin-top: 40px; scroll-margin-top: calc(var(--header-h) + 20px); }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 15px; }
.legal-content ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal-content ul li { margin-bottom: 6px; }
.legal-updated { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 600; padding: 6px 14px; border-radius: var(--radius-full); margin-bottom: 10px; }

/* ===== Select2 theme ===== */

/* The plugin ships a generic grey look; this pins it to the site's. Loaded
   after select2.min.css in the head, so these win without !important.
   Anything the plugin does not restyle is inherited from the plain <select>
   rules above, which is why the three contexts each get a short block. */

/* Select2 writes its width inline, so only !important can hand the sizing
   back to the grid the field lives in. */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single {
    height: auto;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    padding: 11px 34px 11px 14px;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.select2-container--default .select2-selection--single:hover { border-color: #CBD5E1; }
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .12);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
    padding: 0;
    line-height: 1.35;
    font-size: 14.5px;
    color: var(--ink);
}
.select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--text-soft); }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 0; right: 10px; height: 100%; width: 18px; }
.select2-container--default .select2-selection--single .select2-selection__arrow b { border-color: var(--text-soft) transparent transparent; }
.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b { border-color: transparent transparent var(--text-soft); }

/* Hero card: the fields are borderless columns of one white card. */
.search-card .select2-container--default .select2-selection--single {
    border: none;
    background: none;
    box-shadow: none;
    padding: 2px 24px 10px 14px;
}
.search-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 15px;
    font-weight: 600;
}
.search-card .select2-container--default .select2-selection--single .select2-selection__arrow { right: 2px; }

/* Sort control: compact, white, sits on its own next to the count line. */
.listing-results-head .select2-container { width: auto !important; min-width: 210px; }
.listing-results-head .select2-container--default .select2-selection--single {
    padding: 9px 32px 9px 14px;
    background: #fff;
}
.listing-results-head .select2-container--default .select2-selection--single .select2-selection__rendered { font-size: 14px; }

.select2-container--default .select2-dropdown {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.select2-container--default .select2-search--dropdown { padding: 0; border-bottom: 1px solid var(--border-soft); }
.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 11px 14px;
    border: none;
    font: inherit;
    font-size: 14px;
    color: var(--ink);
    background: var(--bg-soft);
}
.select2-container--default .select2-search--dropdown .select2-search__field:focus { outline: none; background: #fff; }
.select2-container--default .select2-results > .select2-results__options { max-height: 260px; padding: 4px; }
.select2-container--default .select2-results__option {
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text);
}
/* 4.0 used [aria-selected], 4.1 renamed the state classes — both are matched. */
.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background: var(--primary-light);
    color: var(--primary-dark);
}
.select2-container--default .select2-results__option[aria-selected=true],
.select2-container--default .select2-results__option--selected {
    background: none;
    font-weight: 600;
    color: var(--primary-dark);
}
.select2-container--default .select2-results__message { padding: 16px 14px; font-size: 13px; color: var(--text-muted); text-align: center; }

/* ===== Live search ===== */

/* The old results stay readable while the new ones are on their way — a
   blank panel on every keystroke reads as broken. */
#listing-results { transition: opacity .18s ease; }
#listing-results.is-loading { opacity: .45; pointer-events: none; }

.filters-form .field .input-wrap .input-spinner {
    position: absolute; right: 12px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px;
    border: 2px solid var(--border); border-top-color: var(--primary); border-radius: 50%;
    opacity: 0; transition: opacity .15s ease;
}
.filters-form.is-searching .field .input-wrap .input-spinner { opacity: 1; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Mobile nav ===== */
@media (max-width: 1024px) {
    .steps-grid, .category-grid, .services-grid, .value-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
    .business-grid { grid-template-columns: repeat(2, 1fr); }
    .city-grid { grid-template-columns: repeat(3, 1fr); }
    .testimonial-track { grid-template-columns: 1fr; }
    .split { grid-template-columns: 1fr; }
    .biz-layout { grid-template-columns: 1fr; }
    .biz-site-duo { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; margin-bottom: 30px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; }
}

@media (max-width: 860px) {
    .topbar-tagline, .topbar-contact { display: none; }
    .main-nav {
        position: fixed; inset: var(--header-h) 0 0 0; background: #fff; padding: 20px 24px; overflow-y: auto;
        transform: translateX(100%); transition: transform .25s ease; z-index: 99;
    }
    .main-nav.is-open { transform: translateX(0); }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
    .main-nav > ul > li > a, .dropdown-toggle { width: 100%; font-size: 17px; padding: 14px 10px; justify-content: space-between; }
    .dropdown-panel { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; width: auto; grid-template-columns: 1fr 1fr; display: none; padding: 6px 10px; }
    .has-dropdown.is-open .dropdown-panel { display: grid; }
    .nav-toggle { display: block; }
    .header-actions .btn-primary.btn-sm { padding: 9px 14px; font-size: 13px; }
    .search-card { grid-template-columns: 1fr; }
    .search-field:not(:last-of-type) { border-right: none; border-bottom: 1px solid var(--border-soft); }
    .filters-form { grid-template-columns: 1fr 1fr; }
    .cta-band-inner { flex-direction: column; text-align: center; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .section { padding: 64px 0; }
    .hero { padding: 60px 0 80px; }
    .steps-grid, .category-grid, .business-grid, .services-grid, .value-grid, .team-grid, .city-grid, .stats-grid, .faq-mini-grid { grid-template-columns: 1fr 1fr; }
    .business-grid, .services-grid, .value-grid { grid-template-columns: 1fr; }
    .filters-form { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .row-between { flex-direction: column; align-items: flex-start; }
    .biz-actions { margin-left: 0; width: 100%; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Visitor auth modal + public reviews ---------- */

.header-user {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--ink);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-logout-form { display: inline; margin: 0; }

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal[hidden] { display: none; }

.auth-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .45);
}

.auth-modal-dialog {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 26px 26px;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    border: 0;
    background: var(--bg-soft);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
}

.auth-modal-close:hover { color: var(--ink); background: #E2E8F0; }

.auth-modal-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: var(--bg-soft);
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 18px;
}

.auth-tab {
    border: 0;
    background: transparent;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
}

.auth-tab.is-active {
    background: #fff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.auth-modal-title { font-size: 22px; margin: 0 0 6px; }
.auth-modal-lead { margin: 0 0 18px; color: var(--text-muted); font-size: 14px; }

.auth-form { display: none; }
.auth-form.is-active { display: block; }

.auth-field {
    display: block;
    margin-bottom: 14px;
}

.auth-field > span {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}

.auth-field .input,
.auth-field .textarea,
.review-form .textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}

.auth-field .textarea,
.review-form .textarea { resize: vertical; min-height: 110px; }

.auth-error {
    display: block;
    margin-top: 6px;
    color: #DC2626;
    font-size: 13px;
}

body.auth-modal-open { overflow: hidden; }

.flash-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1300;
    background: #0F172A;
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: var(--shadow-lg);
    max-width: min(92vw, 420px);
    text-align: center;
}

.flash-toast.is-error { background: #B91C1C; }

@media (max-width: 860px) {
    .header-user { display: none; }
    .header-actions .btn-ghost.btn-sm { display: none; }
}
