/* ==========================================================================
   tours.nct.sy — design system
   Northern Region Tourism Chamber. Built by Raizer.

   Light, photography-forward, editorial — the way international tour
   marketplaces are built. The chamber's deep green anchors the page
   (header, footer, buttons); gold is an accent, never a background.
   Arabic-first, RTL, Cairo throughout.
   ========================================================================== */

/* Self-hosted, never a CDN: Syrian networks make third-party font loading a
   coin flip, and a missing Arabic face breaks the whole page. Split by
   unicode-range so Latin text does not pull the Arabic file and vice versa. */
@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/cairo-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
    font-family: 'Cairo';
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
    src: url('/fonts/cairo-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

:root {
    /* brand */
    --green:        #0E5A34;
    --green-deep:   #083F24;
    --green-soft:   #E8F0EA;
    --gold:         #E9C46A;   /* decorative / on dark */
    --gold-ink:     #9A6F22;   /* gold as TEXT on light — passes contrast */

    /* surface */
    --page:         #FBF8F1;
    --card:         #FFFFFF;
    --sand:         #F2ECE0;
    --line:         #E5DDCC;
    --line-soft:    #EFE9DC;

    /* text */
    --text:         #1B2721;
    --muted:        #6A776F;
    --on-dark:      #F4F1E8;
    --on-dark-dim:  rgba(244, 241, 232, .72);

    /* form */
    --radius:       14px;
    --radius-lg:    22px;
    --radius-pill:  999px;

    --shadow-sm:    0 1px 2px rgba(16, 40, 28, .06), 0 1px 3px rgba(16, 40, 28, .04);
    --shadow:       0 4px 14px rgba(16, 40, 28, .07), 0 1px 3px rgba(16, 40, 28, .05);
    --shadow-lg:    0 18px 46px rgba(16, 40, 28, .13);

    --ease:         cubic-bezier(.32, .72, 0, 1);

    --gutter:       clamp(18px, 4vw, 40px);
    --shell:        1240px;
}

/* ---------------------------------------------------------------- reset */

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

* { margin: 0; padding: 0; }

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

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--page);
    direction: rtl;
    -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3 { line-height: 1.25; font-weight: 800; letter-spacing: -.01em; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

main { flex: 1; }

.visually-hidden {
    position: absolute; width: 1px; height: 1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(251, 248, 241, .92);
    backdrop-filter: saturate(140%) blur(10px);
    border-bottom: 1px solid var(--line-soft);
}

.site-header .shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 72px;
}

.wordmark { display: flex; align-items: center; gap: 12px; }
.wordmark .glyph { color: var(--green); }
.wordmark b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.wordmark span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.4; font-weight: 600; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav a {
    padding: 9px 15px;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    transition: background .18s var(--ease), color .18s var(--ease);
}
.site-nav a:hover { background: var(--green-soft); color: var(--green-deep); }
.site-nav a[aria-current="page"] { background: var(--green); color: #fff; }

/* ---------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .16s var(--ease), background .18s var(--ease),
                border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-deep); box-shadow: var(--shadow); }

.btn-ghost { background: var(--card); color: var(--green-deep); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); background: var(--green-soft); }

.btn-on-dark { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-on-dark:hover { background: rgba(255, 255, 255, .18); }

.btn-block { width: 100%; }
.btn-sm { padding: 9px 17px; font-size: 14px; }

/* ---------------------------------------------------------------- hero */

.hero {
    position: relative;
    isolation: isolate;
    min-height: clamp(420px, 56vh, 560px);
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to left, rgba(8, 63, 36, .92) 8%, rgba(8, 63, 36, .62) 52%, rgba(8, 63, 36, .34) 100%),
        linear-gradient(to top, rgba(8, 63, 36, .55), transparent 55%);
}

.hero-inner { padding-block: clamp(48px, 8vw, 88px); max-width: 720px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 6px 14px 6px 12px;
    border: 1px solid rgba(233, 196, 106, .45);
    border-radius: var(--radius-pill);
    background: rgba(233, 196, 106, .12);
    font-size: 13px;
    font-weight: 700;
    color: var(--gold);
}

.hero h1 {
    font-size: clamp(30px, 5.2vw, 52px);
    line-height: 1.18;
    text-wrap: balance;
    text-shadow: 0 2px 22px rgba(0, 0, 0, .25);
}

