/* ============================================================
   CHESHAM HUB � style.css
   All site styles live here. Do not add <style> blocks to PHP.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Primary accent = deep amber/bronze (the departure-board amber, readable on light) */
    --green:        #b3760f;
    --green-dark:   #8a5a0a;
    --green-light:  #fbf0d6;
    /* Station palette */
    --ink:          #0d1320;   /* board-dark navy: header / hero / footer / nav */
    --ink-2:        #1f3650;   /* navy gradient partner */
    --amber:        #ffb12b;   /* bright board amber: highlights, glows, dark-bg accents */
    --amber-soft:   #ffd479;
    --text:         #15202c;   /* navy-ink body text */
    --muted:        #5e6b78;
    --border:       rgba(20,35,55,0.10);
    --bg:           #f6f5f1;   /* warm off-white */
    --card:         #ffffff;
    --r:            12px;
    --rsm:          8px;
    --nav-h:        64px; /* mobile bottom nav height */
}

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

/* �� HEADER �� */
.site-header {
    background: var(--ink);
    border-bottom: 1px solid rgba(255,255,255,0.07);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 62px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
}
.logo-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--rsm);
    background: var(--amber);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #11161f;
    font-size: 18px;
    box-shadow: 0 0 14px rgba(255,177,43,0.35);
}
.logo-name {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    line-height: 1;
    color: #fff;
}
.logo-sub {
    font-size: 0.68rem;
    color: var(--amber);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.header-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: var(--rsm);
    background: var(--amber);
    color: #11161f;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}
.header-btn:hover { background: var(--amber-soft); box-shadow: 0 0 16px rgba(255,177,43,0.4); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-link {
    color: #cfd8e6;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.header-link:hover { color: var(--amber); }

/* �� HERO �� */
.hero {
    background: linear-gradient(140deg, #0c1322 0%, #1f3650 100%);
    color: #fff;
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
    border-bottom: 3px solid var(--amber);
}
.hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 400;
    margin-bottom: 0.75rem;
    line-height: 1.1;
}
.hero p {
    font-size: 1.1rem;
    opacity: 0.85;
    max-width: 520px;
    margin: 0 auto 2rem;
}
.hero-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.hbtn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 22px;
    border-radius: var(--rsm);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.15s;
}
.hbtn-white { background: #fff; color: var(--green-dark); }
.hbtn-white:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.18); transform: translateY(-1px); }
.hbtn-outline { border: 1.5px solid rgba(255,255,255,0.55); color: #fff; }
.hbtn-outline:hover { background: rgba(255,255,255,0.12); }

/* �� STATS BAR �� */
.stats-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
}
.stats-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.7rem 1.5rem;
    display: flex;
    gap: 2rem;
    align-items: center;
    font-size: 0.85rem;
    color: var(--muted);
    flex-wrap: wrap;
}
.stats-inner strong { color: var(--text); }

/* �� MAIN LAYOUT �� */
.main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

/* �� SECTION HEADING �� */
.sec-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}
.sec-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 11px;
}
.sec-title i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--green-light);
    color: var(--green-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.sec-link {
    font-size: 0.875rem;
    color: var(--green);
    text-decoration: none;
}
.sec-link:hover { text-decoration: underline; }

/* �� EVENT CARDS �� */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 3rem;
}
.event-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1rem 1.25rem;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.event-card:hover {
    border-color: rgba(255,177,43,0.35);
    box-shadow: 0 2px 10px rgba(255,177,43,0.08);
}
.ebox {
    min-width: 50px;
    text-align: center;
    background: var(--green-light);
    border-radius: var(--rsm);
    padding: 8px 6px;
    flex-shrink: 0;
}
.ebox-day {
    font-family: 'DM Serif Display', serif;
    font-size: 1.55rem;
    color: var(--green-dark);
    line-height: 1;
}
.ebox-mon {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--green);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.ebod { flex: 1; min-width: 0; }
.etitle { font-weight: 500; font-size: 1rem; margin-bottom: 3px; }
.emeta {
    font-size: 0.8rem;
    color: var(--muted);
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}
.emeta span { display: flex; align-items: center; gap: 3px; }
.tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 2px 10px;
    border-radius: 999px;
}
.edesc {
    font-size: 0.855rem;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.5;
}

