@font-face { font-family: 'Outfit'; font-weight: 400; font-display: swap; src: url(../fonts/outfit-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 500; font-display: swap; src: url(../fonts/outfit-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 600; font-display: swap; src: url(../fonts/outfit-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-weight: 700; font-display: swap; src: url(../fonts/outfit-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans Kannada'; font-weight: 400; font-display: swap; src: url(../fonts/noto-sans-kannada-kannada-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans Kannada'; font-weight: 600; font-display: swap; src: url(../fonts/noto-sans-kannada-kannada-600-normal.woff2) format('woff2'); }
/* CoastalTravel sandbox: orange and black accents on neutral greys, 14px cards / full-pill buttons. */
:root {
  --bg: #F4F4F3; --surface: #FFFFFF; --surface-2: #EDECEA; --line: #E1DFDC; --text: #141414; --muted: #5E5A56; --faint: #8B8681;
  --accent: #F26A1B; --accent-ink: #141414; --accent-soft: #FDEADC; --accent-strong: #B9450A;
  --ink: #141414; --ink-fg: #FFFFFF; --good: #157F3B; --good-soft: #E6F4EA;
  --warn: #A16207; --warn-soft: #FEF6DC; --bad: #B42318; --bad-soft: #FDECEA; --ladies: #C2477A; --ladies-soft: #FBE9F1;
  --shadow: 0 1px 2px rgba(20, 20, 20, .06), 0 8px 24px rgba(20, 20, 20, .07);
  --r: 14px; --r-sm: 10px; --pill: 999px;
  --font: 'Outfit', 'Noto Sans Kannada', system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111111; --surface: #1A1A1A; --surface-2: #232323; --line: #2E2E2E; --text: #F2F0EE; --muted: #A7A29D; --faint: #75706B;
    --accent: #FF7A2E; --accent-ink: #141414; --accent-soft: #3A2010; --accent-strong: #FF9B5E;
    --ink: #F2F0EE; --ink-fg: #141414; --good: #4ADE80; --good-soft: #10301C;
    --warn: #E8B23A; --warn-soft: #332709; --bad: #F2867B; --bad-soft: #3A1714; --ladies: #EE8AB5; --ladies-soft: #3A1A28;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111111; --surface: #1A1A1A; --surface-2: #232323; --line: #2E2E2E; --text: #F2F0EE; --muted: #A7A29D; --faint: #75706B;
  --accent: #FF7A2E; --accent-ink: #141414; --accent-soft: #3A2010; --accent-strong: #FF9B5E;
  --ink: #F2F0EE; --ink-fg: #141414; --good: #4ADE80; --good-soft: #10301C;
  --warn: #E8B23A; --warn-soft: #332709; --bad: #F2867B; --bad-soft: #3A1714; --ladies: #EE8AB5; --ladies-soft: #3A1A28;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px rgba(0,0,0,.35); color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
body { min-height: 100dvh; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }

.app { max-width: 1120px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
.wrap { padding: 0 16px; }
.narrow { max-width: 640px; margin: 0 auto; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid transparent; }
.top.lined { border-bottom-color: var(--line); }
.top h1 { font-size: 17px; font-weight: 600; line-height: 1.2; }
.top .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iconbtn { width: 40px; height: 40px; border-radius: var(--pill); display: grid; place-items: center; flex: none; }
.iconbtn:active { background: var(--surface-2); }
.sandbox { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--ink-fg); background: var(--ink); padding: 4px 9px; border-radius: var(--pill); white-space: nowrap; }

/* bottom nav */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.tabs .in { display: flex; width: 100%; max-width: 560px; }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; font-size: 12px; color: var(--faint); }
.tabs a.on { color: var(--text); font-weight: 600; }
.tabs a.on .ic { color: var(--accent); }

/* cards, buttons, fields */
.card { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 22px; border-radius: var(--pill); background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: 16px; white-space: nowrap; transition: transform .12s, background .2s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.block { width: 100%; }
.btn.ghost { background: var(--surface-2); color: var(--text); }
.btn.line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
.btn.danger { background: var(--bad); color: #fff; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 13px; color: var(--muted); font-weight: 500; }
.field input, .field select { width: 100%; min-width: 0; height: 48px; border-radius: var(--r-sm); border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px; outline: none; }
.field input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .err { font-size: 12.5px; color: var(--bad); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--ink); color: var(--ink-fg); box-shadow: none; font-weight: 600; }
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.tag.good { background: var(--good-soft); color: var(--good); }
.tag.warn { background: var(--warn-soft); color: var(--warn); }
.tag.bad { background: var(--bad-soft); color: var(--bad); }
.hscroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 16px 4px; margin: 0 -16px; }
.hscroll::-webkit-scrollbar { display: none; }
.sec { margin-top: 26px; }
.sec h2 { font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.divider { height: 1px; background: var(--line); }

/* bottom action bar */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.actionbar .in { max-width: 640px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }

/* sheet */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(10, 18, 14, .45); animation: fade .2s ease; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 8px 16px calc(20px + env(safe-area-inset-bottom)); animation: up .28s cubic-bezier(.16,1,.3,1); max-width: 640px; margin: 0 auto; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 4px auto 14px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.skel { background: var(--surface-2); border-radius: 8px; animation: pulse 1.2s ease-in-out infinite; }
.toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: var(--pill); font-size: 14px; animation: up .25s ease; max-width: calc(100vw - 32px); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (min-width: 1024px) { .app { padding-bottom: 40px; } .tabs { display: none; } }