.hero p.lede {
    margin-top: 16px;
    font-size: clamp(15px, 1.9vw, 18px);
    color: rgba(255, 255, 255, .88);
    max-width: 54ch;
}

/* ---- search bar ---- */

.searchbar {
    display: flex;
    gap: 8px;
    margin-top: 30px;
    padding: 8px;
    background: rgba(255, 255, 255, .96);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-lg);
}

.searchbar .field {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding-inline-start: 16px;
    color: var(--muted);
}
.searchbar .field + .field { border-inline-start: 1px solid var(--line); }

.searchbar input,
.searchbar select {
    flex: 1;
    min-width: 0;
    padding: 11px 0;
    border: 0;
    background: none;
    font-size: 15.5px;
    color: var(--text);
}
.searchbar input::placeholder { color: var(--muted); }
.searchbar input:focus, .searchbar select:focus { outline: none; }
.searchbar select { cursor: pointer; }

@media (max-width: 720px) {
    .searchbar { flex-direction: column; border-radius: var(--radius-lg); }
    .searchbar .field + .field { border-inline-start: 0; border-top: 1px solid var(--line); }
    .searchbar .btn { width: 100%; }
}

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

.section { padding-block: clamp(44px, 7vw, 76px); }
.section-tight { padding-block: clamp(30px, 4vw, 44px); }

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(22px, 3vw, 30px); }
.section-head p { margin-top: 6px; color: var(--muted); font-size: 15px; }
.section-head .more { font-weight: 700; color: var(--green); display: inline-flex; align-items: center; gap: 6px; }
.section-head .more:hover { color: var(--green-deep); }

/* ---- trust strip ---- */

.trust {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    padding: 26px;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-item .ico {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--green-soft);
    color: var(--green);
}
.trust-item strong { display: block; font-size: 15.5px; }
.trust-item span { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------------- tour cards */

.grid-tours {
    display: grid;
    gap: clamp(18px, 2.4vw, 26px);
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
}

.tcard {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.tcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line); }

.tcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--sand); overflow: hidden; }
.tcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.tcard:hover .tcard-media img { transform: scale(1.045); }

.tcard-media .placeholder {
    width: 100%; height: 100%;
    display: grid; place-items: center;
    background: linear-gradient(140deg, var(--green-soft), var(--sand));
    color: rgba(14, 90, 52, .28);
}

.tcard-chip {
    position: absolute;
    inset-block-start: 12px;
    inset-inline-start: 12px;
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    background: rgba(8, 63, 36, .82);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
}

.tcard-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 18px; }

.tcard h3 { font-size: 17px; line-height: 1.45; }
.tcard h3 a::after { content: ''; position: absolute; inset: 0; } /* whole card clickable */

.tcard .route,
.tcard .by {
    display: flex; align-items: center; gap: 7px;
    font-size: 13.5px; color: var(--muted);
}
.tcard .route { color: var(--gold-ink); font-weight: 600; }
.tcard .route svg, .tcard .by svg { flex: 0 0 auto; opacity: .8; }

.tcard-foot {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; margin-top: auto; padding-top: 12px;
    border-top: 1px solid var(--line-soft);
}
.tcard .price { font-size: 19px; font-weight: 800; color: var(--green-deep); }
.tcard .price small { font-size: 12px; font-weight: 600; color: var(--muted); }
.tcard .no-price { font-size: 14px; font-weight: 700; color: var(--gold-ink); }

/* ---------------------------------------------------------------- city rail (secondary, not the headline) */

.city-rail { display: flex; gap: 12px; flex-wrap: wrap; }

.city-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
    transition: border-color .18s var(--ease), background .18s var(--ease), transform .18s var(--ease);
}
.city-pill:hover { border-color: var(--green); background: var(--green-soft); transform: translateY(-1px); }
.city-pill em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ---------------------------------------------------------------- steps */