/* �� BUSINESS GRID �� */
.biz-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.fbtn {
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.8rem;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    color: var(--muted);
    font-family: inherit;
}
.fbtn.active, .fbtn:hover {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}
.biz-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 3rem;
}
.biz-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.1rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.biz-card:hover {
    border-color: rgba(255,177,43,0.35);
    box-shadow: 0 2px 10px rgba(255,177,43,0.08);
}
.biz-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--rsm);
    background: var(--green-light);
    color: var(--green-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 10px;
}
.biz-name { font-weight: 500; font-size: 0.95rem; margin-bottom: 2px; }
.biz-addr { font-size: 0.78rem; color: var(--muted); margin-bottom: 6px; }
.biz-desc { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.biz-links { margin-top: 8px; display: flex; gap: 12px; }
.biz-link {
    font-size: 0.78rem;
    color: var(--green);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 3px;
}
.biz-link:hover { text-decoration: underline; }

/* �� TRANSPORT SECTION �� */
.transport-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 3rem;
}
.tcard {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.1rem 1.25rem;
}
.tcard-title {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.tcard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.tcard-refresh {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-family: inherit;
}
.tcard-refresh:hover { color: var(--green); background: var(--green-light); }
.tcard-refresh.spinning i { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.trow {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-top: 1px solid var(--border);
    font-size: 0.875rem;
}
.trow:first-of-type { border-top: none; padding-top: 0; }
.tbadge {
    padding: 3px 9px;
    border-radius: 5px;
    font-weight: 500;
    font-size: 0.78rem;
    min-width: 42px;
    text-align: center;
    flex-shrink: 0;
}
.tinfo { flex: 1; }
.tdest { font-weight: 500; font-size: 0.85rem; }
.tvia { font-size: 0.72rem; color: var(--muted); }
.ttime {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--green-dark);
    white-space: nowrap;
    flex-shrink: 0;
}
.ttime.due { color: #c0392b; }
.ttime.soon { color: #e67e22; }

/* Loading / error states for transport */
.t-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    color: var(--muted);
    font-size: 0.82rem;
}
.t-loading i { animation: spin 1s linear infinite; color: var(--green); }
.t-error {
    padding: 10px 0;
    color: var(--muted);
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.t-updated {
    font-size: 0.7rem;
    color: var(--muted);
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* �� CTA STRIP �� */
.cta {
    background: var(--green-light);
    border-radius: var(--r);
    padding: 2.2rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}
.cta h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}
.cta p { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.25rem; }
.cta-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}
.cbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--rsm);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}
.cbtn-green { background: var(--green); color: #fff; }
.cbtn-green:hover { background: var(--green-dark); }
.cbtn-outline { border: 1px solid var(--green); color: var(--green); background: #fff; }
.cbtn-outline:hover { background: var(--green-light); }

/* �� EMPTY STATE �� */
.empty {
    text-align: center;
    padding: 3rem;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: var(--r);
    margin-bottom: 3rem;
}
.empty i { font-size: 2rem; display: block; margin-bottom: 0.5rem; opacity: 0.35; }

/* �� FOOTER �� */
.site-footer {
    background: var(--ink);
    border-top: 3px solid var(--amber);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: 0.8rem;
    color: #8b97aa;
}
.site-footer a { color: var(--amber); text-decoration: none; }

/* �� SUBMIT FORM STYLES �� */
.wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}
.type-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r);
    overflow: hidden;
    margin-bottom: 2rem;
}
.ttab {
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    border: none;
    background: none;
    font-family: inherit;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.ttab.active { background: var(--green); color: #fff; }
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.75rem;
}
.card h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    margin-bottom: 0.3rem;
}
.card .subtitle { font-size: 0.875rem; color: var(--muted); margin-bottom: 1.5rem; }
.form-row { margin-bottom: 1.1rem; }
.form-row label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 5px; }
.form-row label .req { color: var(--green); }
.form-row input,
.form-row textarea,
.form-row select {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: var(--rsm);
    font-size: 0.9rem;
    font-family: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.15s;
}
.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(255,177,43,0.12);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { font-size: 0.75rem; color: var(--muted); margin-top: 4px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--green);
    color: #fff;
    border: none;
    border-radius: var(--rsm);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.submit-btn:hover { background: var(--green-dark); }
.notice {
    padding: 10px 14px;
    border-radius: var(--rsm);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
}
.notice-err { background: #FCEBEB; color: #791F1F; }
.notice-ok  { background: var(--green-light); color: var(--green-dark); }
.notice ul  { margin-left: 1.2rem; margin-top: 4px; }
.success-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2.5rem;
    text-align: center;
}
.success-icon { font-size: 3rem; color: var(--green); margin-bottom: 1rem; display: block; }
.success-card h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
.success-card p { color: var(--muted); margin-bottom: 1.5rem; }
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--green);
    text-decoration: none;
    font-weight: 500;
}
.back-link:hover { text-decoration: underline; }

