/* TaxiHub.ie — main stylesheet */

:root {
    --yellow: #f9c80e;
    --yellow-dark: #e0b000;
    --yellow-soft: #fff6d1;
    --black: #0b0b0b;
    --ink: #16181b;
    --ink-2: #4a4f57;
    --ink-3: #6b717a;
    --line: #e4e6ea;
    --bg: #ffffff;
    --bg-muted: #f5f6f8;
    --green: #1f8a4c;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 4px 14px rgba(16, 24, 40, .06);
    --shadow-lg: 0 10px 30px rgba(16, 24, 40, .14);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 3.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--ink-3); }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.22em; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: var(--black); padding: 8px 14px; z-index: 100; border-radius: 6px; font-weight: 700; }
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45em;
    padding: .7em 1.2em; border-radius: 999px; border: 2px solid transparent;
    font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background .15s, transform .1s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--yellow); color: var(--black); }
.btn-primary:hover { background: var(--yellow-dark); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: #2a2a2a; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-lg { padding: .85em 1.5em; font-size: 1.05rem; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink-2); text-decoration: underline; cursor: pointer; display: inline-flex; gap: .35em; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .35em; font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Demo notice ---------- */
.demo-bar { background: var(--yellow); color: var(--black); font-size: .85rem; text-align: center; padding: 6px 0; }

/* ---------- Header ---------- */
.site-header { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 0 var(--yellow); }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.site-header .container { max-width: 1320px; }   /* a little wider than the page, so the full menu fits */
.brand { flex: none; }   /* never let the menu squeeze the logo */
.brand img { width: 180px; height: auto; }
.main-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.main-nav ul { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.main-nav a { color: #e9e9e9; text-decoration: none; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; display: block; white-space: nowrap; }
.main-nav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.main-nav a[aria-current="page"] { color: var(--yellow); }
.nav-dropdown { position: relative; }
.nav-dropdown summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px; color: #e9e9e9; font-weight: 600; font-size: .95rem; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover, .nav-dropdown details[open] summary { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-dropdown summary.is-current { color: var(--yellow); }
.nav-dropdown summary .icon { width: 16px; height: 16px; transition: transform .15s; }
.nav-dropdown details[open] summary .icon { transform: rotate(180deg); }
.main-nav .nav-menu { position: absolute; top: calc(100% + 8px); left: 0; z-index: 60; min-width: 250px; display: block; padding: 6px; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.main-nav .nav-menu a { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 10px 12px; }
.main-nav .nav-menu a:hover { background: var(--bg-muted); color: var(--black); }
.main-nav .nav-menu a[aria-current="page"] { background: var(--yellow-soft); color: var(--black); }
.main-nav .nav-menu .icon { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.main-nav .nav-menu .nav-menu-all { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; font-weight: 700; }
.nav-account .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .25); padding: .5em 1em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: rgba(255, 255, 255, .16); }
.fav-count { position: absolute; top: -2px; right: -2px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--yellow); color: var(--black); font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.btn-post { padding: .55em 1.05em; }
.nav-toggle { display: none; }

@media (max-width: 1240px) {
    .nav-toggle { display: inline-grid; }
    .header-actions { margin-left: auto; }
    .main-nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--black); border-top: 1px solid #222; padding: 8px 16px 16px;
        display: none;
    }
    .main-nav.is-open { display: flex; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid #1e1e1e; border-radius: 0; }
    .nav-dropdown summary { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid #1e1e1e; border-radius: 0; justify-content: space-between; }
    .main-nav .nav-menu { position: static; min-width: 0; padding: 0 0 0 12px; background: none; box-shadow: none; border-radius: 0; }
    .main-nav .nav-menu a { color: #e9e9e9; padding: 12px 8px; }
    .main-nav .nav-menu a:hover, .main-nav .nav-menu a[aria-current="page"] { background: none; color: var(--yellow); }
    .main-nav .nav-menu .icon { color: #9a9a9a; }
    .main-nav .nav-menu .nav-menu-all { border-top: 0; margin-top: 0; padding-top: 12px; }
    .nav-account { margin-top: 12px; }
    .nav-account .btn { width: 100%; }
}
@media (max-width: 520px) {
    .brand img { width: 136px; }
    .btn-post span { display: none; }
    .btn-post { width: 42px; height: 42px; padding: 0; }
}

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--black); overflow: hidden; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 60% 40%; }
.hero::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, .82) 0%, rgba(0, 0, 0, .55) 45%, rgba(0, 0, 0, .1) 75%),
        linear-gradient(0deg, rgba(0, 0, 0, .75) 0%, rgba(0, 0, 0, 0) 45%);
}
.hero-content { position: relative; z-index: 1; padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); max-width: 15ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .4); }
.hl { color: var(--yellow); }
.hero-lead { font-size: clamp(1rem, 1.6vw, 1.2rem); max-width: 46ch; color: #f0f0f0; }
.hero-points { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .92rem; color: #f2f2f2; }
.hero-points .icon { color: var(--yellow); }

.search-form {
    display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 8px;
    background: #fff; padding: 8px; border-radius: 18px; box-shadow: var(--shadow-lg);
    max-width: 920px; margin-top: 26px; color: var(--ink);
}
.search-form .field { position: relative; display: flex; align-items: center; }
.search-form .field-q .icon { position: absolute; left: 14px; color: var(--ink-3); }
.search-form input, .search-form select {
    width: 100%; height: 50px; border: 1px solid var(--line); border-radius: 12px; padding: 0 14px; background: #fff;
}
.search-form .field-q input { padding-left: 42px; }
.search-form .btn { height: 50px; border-radius: 12px; }
@media (max-width: 860px) {
    .search-form { grid-template-columns: 1fr 1fr; }
    .search-form .field-q, .search-form .btn { grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(26px, 3.2vw, 40px); }
/* Two plain sections in a row: don't stack both paddings. */
.section:not(.section-dark):not(.section-muted) + .section:not(.section-dark):not(.section-muted),
.section-muted + .section-muted { padding-top: 0; }
/* Inner pages: content starts close under the page heading. */
.container.section { padding-block: 24px 40px; }
.section-muted { background: var(--bg-muted); }
.section-dark { background: var(--black); color: #fff; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-dark .link-arrow { color: var(--yellow); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 800; color: var(--ink-3); margin: 0 0 .3em; }
.eyebrow-yellow { color: var(--yellow); }

/* ---------- Category tiles ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.cat-tile {
    display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
    padding: 18px; border: 1px solid var(--line); border-radius: var(--radius);
    text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.cat-tile:hover { border-color: var(--yellow); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--yellow); color: var(--black); margin-bottom: 8px; }
.cat-icon .icon { width: 24px; height: 24px; }
.cat-name { font-weight: 700; line-height: 1.25; }
.cat-count { font-size: .85rem; color: var(--ink-3); }
@media (max-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) {
    .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    /* Icon beside the text, so the seven tiles don't take a whole screen. */
    .cat-tile { padding: 10px 12px; display: grid; grid-template-columns: 36px 1fr; column-gap: 10px; align-items: center; }
    .cat-icon { width: 36px; height: 36px; border-radius: 10px; margin: 0; grid-row: span 2; }
    .cat-icon .icon { width: 20px; height: 20px; }
    .cat-name { font-size: .92rem; }
    .cat-count { font-size: .8rem; }
}

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .card-grid, .card-grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 560px) {
    .card-grid { gap: 10px; }
    .listing-card .card-body { padding: 10px 11px 12px; }
    .listing-card .card-price { font-size: 1.05rem; }
    .listing-card .card-title { font-size: .92rem; }
    .listing-card .card-specs { font-size: .8rem; }
    .listing-card .card-meta { font-size: .75rem; flex-direction: column; }
    .listing-card .badge-cat { display: none; }
    .fav-btn { width: 34px; height: 34px; }
}
@media (max-width: 340px) { .card-grid, .card-grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .card-grid-3:has(.article-card) { grid-template-columns: minmax(0, 1fr); } }

.card { position: relative; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-muted); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.article-card .card-media { aspect-ratio: 16 / 9; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 1rem; font-weight: 700; margin: 0 0 6px; line-height: 1.3; }
.card-title a { text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:hover { text-decoration: underline; }
.card-price { font-size: 1.25rem; font-weight: 800; margin: 0 0 2px; }
.card-specs, .card-excerpt { font-size: .9rem; color: var(--ink-2); margin: 0 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tag { display: inline-flex; align-items: center; gap: 4px; margin: -4px 0 10px; font-size: .8rem; font-weight: 700; color: var(--green); }
.card-tag .icon { width: 14px; height: 14px; }
.taxi-suitable { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--yellow-soft); }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: auto 0 0; font-size: .83rem; color: var(--ink-3); }
.card-meta span { display: inline-flex; align-items: center; gap: 4px; }

.listing-card.is-featured { border-color: var(--yellow); box-shadow: 0 0 0 1px var(--yellow); }

.badge { position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: .72rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: .04em; }
.badge .icon { width: 12px; height: 12px; vertical-align: 0; }
.badge-sponsored { left: 10px; background: var(--yellow); color: var(--black); }
.badge-cat { right: 10px; top: auto; bottom: 10px; background: rgba(0, 0, 0, .7); color: #fff; }

.fav-btn {
    position: absolute; top: 8px; right: 8px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
    border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); display: grid; place-items: center; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}
.fav-btn[aria-pressed="true"] .icon, .fav-btn-wide[aria-pressed="true"] .icon { fill: #e0245e; color: #e0245e; }
.fav-btn[aria-pressed="true"] .icon path, .fav-btn-wide[aria-pressed="true"] .icon path { fill: currentColor; }

/* ---------- CTA band ---------- */
.cta-band {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: var(--yellow); color: var(--black); border-radius: 22px; padding: clamp(20px, 3vw, 32px);
    background-image: repeating-linear-gradient(135deg, rgba(0, 0, 0, .05) 0 14px, transparent 14px 28px);
}
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 60ch; }
.cta-band-dark { background-color: var(--black); color: #fff; margin-top: 28px; background-image: repeating-linear-gradient(135deg, rgba(249, 200, 14, .08) 0 14px, transparent 14px 28px); }

/* ---------- Business cards ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .biz-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .biz-grid { grid-template-columns: minmax(0, 1fr); } }
.biz-card { padding: 18px; gap: 6px; }
.biz-card:hover { transform: none; }
.biz-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.biz-head .card-title { margin: 0; }
.biz-head .eyebrow, .biz-head p { margin: 0; }
.biz-avatar { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--black); color: var(--yellow); font-weight: 800; font-size: 1.2rem; flex: none; }
.biz-card .card-meta { flex-direction: column; justify-content: flex-start; margin-top: 4px; }
.verified { margin: 10px 0 0; color: var(--green); font-weight: 700; font-size: .85rem; display: flex; gap: 4px; align-items: center; }

/* ---------- Trust ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 760px) { .trust-grid { grid-template-columns: minmax(0, 1fr); } }
.trust-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--black); color: var(--yellow); margin-bottom: 12px; }
.trust-icon .icon { width: 26px; height: 26px; }
.trust-item p { color: var(--ink-2); margin: 0; }

/* ---------- Page head ---------- */
.page-head { background: var(--black); color: #fff; padding: 22px 0 24px; border-bottom: 4px solid var(--yellow); }
.page-head p { color: #cfcfcf; margin: 0; max-width: 70ch; }
.page-head h1 { margin-bottom: .25em; }
.breadcrumbs { font-size: .85rem; color: #aaa; margin-bottom: 10px; }
.breadcrumbs a { color: #ddd; }
.breadcrumbs-light { color: var(--ink-3); margin: 20px 0; }
.breadcrumbs-light a { color: var(--ink-2); }

/* ---------- Listings ---------- */
.listings-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; padding-top: 24px; padding-bottom: 40px; align-items: start; }
@media (max-width: 900px) { .listings-layout { grid-template-columns: minmax(0, 1fr); } }
.filters { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; }
@media (max-width: 900px) { .filters { position: static; } }
.filter-form { display: grid; gap: 14px; }
.field-block { display: grid; gap: 6px; align-content: start; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-block > span, .field-block > label[for] > span, .field-block legend { font-weight: 700; font-size: .9rem; padding: 0; }
.field-block small { color: var(--ink-3); }
input:where(:not([type="checkbox"], [type="radio"], [type="file"])), select, textarea {
    width: 100%; border: 1px solid #cfd3d9; border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; min-height: 44px;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 2px solid var(--yellow); outline-offset: 0; }
.price-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.results-bar p { margin: 0; }
.results-bar label { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .9rem; }
.results-bar select { width: auto; min-height: 40px; }

.empty-state { text-align: center; padding: 32px 16px; border: 2px dashed var(--line); border-radius: var(--radius); }
.empty-state > .icon { width: 44px; height: 44px; color: var(--ink-3); margin: 0 auto 10px; display: block; }
.empty-state p { color: var(--ink-2); }

/* ---------- Listing detail ---------- */
.listing-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .listing-layout { grid-template-columns: minmax(0, 1fr); } }
.listing-side { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; position: sticky; top: 92px; }
@media (max-width: 900px) { .listing-side { position: static; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.listing-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
/* Grid items default to their content's width: without this a long thumbnail strip widens the whole page on phones. */
.listing-main > *, .listing-side > * { min-width: 0; }
.panel h2 { font-size: 1.15rem; }
.approval-settings { margin-bottom: 28px; max-width: 760px; }
.approval-settings fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.approval-settings hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.approval-settings .btn { justify-self: start; }
.gallery-main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--bg-muted); aspect-ratio: 4 / 3; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; border-radius: 8px; overflow: hidden; cursor: pointer; width: 96px; flex: none; background: none; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--yellow); }
.price-panel h1 { font-size: 1.45rem; }
.big-price { font-size: 2rem; font-weight: 800; margin: 0 0 6px; }
.price-panel .card-meta { margin-bottom: 16px; justify-content: flex-start; }
.price-panel .btn + .btn { margin-top: 8px; }
.spec-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { color: var(--ink-3); }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 560px) { .spec-list { grid-template-columns: minmax(0, 1fr); } }
.safety-panel h2 { display: flex; align-items: center; gap: 8px; }
.safety-panel ul { padding-left: 18px; color: var(--ink-2); margin: 0 0 12px; }

/* ---------- News ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-current="page"] { background: var(--black); color: #fff; border-color: var(--black); }
.article-lead { display: grid; grid-template-columns: 1.3fr 1fr; margin-bottom: 22px; }
.article-lead .card-media { aspect-ratio: 16 / 9; }
.article-lead .card-body { padding: clamp(18px, 3vw, 36px); justify-content: center; }
.article-lead .card-title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
@media (max-width: 760px) { .article-lead { grid-template-columns: minmax(0, 1fr); } }

.article { max-width: 820px; padding-bottom: 32px; }
.article-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.article-lead-text { font-size: 1.15rem; color: var(--ink-2); }
.article-head .card-meta { justify-content: flex-start; gap: 16px; margin-bottom: 22px; }
.article-image { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 28px; background: var(--bg-muted); }
.article-body { font-size: 1.08rem; line-height: 1.7; }
.sources { margin-top: 32px; padding: 18px 20px; background: var(--yellow-soft); border-left: 4px solid var(--yellow); border-radius: var(--radius-sm); }
.sources h2 { font-size: 1rem; }
.sources ul { margin: 0 0 8px; padding-left: 18px; }
.sources p { margin: 0; font-size: .9rem; }

/* ---------- Directory ---------- */
.inline-filters { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.inline-filters label { display: grid; gap: 4px; font-weight: 700; font-size: .9rem; min-width: 220px; }

/* ---------- Forms ---------- */
.form-stack { display: grid; gap: 18px; }
.form-stack fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.form-stack legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 10px; padding: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: minmax(0, 1fr); } }
.upload-box { display: flex; align-items: center; gap: 14px; padding: 22px; border: 2px dashed #cfd3d9; border-radius: var(--radius); cursor: pointer; color: var(--ink-2); }
.upload-box > .icon { width: 34px; height: 34px; color: var(--ink); }
.upload-box:hover { border-color: var(--ink-3); }
.check { display: flex; gap: 8px; align-items: flex-start; }
.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--black); }
.notice { display: flex; gap: 10px; align-items: center; padding: 14px 16px; background: var(--yellow-soft); border: 1px solid var(--yellow); border-radius: var(--radius-sm); margin-bottom: 18px; }
.auth-wrap { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: 100%; max-width: 440px; padding: 28px; }
.split { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .92rem; }

.prose h2 { margin-top: 1.4em; font-size: 1.3rem; }
.prose p { color: var(--ink-2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #cfcfcf; padding: 36px 0 18px; border-top: 4px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-brand img { width: 170px; margin-bottom: 12px; }
.footer-brand p { max-width: 40ch; font-size: .92rem; }
.site-footer h2 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #cfcfcf; }
.site-footer a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; border-top: 1px solid #222; margin-top: 24px; padding-top: 16px; font-size: .85rem; }
.footer-bottom p { margin: 0; }

/* ---------- Toast ---------- */
.toast {
    position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90;
    background: var(--black); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg);
    border-left: 4px solid var(--yellow); max-width: calc(100% - 32px);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

@media (max-width: 760px) {
    .hero::after { background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .7) 60%, rgba(0, 0, 0, .85) 100%); }
    .badge { font-size: .62rem; padding: 3px 7px; }
}

/* ---------- Accounts ---------- */
.flashes { padding-top: 16px; display: grid; gap: 8px; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-weight: 500; }
.alert-success { background: #e8f6ee; border-color: #9ed4b4; color: #14532d; }
.alert-error { background: #fdecec; border-color: #f2a7a7; color: #7f1d1d; }
.alert-info { background: var(--yellow-soft); border-color: var(--yellow); color: var(--ink); }
.field-error, .field-block small.field-error { color: #b42318; font-weight: 600; }
[aria-invalid="true"] { border-color: #b42318 !important; }
.btn-danger { background: #b42318; color: #fff; }
.btn-danger:hover { background: #8f1c13; }
.ok { color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.notice-row { justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.notice-row > div { flex: 1 1 320px; }
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
@media (max-width: 860px) { .account-layout { grid-template-columns: minmax(0, 1fr); } }
.account-main { display: grid; gap: 16px; min-width: 0; }
.account-nav { padding: 10px; display: grid; gap: 10px; }
.account-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.account-nav a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.account-nav a:hover { background: var(--bg-muted); }
.account-nav a[aria-current="page"] { background: var(--black); color: var(--yellow); }
.account-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 1000px) { .account-cards { grid-template-columns: minmax(0, 1fr); } }
.account-cards h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; }
.account-cards p { margin-bottom: .6em; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.checklist .icon { color: var(--green); }
fieldset.panel, .form-stack fieldset.panel { padding: 20px; border: 1px solid var(--line); }
fieldset.panel > legend { float: left; width: 100%; margin-bottom: 4px; }
fieldset.panel > legend + * { clear: both; }
code { background: var(--bg-muted); padding: 1px 6px; border-radius: 5px; font-size: .92em; }

/* ---------- Marketplace (Phase 3) ---------- */
.save-form { margin: 0; }
a.fav-btn { text-decoration: none; }
.fav-btn-wide { margin-top: 8px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 28px; }
.description { white-space: normal; overflow-wrap: anywhere; }
.status { display: inline-block; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.status-green { background: #e8f6ee; color: #14532d; }
.status-amber { background: var(--yellow-soft); color: #7a5600; }
.status-red { background: #fdecec; color: #7f1d1d; }
.status-grey { background: var(--bg-muted); color: var(--ink-2); }
.my-ad { display: grid; grid-template-columns: 160px 1fr; gap: 18px; }
.my-ad-thumb img { width: 160px; height: 120px; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-muted); }
.my-ad-top { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.my-ad .card-title { font-size: 1.1rem; }
.my-ad-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.my-ad-actions form { margin: 0; }
.my-ad-actions .btn { padding: .45em 1em; }
@media (max-width: 560px) { .my-ad { grid-template-columns: minmax(0, 1fr); } .my-ad-thumb img { width: 100%; height: auto; aspect-ratio: 4 / 3; } }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 14px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg-muted); }
.photo-tile { display: grid; gap: 4px; font-size: .9rem; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.card-link { text-decoration: none; display: block; transition: border-color .15s; }
.card-link:hover { border-color: var(--yellow); }
.message { border-top: 1px solid var(--line); padding: 14px 0; }
.message:first-of-type { border-top: 0; }
.message.is-new { background: linear-gradient(90deg, var(--yellow-soft), transparent 60%); padding-left: 10px; border-radius: 8px; }
.message-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; }
.message-reply { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; }
.nav-admin { display: flex !important; gap: 6px; align-items: center; color: var(--green); }
.page-head-admin { border-bottom-color: var(--green); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.table tr:last-child td { border-bottom: 0; }
.section-title { margin-top: 12px; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .92rem; }

/* ---------- Admin (Phase 4) ---------- */
.admin-tabs { background: #111; border-bottom: 1px solid #222; position: sticky; top: 87px; z-index: 40; }   /* just below the sticky header */
@media (max-width: 520px) { .admin-tabs { top: 72px; } }
.admin-tabs .container { display: flex; gap: 2px; overflow-x: auto; }
.admin-tabs a { color: #ddd; text-decoration: none; padding: 12px 14px; font-weight: 600; font-size: .92rem; white-space: nowrap; border-bottom: 3px solid transparent; }
.admin-tabs a:hover { color: #fff; }
.admin-tabs a[aria-current="page"] { color: var(--yellow); border-bottom-color: var(--yellow); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
@media (max-width: 900px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; }
a.stat:hover { border-color: var(--ink-3); }
.stat-alert { border-color: var(--yellow); background: var(--yellow-soft); }
.stat-value { font-size: 2rem; font-weight: 800; line-height: 1; }
.stat-label { color: var(--ink-2); font-size: .9rem; }
.cron-panel ol { padding-left: 20px; }
.cron-panel summary { cursor: pointer; font-weight: 700; }
code.copy { display: inline-block; margin-top: 4px; word-break: break-all; user-select: all; }
.admin-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-filter input, .admin-filter select { width: auto; flex: 1 1 220px; }
.actions-cell { min-width: 180px; }
.actions-cell form { margin: 0 0 6px; }
.inline-form summary { cursor: pointer; display: inline-block; }
.inline-form[open] form { margin-top: 8px; }
.report { margin-bottom: 14px; }
.report-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-details { background: var(--bg-muted); padding: 10px 14px; border-radius: var(--radius-sm); }
.report-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.report-actions input { flex: 1 1 240px; width: auto; }
.report-box summary { list-style: none; cursor: pointer; }
.report-box summary::-webkit-details-marker { display: none; }
.report-box[open] form { margin-top: 12px; }
.inline-form summary.btn { list-style: none; }
.inline-form summary.btn::-webkit-details-marker { display: none; }
.sponsor-form { min-width: 220px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-muted); }
.sponsor-form .field-block > span { font-size: .8rem; }

/* ---------- Switch toggles ---------- */
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 6px 0; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: relative; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #c9cdd3; transition: background .15s; margin-top: 2px; }
.switch-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--green); }
.switch input:checked + .switch-track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { outline: 3px solid var(--yellow); outline-offset: 2px; }
.contact-options { gap: 10px; }

/* ---------- Contact buttons on ads ---------- */
.contact-buttons { display: grid; gap: 8px; margin-bottom: 14px; }
.btn-whatsapp { background: #25d366; color: #0b3d1f; }
.btn-whatsapp:hover { background: #1fb457; }

/* ---------- News (Phase 6) ---------- */
.badge-regulatory { left: 10px; top: 10px; background: #b42318; color: #fff; }
.badge-inline { color: #b42318; }
.news-tools { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.news-tools .chips { margin-bottom: 0; }
.news-search { display: flex; gap: 6px; flex: 0 1 320px; }
.news-search input { min-height: 40px; }
.news-search .btn { padding: .5em .9em; }
.article-body h2 { font-size: 1.4rem; margin-top: 1.6em; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.4em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.article-body li { margin-bottom: .35em; }
.article-body blockquote { margin: 1.2em 0; padding: .4em 1.2em; border-left: 4px solid var(--yellow); color: var(--ink-2); background: var(--bg-muted); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-body a { color: #0b57d0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.admin-edit-link { margin: 0 0 10px; }
.article-editor { max-width: 900px; }
textarea.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .95rem; line-height: 1.6; }
.format-help summary { cursor: pointer; font-weight: 700; }
.format-help .table { margin-top: 8px; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix span { display: flex; align-items: center; padding: 0 10px; background: var(--bg-muted); border: 1px solid #cfd3d9; border-right: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); color: var(--ink-3); font-size: .9rem; white-space: nowrap; }
.input-prefix input { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.article-danger { margin-top: 20px; }
.article-danger form { margin: 0; }
.article-body .sources h2 { margin-top: 0; }

/* ---------- Services directory (Phase 7) ---------- */
.biz-logo { object-fit: contain; background: #fff; border: 1px solid var(--line); padding: 2px; }
.biz-card .card-title a { color: inherit; }
.biz-card .card-title a:hover { text-decoration: underline; }
.biz-profile-head { display: flex; gap: 20px; align-items: center; }
.biz-profile-head h1, .biz-profile-head h2 { margin: 0 0 6px; }
.biz-profile-head .eyebrow { margin: 0 0 4px; }
.biz-logo-lg { width: 120px; height: 120px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; flex: none; }
.biz-avatar-lg { width: 96px; height: 96px; font-size: 2.4rem; border-radius: 18px; }
.biz-thumb { display: grid; place-items: center; background: var(--bg-muted); }
.biz-thumb img { object-fit: contain; }
.biz-address { font-style: normal; margin: 4px 0 8px; }
.hours-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.admin-search { margin-bottom: 18px; }
@media (max-width: 560px) { .biz-profile-head { flex-direction: column; align-items: flex-start; } }
.biz-thumb { width: 160px; height: 120px; border-radius: var(--radius-sm); }
.biz-thumb img { width: 100%; height: 100%; object-fit: contain; }
.biz-note { margin: 14px 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Security checklist (Phase 8) ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 20px; }
.check-list h2 { font-size: 1.05rem; margin: 0 0 4px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.check-list p { margin: 0; color: var(--ink-2); }
.check-icon { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.check-ok .check-icon { background: #e8f6ee; color: #14532d; }
.check-warn .check-icon { background: var(--yellow-soft); color: #7a5600; }
.check-fail .check-icon { background: #fdecec; color: #7f1d1d; }
.check-fail { border-color: #f3b4b4; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Launch and backups (Phase 9) ---------- */
.check-list h3 { font-size: 1rem; margin: 0 0 4px; }
.panel .check-list { margin: 0; }
.panel .check-list li { padding: 0; border: 0; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input[type=password] { max-width: 180px; min-height: 40px; }
.restore-help { margin-top: 28px; }
.restore-help ol { padding-left: 1.3em; margin: 0; }
.see-also { margin-top: 8px; font-weight: 600; }
.see-also a { color: var(--yellow); }

/* ---------- Useful numbers ---------- */
.numbers-section { margin: 20px 0; scroll-margin-top: 104px; }
.numbers-section > h2 { margin-bottom: 4px; }
.numbers-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.numbers-list li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 20px; }
.numbers-text h3 { font-size: 1.05rem; margin: 0 0 4px; }
.numbers-text p { margin: 0 0 6px; color: var(--ink-2); }
.numbers-note { font-size: .88rem; color: #7a5600 !important; display: flex; gap: 6px; align-items: center; }
.numbers-links { display: flex; gap: 14px; flex-wrap: wrap; font-size: .9rem; }
.numbers-links a { display: inline-flex; gap: 5px; align-items: center; }
.numbers-phones { display: grid; gap: 8px; flex: none; }
.numbers-phones .btn { white-space: nowrap; }
@media (max-width: 640px) { .numbers-list li { flex-direction: column; align-items: stretch; } }
.numbers-callout { display: flex; gap: 10px; align-items: center; padding: 14px 18px; margin-bottom: 22px; text-decoration: none; color: inherit; border-color: var(--yellow); background: var(--yellow-soft); }
.numbers-callout span { flex: 1; }
.numbers-callout:hover { border-color: var(--black); }
.trader-badge { display: inline-flex; gap: 4px; align-items: center; margin: 2px 0 4px; padding: 2px 8px; border-radius: 999px; background: var(--yellow-soft); color: #7a5600; font-weight: 700; font-size: .8rem; }

/* ---------- Bulk upload ---------- */
.bulk-layout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .bulk-layout { grid-template-columns: minmax(0, 1fr); } }
.bulk-steps { padding-left: 1.3em; margin: 0 0 18px; display: grid; gap: 8px; }
.bulk-steps .btn { margin-left: 8px; padding: .35em .8em; }
.bulk-help h2 { font-size: 1.1rem; }
.bulk-columns { margin: 0 0 12px; display: grid; gap: 6px; font-size: .88rem; }
.bulk-columns div { display: grid; grid-template-columns: 160px 1fr; gap: 8px; }
.bulk-columns dt code { word-break: break-all; }
.bulk-columns dd { margin: 0; color: var(--ink-2); }
.bulk-stats { margin-bottom: 18px; }
.bulk-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
.bulk-actions .panel { align-content: start; }
@media (max-width: 760px) { .bulk-actions { grid-template-columns: minmax(0, 1fr); } }
.bulk-row-error td { background: #fff6f6; }
.bulk-table td { vertical-align: top; }
.bulk-progress { text-align: center; padding: 32px; }
.bulk-done { margin-bottom: 14px; align-items: center; }
.field-row-3 { grid-template-columns: repeat(3, 1fr); }
.field-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .field-row-3, .field-row-4 { grid-template-columns: 1fr 1fr; } }
.bulk-ads { display: grid; gap: 14px; }
.bulk-ad { gap: 10px !important; }
.bulk-ad textarea { min-height: 70px; }
.bulk-licence { align-self: end; padding-bottom: 10px; }
.bulk-remove { justify-self: start; font-size: .88rem; }
.bulk-toggles { display: flex; gap: 10px 22px; flex-wrap: wrap; }
.bulk-form-actions { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.spec-list-1 { grid-template-columns: minmax(0, 1fr); }
.mail-failures code { white-space: pre-wrap; word-break: break-word; font-size: .82rem; }

/* ---------- Admin: visitors ---------- */
.visitor-chart { margin-bottom: 24px; }
.chart-frame { position: relative; padding-top: 20px; }
.chart-max { position: absolute; top: 0; left: 0; font-size: .75rem; color: var(--ink-3); }
.chart-bars { display: block; width: 100%; height: 220px; overflow: visible; }
.chart-grid { stroke: var(--line); stroke-width: 1; }
.chart-axis { stroke: var(--ink-3); stroke-width: 1; }
.chart-hit { fill: transparent; }
.chart-bar { fill: var(--ink); }
.chart-col:hover .chart-bar { fill: var(--yellow-dark); }
.chart-col:hover .chart-hit { fill: var(--bg-muted); }
.chart-labels { display: flex; margin-top: 6px; font-size: .75rem; color: var(--ink-3); }
.chart-labels span { flex: 1 1 0; min-width: 0; white-space: nowrap; }
.chart-labels span:last-child { display: flex; justify-content: flex-end; }
.chart-table { margin-top: 14px; }
.chart-table summary { cursor: pointer; font-weight: 600; }
.chart-table .visitor-table { margin-top: 10px; max-width: 480px; }
.visitor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 24px; }
.visitor-panel h2 { margin-top: 0; }
.visitor-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.visitor-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); padding: 0 0 8px; font-weight: 700; }
.visitor-table td { padding: 8px 0; border-top: 1px solid var(--line); vertical-align: top; }
.visitor-table .num { text-align: right; white-space: nowrap; padding-left: 12px; font-variant-numeric: tabular-nums; }
.visitor-table td a { word-break: break-all; }
.visitor-label { display: block; }
.share-bar { display: block; width: 100%; height: 4px; margin-top: 6px; }
.share-track { fill: var(--bg-muted); }
.share-fill { fill: var(--ink); }
@media (max-width: 520px) { .visitor-grid { grid-template-columns: minmax(0, 1fr); } .chart-bars { height: 160px; } .chart-labels .minor { visibility: hidden; } }
.visitor-panel .btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.visitor-panel .small { font-size: .85rem; margin-bottom: 0; }

/* ---------- Rental availability: a button that looks like the .switch above ---------- */
button.switch { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; font-weight: 700; color: var(--ink-2); }
button.switch .switch-track { margin-top: 0; }
button.switch.is-on { color: var(--green); }
button.switch.is-on .switch-track { background: var(--green); }
button.switch.is-on .switch-track::after { transform: translateX(20px); }
button.switch:focus-visible .switch-track { outline: 3px solid var(--yellow); outline-offset: 2px; }

/* ---------- Taxi licence note ---------- */
.licence-note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--yellow-soft); border-left: 4px solid var(--yellow-dark); color: var(--ink); }
.licence-note > .icon { width: 24px; height: 24px; margin-top: 2px; color: #7a5600; }
.licence-note p { margin: 0 0 6px; }
.licence-note p:last-child { margin-bottom: 0; }
.licence-note a { color: var(--black); font-weight: 700; }
.page-head .licence-note { margin-top: 18px; max-width: 820px; }
[data-taxi-licence-note] { margin-top: 16px; }
.bulk-licence-note { margin-bottom: 20px; }
.page-head .licence-note p, .licence-note p { color: var(--ink); font-size: .95rem; }

/* ---------- Email code login ---------- */
.password-login { border-top: 1px solid var(--line); padding-top: 14px; }
.password-login summary { cursor: pointer; font-weight: 600; color: var(--ink-2); }
.password-login[open] summary { margin-bottom: 14px; }
.code-input { font-size: 1.8rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.card-tag-plate { color: #7a5600; }
.rental-fields { margin-top: 16px; display: grid; gap: 6px; }
.rental-fields .small { font-size: .88rem; margin: 0; }
.assigned-owner { display: grid; gap: 10px; margin-bottom: 8px; }
.make-model { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
@media (max-width: 560px) { .make-model { grid-template-columns: minmax(0, 1fr); } }
.bulk-car .make-model { margin-bottom: 10px; }
.main-nav .nav-tools { min-width: 270px; }
.main-nav .nav-tools .nav-tool-sub { padding-left: 30px; }
@media (max-width: 1240px) { .main-nav .nav-tools .nav-tool-sub { padding-left: 24px; } }

/* ---------- Taxi tools page ---------- */
.tool-grid { display: grid; gap: 20px; }
.tool-card { display: grid; gap: 4px; }
.tool-card > p { margin: 0 0 10px; max-width: 75ch; }
.tool-head { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.tool-head h2 { margin: 0; font-size: 1.5rem; }
.tool-icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--yellow); color: var(--black); }
.tool-icon .icon { width: 28px; height: 28px; }
.tool-tagline { margin: 2px 0 0; color: var(--ink-2); font-weight: 600; }
.tool-features { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; }
.tool-features li { display: flex; gap: 8px; align-items: flex-start; }
.tool-features .icon { color: var(--green); margin-top: 3px; }
.tool-subhead { margin: 18px 0 10px; font-size: 1.1rem; }
.tool-subs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.tool-sub { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; background: var(--bg-muted); display: flex; flex-direction: column; }
.tool-sub h4 { margin: 0; display: flex; gap: 8px; align-items: center; font-size: 1.05rem; }
.tool-sub p { margin: 6px 0 0; }
.tool-sub p:last-child { margin-top: auto; padding-top: 12px; }
.tool-card .btn .icon, .tool-sub .btn .icon { width: 16px; height: 16px; }
.tool-note { margin-top: 20px; }

/* Phones: long button labels (e.g. a website address) wrap, and file pickers never widen the page. */
.btn-block { white-space: normal; overflow-wrap: anywhere; text-align: center; }
input[type="file"] { max-width: 100%; }
.field-block, .field-block > * { min-width: 0; }

/* Ad page on phones: photos, then the title, price and contact buttons, then the details. */
@media (max-width: 900px) {
    .listing-layout { display: flex; flex-direction: column; gap: 16px; }
    .listing-main, .listing-side { display: contents; }
    .listing-layout > * > * { width: 100%; }
    .listing-main > *, .listing-side > * { order: 6; }
    .listing-main > .gallery { order: 1; }
    .listing-side > .price-panel { order: 2; }
    .listing-side > #contact { order: 3; }
    .listing-main > section { order: 4; }
    .listing-side > .seller-panel { order: 5; }
}

/* ---------- Photo gallery: arrows, counter and full-screen viewer ---------- */
.gallery-main img[data-gallery-open] { cursor: zoom-in; }
.gallery-arrow, .gallery-full, .lightbox-btn { position: absolute; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer; color: #fff; background: rgba(0, 0, 0, .55); }
.gallery-arrow:hover, .gallery-full:hover, .lightbox-btn:hover { background: rgba(0, 0, 0, .8); }
.gallery-arrow:focus-visible, .gallery-full:focus-visible, .lightbox-btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.gallery-arrow { top: 50%; width: 46px; height: 46px; margin-top: -23px; background: rgba(0, 0, 0, .65); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); }
.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }
.gallery-prev .icon, .lightbox-prev .icon { transform: rotate(90deg); }
.gallery-next .icon, .lightbox-next .icon { transform: rotate(-90deg); }
.gallery-arrow .icon { width: 24px; height: 24px; }
.gallery-full { right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 10px; background: rgba(0, 0, 0, .65); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75); }
.gallery-full .icon { width: 22px; height: 22px; }
.gallery-count { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgba(0, 0, 0, .94); }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; width: auto; height: auto; object-fit: contain; user-select: none; }
.lightbox-btn { width: 52px; height: 52px; }
.lightbox-btn .icon { width: 28px; height: 28px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; margin-top: -26px; }
.lightbox-next { right: 14px; top: 50%; margin-top: -26px; }
.lightbox-count { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
html.lightbox-open, html.lightbox-open body { overflow: hidden; }
@media (max-width: 600px) {
    .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; margin-top: 0; }
    .lightbox-prev { left: 20px; }
    .lightbox-next { right: 20px; }
}

/* "Price on request" tick box under the price */
.price-request { margin-top: 8px; font-weight: 600; }
[data-price-input]:disabled, [data-price-type]:disabled { background: var(--bg-muted); color: var(--ink-3); cursor: not-allowed; }