.steps { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { position: relative; padding: 26px 22px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.step::before {
    counter-increment: s;
    content: counter(s);
    display: grid; place-items: center;
    width: 34px; height: 34px; margin-bottom: 14px;
    border-radius: 50%;
    background: var(--green-deep); color: var(--gold);
    font-size: 15px; font-weight: 800;
}
.step h3 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }

/* ---------------------------------------------------------------- listing page */

.listing { display: grid; gap: clamp(20px, 3vw, 34px); grid-template-columns: 274px 1fr; align-items: start; }
@media (max-width: 900px) { .listing { grid-template-columns: 1fr; } }

.filters {
    position: sticky; top: 92px;
    padding: 22px;
    background: var(--card);
    border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg);
}
@media (max-width: 900px) { .filters { position: static; } }

.filters h2 { font-size: 16px; margin-bottom: 4px; }
.fgroup { padding-block: 16px; border-top: 1px solid var(--line-soft); }
.fgroup:first-of-type { border-top: 0; }
.fgroup > label,
.fgroup > .flabel { display: block; margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: var(--muted); }

.input, select.input {
    width: 100%;
    padding: 11px 14px;
    background: var(--page);
    border: 1px solid var(--line);
    border-radius: 11px;
    font-size: 15px;
}
.input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(14, 90, 52, .1); }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.results-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; margin-bottom: 20px; flex-wrap: wrap;
}
.results-head .count { font-size: 15px; color: var(--muted); }
.results-head .count b { color: var(--text); }

/* ---------------------------------------------------------------- tour page */

.crumbs { display: flex; align-items: center; gap: 8px; padding-block: 20px 4px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--green); }
.crumbs svg { opacity: .5; }

.tour-title { font-size: clamp(25px, 3.7vw, 38px); margin-top: 8px; text-wrap: balance; }