/* �� ROUTE MODAL �� */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(4,7,12,0.66);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal {
    --amber: #ffb12b;
    --led:   #eaf2ff;
    background: radial-gradient(130% 90% at 50% -10%, #1a2333 0%, #0b0f17 60%);
    border: 1px solid #20293a;
    border-radius: 16px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,.04);
    animation: modal-in 0.2s ease;
}
@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to   { opacity: 1; transform: none; }
}

.modal-head {
    padding: 1.05rem 1.25rem 0.95rem;
    border-bottom: 1px solid #222c3d;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    background: rgba(255,255,255,.015);
}
.modal-badge {
    font-family: 'VT323', ui-monospace, monospace;
    padding: 2px 13px;
    border-radius: 7px;
    font-weight: 400;
    font-size: 1.5rem;
    line-height: 1.15;
    flex-shrink: 0;
    margin-top: 1px;
    background: #11161f !important;
    color: var(--amber) !important;
    border: 1px solid rgba(255,177,43,.5);
    text-shadow: 0 0 10px rgba(255,177,43,.4);
}
.modal-title-wrap { flex: 1; min-width: 0; }
.modal-title {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.02rem;
    font-weight: 500;
    line-height: 1.35;
    margin-bottom: 2px;
    color: var(--led);
}
.modal-operator { font-size: 0.76rem; color: #8190a6; }
.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7790;
    font-size: 24px;
    padding: 0 0 0 8px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s;
}
.modal-close:hover { color: var(--amber); }

.modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 0.85rem 0;
}

/* Stop list — tube-line diagram */
.stop-list { list-style: none; padding: 0 1.4rem; position: relative; }
.stop-item {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 7px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    color: #aab6c9;
    position: relative;
}
.stop-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #0b0f17;
    border: 2px solid #44506a;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: all .15s;
}
.stop-item.highlight .stop-dot {
    background: var(--amber);
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(255,177,43,.18), 0 0 12px rgba(255,177,43,.6);
    animation: led-pulse 1.6s ease-in-out infinite;
}
.stop-item.highlight .stop-name {
    font-weight: 600;
    color: var(--amber);
    text-shadow: 0 0 10px rgba(255,177,43,.3);
}
.stop-label {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 4px;
    background: rgba(255,177,43,.14);
    color: var(--amber);
    letter-spacing: 0.03em;
}
.stop-name { flex: 1; }

/* The "line" connecting the stops */
.stop-list::before {
    content: '';
    position: absolute;
    left: calc(1.4rem + 4px);
    top: 16px;
    bottom: 16px;
    width: 3px;
    border-radius: 2px;
    background: linear-gradient(180deg, rgba(255,177,43,0) 0%, #3c4660 7%, #3c4660 93%, rgba(255,177,43,0) 100%);
}

.modal-foot {
    padding: 0.7rem 1.25rem;
    border-top: 1px solid #222c3d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.76rem;
    color: #6b7790;
    background: rgba(255,255,255,.015);
}
.modal-foot a { color: var(--amber); text-decoration: none; }
.modal-foot a:hover { text-decoration: underline; }

.modal-loading {
    padding: 2.2rem;
    text-align: center;
    color: #8190a6;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.modal-loading i { font-size: 1.6rem; animation: spin 1s linear infinite; color: var(--amber); }

/* Make bus rows look clickable */
.trow.clickable {
    cursor: pointer;
    border-radius: var(--rsm);
    margin: 0 -6px;
    padding-left: 6px;
    padding-right: 6px;
    transition: background 0.12s;
}
.trow.clickable:hover { background: var(--green-light); }
.mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    background: var(--ink);
    border-top: 1px solid rgba(255,255,255,0.08);
    z-index: 200;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}
.mobile-nav-inner {
    display: flex;
    height: 100%;
    align-items: stretch;
}
.mobile-nav-inner { padding: 0 8px; justify-content: space-evenly; }
.mnav-item {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: #8b97aa;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0;
    border: none;
    background: none;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s;
    padding: 7px 9px 9px;
    position: relative;
}
.mnav-item i { font-size: 25px; }
.mnav-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.mnav-item.active { color: var(--amber); }
.mnav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 2px;
    background: var(--amber);
    border-radius: 0 0 3px 3px;
}
.mnav-item:hover { color: var(--amber); }

/* Add padding-bottom on mobile so content isn't hidden under nav */
@media (max-width: 767px) {
    .mobile-nav { display: flex; }
    .main { padding-bottom: calc(var(--nav-h) + 1.5rem); }
    .wrap { padding-bottom: calc(var(--nav-h) + 1.5rem); }
    /* Hide desktop add-listing button on mobile (use nav instead) */
    .header-btn { display: none; }
}

