/* Kwahu Directory - mobile-first styles */
:root {
  --green: #0f7b4a;
  --green-dark: #0b5c37;
  --gold: #e0a423;
  --ink: #1c2321;
  --muted: #5f6b66;
  --line: #e3e8e5;
  --bg: #f5efe2;
  --card: #ffffff;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16,32,24,.08), 0 6px 20px rgba(16,32,24,.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.page { padding-top: 20px; padding-bottom: 48px; min-height: 60vh; }

/* ============================================================
   App layout: fixed left sidebar + content
   ============================================================ */
:root { --sidebar-w: 256px; --sidebar-bg: #0c3a29; --sidebar-bg2: #0a2f22; }
.layout { min-height: 100vh; }
.brand-mark { background: var(--green); color: #fff; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-size: 14px; letter-spacing: .5px; flex: 0 0 auto; }

.sidebar { position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 60;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-bg2) 100%);
  color: #e8f0ec; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; color: #fff; }
.sidebar-brand:hover { text-decoration: none; }
.sidebar-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.sidebar-brand-text strong { font-size: 16px; }
.sidebar-brand-text span { font-size: 12px; color: #9fc4b3; }

.sidebar-nav { flex: 1 1 auto; padding: 6px 12px 12px; }
.sidebar-group-label { text-transform: uppercase; letter-spacing: .6px; font-size: 10.5px; font-weight: 700;
  color: #7fae9a; padding: 16px 10px 6px; }
.sidebar-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  color: #d7e6df; font-size: 14.5px; font-weight: 500; margin-bottom: 2px; }
.sidebar-link:hover { background: rgba(255,255,255,.07); color: #fff; text-decoration: none; }
.sidebar-link.active { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; }
.sidebar-link.active .nav-ic { color: var(--gold); }
.nav-ic { width: 20px; height: 20px; flex: 0 0 auto; color: #9fc4b3; }
.sidebar-link:hover .nav-ic, .sidebar-link.active .nav-ic { color: currentColor; }
.sidebar-link.active .nav-ic { color: var(--gold); }
.sidebar-link-label { flex: 1 1 auto; }
.sidebar-badge { background: var(--gold); color: #3a2a00; font-size: 11px; font-weight: 800;
  min-width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; }

.sidebar-foot { padding: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.sidebar-foot .user-chip { color: #fff; padding: 6px 8px; border-radius: 10px; width: 100%; margin-bottom: 10px; }
.sidebar-foot .user-chip:hover { background: rgba(255,255,255,.07); }
.sidebar-foot .user-role { color: #9fc4b3; }
.sidebar-foot .btn-ghost { color: #e8f0ec; border-color: rgba(255,255,255,.2); background: transparent;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.sidebar-foot .btn-ghost:hover { background: rgba(255,255,255,.08); }
.sidebar-foot .btn-ghost .nav-ic { width: 17px; height: 17px; color: currentColor; }

.content { margin-left: var(--sidebar-w); min-height: 100vh; display: flex; flex-direction: column; }
.content > .page { flex: 1 1 auto; }

/* Top bar: only shown on mobile (holds the drawer toggle) */
.topbar { display: none; align-items: center; gap: 12px; height: 58px; padding: 0 16px;
  background: var(--bg); border-bottom: 1px solid rgba(16,32,24,.06); position: sticky; top: 0; z-index: 25; }
.topbar-brand { display: flex; align-items: center; gap: 9px; font-weight: 700; color: var(--ink); }
.side-toggle { display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  width: 40px; height: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.topbar-back { display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  width: 40px; height: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); flex: 0 0 auto; transition: transform .12s, background .15s; }
.topbar-back svg { width: 21px; height: 21px; }
.topbar-back:active { transform: translateX(-2px); background: var(--bg); }
.side-toggle-bars, .side-toggle-bars::before, .side-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.side-toggle-bars::before, .side-toggle-bars::after { content: ""; position: absolute; left: 0; }
.side-toggle-bars::before { top: -6px; } .side-toggle-bars::after { top: 6px; }
.topbar .notif-bell { margin-left: auto; }
.sidebar-overlay { position: fixed; inset: 0; background: rgba(6,20,14,.45); z-index: 55; }

@media (max-width: 900px) {
  /* Drawer stops just above the bottom tab bar so its footer (Sign in /
     Install app) is never hidden behind the fixed tab bar. */
  .sidebar { transform: translateX(-100%); transition: transform .22s ease; width: 260px;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 0 40px rgba(0,0,0,.3); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .content { margin-left: 0; }
  .topbar { display: flex; }
}

/* Buttons */
.btn { display: inline-block; padding: 9px 16px; border-radius: 10px; font-weight: 600;
  font-size: 14px; cursor: pointer; border: 1px solid transparent; text-align: center; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-gold { background: var(--gold); color: #3a2a00; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 13px 20px; font-size: 16px; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  color: #fff; border-radius: 20px; padding: 40px 24px; margin-bottom: 28px; }
.hero h1 { margin: 0 0 8px; font-size: 30px; line-height: 1.15; }
.hero p { margin: 0 0 22px; opacity: .92; max-width: 560px; }

/* Search bar */
.searchbar { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 1fr auto; background: #fff;
  padding: 12px; border-radius: 14px; box-shadow: var(--shadow); }
.searchbar select, .searchbar input, .field input, .field select, .field textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 15px; background: #fff; color: var(--ink); }
/* Checkboxes/radios must not inherit the full-width field sizing above,
   or they stretch across their row and push the label text off-screen. */
.field input[type=checkbox], .field input[type=radio],
.checklist input[type=checkbox], .checklist input[type=radio] {
  width: auto; flex: 0 0 auto; padding: 0; border-radius: 4px; }
@media (max-width: 720px) { .searchbar { grid-template-columns: 1fr; } }

/* Password show/hide toggle (eye sits inside the field) */
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; top: 50%; right: 6px; transform: translateY(-50%);
  width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0; border-radius: 8px;
  -webkit-tap-highlight-color: transparent; transition: color .15s, background .15s; }
.pw-toggle:hover { color: var(--green-dark); background: rgba(15,123,74,.08); }
.pw-toggle:active { transform: translateY(-50%) scale(.9); }
.pw-toggle svg { fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; display: block; }
.pw-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

/* ============================================================
   Sign in / auth screens
   ============================================================ */
.auth { max-width: 420px; margin: 0 auto; }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 28px 24px 26px; box-shadow: 0 2px 6px rgba(16,32,24,.06), 0 18px 40px rgba(16,32,24,.08);
  animation: authIn .5s cubic-bezier(.16,1,.3,1) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-card { animation: none; } }
.auth-logo { width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800;
  font-size: 20px; letter-spacing: .5px; background: linear-gradient(135deg, var(--green), var(--green-dark));
  box-shadow: 0 6px 16px rgba(15,123,74,.35); }
.auth-title { text-align: center; font-size: 25px; margin: 0 0 4px; }
.auth-sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.auth .field { margin-bottom: 16px; }
.auth .field label { font-size: 13px; }
/* input with a leading icon */
.input-ico { position: relative; }
.input-ico > svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .15s; }
.input-ico input { padding-left: 42px; }
.input-ico.pw-wrap input { padding-right: 48px; }
.auth .field input { padding-top: 13px; padding-bottom: 13px; border-radius: 12px;
  transition: border-color .15s, box-shadow .15s; }
.auth .field input:focus { outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15,123,74,.14); }
.input-ico:focus-within > svg { stroke: var(--green); }
.auth-row { display: flex; justify-content: flex-end; margin: -6px 0 16px; }
.auth-row a { font-size: 13px; font-weight: 600; }
.auth-btn { border-radius: 12px; position: relative; transition: transform .08s, background .15s; }
.auth-btn:active { transform: scale(.985); }
.auth-btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.auth-btn .spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff; border-radius: 50%; animation: authSpin .7s linear infinite;
  vertical-align: -3px; margin-right: 8px; }
.auth-btn[aria-busy="true"] .spin { display: inline-block; }
@keyframes authSpin { to { transform: rotate(360deg); } }
.caps-hint { display: none; align-items: center; gap: 6px; margin: -8px 0 14px;
  font-size: 12.5px; color: var(--gold); font-weight: 600; }
.caps-hint.show { display: flex; animation: authIn .25s both; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted);
  font-size: 12px; margin: 20px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Category chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px;
  font-size: 14px; color: var(--ink); display: inline-flex; gap: 7px; align-items: center; }
.chip:hover { border-color: var(--green); text-decoration: none; }

/* Cards grid */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 4px; font-size: 18px; }
.card .cat { color: var(--muted); font-size: 13px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600;
  padding: 3px 9px; border-radius: 999px; }
.badge-verified { background: #e6f4ec; color: var(--green-dark); }
.badge-indigene { background: #fbf0d6; color: #7a5600; }
.badge-featured { background: #fff3d6; color: #7a5600; }
.badge-avail { background: #e6f4ec; color: var(--green-dark); }
.badge-busy { background: #fff1e0; color: #8a4b00; }
.badge-unavail { background: #fbe4e2; color: var(--danger); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-available { background: #16a34a; } .dot-busy { background: #f59e0b; } .dot-unavailable { background: #dc2626; }

/* Meta rows */
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; align-items: center; }
.stars { color: var(--gold); letter-spacing: 1px; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field .hint { font-size: 13px; color: var(--muted); margin-top: 4px; }
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto; }
.form-wide { max-width: 760px; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); gap: 8px; }
.checklist label { display: flex; gap: 8px; align-items: center; font-weight: 400; font-size: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }

/* Flash */
.flash { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; }
.flash-info { background: #e8f0fe; color: #1a3d7c; }
.flash-success { background: #e6f4ec; color: var(--green-dark); }
.flash-error { background: #fbe4e2; color: var(--danger); }

/* Profile */
.profile-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.contact-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); }
.reveal-num { font-size: 22px; font-weight: 700; letter-spacing: .5px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; }
.gallery img { width: 100%; height: 130px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }

/* Tables (admin) */
table.data { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
table.data th, table.data td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
table.data th { background: #f1f5f3; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }

/* Footer */
.site-footer { background: #0f1613; color: #cfd8d3; margin-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 28px 16px 12px; }
.site-footer .muted { color: #93a29b; }
.footer-nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer a { color: #cfd8d3; }
.footer-legal { border-top: 1px solid #1e2a24; padding: 12px 16px 24px; font-size: 13px; }

.user-chip { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); }
.user-chip:hover { text-decoration: none; }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.user-meta { display: flex; flex-direction: column; line-height: 1.1; }
.user-name { font-weight: 600; font-size: 13px; }
.user-role { font-size: 11px; color: var(--muted); }

/* Pure-CSS star rating input (radios rendered right-to-left) */
.star-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label { font-size: 30px; line-height: 1; color: #d8ddda; cursor: pointer; transition: color .1s; }
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: var(--gold); }
.star-input input:focus-visible + label { outline: 2px solid var(--green); border-radius: 4px; }

.notif-bell { position: relative; font-size: 18px; text-decoration: none; }
.notif-count { position: absolute; top: -8px; right: -10px; background: var(--danger); color: #fff;
  font-size: 11px; font-weight: 700; min-width: 17px; height: 17px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.notif-item { display: block; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fff; }
.notif-item.unread { background: #f2f8f4; }

/* Top-right notification bell + dropdown (fixed, mobile + desktop) */
.notif { position: fixed; top: 10px; right: 14px; z-index: 56; }
.notif-bell-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card, #fff); font-size: 19px; cursor: pointer; box-shadow: 0 2px 12px rgba(16,32,24,.14);
  display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.notif-bell-btn:active { transform: scale(.94); }
.notif .notif-count { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 999px; background: var(--danger, #b3261e); color: #fff; font-size: 11px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--card, #fff); }
.notif .notif-count[hidden] { display: none; }
.notif-panel { position: absolute; top: 50px; right: 0; width: min(342px, 92vw); background: var(--card, #fff);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 44px rgba(16,32,24,.20); overflow: hidden; }
.notif-panel[hidden] { display: none; }
.notif-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px;
  border-bottom: 1px solid var(--line); }
.notif-markread { border: 0; background: transparent; color: var(--green-dark, #0b5c37); font-weight: 700;
  font-size: 12.5px; cursor: pointer; padding: 2px 4px; }
.notif-markread[hidden] { display: none; }
.notif-panel-body { max-height: min(60vh, 440px); overflow: auto; }
.notif-empty { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 14px; }
.notif-row { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink); }
.notif-row:last-child { border-bottom: 0; }
.notif-row:hover { background: #f6f9f7; text-decoration: none; }
.notif-row .notif-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; margin-top: 6px; flex: 0 0 auto; }
.notif-row.unread { background: #f2f8f4; }
.notif-row.unread .notif-dot { background: var(--green, #0f7b4a); }
.notif-row-main { display: flex; flex-direction: column; min-width: 0; }
.notif-msg { font-size: 13.5px; line-height: 1.35; }
.notif-time { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.notif-panel-foot { display: block; text-align: center; padding: 12px; font-weight: 700; font-size: 13.5px;
  color: var(--green-dark, #0b5c37); background: #fbfdfc; }
.notif-panel-foot:hover { text-decoration: none; background: #f1f6f3; }
/* On mobile the bell sits in the sticky topbar's right side. */
@media (max-width: 900px) { .notif { top: 8px; right: 12px; } }
.req-status { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.req-open { background: #e6f4ec; color: var(--green-dark); }
.req-closed { background: #eef2f0; color: var(--muted); }
.req-fulfilled { background: #fbf0d6; color: #7a5600; }

.section-title { margin: 28px 0 14px; font-size: 20px; }

/* Festival Car Pool */
.hero-carpool { background: linear-gradient(135deg,#0f7b4a 0%, #0b5c37 55%, #8a1f1f 165%); }
.hero-carpool h1 { font-size: 32px; }
.hero-carpool p, .hero-carpool p.muted { color: #eef5f1; opacity: .95; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
.card-golive { border: 2px solid var(--green, #0f7b4a); box-shadow: 0 2px 14px rgba(15,123,74,.12); }

/* Global driver online/offline bar */
.driver-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
  padding: 8px 14px; border-radius: 10px; margin: 0 0 16px; font-size: 13.5px; font-weight: 600;
  background: #eef1f0; color: #55615b; }
.driver-bar.is-online { background: #e6f4ec; color: var(--green-dark, #0b5c37); }
.driver-bar .dbar-actions { display: flex; gap: 8px; align-items: center; }
.dbar-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #37d67a;
  box-shadow: 0 0 0 0 rgba(55,214,122,.7); animation: pulse 1.8s infinite; vertical-align: middle; }
.pill-row { display: flex; flex-wrap: wrap; gap: 6px; }
.inline-form { display: inline; }

/* ============================================================
   Stay & Explore Kwahu (tourism) - explore, place, manage
   ============================================================ */
.hero-explore { background: linear-gradient(135deg, #0f7b4a 0%, #0b5c37 60%, #093f28 100%);
  position: relative; overflow: hidden; }
.hero-explore-inner { position: relative; z-index: 1; }
.hero-explore h1 { font-size: 34px; }
.hero-explore p { max-width: 620px; }

.searchbar-explore { margin-bottom: 14px; }

.type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.type-chips .chip { border: 1px solid var(--line); background: #fff; padding: 7px 13px; border-radius: 999px; font-size: 14px; }
.type-chips .chip-on { border-color: var(--green); background: #e6f4ec; color: var(--green-dark); font-weight: 600; }

/* Cards grid */
.place-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.place-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); color: var(--ink); transition: transform .12s ease, box-shadow .12s ease; }
.place-card:hover { text-decoration: none; transform: translateY(-3px);
  box-shadow: 0 6px 26px rgba(16,32,24,.14); }
.place-card-static:hover { transform: none; }
.place-cover { position: relative; aspect-ratio: 16 / 10; background: #eef2f0; }
.place-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-cover-fallback { width: 100%; height: 100%; display: grid; place-items: center; font-size: 54px;
  background: linear-gradient(135deg, #e6f4ec, #d3ead9); }
.place-type-badge { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.94);
  color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.place-featured { position: absolute; right: 10px; top: 10px; background: var(--gold); color: #3a2a00;
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.place-body { padding: 14px 16px 16px; }
.place-body h3 { margin: 0 0 4px; font-size: 18px; }
.place-tagline { margin: 0 0 10px; color: var(--muted); font-size: 14px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.place-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted); }
.place-price { font-weight: 700; color: var(--green-dark); }

/* Detail page */
.crumb { margin: 4px 0 14px; font-size: 14px; }
.place-detail { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.place-hero { border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #eef2f0; margin-bottom: 18px; }
.place-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.place-hero-fallback { font-size: 90px; }
.place-headline h1 { margin: 10px 0 4px; font-size: 30px; }
.place-detail-tagline { font-size: 17px; color: var(--ink); margin: 0 0 8px; }
.amenity-list { display: flex; flex-wrap: wrap; gap: 8px; }
.amenity { background: #e6f4ec; color: var(--green-dark); padding: 6px 12px; border-radius: 999px; font-size: 14px; }

.book-box { position: sticky; top: 78px; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 20px; box-shadow: var(--shadow); }
.book-price { font-size: 22px; font-weight: 800; color: var(--green-dark); margin-bottom: 14px; }
.book-form .field { margin-bottom: 10px; }
.book-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.book-contact { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Owner manage page */
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.edit-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.edit-photo { position: relative; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.edit-photo.is-cover { border-color: var(--green); box-shadow: 0 0 0 2px rgba(15,123,74,.25); }
.edit-photo img { width: 100%; height: 100px; object-fit: cover; display: block; }
.cover-tag { position: absolute; left: 6px; top: 6px; background: var(--green); color: #fff; font-size: 11px;
  padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.edit-photo-actions { display: flex; gap: 4px; padding: 6px; flex-wrap: wrap; }
.edit-photo-actions form { display: inline; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.booking-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-bottom: 1px solid var(--line); }
.booking-row:last-child { border-bottom: 0; }
.booking-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.admin-actions form { display: inline; }

@media (max-width: 860px) {
  .place-detail { grid-template-columns: 1fr; }
  .edit-grid { grid-template-columns: 1fr; }
  .book-box { position: static; }
}
@media (max-width: 560px) {
  .form-2col, .book-dates { grid-template-columns: 1fr; }
}

/* ============================================================
   Kwahu Farm Fresh (reuses .place-* card + .book-* detail styles)
   ============================================================ */
.hero-farm { background: linear-gradient(135deg, #1f7a3d 0%, #14672f 55%, #7a5600 160%); }
.hero-farm h1 { font-size: 34px; }
.hero-farm p { max-width: 640px; }

.farm-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0 8px; }
.farm-why-item { display: flex; gap: 12px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.farm-why-item span { font-size: 26px; line-height: 1; }
.farm-why-item strong { display: block; margin-bottom: 2px; }
.farm-why-item p { margin: 0; font-size: 13.5px; }
@media (max-width: 720px) { .farm-why { grid-template-columns: 1fr; } }

/* ============================================================
   Wide, left-aligned content + interactivity polish
   ============================================================ */
/* Fill the content area instead of a narrow centred column */
.content > .page.wrap { max-width: 1480px; margin: 0; width: 100%; padding: 28px 34px 60px; }
/* When signed in, leave a clear top band for the fixed notification bell (desktop). */
body.has-bell .content > .page.wrap { padding-top: 60px; }
@media (max-width: 900px) {
  .content > .page.wrap { padding: 20px 16px 48px; }
  body.has-bell .content > .page.wrap { padding-top: 20px; }
}

/* Let key grids breathe and pack more columns on wide screens */
.grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.place-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Smooth interactions everywhere */
a, .btn, .card, .chip, .sidebar-link, .metric, input, select, textarea, .badge {
  transition: transform .14s ease, box-shadow .16s ease, background-color .16s ease,
              border-color .16s ease, color .16s ease, filter .16s ease; }

/* Buttons: tactile feedback */
.btn:hover { filter: brightness(.97); transform: translateY(-1px); }
.btn:active { transform: translateY(0); filter: brightness(.94); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); }

/* Grid/listing cards lift on hover (content/detail cards stay calm) */
.grid .card, .place-card { will-change: transform; }
.grid .card:hover { transform: translateY(-4px); border-color: #cfe0d6;
  box-shadow: 0 14px 34px rgba(16,32,24,.13); }
.grid .card h3 a:hover { color: var(--green); text-decoration: none; }
.place-card:hover .place-cover img { transform: scale(1.04); }
.place-cover img { transition: transform .35s ease; }

/* Chips + form focus states */
.chip:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(16,32,24,.07); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(15,123,74,.14); }

/* Accessible keyboard focus */
a:focus-visible, .btn:focus-visible, .sidebar-link:focus-visible, .chip:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }

/* Sidebar link nudge on hover */
.sidebar-link:hover { transform: translateX(2px); }

/* Subtle staggered entrance for grid cards */
@keyframes kdRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .grid > *, .place-grid > * { animation: kdRise .38s ease both; }
  .grid > *:nth-child(2), .place-grid > *:nth-child(2) { animation-delay: .04s; }
  .grid > *:nth-child(3), .place-grid > *:nth-child(3) { animation-delay: .08s; }
  .grid > *:nth-child(4), .place-grid > *:nth-child(4) { animation-delay: .12s; }
  .grid > *:nth-child(5), .place-grid > *:nth-child(5) { animation-delay: .16s; }
  .grid > *:nth-child(6), .place-grid > *:nth-child(6) { animation-delay: .20s; }
}

/* Hero: a touch more presence on wide screens */
.hero { position: relative; overflow: hidden; }
.hero h1 { font-size: clamp(28px, 3.2vw, 40px); }
.hero p { font-size: clamp(15px, 1.3vw, 17px); max-width: 640px; }

/* PWA install button (in the sidebar footer) */
.pwa-install { margin-bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; }
@media (display-mode: standalone) { .pwa-install { display: none !important; } }

/* Explore & Farm search bars carry more fields (incl. price) - let them wrap */
.searchbar-explore, .searchbar-farm { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 720px) { .searchbar-explore, .searchbar-farm { grid-template-columns: 1fr; } }

/* Admin dashboard: highlight cards that need the admin's action */
.card.needs-action { position: relative; border-color: #e7a9a3; background: #fdf5f4;
  box-shadow: 0 1px 3px rgba(179,38,30,.10), 0 6px 20px rgba(179,38,30,.06); }
.card.needs-action h3 { color: var(--danger); }
.card.needs-action::after { content: "Action required"; position: absolute; top: 12px; right: 12px;
  background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .3px;
  padding: 3px 9px; border-radius: 999px; }
.grid .card.needs-action:hover { border-color: #dc7a72; box-shadow: 0 14px 34px rgba(179,38,30,.16); }

/* ============================================================
   Kwahu Events (reuses .place-* cards + .book-* detail styles)
   ============================================================ */
.hero-events { background: linear-gradient(135deg, #6d28a8 0%, #4b1e86 55%, #0f7b4a 170%); }
.hero-events h1 { font-size: 34px; }
.hero-events p { max-width: 640px; }

/* Date badge on event cards */
.event-date-badge { position: absolute; left: 10px; bottom: 10px; background: #fff; color: var(--ink);
  border-radius: 10px; padding: 5px 9px; text-align: center; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.event-date-badge .edb-day { display: block; font-size: 17px; font-weight: 800; color: var(--danger); }
.event-date-badge .edb-mon { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }

.event-when { font-size: 16px; font-weight: 600; color: var(--green-dark); margin: 8px 0 4px; }

/* Ticket picker */
.ticket-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ticket-opt { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; cursor: pointer; }
.ticket-opt:hover { border-color: var(--green); }
.ticket-opt input { margin: 0; }
.ticket-opt-main { flex: 1 1 auto; display: flex; flex-direction: column; }
.ticket-opt-name { font-weight: 600; font-size: 14.5px; }
.ticket-opt-price { font-weight: 800; color: var(--green-dark); }
.ticket-opt.is-sold { opacity: .55; cursor: not-allowed; }

/* Purchase success + ticket code */
.ticket-success { text-align: center; padding: 6px 4px; }
.ts-check { width: 52px; height: 52px; border-radius: 50%; background: #e6f4ec; color: var(--green);
  font-size: 28px; font-weight: 800; display: grid; place-items: center; margin: 4px auto 10px; }
.ticket-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 20px; font-weight: 800;
  letter-spacing: 2px; color: var(--ink); background: #f4f8f5; border: 1px dashed var(--green);
  border-radius: 10px; padding: 12px; }

/* Talent pool gate: seeker vs employer options */
.talent-gate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.talent-gate-grid .card { box-shadow: none; }
@media (max-width: 560px) { .talent-gate-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Talent seeker form + richer seeker cards
   ============================================================ */
.form-xwide { max-width: 820px; }
.form-section-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  color: var(--green-dark); margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.form-section-label:first-of-type { margin-top: 8px; }

.upload-photo { display: flex; align-items: center; gap: 12px; }
.photo-wrap { width: 66px; height: 66px; flex: 0 0 auto; display: inline-block; position: relative; }
.photo-preview { width: 66px; height: 66px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); background: #eef2f0; }
.photo-ph { width: 66px; height: 66px; border-radius: 12px; border: 1px dashed var(--line); background: #eef2f0;
  display: grid; place-items: center; font-size: 30px; }
.upload-photo input[type=file] { flex: 1 1 auto; min-width: 0; }

.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(179,38,30,.12) !important; }
.consent-field { background: #f4f8f5; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }

.auth-alt { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Seeker cards (employer / admin view) */
.seeker-head { display: flex; gap: 12px; align-items: flex-start; }
.seeker-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex: 0 0 auto;
  background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.seeker-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* Required-field asterisk */
.req { color: var(--danger); font-weight: 700; }

/* ============================================================
   Kwahu Kitchen (food ordering)
   ============================================================ */
.hero-food { background: linear-gradient(135deg, #c1440e 0%, #9a2d0a 55%, #e0a423 175%); }
.hero-food h1 { font-size: 34px; }
.hero-food p { max-width: 640px; }
.food-deliver-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600;
  color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.food-deliver-toggle input { width: auto; }

.menu-list { display: flex; flex-direction: column; gap: 10px; }
.menu-item { display: flex; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.menu-item-info { flex: 1 1 auto; min-width: 0; }
.menu-item-name { font-weight: 600; font-size: 15px; }
.menu-item-price { font-weight: 800; color: var(--green-dark); margin-top: 3px; font-size: 14px; }

.qty-stepper { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.qty-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 18px; font-weight: 700; cursor: pointer; color: var(--green-dark); line-height: 1; }
.qty-btn:hover { border-color: var(--green); background: #f1f5f3; }
.qty-input { width: 46px; text-align: center; padding: 7px 4px !important; border-radius: 8px; }

.order-summary { min-height: 24px; margin-bottom: 10px; }
.order-lines { list-style: none; margin: 0; padding: 0; }
.order-lines li { font-size: 13.5px; padding: 3px 0; border-bottom: 1px dashed var(--line); }
.order-totals { border-top: 1px solid var(--line); padding-top: 10px; }
.ot-row { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.ot-total { font-weight: 800; font-size: 17px; color: var(--green-dark); border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }

/* Opening-hours dropdowns (food vendor form) */
.hours-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hours-fields select { flex: 1 1 120px; min-width: 110px; }
.hours-fields .hours-to { color: var(--muted); font-size: 14px; flex: 0 0 auto; }

/* Kwahu Rides (riders & drivers) - reuses card + seeker-card + book styles */
.hero-rides { background: linear-gradient(135deg, #1f3a8a 0%, #14225e 55%, #0f7b4a 175%); }
.hero-rides h1 { font-size: 34px; }
.hero-rides p { max-width: 640px; }

/* Geolocation capture field */
.geo-capture { background: #f4f8f5; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.geo-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.geo-status { margin: 0; }

/* ============================================================
   Live hailing (Kwahu Rides live)
   ============================================================ */
.live-head { display:flex; flex-wrap:wrap; gap:12px; align-items:center; justify-content:space-between; margin-bottom:4px; }
.btn-danger { background:var(--danger); color:#fff; border-color:var(--danger); }
.btn-danger:hover { filter:brightness(.95); }
.seg { display:inline-flex; background:#eef2f0; border-radius:10px; padding:3px; gap:3px; }
.seg-btn { border:0; background:transparent; padding:8px 14px; border-radius:8px; font-weight:600; font-size:14px; cursor:pointer; color:var(--ink); }
.seg-btn.is-on { background:#fff; box-shadow:0 1px 3px rgba(0,0,0,.12); color:var(--green-dark); }
.drv-card, .req-card { border:1px solid var(--line); border-radius:12px; padding:12px; margin-bottom:10px; }
.drv-card { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.drv-main { display:flex; align-items:center; gap:10px; }
.drv-emoji { font-size:24px; }
.drv-pin { width:30px; height:30px; display:flex; align-items:center; justify-content:center; font-size:20px;
  background:#fff; border:2px solid var(--green); border-radius:50%; box-shadow:0 1px 4px rgba(0,0,0,.3); }
.pickup-pin { font-size:24px; line-height:1; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.req-actions { margin-top:8px; display:flex; gap:6px; flex-wrap:wrap; }
.track-status { padding:12px; border-radius:10px; font-weight:600; background:#fff1e0; color:#8a4b00; }
.track-accepted { background:#e6f4ec; color:var(--green-dark); }
.track-completed { background:#e6f4ec; color:var(--green-dark); }
.track-declined, .track-cancelled { background:#fbe4e2; color:var(--danger); }
.track-new, .track-searching { background:#fff1e0; color:#8a4b00; }
.trk-map { width:100%; height:220px; border-radius:12px; margin:0 0 12px; overflow:hidden; background:#eef1f0; }

/* Live hailing extras: online badge, fare estimate, broadcast offers */
.online-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(255,255,255,.15);
  color:#fff; border-radius:999px; padding:5px 12px; font-size:14px; margin:0 0 10px; }
.online-dot { width:9px; height:9px; border-radius:50%; background:#37d67a; box-shadow:0 0 0 0 rgba(55,214,122,.7); animation:pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(55,214,122,.6);} 70%{box-shadow:0 0 0 8px rgba(55,214,122,0);} 100%{box-shadow:0 0 0 0 rgba(55,214,122,0);} }
.fare-line { background:#e6f4ec; color:var(--green-dark); border-radius:10px; padding:10px 12px; font-weight:600; margin-bottom:12px; font-size:14px; }
.offer-head { font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); margin:8px 0 8px; }
.req-offer { border-color:var(--green); background:#f4fbf6; box-shadow:0 2px 10px rgba(15,123,74,.1); }

/* Ride rating widget */
.rate-box { border-top:1px solid var(--line); margin-top:10px; padding-top:8px; }
.rate-stars { font-size:30px; color:var(--gold); cursor:pointer; letter-spacing:4px; line-height:1; }
.rate-star { user-select:none; }

/* Live ETA line on the hail tracking view */
.eta-line { background:#e6f4ec; color:var(--green-dark); border-radius:10px; padding:8px 12px; margin:8px 0; font-size:14px; }

/* Trip confirmation code (shown to the rider) */
.code-box { background:#f4f8f5; border:1px dashed var(--green); border-radius:12px; padding:12px; margin-top:10px; text-align:center; }
.code-label { font-size:12px; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.5px; }
.code-digits { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:34px; font-weight:800; letter-spacing:8px; color:var(--green-dark); margin:4px 0; }

/* Mobile-only vs desktop-only page layouts (new phone concept vs original desktop).
   Mirrors the .home-mobile/.home-desktop split; breakpoint = sidebar/hamburger. */
.kx-d { display: none; }
@media (min-width: 900px) { .kx-d { display: block; } .kx-m { display: none; } }

/* Shared "save" heart button (sits on a position:relative cover/image). */
.save-heart { position:absolute; top:8px; right:8px; width:34px; height:34px; border:0; border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--danger,#b3261e); font-size:17px; line-height:1; cursor:pointer;
  z-index:4; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 6px rgba(0,0,0,.18); }
.save-heart:hover { background:#fff; }
/* On place cards the ★Featured badge sits top-right, so drop the heart bottom-right. */
.place-cover .save-heart { top:auto; bottom:8px; right:8px; }

/* Place-search for pickup/destination */
.geo-tools { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:6px; }
.geo-wrap { position:relative; }
.geo-sug {
  display:none; position:absolute; top:calc(100% + 2px); left:0; right:0; z-index:1200;
  background:#fff; border:1px solid var(--line); border-radius:10px; overflow:hidden;
  box-shadow:0 10px 28px rgba(0,0,0,.16); max-height:280px; overflow-y:auto;
}
.geo-sug-item, .geo-sug-empty, .geo-sug-loading { padding:10px 12px; font-size:13.5px; line-height:1.3; }
.geo-sug-item { cursor:pointer; border-bottom:1px solid var(--line); }
.geo-sug-item:last-child { border-bottom:0; }
.geo-sug-item:hover { background:#eef5f1; }
.geo-sug-empty { color:var(--muted); }
.geo-sug-loading { color:var(--muted); font-style:italic; }
.geo-sug-loading::before { content:""; display:inline-block; width:12px; height:12px; margin-right:7px; vertical-align:-1px;
  border:2px solid var(--line); border-top-color:var(--green-dark,#2f7d53); border-radius:50%; animation:geo-spin .7s linear infinite; }
@keyframes geo-spin { to { transform:rotate(360deg); } }

/* Hail / Go-Live panels flow with the page (no inner scroll box) so all form fields show */
.map-side-flow { max-height:none !important; overflow:visible !important; }

/* Admin users: role filter chips, role badges, search bar */
.role-chips { display:flex; flex-wrap:wrap; gap:8px; margin:4px 0 16px; }
.role-chip { display:inline-flex; align-items:center; gap:7px; padding:7px 13px; border:1px solid var(--line);
  border-radius:999px; background:#fff; color:var(--ink); font-size:13.5px; font-weight:600; text-decoration:none; }
.role-chip span { background:#eef1f0; color:#55615b; border-radius:999px; padding:1px 8px; font-size:12px; font-weight:700; }
.role-chip:hover { border-color:var(--green); }
.role-chip.is-on { background:var(--green,#0f7b4a); color:#fff; border-color:var(--green,#0f7b4a); }
.role-chip.is-on span { background:rgba(255,255,255,.25); color:#fff; }
.role-badge { display:inline-block; padding:3px 10px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }
.user-search { display:flex; flex-wrap:wrap; gap:8px; margin:0 0 16px; }
.user-search input[type=text] { flex:1 1 260px; max-width:360px; padding:9px 12px; border:1px solid var(--line); border-radius:10px; font-size:14px; }

/* My requests: Sent / Received tabs */
.rtabs { display:flex; flex-wrap:wrap; gap:6px; border-bottom:2px solid var(--line); margin:4px 0 18px; }
.rtab { display:inline-flex; align-items:center; gap:8px; padding:11px 18px; text-decoration:none; font-weight:600;
  color:var(--muted); border:2px solid transparent; border-bottom:0; border-radius:12px 12px 0 0; margin-bottom:-2px; }
.rtab:hover { color:var(--ink); background:#f3faf5; }
.rtab.is-on { color:var(--green-dark,#0b5f39); background:#fff; border-color:var(--line); border-bottom:2px solid #fff; }
.rtab-n { background:#eef1f0; color:#55615b; border-radius:999px; padding:1px 9px; font-size:12.5px; font-weight:700; }
.rtab.is-on .rtab-n { background:var(--green,#0f7b4a); color:#fff; }

/* My requests: received channel cards */
.rtab-n-hot { background:var(--green,#0f7b4a) !important; color:#fff !important; }
.recv-card { display:flex; flex-direction:column; }
.recv-top { display:flex; align-items:center; justify-content:space-between; }
.recv-icon { font-size:30px; line-height:1; }
.recv-count { min-width:34px; text-align:center; font-weight:800; font-size:17px; color:var(--muted);
  background:#eef1f0; border-radius:10px; padding:4px 10px; }
.recv-count.hot { background:var(--green,#0f7b4a); color:#fff; }
.recv-card .btn-block { margin-top:auto; }

/* My requests: received item sections */
.recv-sec { margin:0 0 26px; }
.recv-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:8px; margin:0 0 8px; border-bottom:1px solid var(--line); padding-bottom:6px; }
.recv-head h2 { font-size:17px; margin:0; display:flex; align-items:center; gap:10px; }
.recv-badge { background:var(--green,#0f7b4a); color:#fff; border-radius:999px; padding:2px 10px; font-size:12.5px; font-weight:700; }
.st-pill { display:inline-block; padding:2px 10px; border-radius:999px; font-size:12px; font-weight:700; white-space:nowrap; }

/* Diaspora + proximity badges */
.badge-diaspora { background:#e7f0ff; color:#1b4a8a; }
.badge-distance { background:#eef7f1; color:#0b5f39; }

/* Provider proximity search row */
.prov-search .prox-row { display:flex; flex-wrap:wrap; gap:8px; align-items:center; width:100%; margin-top:8px; }
.prov-search .prox-row select, .prov-search .prox-row input[type=text] { padding:9px 12px; border:1px solid var(--line); border-radius:10px; font-size:14px; }

/* Produce escrow: order total + buyer status steps */
.escrow-total { background:#eef7f1; border:1px solid var(--line); border-radius:10px; padding:10px 12px; margin:6px 0 10px; font-size:15px; }
.escrow-total strong { color:var(--green-dark,#0b5f39); }
.escrow-steps { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0; }
.escrow-step { display:flex; align-items:center; gap:8px; padding:8px 12px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:13.5px; }
.escrow-step.done { border-color:var(--green,#0f7b4a); color:var(--green-dark,#0b5f39); font-weight:600; }
.escrow-dot { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:#eef1f0; color:#55615b; font-size:12px; font-weight:700; }
.escrow-step.done .escrow-dot { background:var(--green,#0f7b4a); color:#fff; }

/* Mobile bottom tab bar (food-delivery style). Desktop uses the sidebar, so this
   shows only at the mobile breakpoint, matching when the sidebar collapses. */
.tabbar { display: none; }
@media (max-width: 900px) {
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--sidebar-bg, #0c3a29);
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -8px 28px rgba(16,32,24,.18);
    /* Tall, tactile bar that always clears the iOS home indicator. */
    padding: 9px 6px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  .tabbar-item {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center;
    justify-content: flex-start; gap: 4px; padding-top: 2px; text-decoration: none;
    color: rgba(255,255,255,.72); font-size: 11px; font-weight: 600; letter-spacing: .1px;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar-item:hover { text-decoration: none; }
  /* Pill behind the icon: lights up on the active tab and when pressed. */
  .tabbar-ic {
    display: flex; align-items: center; justify-content: center;
    width: 62px; height: 34px; border-radius: 999px; background: transparent;
    transition: background .2s ease, transform .18s ease;
  }
  .tabbar-item .nav-ic { width: 25px; height: 25px; stroke-width: 1.9; transition: stroke-width .18s ease; }
  .tabbar-item:active .tabbar-ic { transform: scale(.88); background: rgba(255,255,255,.12); }
  .tabbar-item.active { color: var(--gold, #e0a423); }
  .tabbar-item.active .tabbar-ic { background: rgba(255,255,255,.14); }
  .tabbar-item.active .nav-ic { stroke-width: 2.3; }
  .tabbar-label { line-height: 1; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  /* Keep page content and footer clear of the fixed bar. */
  .content > .page.wrap { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); }
  .site-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