.tour-sub { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.tour-sub .route { color: var(--gold-ink); font-weight: 700; display: inline-flex; align-items: center; gap: 7px; }

/* gallery: one lead image + a stack, like every major tour site */
.gallery {
    display: grid;
    gap: 10px;
    grid-template-columns: 2fr 1fr;
    margin-top: 22px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.gallery .lead { aspect-ratio: 16 / 10; }
.gallery .rest { display: grid; gap: 10px; grid-template-rows: 1fr 1fr; }
.gallery figure { background: var(--sand); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .rest figure { aspect-ratio: 16 / 9.6; }
@media (max-width: 760px) {
    .gallery { grid-template-columns: 1fr; }
    .gallery .rest { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
}

.tour-layout { display: grid; gap: clamp(22px, 3.4vw, 44px); grid-template-columns: 1fr 348px; align-items: start; padding-block: 34px 60px; }
@media (max-width: 980px) { .tour-layout { grid-template-columns: 1fr; } }

.panel { padding: 26px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius-lg); }
.panel + .panel { margin-top: 20px; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.panel h3 { font-size: 15.5px; }
.panel p { color: var(--text); }
.prose { white-space: pre-line; line-height: 1.95; }

.facts { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.fact { display: flex; align-items: center; gap: 12px; }
.fact .ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--green-soft); color: var(--green); flex: 0 0 auto; }
.fact b { display: block; font-size: 15.5px; }
.fact span { font-size: 13px; color: var(--muted); }

.place-list { display: grid; gap: 10px; }
.place {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 13px 15px; background: var(--page);
    border: 1px solid var(--line-soft); border-radius: 12px;
}
.place .ico { color: var(--gold-ink); flex: 0 0 auto; margin-top: 3px; }
.place b { font-size: 15px; font-weight: 700; }
.place span { display: block; font-size: 13.5px; color: var(--muted); }

.day { padding-block: 18px; border-top: 1px solid var(--line-soft); }
.day:first-of-type { border-top: 0; padding-top: 4px; }
.day-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.day-no {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 34px; height: 34px; border-radius: 10px;
    background: var(--green-deep); color: var(--gold);
    font-size: 14px; font-weight: 800;
}
.slots { list-style: none; display: grid; gap: 2px; padding-inline-start: 46px; }
.slot { display: flex; gap: 14px; padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.slot:last-child { border-bottom: 0; }
.slot time { flex: 0 0 96px; font-size: 13px; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; }
.slot p { font-size: 15px; }
@media (max-width: 560px) {
    .slots { padding-inline-start: 0; }
    .slot { flex-direction: column; gap: 2px; }
}

/* ---- sticky booking rail ---- */

.rail { position: sticky; top: 92px; display: grid; gap: 16px; }
@media (max-width: 980px) { .rail { position: static; } }

.book {
    padding: 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.book .amount { display: flex; align-items: baseline; gap: 8px; }
.book .amount b { font-size: 30px; font-weight: 800; color: var(--green-deep); letter-spacing: -.02em; }
.book .amount span { font-size: 13.5px; color: var(--muted); }
.book .ask { font-size: 19px; font-weight: 800; color: var(--gold-ink); }
.book hr { border: 0; border-top: 1px solid var(--line-soft); margin-block: 18px; }
.book .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 7px; font-size: 14.5px; }
.book .row span { color: var(--muted); }
.book .row b { font-weight: 700; }
.book .actions { display: grid; gap: 10px; margin-top: 18px; }

.revealed { display: grid; gap: 10px; }
.revealed a {
    display: flex; align-items: center; justify-content: center; gap: 9px;
    padding: 14px; border-radius: 12px; font-weight: 800; font-size: 16px;
    letter-spacing: .01em;
}
.revealed .tel { background: var(--green); color: #fff; }
.revealed .tel:hover { background: var(--green-deep); }
.revealed .wa { background: #E7F6EC; color: #10683C; border: 1px solid #BFE3CC; }
.revealed .wa:hover { background: #DBF0E3; }

.orgcard { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.orgcard img { width: 52px; height: 52px; object-fit: contain; border-radius: 11px; background: var(--sand); flex: 0 0 auto; }
.orgcard .avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 11px; background: var(--green-soft); color: var(--green); font-weight: 800; flex: 0 0 auto; }
.orgcard b { display: block; font-size: 15px; }
.orgcard span { font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- forms + notices */

.field-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field { display: block; }
.field > span { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 700; color: var(--muted); }

.notice {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 15px 18px; margin-bottom: 22px;
    border-radius: var(--radius);
    background: var(--green-soft);
    border: 1px solid #CFE3D5;
    color: #14472C;
    font-size: 14.5px;
}
.notice.warn { background: #FDF3E2; border-color: #F0DCB5; color: #7A5312; }
.notice svg { flex: 0 0 auto; margin-top: 3px; }

.errors { list-style: none; margin-bottom: 16px; padding: 14px 18px; border-radius: var(--radius); background: #FCEDEA; border: 1px solid #F2D2CA; color: #8C2F19; font-size: 14px; }
.errors li + li { margin-top: 4px; }

.empty {
    padding: clamp(40px, 8vw, 72px) 28px;
    text-align: center;
    background: var(--card);
    border: 1px dashed var(--line);
    border-radius: var(--radius-lg);
}
.empty .ico { color: var(--line); margin: 0 auto 14px; }
.empty h3 { font-size: 18px; margin-bottom: 6px; }
.empty p { color: var(--muted); font-size: 15px; }

/* ---------------------------------------------------------------- pagination */

.pagination, nav[role="navigation"] { margin-top: 30px; }
nav[role="navigation"] svg { display: inline; }
.pagination-list { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; }
nav[role="navigation"] a, nav[role="navigation"] span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 40px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 11px;
    background: var(--card); font-size: 14.5px; font-weight: 600;
}
nav[role="navigation"] a:hover { border-color: var(--green); color: var(--green); }

/* ---------------------------------------------------------------- footer */

.site-footer { margin-top: auto; background: var(--green-deep); color: var(--on-dark); }

.footer-main { display: grid; gap: 36px; grid-template-columns: 1.6fr 1fr 1fr; padding-block: clamp(40px, 6vw, 60px); }
@media (max-width: 820px) { .footer-main { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-main { grid-template-columns: 1fr; } }

.footer-main h3 { font-size: 14px; margin-bottom: 14px; color: var(--gold); letter-spacing: .02em; }
.footer-main p { font-size: 14.5px; color: var(--on-dark-dim); max-width: 40ch; }
.footer-links { list-style: none; display: grid; gap: 9px; font-size: 14.5px; }
.footer-links a { color: var(--on-dark-dim); }
.footer-links a:hover { color: var(--gold); }

.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.footer-brand .glyph { color: var(--gold); }
.footer-brand b { font-size: 17px; }

.footer-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 18px; flex-wrap: wrap;
    padding-block: 20px;
    border-top: 1px solid rgba(244, 241, 232, .14);
    font-size: 13.5px;
    color: var(--on-dark-dim);
}

/* "built by Raizer" — the real logo, inlined, never a text substitute */
.built-by { display: inline-flex; align-items: center; gap: 10px; }
.built-by span { font-size: 13px; color: var(--on-dark-dim); }
.built-by svg { height: 19px; width: auto; opacity: .95; transition: opacity .18s var(--ease); }
.built-by:hover svg { opacity: 1; }

/* ---------------------------------------------------------------- misc */

.mt-0 { margin-top: 0; }
.stack-sm { display: grid; gap: 10px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .tcard:hover { transform: none; }
    .tcard:hover .tcard-media img { transform: none; }
}


/* ==========================================================================
   DASHBOARD — chamber + company back office

   Same tokens, same components as the public site. The people who use this
   every day should not feel like they logged into a different product.
   ========================================================================== */

.user-chip {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 8px 6px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: var(--card);
}
.user-chip .who { text-align: start; line-height: 1.3; }
.user-chip .who b { display: block; font-size: 13.5px; font-weight: 700; }
.user-chip .who small { font-size: 11.5px; color: var(--muted); }
.user-chip .avatar {
    display: grid; place-items: center; flex: 0 0 auto;
    width: 32px; height: 32px; border-radius: 50%;
    background: var(--green-soft); color: var(--green);
    font-size: 14px; font-weight: 800;
}
.user-chip form { margin: 0; }
.linkbtn {
    background: none; border: 0; padding: 0; cursor: pointer;
    font: inherit; font-size: 13.5px; font-weight: 700; color: var(--green);
}
.linkbtn:hover { color: var(--green-deep); text-decoration: underline; }

/* ---- page scaffold ---- */

.dash { padding-block: clamp(24px, 4vw, 40px); }

.page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 20px; margin-bottom: 24px; flex-wrap: wrap;
}
.page-head h1 { font-size: clamp(22px, 3vw, 29px); }
.page-head .lede { margin-top: 6px; color: var(--muted); font-size: 15px; max-width: 62ch; }
.page-head .lede strong { color: var(--text); }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---- stat tiles ---- */

.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 24px; }
.tile { padding: 18px 20px; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius); }
.tile b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--green-deep); }
.tile span { font-size: 13.5px; color: var(--muted); }
.tile.alert b { color: var(--gold-ink); }

/* ---- filter chips ---- */

.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
    padding: 7px 15px; font-size: 13.5px; font-weight: 600;
    border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: var(--card); color: var(--muted);
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.on { background: var(--green); border-color: var(--green); color: #fff; }

/* ---- tables ---- */

.table-wrap {
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--radius-lg); overflow-x: auto;
}
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th, .table td { padding: 14px 16px; text-align: start; vertical-align: middle; }
.table thead th {
    font-size: 12.5px; font-weight: 700; color: var(--muted);
    background: var(--page); border-bottom: 1px solid var(--line-soft);
    white-space: nowrap;
}
.table tbody tr + tr td { border-top: 1px solid var(--line-soft); }
.table tbody tr:hover { background: rgba(14, 90, 52, .02); }
.table .strong { font-weight: 700; }
.table small { display: block; color: var(--muted); font-size: 12.5px; }
.table a { color: var(--green); font-weight: 600; }
.table a:hover { text-decoration: underline; }
.table .row-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table .row-form select,
.table .row-form input { padding: 8px 11px; font-size: 13.5px; border-radius: 9px; }
.table .row-form input { max-width: 108px; }

/* ---- badges ---- */

.badge {
    display: inline-block; padding: 4px 11px; border-radius: var(--radius-pill);
    font-size: 12.5px; font-weight: 700; white-space: nowrap;
}
.badge.approved,
.badge.published,
.badge.booked   { background: #E4F4EA; color: #14683C; }
.badge.pending,
.badge.new,
.badge.contacted{ background: #FBF0D9; color: #8A6116; }
.badge.rejected,
.badge.suspended,
.badge.lost     { background: #FBE7E2; color: #92341C; }
.badge.draft,
.badge.archived { background: var(--sand); color: var(--muted); }

/* ---- editor forms ---- */

.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 620px) { .form-grid.two { grid-template-columns: 1fr; } }

textarea.input { line-height: 1.8; resize: vertical; }

.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius-pill);
    background: var(--card); font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.check:has(input:checked) { border-color: var(--green); background: var(--green-soft); color: var(--green-deep); }
.check input { width: auto; margin: 0; accent-color: var(--green); }

.repeat-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; }
.repeat-row .input { flex: 1; min-width: 132px; }
.repeat-row input[type="time"] { flex: 0 0 118px; min-width: 0; }
.repeat-row.indent { margin-inline-start: 24px; }

.day-block {
    padding: 16px; margin-top: 14px;
    background: var(--page); border: 1px solid var(--line-soft); border-radius: var(--radius);
}

.facts-list { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14.5px; }
.facts-list dt { color: var(--muted); }

/* ---- media manager ---- */

.shots { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 16px; }
.shot { border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.shot.is-cover { border-color: var(--green); box-shadow: 0 0 0 2px var(--green-soft); }
.shot img { width: 100%; height: 112px; object-fit: cover; }
.shot figcaption {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; padding: 9px 11px; font-size: 12.5px;
}
.shot figcaption form { margin: 0; }

input[type="file"].input { padding: 10px 12px; background: var(--page); }

/* ---- copyable invite link ---- */

.copybox { display: grid; gap: 8px; }
.copybox code {
    display: block; padding: 12px 14px; font-size: 13px; direction: ltr; text-align: left;
    background: var(--green-deep); color: var(--gold);
    border-radius: 10px; word-break: break-all; font-family: ui-monospace, monospace;
}

/* ---- slim dashboard footer ---- */

.dash-footer {
    margin-top: auto; padding-block: 22px;
    border-top: 1px solid var(--line-soft);
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted);
}
.dash-footer .built-by span { color: var(--muted); }
.dash-footer .built-by svg { height: 17px; }

[x-cloak] { display: none !important; }


/* ---- guide ---------------------------------------------------------- */

.guide { display: grid; grid-template-columns: 230px 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .guide { grid-template-columns: 1fr; } }

.guide-nav { position: sticky; top: 92px; display: grid; gap: 4px; }
@media (max-width: 860px) { .guide-nav { position: static; grid-auto-flow: column; overflow-x: auto; } }
.guide-nav a {
    padding: 10px 15px; border-radius: 11px; font-size: 14.5px; font-weight: 600;
    color: var(--muted); white-space: nowrap;
}
.guide-nav a:hover { background: var(--green-soft); color: var(--green-deep); }
.guide-nav a[aria-current="page"] { background: var(--green); color: #fff; }

.guide-body { max-width: 74ch; }
.guide-body h1 { font-size: clamp(25px, 3.6vw, 34px); }
.guide-body > p.lede { margin-top: 12px; font-size: 17px; color: var(--muted); }
.guide-body h2 {
    margin-top: 40px; padding-top: 22px; font-size: 21px;
    border-top: 1px solid var(--line-soft);
}
.guide-body h3 { margin-top: 24px; font-size: 16.5px; }
.guide-body p { margin-top: 12px; line-height: 1.9; }
.guide-body ul, .guide-body ol { margin-top: 12px; padding-inline-start: 22px; line-height: 1.9; }
.guide-body li { margin-top: 6px; }
.guide-body strong { font-weight: 700; }
.guide-body code {
    padding: 2px 7px; border-radius: 6px; background: var(--sand);
    font-family: ui-monospace, monospace; font-size: 13.5px; direction: ltr; display: inline-block;
}

.steps-num { counter-reset: gs; list-style: none; padding: 0; margin-top: 18px; }
.steps-num > li {
    position: relative; padding: 0 46px 0 0; margin-top: 20px; min-height: 34px;
}
.steps-num > li::before {
    counter-increment: gs; content: counter(gs);
    position: absolute; inset-inline-start: 0; top: 0;
    display: grid; place-items: center; width: 32px; height: 32px;
    border-radius: 50%; background: var(--green-deep); color: var(--gold);
    font-size: 14px; font-weight: 800;
}
.steps-num > li b { display: block; font-size: 16px; }
.steps-num > li p { margin-top: 4px; color: var(--muted); font-size: 15px; }

.callout {
    display: flex; gap: 12px; align-items: flex-start;
    margin-top: 20px; padding: 16px 18px; border-radius: var(--radius);
    background: var(--green-soft); border: 1px solid #CFE3D5; font-size: 14.5px; line-height: 1.8;
}
.callout.warn { background: #FDF3E2; border-color: #F0DCB5; }
.callout svg { flex: 0 0 auto; margin-top: 3px; color: var(--green); }
.callout.warn svg { color: var(--gold-ink); }

.role-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.role-card {
    display: block; padding: 24px; background: var(--card);
    border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
    transition: border-color .18s var(--ease), transform .18s var(--ease);
}
.role-card:hover { border-color: var(--green); transform: translateY(-2px); }
.role-card .ico {
    display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
    border-radius: 12px; background: var(--green-soft); color: var(--green);
}
.role-card b { display: block; font-size: 17px; }
.role-card span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }


/* Photo credit. CC BY / BY-SA oblige us to show it; keep it legible but quiet. */
.gallery figure { position: relative; }
.gallery .credit {
    position: absolute;
    inset-inline-start: 0; inset-block-end: 0;
    max-width: 100%;
    padding: 5px 10px;
    background: linear-gradient(to top, rgba(8, 63, 36, .78), rgba(8, 63, 36, 0));
    color: rgba(255, 255, 255, .88);
    font-size: 11.5px; line-height: 1.5;
    direction: ltr; text-align: left;
}
.gallery .credit a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }


/* ---- guide: table of contents + contract clause --------------------- */

.toc {
    margin-top: 26px; padding: 20px 24px;
    background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--radius);
}
.toc b { display: block; margin-bottom: 10px; font-size: 14px; color: var(--muted); }
.toc ol { margin: 0; padding-inline-start: 20px; }
.toc li { margin-top: 5px; }
.toc a { color: var(--green); font-weight: 600; }
.toc a:hover { text-decoration: underline; }

.guide-body h2[id] { scroll-margin-top: 90px; }

.clause {
    margin-top: 18px; padding: 22px 24px;
    background: var(--card);
    border: 1px solid var(--line);
    border-inline-start: 4px solid var(--green);
    border-radius: var(--radius);
}
.clause p { margin-top: 12px; line-height: 1.95; }
.clause p:first-child { margin-top: 0; color: var(--green-deep); }

.guide-body .table-wrap { margin-top: 16px; }


/* ---- guide: screenshots + checklist ---------------------------------- */

.shot-figure { margin-top: 20px; }
.shot-figure img {
    width: 100%; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.shot-figure figcaption {
    margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.7;
}

.checklist { list-style: none; padding: 0; margin-top: 14px; }
.checklist li {
    position: relative; padding-inline-start: 30px; margin-top: 10px; line-height: 1.8;
}
.checklist li::before {
    content: ''; position: absolute; inset-inline-start: 0; top: 9px;
    width: 16px; height: 9px;
    border-inline-start: 2.5px solid var(--green);
    border-block-end: 2.5px solid var(--green);
    transform: rotate(-45deg);
}


/* ---- featured event banner ------------------------------------------ */

.event-banner {
    display: grid; grid-template-columns: 1.1fr 1fr;
    background: var(--green-deep); color: var(--on-dark);
    border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform .2s var(--ease);
}
.event-banner:hover { transform: translateY(-2px); }
.event-banner img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
@media (max-width: 760px) { .event-banner { grid-template-columns: 1fr; } }

.event-body { padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.event-body h2 { font-size: clamp(22px, 3.2vw, 32px); line-height: 1.25; }
.event-body p { color: var(--on-dark-dim); font-size: 15.5px; line-height: 1.8; }

.event-date {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px; border-radius: var(--radius-pill);
    background: rgba(233, 196, 106, .14); border: 1px solid rgba(233, 196, 106, .4);
    color: var(--gold); font-size: 13px; font-weight: 700;
}

.event-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    padding: 5px 12px; border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
    font-size: 12.5px; font-weight: 600;
}
.tag.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.tcard-chip.free {
    inset-inline-start: auto; inset-inline-end: 12px;
    background: var(--gold); color: var(--ink);
}

.cta-hint { font-size: 14px; font-weight: 700; color: var(--gold-ink); }
.cta-hint.open { color: var(--green); }