/* �� RESPONSIVE �� */
@media (max-width: 640px) {
    .main { padding: 1.5rem 1rem; padding-bottom: calc(var(--nav-h) + 1.5rem); }
    .hero { padding: 2.5rem 1rem 2rem; }
    .transport-grid { grid-template-columns: 1fr; }
    .biz-grid { grid-template-columns: 1fr 1fr; }
    .stats-inner { gap: 1rem; }
    .form-2col { grid-template-columns: 1fr; }
    .card { padding: 1.25rem; }
    .wrap { padding: 1.5rem 1rem; padding-bottom: calc(var(--nav-h) + 1.5rem); }
}

/* ============================================================
   BUSINESSES PAGE + EVENTS PAGE + HOME WIDGETS
   ============================================================ */

/* �� PAGE HERO (smaller than main hero) �� */
.page-hero {
    background: linear-gradient(140deg, #0c1322 0%, #1f3650 100%);
    color: #fff;
    padding: 2.5rem 1.5rem 2rem;
    border-bottom: 3px solid var(--amber);
}
.page-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}
.page-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.15;
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-hero h1 i {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--amber);
    color: #11161f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 0 16px rgba(255,177,43,0.35);
}
.page-hero p { font-size: 0.9rem; opacity: 0.8; }

/* �� SEARCH + FILTER BAR �� */
.filter-bar {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    position: sticky;
    top: 62px;
    z-index: 90;
}
.filter-bar-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.search-input-wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
}
.search-input-wrap i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 17px;
    pointer-events: none;
}
.search-input {
    width: 100%;
    padding: 8px 12px 8px 34px;
    border: 1px solid var(--border);
    border-radius: var(--rsm);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--bg);
    transition: border-color 0.15s;
}
.search-input:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(255,177,43,0.1);
}
.filter-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}
.pill {
    padding: 5px 13px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    color: var(--muted);
    transition: all 0.12s;
    white-space: nowrap;
}
.pill:hover { border-color: var(--green); color: var(--green); }
.pill.active { background: var(--green); color: #fff; border-color: var(--green); }
.filter-date {
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--rsm);
    font-size: 0.82rem;
    font-family: inherit;
    background: var(--bg);
    color: var(--text);
    cursor: pointer;
}
.filter-date:focus { outline: none; border-color: var(--green); }
.results-count {
    font-size: 0.78rem;
    color: var(--muted);
    white-space: nowrap;
    margin-left: auto;
}

/* �� BUSINESSES GRID (full page) �� */
.biz-page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}
.biz-page-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.25rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.biz-page-card:hover {
    border-color: rgba(255,177,43,0.4);
    box-shadow: 0 4px 16px rgba(255,177,43,0.1);
    transform: translateY(-2px);
}
.biz-page-card .biz-icon {
    width: 42px; height: 42px;
    border-radius: var(--rsm);
    background: var(--green-light);
    color: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.biz-top { display: flex; gap: 10px; align-items: flex-start; }
.biz-top-text { flex: 1; min-width: 0; }
.biz-page-name { font-weight: 600; font-size: 0.95rem; margin-bottom: 2px; }
.biz-page-cat {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--green-dark);
    background: var(--green-light);
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
}
.biz-page-addr { font-size: 0.78rem; color: var(--muted); display: flex; gap: 4px; align-items: flex-start; }
.biz-page-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.5; flex: 1; }
.biz-page-footer {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

/* �� BIZ DETAIL MODAL �� */
.biz-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.biz-modal-overlay.open { display: flex; }
.biz-modal {
    background: var(--card);
    border-radius: var(--r);
    width: 100%;
    max-width: 560px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: modal-in 0.18s ease;
}
.biz-modal-head {
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 14px;
    align-items: flex-start;
    position: sticky;
    top: 0;
    background: var(--card);
    z-index: 1;
}
.biz-modal-icon {
    width: 68px; height: 68px;
    border-radius: var(--r);
    background: var(--green-light);
    color: var(--green-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}
.biz-modal-title { font-family: 'DM Serif Display', serif; font-size: 1.3rem; font-weight: 400; margin-bottom: 4px; }
.biz-modal-cat { font-size: 0.78rem; color: var(--green-dark); background: var(--green-light); padding: 2px 10px; border-radius: 999px; display: inline-block; }
.biz-modal-close {
    margin-left: auto;
    background: none; border: none; cursor: pointer;
    color: var(--muted); font-size: 24px; line-height: 1;
    padding: 0; flex-shrink: 0;
    transition: color 0.15s;
}
.biz-modal-close:hover { color: var(--text); }
.biz-modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.biz-modal-desc { font-size: 0.9rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.25rem; }
.biz-detail-rows { display: flex; flex-direction: column; gap: 10px; }
.biz-detail-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 0.875rem;
}
.biz-detail-row i { color: var(--green); font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.biz-detail-row a { color: var(--green); text-decoration: none; }
.biz-detail-row a:hover { text-decoration: underline; }
.biz-modal-actions { display: flex; gap: 10px; margin-top: 1.5rem; flex-wrap: wrap; }

/* �� EVENTS PAGE �� */
.events-page-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.event-page-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.1rem 1.25rem;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color 0.15s, box-shadow 0.15s;
    cursor: pointer;
}
.event-page-card:hover {
    border-color: rgba(255,177,43,0.35);
    box-shadow: 0 3px 12px rgba(255,177,43,0.09);
}
.event-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.event-modal-overlay.open { display: flex; }
.event-modal {
    background: var(--card);
    border-radius: var(--r);
    width: 100%;
    max-width: 540px;
    max-height: 88vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    animation: modal-in 0.18s ease;
}
.event-modal-head {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.event-modal-date {
    min-width: 54px;
    text-align: center;
    background: var(--green-light);
    border-radius: var(--rsm);
    padding: 10px 8px;
    flex-shrink: 0;
}
.event-modal-day { font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--green-dark); line-height: 1; }
.event-modal-mon { font-size: 0.7rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; }
.event-modal-title { font-family: 'DM Serif Display', serif; font-size: 1.25rem; font-weight: 400; margin-bottom: 6px; line-height: 1.3; }
.event-modal-close { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--muted); font-size: 24px; line-height: 1; padding: 0; flex-shrink: 0; transition: color 0.15s; }
.event-modal-close:hover { color: var(--text); }
.event-modal-body { padding: 1.25rem 1.5rem 1.5rem; }
.event-modal-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1.1rem; }
.event-modal-meta-row { display: flex; gap: 8px; align-items: center; font-size: 0.875rem; color: var(--muted); }
.event-modal-meta-row i { color: var(--green); font-size: 17px; }
.event-modal-desc { font-size: 0.9rem; line-height: 1.75; color: var(--muted); }

