:root {
  --brand: #0b6e4f; --brand-d: #07513a; --brand-l: #e6f3ee; --accent-l: #fff4c2;
  --accent: #f9c80e; --coral: #e4572e; --ink: #14201b; --muted: #5d6b65;
  --bg: #fbfaf6; --card: #ffffff; --line: #e5e2d8; --radius: 16px;
  --shadow: 0 8px 30px rgba(20, 32, 27, .08);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
.wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(640px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.section { padding-block: 56px; }
.sub { color: var(--muted); margin-top: -.2em; margin-bottom: 1.6em; max-width: 60ch; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .85rem; color: var(--brand); background: var(--brand-l); padding: 6px 12px; border-radius: 99px; margin-bottom: 14px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; border-radius: 12px; padding: 11px 18px; background: var(--brand-l); color: var(--brand-d); transition: transform .12s, box-shadow .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--brand) 25%, transparent); }
.btn.primary:hover { background: var(--brand-d); }
.btn.yellow { background: var(--accent); color: var(--ink); }
.btn.wa { background: #25d366; color: #fff; }
.btn.ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn.big { padding: 14px 22px; font-size: 1.05rem; }
.btn.small { padding: 7px 12px; font-size: .9rem; }
.btn.full { width: 100%; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* header */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(251, 250, 246, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; color: var(--ink); text-decoration: none; }
.links { display: flex; align-items: center; gap: 22px; }
.links a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.links a:not(.btn):hover { color: var(--brand); }
.burger { display: none; font-size: 1.6rem; cursor: pointer; }
@media (max-width: 860px) {
  .burger { display: block; }
  .links { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .links a { padding: 12px 0; }
  #menu:checked ~ .links { display: flex; }
}

.flashes { margin-top: 16px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 12px; background: var(--brand-l); color: var(--brand-d); font-weight: 600; }
.flash.erro { background: #fdecea; color: #a12a12; }

/* hero */
.hero { position: relative; background: radial-gradient(1200px 500px at 85% -10%, var(--accent-l) 0, transparent 60%), linear-gradient(180deg, var(--brand-l), var(--bg)); padding-block: 48px 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--brand); background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 0); }
.lead { font-size: 1.12rem; color: #33413b; max-width: 56ch; }
.trust { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; font-weight: 600; }
.trust.light { color: #e9f6f0; }
.hero-card { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; border: 1px solid var(--line); }
.hint { margin: 12px 4px 0; font-size: .93rem; color: var(--muted); }
.capulana { position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background:
  repeating-linear-gradient(90deg, var(--brand) 0 22px, var(--accent) 22px 30px, var(--coral) 30px 52px, #14201b 52px 56px, var(--accent) 56px 64px); opacity: .9; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* search form */
.search .tabs { display: flex; gap: 6px; background: #f2f1ea; padding: 5px; border-radius: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tab { flex: 1; min-width: 90px; }
.tab input { position: absolute; opacity: 0; }
.tab span { display: block; text-align: center; padding: 9px 8px; border-radius: 9px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--muted); }
.tab input:checked + span { background: #fff; color: var(--brand-d); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.tab input:focus-visible + span { outline: 2px solid var(--brand); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .btn { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.fields .f { margin: 0; }
.f input, .f select, .f textarea { font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 11px; background: #fff; width: 100%; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 15%, transparent); }
.search .hours, form .hours { display: none; }
.search[data-tipo="local"] .hours, form[data-tipo="local"] .hours { display: flex; }
.search[data-tipo="local"] .dest, form[data-tipo="local"] .dest,
.search[data-tipo="ida"] .ret, form[data-tipo="ida"] .ret,
.search[data-tipo="local"] .ret, form[data-tipo="local"] .ret { display: none; }
.search.compact .fields { grid-template-columns: repeat(6, 1fr) auto; align-items: end; }
.search.compact .fields .btn { grid-column: auto; }
.search.compact .tabs { display: inline-flex; margin-bottom: 10px; }
@media (max-width: 960px) { .search.compact .fields { grid-template-columns: 1fr 1fr; } .search.compact .fields .btn { grid-column: 1 / -1; } }
.searchbar { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 0; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: -30px; position: relative; }
.stats > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stats strong { display: block; font-size: 1.6rem; color: var(--brand); }
.stats span { color: var(--muted); font-size: .9rem; }
.admin .stats { margin-top: 0; margin-bottom: 30px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand); }
.cat-card .art { background: linear-gradient(180deg, var(--brand-l), #fff); border-radius: 12px; padding: 8px; margin-bottom: 12px; color: var(--ink); }
.cat-card p { margin: 0 0 8px; font-size: .93rem; }
.cat-meta { margin-top: auto; display: flex; justify-content: space-between; font-size: .88rem; padding-top: 10px; border-top: 1px dashed var(--line); }

/* occasions */
.occasions { background: var(--brand); color: #fff; padding-block: 56px; }
.occasions h2 { color: #fff; }
.occ-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin-top: 18px; }
.occ { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); color: inherit; text-decoration: none; transition: background .15s; }
a.occ:hover { background: rgba(255, 255, 255, .16); }
.occ span:last-child { opacity: .85; font-size: .93rem; }
.occ-icon { font-size: 1.8rem; }
.section .occ { background: #fff; border-color: var(--line); color: var(--ink); }

/* routes */
.route-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.route { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 14px; padding: 16px 18px; text-decoration: none; color: var(--ink); transition: box-shadow .15s; }
.route:hover { box-shadow: var(--shadow); }
.route-label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--coral); }
.price { font-size: 1.35rem; font-weight: 800; color: var(--brand-d); }

/* how */
.how { background: #fff; border-block: 1px solid var(--line); padding-block: 56px; }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps b { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); font-size: 1.2rem; margin-bottom: 10px; }
.steps p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.paygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay { padding: 18px; border-radius: 14px; color: #fff; display: flex; flex-direction: column; }
.pay b { font-size: 1.2rem; }
.pay span { opacity: .9; font-size: .88rem; }
.pay-mpesa { background: #e60000; } .pay-emola { background: #f58220; } .pay-mkesh { background: #0057a8; } .pay-transferencia { background: #33413b; }
.partner-cta { background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: #fff; border-radius: 22px; padding: 30px; }
.partner-cta h2 { color: #fff; }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reviews blockquote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.reviews cite { color: var(--muted); font-style: normal; font-size: .9rem; }
@media (max-width: 860px) { .reviews { grid-template-columns: 1fr; } }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: #33413b; }

/* results */
.results-layout { display: grid; grid-template-columns: 290px 1fr; gap: 26px; padding-block: 28px 60px; }
@media (max-width: 900px) { .results-layout { grid-template-columns: 1fr; } }
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; align-self: start; position: sticky; top: 82px; }
@media (max-width: 900px) { .summary { position: static; } }
.summary h2 { font-size: 1.15rem; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: .93rem; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; }
.reco { background: #fff8db; border-radius: 12px; padding: 12px; font-size: .92rem; margin-bottom: 16px; }
.summary h3 { font-size: .9rem; color: var(--muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-block; padding: 6px 12px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; font-size: .85rem; font-weight: 600; cursor: pointer; font-family: inherit; }
.chip.on, .chip:hover { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); }
.results-title { font-size: 1.4rem; }
.result { position: relative; display: grid; grid-template-columns: 200px 1fr 210px; gap: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; align-items: center; transition: box-shadow .15s; }
.result:hover { box-shadow: var(--shadow); }
.result.best { border: 2px solid var(--brand); }
.badge { position: absolute; top: -11px; left: 18px; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 800; padding: 3px 10px; border-radius: 99px; }
.result-art { background: linear-gradient(180deg, var(--brand-l), #fff); border-radius: 12px; padding: 6px; }
.result h3 a { color: var(--ink); text-decoration: none; }
.result p { margin: 0 0 6px; font-size: .92rem; }
.feats { display: flex; flex-wrap: wrap; gap: 6px; }
.feats span { background: #f2f1ea; border-radius: 6px; padding: 2px 8px; font-size: .8rem; }
.stars { color: #b7860b; font-weight: 700; }
.warn { color: var(--coral); }
.multi { font-weight: 700; color: var(--brand-d); }
.result-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; border-left: 1px dashed var(--line); padding-left: 18px; }
.result-price .muted { font-size: .82rem; }
.deposit { font-size: .85rem; font-weight: 700; background: #fff8db; padding: 2px 8px; border-radius: 6px; }
.result-price .btn { margin-top: 6px; width: 100%; }
@media (max-width: 760px) {
  .result { grid-template-columns: 1fr; }
  .result-price { align-items: stretch; text-align: left; border-left: 0; border-top: 1px dashed var(--line); padding: 12px 0 0; }
}
.empty { background: #fff; border: 2px dashed var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }

/* vehicle */
.vehicle-page { padding-block: 24px 60px; }
.back { display: inline-block; margin-bottom: 14px; text-decoration: none; font-weight: 600; }
.vehicle-grid { display: grid; grid-template-columns: 1fr 400px; gap: 32px; align-items: start; }
@media (max-width: 960px) { .vehicle-grid { grid-template-columns: 1fr; } }
.vehicle-hero { background: linear-gradient(180deg, var(--brand-l), #fff); border-radius: 22px; padding: 30px; margin-bottom: 18px; border: 1px solid var(--line); }
.art.big { display: block; max-width: 520px; margin: auto; }
.incl { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
@media (max-width: 600px) { .incl { grid-template-columns: 1fr; } }
.breakdown { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.breakdown td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.breakdown td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.breakdown .total td { font-weight: 800; font-size: 1.1rem; background: var(--brand-l); }
.breakdown .dep td { background: #fff8db; }
.notes { color: var(--muted); font-size: .9rem; }
.book-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 22px; position: sticky; top: 82px; }
@media (max-width: 960px) { .book-card { position: static; } }
.price-live { display: flex; align-items: baseline; justify-content: space-between; background: var(--brand-l); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.price-live.loading { opacity: .5; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
hr { border: 0; border-top: 1px dashed var(--line); margin: 14px 0; }
.paypick { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.paypick legend { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.payopt { position: relative; display: flex; flex-direction: column; padding: 10px 12px; border-radius: 11px; color: #fff; cursor: pointer; opacity: .55; transition: opacity .12s, transform .12s; }
.payopt input { position: absolute; opacity: 0; }
.payopt small { opacity: .9; font-size: .75rem; }
.payopt:has(input:checked) { opacity: 1; outline: 3px solid var(--accent); }
.payopt:has(input:focus-visible) { outline: 3px solid var(--ink); }

/* booking ticket */
.booking-page { padding-block: 32px 60px; }
.ticket { max-width: 820px; margin: auto; background: #fff; border-radius: 22px; box-shadow: var(--shadow); padding: 28px; border-top: 8px solid var(--brand); }
.ticket header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ticket h1 { font-family: ui-monospace, monospace; letter-spacing: .04em; }
.status { padding: 6px 14px; border-radius: 99px; font-weight: 800; font-size: .85rem; background: #fff8db; }
.st-confirmada, .st-motorista_atribuido, .st-em_viagem { background: var(--brand-l); color: var(--brand-d); }
.st-concluida { background: #e8eefc; color: #23408e; }
.st-cancelada { background: #fdecea; color: #a12a12; }
.progress { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.progress li { border-top: 5px solid var(--line); padding-top: 6px; }
.progress li.done { border-color: var(--brand); color: var(--brand-d); }
.ticket-grid { display: grid; grid-template-columns: 220px 1fr; gap: 24px; }
@media (max-width: 640px) { .ticket-grid { grid-template-columns: 1fr; } .progress { grid-template-columns: 1fr 1fr; } }
.ticket dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.ticket dt { color: var(--muted); }
.ticket dd { margin: 0; font-weight: 600; }
.repay { margin-top: 22px; padding: 18px; background: #fffbea; border-radius: 14px; }
.paylog { margin-top: 18px; font-size: .9rem; }
.ticket-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 10px; }

/* forms & cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 12px; }
.card.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.form { padding: 24px; }
.checks { border: 0; padding: 0; margin: 0 0 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.checks legend { font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.band { padding-block: 56px; }
.band.green { background: linear-gradient(135deg, var(--brand), var(--brand-d)); color: #fff; }
.band.dark { background: var(--ink); color: #fff; }
.band .eyebrow { background: rgba(255, 255, 255, .15); color: #fff; }
.band .lead { color: rgba(255, 255, 255, .88); }
.art-stack { display: grid; gap: 10px; background: rgba(255, 255, 255, .1); border-radius: 22px; padding: 22px; }
.inline { display: inline; }

/* admin */
.admin-head { display: flex; justify-content: space-between; align-items: center; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 40px; }
table.grid { width: 100%; border-collapse: collapse; font-size: .88rem; }
.grid th, .grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.grid th { background: #f6f5ef; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.grid select { font: inherit; font-size: .85rem; padding: 5px; border-radius: 8px; border: 1px solid var(--line); }

/* footer */
.footer { background: var(--ink); color: #c9d3ce; padding-block: 48px 24px; margin-top: 40px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .footer .cols { grid-template-columns: 1fr 1fr; } }
.footer a { display: block; color: #c9d3ce; text-decoration: none; font-size: .9rem; padding: 3px 0; }
.footer a:hover { color: var(--accent); }
.footer h4 { color: #fff; margin: 0 0 10px; }
.footer .muted { color: #8fa199; }
.logo-text { font-size: 1.4rem; color: #fff; }
.paychips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.paychips .chip { border: 0; color: #fff; }
.legal { border-top: 1px solid #2c3a34; margin-top: 30px; padding-top: 18px; font-size: .85rem; }

/* whatsapp + chat */
.wa-float { position: fixed; right: 18px; bottom: 86px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 50; }
.chat-toggle { display: flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; border: 0; border-radius: 99px; padding: 13px 18px; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.chat-toggle small { font-weight: 500; opacity: .7; }
.chat-toggle .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.chat-panel { position: absolute; right: 0; bottom: 62px; width: min(380px, calc(100vw - 36px)); height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); overflow: hidden; border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-panel header { display: flex; flex-direction: column; padding: 14px 18px; background: var(--brand); color: #fff; position: relative; }
.chat-panel header .muted { color: rgba(255, 255, 255, .8); font-size: .82rem; }
.chat-close { position: absolute; right: 12px; top: 10px; background: none; border: 0; color: #fff; font-size: 1.6rem; cursor: pointer; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6f5ef; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 14px; font-size: .94rem; white-space: pre-wrap; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--brand); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg.typing { color: var(--muted); font-style: italic; }
.msg .quote-card { display: block; margin-top: 8px; padding: 10px; border-radius: 10px; background: var(--brand-l); color: var(--brand-d); text-decoration: none; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; font: inherit; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 11px; }
@media (max-width: 520px) { .chat-toggle small { display: none; } }
.paychips .chip.pay-mpesa { background: #e60000; } .paychips .chip.pay-emola { background: #f58220; }
.paychips .chip.pay-mkesh { background: #0057a8; } .paychips .chip.pay-transferencia { background: #4a5a53; }

/* ===================== ticketing ===================== */
.thero { padding-block: 44px 64px; }
.center-copy { text-align: center; margin: 0 auto 24px; max-width: 760px; }
.center-copy .lead { margin-inline: auto; }
.hero-card.wide { max-width: 1040px; margin: 0 auto; }
.tfields { display: grid; grid-template-columns: 1fr auto 1fr 200px auto; gap: 12px; align-items: end; }
.tfields .f { margin: 0; }
.swap { width: 44px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.2rem; cursor: pointer; color: var(--brand); }
.swap:hover { border-color: var(--brand); transform: rotate(180deg); transition: transform .25s; }
.quickdates { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .tfields { grid-template-columns: 1fr auto; }
  .tfields .f:nth-of-type(2), .tfields .f:nth-of-type(3), .tfields .btn { grid-column: 1 / -1; }
  .tfields .swap { align-self: end; }
}
.modes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.mode { padding: 9px 16px; border-radius: 99px; background: rgba(255,255,255,.7); border: 1.5px solid var(--line); color: var(--ink); text-decoration: none; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; }
.mode.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perks div { display: flex; flex-direction: column; gap: 4px; }
.perks span { font-size: 1.8rem; }
.perks small { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .perks { grid-template-columns: 1fr 1fr; } }
.offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.offer { border: 2px dashed var(--coral); border-radius: var(--radius); padding: 16px 18px; background: #fff7f3; }
.offer.alt { border-color: var(--brand); background: var(--brand-l); }
.offer .code { font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: .06em; background: var(--ink); color: var(--accent); padding: 3px 9px; border-radius: 6px; }
.offer p { margin: 8px 0 0; font-size: .93rem; }
.route .from { margin-top: 6px; font-size: .85rem; color: var(--muted); }
.route .from .price { font-size: 1.15rem; }
.sub.light { color: rgba(255,255,255,.8); }
.occ.op strong { font-size: 1.05rem; }

.datestrip { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 4px; }
.datestrip a { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; min-width: 76px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); text-decoration: none; color: var(--ink); }
.datestrip a.on { border-color: var(--brand); background: var(--brand-l); color: var(--brand-d); }
.datestrip small { color: var(--muted); font-weight: 600; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-head small { font-size: .95rem; font-weight: 600; }
.sort { font-size: .85rem; font-weight: 700; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.sort select { font: inherit; padding: 7px 10px; border-radius: 10px; border: 1.5px solid var(--line); }
.count { margin: 4px 0 12px; }
.filters-panel .chip input { margin: 0 4px 0 0; accent-color: var(--brand); }
.filters-panel .chip:has(input:checked) { border-color: var(--brand); background: var(--brand-l); }
.center-row { justify-content: center; }

.trip { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 10px 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 12px; transition: box-shadow .15s, border-color .15s; }
.trip:hover { box-shadow: var(--shadow); border-color: var(--brand-l); }
.trip h3 { margin: 0; }
.trip-op p { margin: 2px 0 6px; font-size: .9rem; }
.rating { display: inline-block; font-size: .8rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: #f2f1ea; }
.rating.good { background: var(--brand); color: #fff; }
.trip-times { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; }
.trip-times > div:not(.dur) { display: flex; flex-direction: column; }
.trip-times b { font-size: 1.35rem; }
.trip-times small { color: var(--muted); font-size: .8rem; }
.trip-times sup { color: var(--coral); font-size: .7rem; }
.dur { position: relative; text-align: center; min-width: 70px; }
.dur::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed var(--line); }
.dur span { position: relative; background: #fff; padding: 0 8px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.trip-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.seatsleft { font-size: .82rem; font-weight: 700; color: var(--brand-d); }
.seatsleft.low { color: var(--coral); }
.amen { grid-column: 1 / -1; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px dashed var(--line); padding-top: 10px; }
.amen span { font-size: .78rem; background: #f6f5ef; border-radius: 6px; padding: 2px 8px; color: var(--muted); }
@media (max-width: 760px) {
  .trip { grid-template-columns: 1fr; }
  .trip-buy { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
}

.seats-page { padding-block: 20px 60px; }
.trip-banner { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 20px; }
.trip-banner h1 { font-size: 1.5rem; margin: 0; }
.trip-banner p { margin: 0; }
.trip-banner .trip-times { min-width: min(420px, 100%); }
.seat-grid { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .seat-grid { grid-template-columns: 1fr; } }
.bus-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.legend { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); }
.legend span { display: flex; gap: 6px; align-items: center; }
.s { display: inline-block; width: 16px; height: 16px; border-radius: 4px; border: 2px solid var(--brand); background: #fff; }
.s.sel { background: var(--brand); }
.s.taken { background: #dcdcd4; border-color: #dcdcd4; }
.bus { background: #fff; border: 2px solid #cfd8d3; border-radius: 34px 34px 16px 16px; padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; }
.bus-front { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px dashed var(--line); padding-bottom: 10px; margin-bottom: 6px; font-size: .75rem; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.wheel { font-size: 1.6rem; color: var(--ink); }
.bus-row { display: grid; grid-template-columns: repeat(var(--cols), 44px); gap: 8px; justify-content: center; }
.aisle { width: 44px; }
.seat { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--brand); border-bottom-width: 5px; border-radius: 9px 9px 6px 6px; background: #fff; font-size: .82rem; font-weight: 700; color: var(--brand-d); cursor: pointer; user-select: none; transition: background .1s, transform .1s; }
.seat input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seat:hover { transform: translateY(-1px); background: var(--brand-l); }
.seat:has(input:checked) { background: var(--brand); color: #fff; }
.seat:has(input:focus-visible) { outline: 3px solid var(--accent); }
.seat.taken { background: #e7e6df; border-color: #dcdcd4; color: #a5a59c; cursor: not-allowed; transform: none; }
.seat.taken input { cursor: not-allowed; }
@media (max-width: 420px) { .bus-row { grid-template-columns: repeat(var(--cols), 38px); gap: 6px; } .seat, .aisle { width: 38px; } .seat { height: 40px; } .bus { padding-inline: 12px; } }

.holdbar { position: sticky; top: 66px; z-index: 10; background: #fff8db; border: 1px solid #f3df8c; border-radius: 12px; padding: 10px 16px; margin-bottom: 18px; font-weight: 600; }
.holdbar.urgent { background: #fdecea; border-color: #f5b5a8; color: #a12a12; }
.pax legend { font-weight: 800; padding: 0 6px; }
.row3 { display: grid; grid-template-columns: 1fr 90px 90px; gap: 10px; }
@media (max-width: 520px) { .row3 { grid-template-columns: 1fr 1fr; } .row3 .grow { grid-column: 1 / -1; } }
.grow { flex: 1; }

.eticket { border-top-color: var(--accent); }
.trip-times.big { margin: 18px 0; padding: 18px; background: #f6f5ef; border-radius: 14px; }
.trip-times.big b { font-size: 1.8rem; }
.trip-times.big .dur span { background: #f6f5ef; }
.track { margin-bottom: 18px; }
.track-bar { height: 10px; border-radius: 99px; background: #eceae1; overflow: hidden; }
.track-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.track p { margin: 6px 0 0; font-weight: 600; font-size: .92rem; }
.qr { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qr svg { width: 180px; height: auto; }
.qr-off { width: 180px; height: 180px; display: grid; place-items: center; text-align: center; border: 2px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: .85rem; padding: 12px; }
.st-confirmado { background: var(--brand-l); color: var(--brand-d); }
.st-reservado { background: #fff8db; }
.st-cancelado, .st-expirado { background: #fdecea; color: #a12a12; }
.cancel { margin-top: 16px; border-top: 1px dashed var(--line); padding-top: 12px; }
.cancel summary { cursor: pointer; font-weight: 700; color: #a12a12; }
.confirm { display: block; margin: 8px 0; }
.btn.danger { background: #c0392b; color: #fff; }
.ticket-row { text-decoration: none; color: var(--ink); }
.manifest h1 { margin-top: 10px; }
@media print { .topbar, .footer, .chat, .wa-float, .no-print, .flashes { display: none !important; } body { background: #fff; } }
.sister { margin-top: 14px; font-size: .9rem; }
.sister a { display: inline; color: var(--accent); font-weight: 700; }
.op-art { font-size: 5rem; text-align: center; place-items: center; }
.op-art small { font-size: 1rem; color: #fff; opacity: .85; }
/* Grid children must be allowed to shrink below their content width on phones. */
.hero-grid > *, .split > *, .vehicle-grid > *, .seat-grid > *, .results-layout > * { min-width: 0; }
.fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f input, .f select, .f textarea { min-width: 0; }

/* operator portal & message log */
.portal-bar { background: var(--ink); color: #fff; font-size: .9rem; padding: 8px 0; }
.links .linkish { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .95rem; }
.muted-row td { opacity: .55; }
.occ-bar { width: 110px; height: 8px; border-radius: 99px; background: #eceae1; overflow: hidden; }
.occ-bar span { display: block; height: 100%; background: var(--brand); }
.days { grid-template-columns: repeat(7, auto); justify-content: start; gap: 4px 12px; }
@media (max-width: 520px) { .days { grid-template-columns: repeat(4, auto); } }
.msgbody { max-width: 380px; }
.nt-enviado { background: var(--brand-l); color: var(--brand-d); }
.nt-simulado { background: #eef0f3; color: #4a5560; }
.nt-falhou { background: #fdecea; color: #a12a12; }
.nt-pendente { background: #fff8db; }
.driver { margin-top: 6px; font-size: .85rem; }
.driver summary { cursor: pointer; color: var(--brand); font-weight: 700; }
.driver form { display: grid; gap: 6px; margin-top: 6px; }
.driver input { font: inherit; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; }
.daypick input { font: inherit; padding: 10px; border: 1.5px solid var(--line); border-radius: 12px; height: 100%; }