/* �� HOME WIDGETS �� */

/* Business of the Week */
.botw {
    background: linear-gradient(120deg, var(--green-dark) 0%, var(--green) 100%);
    border-radius: var(--r);
    padding: 1.5rem;
    color: #fff;
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: box-shadow 0.15s, transform 0.12s;
}
.botw:hover { box-shadow: 0 8px 24px rgba(176,118,15,0.35); transform: translateY(-2px); }
.botw-icon {
    width: 56px; height: 56px;
    border-radius: var(--r);
    background: rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
}
.botw-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.75; margin-bottom: 3px; }
.botw-name { font-family: 'DM Serif Display', serif; font-size: 1.3rem; font-weight: 400; margin-bottom: 3px; }
.botw-desc { font-size: 0.82rem; opacity: 0.85; line-height: 1.5; }
.botw-arrow { margin-left: auto; font-size: 22px; opacity: 0.6; flex-shrink: 0; }

/* Business slider */
.biz-slider-wrap { position: relative; overflow: hidden; margin-bottom: 3rem; }
.biz-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.biz-slider::-webkit-scrollbar { display: none; }
.biz-slide {
    flex: 0 0 244px;
    scroll-snap-align: start;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 0.85rem;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.biz-slide:hover { border-color: rgba(255,177,43,0.45); box-shadow: 0 6px 18px rgba(255,177,43,0.14); transform: translateY(-3px); }
.biz-slide .biz-media { height: 96px; margin-bottom: 0; }
.biz-slide .biz-icon { width: 36px; height: 36px; font-size: 17px; border-radius: var(--rsm); background: var(--green-light); color: var(--green-dark); display: flex; align-items: center; justify-content: center; }
.biz-slide-name { font-weight: 600; font-size: 0.9rem; line-height: 1.25; }
.biz-slide-cat { font-size: 0.7rem; color: var(--green); }
.biz-slide-metarow { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.biz-slide-desc {
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.slider-nav { display: flex; gap: 6px; margin-top: 10px; justify-content: flex-end; }
.slider-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: all 0.12s; }
.slider-btn:hover { background: var(--green); color: #fff; border-color: var(--green); }

/* Events widget on home */
.events-widget { display: flex; flex-direction: column; gap: 8px; margin-bottom: 3rem; }
.event-widget-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 0.9rem 1.1rem;
    display: flex;
    gap: 12px;
    align-items: center;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}
.event-widget-card:hover { border-color: rgba(255,177,43,0.35); box-shadow: 0 2px 10px rgba(255,177,43,0.08); }
.ewbox { min-width: 42px; text-align: center; background: var(--green-light); border-radius: var(--rsm); padding: 6px 4px; flex-shrink: 0; }
.ewbox-day { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--green-dark); line-height: 1; }
.ewbox-mon { font-size: 0.62rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: 0.05em; }
.ew-title { font-weight: 500; font-size: 0.9rem; margin-bottom: 2px; }
.ew-meta { font-size: 0.75rem; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.ew-arrow { margin-left: auto; color: var(--muted); font-size: 16px; flex-shrink: 0; }
.widget-viewall {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border: 1.5px solid var(--green);
    border-radius: var(--rsm);
    color: var(--green);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
    align-self: flex-start;
    margin-top: 4px;
}
.widget-viewall:hover { background: var(--green); color: #fff; }

/* No results state */
.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted);
    grid-column: 1/-1;
}
.no-results i { font-size: 2.5rem; display: block; margin-bottom: 0.75rem; opacity: 0.3; }
.no-results p { font-size: 0.9rem; }

@media (max-width: 640px) {
    .filter-bar { top: 62px; padding: 0.6rem 1rem; }
    .biz-page-grid { grid-template-columns: 1fr; }
    .biz-slide { flex: 0 0 180px; }
    .botw { flex-wrap: wrap; }
    .page-hero { padding: 1.75rem 1rem 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════
   LIVE DEPARTURE BOARD  (station / metro dot-matrix style)
   ═══════════════════════════════════════════════════════════ */
.board {
    --amber:      #ffb12b;
    --amber-soft: #ffd479;
    --amber-dim:  #9a6a1d;
    --led:        #eaf2ff;
    --green-led:  #37d67a;
    --red-led:    #ff5d5d;

    position: relative;
    overflow: hidden;
    border-radius: 14px;
    padding: 14px 16px 11px;
    background: radial-gradient(130% 90% at 50% -15%, #1a2333 0%, #0b0f17 62%);
    border: 1px solid #20293a;
    box-shadow: 0 12px 32px rgba(0,0,0,.20), inset 0 1px 0 rgba(255,255,255,.03);
    font-family: 'VT323', ui-monospace, 'Share Tech Mono', monospace;
    color: var(--amber);
}
/* faint scanlines + screen glow for the CRT/LED feel */
.board::after {
    content: "";
    position: absolute; inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(rgba(0,0,0,0) 0 2px, rgba(0,0,0,.10) 2px 3px);
    mix-blend-mode: multiply;
    opacity: .55;
}

.board-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 8px; margin-bottom: 5px;
    border-bottom: 1px solid #222c3d;
}
.board-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.28rem; line-height: 1; letter-spacing: .05em;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255,177,43,.35);
}
.board-title i { font-size: 1.05rem; }
.board-clock {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.25rem; letter-spacing: .07em;
    color: var(--led);
    text-shadow: 0 0 12px rgba(234,242,255,.3);
}
.board-clock .live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--green-led); box-shadow: 0 0 8px var(--green-led);
    animation: led-pulse 1.4s ease-in-out infinite;
}
@keyframes led-pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* shared grid for header + rows so columns line up */
.dep-cols, .dep-row {
    display: grid;
    grid-template-columns: 56px 48px 1fr 78px;
    gap: 10px; align-items: center;
}
.dep-cols {
    padding: 3px 0 5px;
    font-size: .95rem; letter-spacing: .12em; text-transform: uppercase;
    color: var(--amber-dim);
    border-bottom: 1px dashed #222c3d;
}
.dep-cols .ar { text-align: right; }

.dep-row {
    padding: 6px 0;
    font-size: 1.34rem; line-height: 1.12;
    border-bottom: 1px solid rgba(255,255,255,.035);
}
.dep-row:last-child { border-bottom: none; }
.dep-row.clickable { cursor: pointer; border-radius: 6px; transition: background .12s; }
.dep-row.clickable:hover { background: rgba(255,177,43,.08); }

/* Group label inside a board (e.g. "To London" / "Into Chesham") */
.dep-group {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 0 4px;
    font-family: 'VT323', ui-monospace, 'Share Tech Mono', monospace;
    font-size: 1.05rem;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--amber-dim);
    border-top: 1px dashed #222c3d;
    margin-top: 4px;
}
.dep-group:first-child { border-top: none; margin-top: 0; padding-top: 2px; }
.dep-group i { font-size: .95rem; color: var(--amber); }
.dep-group-note {
    margin-left: auto;
    font-family: 'DM Sans', sans-serif;
    font-size: .62rem;
    letter-spacing: .04em;
    color: #5b6678;
    text-transform: uppercase;
}

/* Collapsed "later departures" */
.dep-extra { display: none; }
#bus-body.show-all .dep-extra { display: grid; }
.board-more {
    width: 100%;
    margin-top: 4px;
    padding: 8px 0 2px;
    background: none;
    border: none;
    border-top: 1px dashed #222c3d;
    color: var(--amber);
    font-family: 'DM Sans', sans-serif;
    font-size: .74rem;
    font-weight: 500;
    letter-spacing: .03em;
    cursor: pointer;
    transition: color .15s;
}
.board-more:hover { color: var(--amber-soft); }

.dep-time {
    color: var(--led); letter-spacing: .03em;
    text-shadow: 0 0 9px rgba(234,242,255,.25);
}
.dep-line {
    text-align: center; font-size: 1rem; letter-spacing: .03em;
    padding: 1px 0; border-radius: 5px;
    border: 1px solid rgba(255,177,43,.45);
    color: var(--amber);
}
.dep-dest {
    color: var(--amber); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-shadow: 0 0 9px rgba(255,177,43,.25);
}
.dep-status {
    text-align: right; white-space: nowrap; letter-spacing: .02em;
    color: var(--amber-soft);
}
.dep-status.soon { color: var(--amber); }
.dep-status.due  { color: var(--green-led); animation: led-pulse 1s ease-in-out infinite; }
.dep-status .exp { display: block; font-size: .78em; color: var(--red-led); }

.board-foot {
    display: flex; align-items: center; gap: 10px;
    margin-top: 9px; padding-top: 8px;
    border-top: 1px solid #222c3d;
    font-family: 'DM Sans', sans-serif; font-size: .7rem; color: #5b6678;
}
.board-foot a { color: #8190a6; text-decoration: none; }
.board-foot a:hover { color: var(--amber); }
.board-refresh {
    display: flex; align-items: center; gap: 4px;
    padding: 3px 9px; border-radius: 6px;
    background: none; border: 1px solid #2a3447; color: #9fb0c9;
    font-family: 'DM Sans', sans-serif; font-size: .68rem; cursor: pointer;
    transition: border-color .15s, color .15s;
}
.board-refresh:hover { border-color: var(--amber); color: var(--amber); }
.board-refresh.spinning i { animation: spin .8s linear infinite; }

.board-msg {
    display: flex; align-items: center; gap: 8px;
    padding: 16px 2px; min-height: 60px;
    font-family: 'DM Sans', sans-serif; font-size: .85rem; color: #8b97aa;
}
.board-msg a { color: var(--amber); text-decoration: none; }
.board-msg i.spin { animation: spin 1s linear infinite; color: var(--amber); }

@media (max-width: 460px) {
    .dep-cols, .dep-row { grid-template-columns: 48px 40px 1fr 66px; gap: 8px; }
    .dep-row { font-size: 1.18rem; }
    .board-title { font-size: 1.12rem; }
    .board-clock { font-size: 1.08rem; }
}

/* ═══════════════════════════════════════════════════════════
   TIMETABLE PAGE
   ═══════════════════════════════════════════════════════════ */
.tt-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 2.5rem;
}
@media (max-width: 760px) { .tt-grid { grid-template-columns: 1fr; } }

.board-scroll { max-height: 360px; overflow-y: auto; }
.board-scroll::-webkit-scrollbar { width: 8px; }
.board-scroll::-webkit-scrollbar-track { background: transparent; }
.board-scroll::-webkit-scrollbar-thumb { background: #2a3447; border-radius: 4px; }

.dep-row.past { opacity: .34; }
.dep-row.next { background: rgba(255,177,43,.12); border-radius: 6px; }
.dep-row.next .dep-time { color: var(--amber); text-shadow: 0 0 9px rgba(255,177,43,.4); }

.svc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
}
.svc-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color .15s, box-shadow .15s;
}
.svc-card:hover {
    border-color: rgba(255,177,43,0.4);
    box-shadow: 0 3px 12px rgba(255,177,43,0.1);
}
.svc-top { display: flex; align-items: center; gap: 11px; }
.svc-badge {
    background: var(--ink);
    color: var(--amber);
    font-family: 'VT323', ui-monospace, monospace;
    font-size: 1.35rem;
    line-height: 1.1;
    min-width: 48px;
    text-align: center;
    border-radius: 8px;
    padding: 2px 9px;
    border: 1px solid rgba(255,177,43,.4);
    box-shadow: 0 0 12px rgba(255,177,43,.15);
    flex-shrink: 0;
}
.svc-name { font-weight: 500; font-size: 0.9rem; line-height: 1.3; }
.svc-links {
    display: flex;
    gap: 16px;
    margin-top: auto;
    padding-top: 9px;
    border-top: 1px solid var(--border);
}
.svc-link {
    font-size: 0.78rem;
    color: var(--green);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}
.svc-link:hover { text-decoration: underline; }
.svc-link i { font-size: 15px; }

/* ── Business cards: monogram avatar + featured emphasis ── */
.biz-mono {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.biz-page-card.featured {
    border-color: rgba(255,177,43,0.55);
    box-shadow: 0 4px 18px rgba(255,177,43,0.16);
}
.biz-feat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    align-self: flex-start;
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #7a4e08;
    background: linear-gradient(90deg, #ffe6a8, #ffd479);
    padding: 3px 9px;
    border-radius: 999px;
    margin-bottom: 2px;
}
.biz-feat i { font-size: 11px; }
.biz-page-cat i { font-size: 12px; vertical-align: -1px; }
.biz-price {
    font-weight: 700;
    color: var(--green-dark);
    font-size: 0.82rem;
    letter-spacing: 1px;
    margin-left: 7px;
    vertical-align: 1px;
}
.biz-page-hours {
    font-size: 0.78rem;
    color: var(--muted);
    display: flex;
    gap: 5px;
    align-items: center;
}
.biz-page-hours i { font-size: 13px; flex-shrink: 0; }

/* ── Business logos (avatar style) ── */
.biz-logo {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--border);
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}
.biz-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }

.biz-modal-icon.has-logo { background: #fff; border: 1px solid var(--border); padding: 5px; }
.biz-modal-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.botw-icon.has-logo { background: #fff; padding: 6px; }
.botw-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

.biz-icon.has-logo { background: #fff; border: 1px solid var(--border); padding: 3px; overflow: hidden; }
.biz-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Prominent logo banner on the business listing cards */
.biz-media {
    height: 108px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    margin-bottom: 12px;
    padding: 12px;
}
.biz-media img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.biz-media-mono {
    border-color: transparent;
    font-family: 'DM Serif Display', serif;
    font-size: 3.2rem;
    line-height: 1;
}

/* Bigger logo banner in the homepage slider */
.biz-slide .biz-icon.has-logo {
    width: 100%;
    height: 86px;
    border-radius: var(--rsm);
    margin-bottom: 2px;
    padding: 6px;
}

/* Bigger logo on Business of the Week */
.botw-icon.has-logo { width: 72px; height: 72px; padding: 7px; }

/* ── Account page lists ── */
.acc-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 2.5rem; }
.acc-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}
.acc-title { font-weight: 600; font-size: 0.95rem; }
.acc-meta { font-size: 0.78rem; color: var(--muted); display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }

/* ── Ratings & reviews ── */
.stars-inline { display: inline-flex; gap: 1px; }
.stars-inline i { color: #E6A91A; font-size: 14px; }
.stars-inline i.empty { color: #d9d9d9; }
.biz-rating { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.biz-rating-num { font-size: 0.74rem; color: var(--muted); font-weight: 600; }

.biz-reviews { border-top: 1px solid var(--border); margin-top: 1.25rem; padding-top: 1.25rem; }
.rev-head { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.rev-avg { font-family: 'DM Serif Display', serif; font-size: 1.7rem; line-height: 1; }
.rev-head .stars-inline i { font-size: 17px; }
.rev-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--rsm); padding: 1rem; margin-bottom: 1.25rem; }
.rev-stars { display: inline-flex; gap: 4px; font-size: 26px; color: #d9d9d9; cursor: pointer; margin-bottom: 8px; }
.rev-stars i { transition: color .1s; }
.rev-stars i.on { color: #E6A91A; }
.rev-form textarea { width: 100%; border: 1px solid var(--border); border-radius: var(--rsm); padding: 8px 10px; font-family: inherit; font-size: 0.9rem; min-height: 64px; resize: vertical; background: #fff; color: var(--text); }
.rev-submit { margin-top: 8px; background: var(--green); color: #fff; border: none; border-radius: var(--rsm); padding: 8px 16px; font-weight: 500; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; gap: 6px; }
.rev-submit:hover { background: var(--green-dark); }
.rev-login { background: var(--bg); border: 1px dashed var(--border); border-radius: var(--rsm); padding: 12px; text-align: center; font-size: 0.875rem; margin-bottom: 1.25rem; color: var(--muted); }
.rev-item { padding: 11px 0; border-top: 1px solid var(--border); }
.rev-item:first-of-type { border-top: none; }
.rev-item-head { display: flex; align-items: center; gap: 8px; }
.rev-name { font-weight: 600; font-size: 0.875rem; }
.rev-date { font-size: 0.72rem; color: var(--muted); margin-left: auto; }
.rev-comment { font-size: 0.85rem; color: var(--muted); margin-top: 4px; line-height: 1.55; }
.rev-loading { color: var(--muted); font-size: 0.85rem; padding: 12px 0; }
.rev-mine-tag { font-size: 0.62rem; background: var(--green-light); color: var(--green-dark); padding: 1px 7px; border-radius: 999px; font-weight: 600; }