/* ==========================================================================
   Greece 2026 — trip companion
   Mobile-first. Light and dark. Aegean blue, whitewash, terracotta.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  --sea-900: #072536;
  --sea-800: #0A2E45;
  --sea-700: #12496C;
  --sea-600: #17608D;
  --sea-500: #1F7FB8;
  --sea-400: #4FA3D1;
  --sea-300: #97C8E4;
  --sea-100: #DCEBF5;
  --sea-50:  #EFF6FB;

  --terra:   #C2603C;
  --terra-d: #A34D2D;
  --terra-l: #FBEDE7;
  --olive:   #6B7F58;
  --olive-l: #EEF2E9;
  --gold:    #C08B2C;
  --gold-l:  #FAF1DE;
  --plum:    #7A4A6B;

  --ink:     #16232C;
  --ink-2:   #35505F;
  --muted:   #62798A;
  --faint:   #8FA3B1;

  --paper:   #FFFFFF;
  --canvas:  #F4F1EA;
  --raised:  #FFFFFF;
  --sunk:    #FAF8F3;
  --line:    #E2DFD6;
  --line-2:  #EDEAE2;

  --ok:      #2E7D5B;
  --ok-l:    #E7F3ED;
  --warn:    #A9761B;
  --warn-l:  #FBF1DC;
  --alert:   #B3402F;
  --alert-l: #FAE9E5;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --sh-1: 0 1px 2px rgba(10, 46, 69, .06), 0 1px 3px rgba(10, 46, 69, .04);
  --sh-2: 0 2px 6px rgba(10, 46, 69, .07), 0 8px 24px rgba(10, 46, 69, .06);
  --sh-3: 0 10px 40px rgba(10, 46, 69, .16);

  --topbar-h: 62px;
  --tabbar-h: 62px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, 'Times New Roman', serif;

  color-scheme: light;
}

:root[data-theme='dark'] {
  --sea-100: #163D55;
  --sea-50:  #10303F;
  --sea-300: #5A93B4;

  --terra-l: #3A2119;
  --olive-l: #212A1C;
  --gold-l:  #33270F;

  --ink:     #EAF1F5;
  --ink-2:   #C3D3DC;
  --muted:   #93A9B6;
  --faint:   #6C8494;

  --paper:   #0E1B23;
  --canvas:  #08131A;
  --raised:  #12222C;
  --sunk:    #0B1920;
  --line:    #22323D;
  --line-2:  #1A2A34;

  --ok-l:    #122C22;
  --warn-l:  #322610;
  --alert-l: #351913;

  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 2px 6px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .3);
  --sh-3: 0 10px 40px rgba(0, 0, 0, .55);

  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --sea-100: #163D55;
    --sea-50:  #10303F;
    --sea-300: #5A93B4;
    --terra-l: #3A2119;
    --olive-l: #212A1C;
    --gold-l:  #33270F;
    --ink:     #EAF1F5;
    --ink-2:   #C3D3DC;
    --muted:   #93A9B6;
    --faint:   #6C8494;
    --paper:   #0E1B23;
    --canvas:  #08131A;
    --raised:  #12222C;
    --sunk:    #0B1920;
    --line:    #22323D;
    --line-2:  #1A2A34;
    --ok-l:    #122C22;
    --warn-l:  #322610;
    --alert-l: #351913;
    --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
    --sh-2: 0 2px 6px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .3);
    --sh-3: 0 10px 40px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

img { max-width: 100%; display: block; }
a { color: var(--sea-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.2; font-weight: 600; }
h1 { font-family: var(--serif); font-size: 1.9rem; letter-spacing: -.02em; }
h2 { font-family: var(--serif); font-size: 1.35rem; letter-spacing: -.01em; }
h3 { font-size: 1.02rem; }
p  { margin: 0 0 .9em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 1.6rem 0; }

.ic { width: 18px; height: 18px; flex: none; }
.ic--chev { width: 16px; height: 16px; margin-left: auto; opacity: .45; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--sea-800); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--sea-500); outline-offset: 2px; border-radius: 4px; }

/* --- Layout --------------------------------------------------------------- */

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.main { padding-bottom: 3rem; }

.section { margin-top: 2.2rem; }
.section:first-child { margin-top: 0; }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: .9rem; flex-wrap: wrap;
}
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); font-size: .86rem; }
.section-head__link { font-size: .85rem; font-weight: 600; white-space: nowrap; }

.grid { display: grid; gap: 14px; }
@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .grid--sidebar { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 22px; } }

/* --- Top bar -------------------------------------------------------------- */

.topbar {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner {
  max-width: 1160px; margin: 0 auto; padding: 0 16px;
  height: var(--topbar-h); display: flex; align-items: center; gap: 14px;
}

.brand { display: flex; align-items: center; gap: 10px; color: var(--sea-800); min-width: 0; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 32px; height: 32px; color: var(--sea-800); flex: none; }
:root[data-theme='dark'] .brand__mark { color: var(--sea-600); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .brand__mark { color: var(--sea-600); } }
.brand__mark svg { width: 100%; height: 100%; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand__text strong { font-family: var(--serif); font-size: 1.02rem; color: var(--ink); letter-spacing: -.01em; }
.brand__text small { font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mainnav { display: none; margin-left: auto; gap: 2px; }
.mainnav__link {
  padding: .42rem .68rem; border-radius: 999px; font-size: .855rem; font-weight: 500;
  color: var(--ink-2); white-space: nowrap;
}
.mainnav__link:hover { background: var(--sea-50); color: var(--sea-700); text-decoration: none; }
.mainnav__link.is-active { background: var(--sea-800); color: #fff; }
:root[data-theme='dark'] .mainnav__link.is-active { background: var(--sea-600); }

.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.mainnav + .topbar__actions { margin-left: 6px; }

.iconbtn {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--raised); border-radius: 10px;
  cursor: pointer; color: var(--ink-2); transition: background .15s, border-color .15s;
}
.iconbtn:hover { background: var(--sea-50); border-color: var(--sea-300); color: var(--sea-700); }
.iconbtn .ic--moon { display: none; }
:root[data-theme='dark'] .iconbtn .ic--moon { display: block; }
:root[data-theme='dark'] .iconbtn .ic--sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .iconbtn .ic--moon { display: block; }
  :root:not([data-theme='light']) .iconbtn .ic--sun { display: none; }
}

@media (min-width: 920px) {
  .mainnav { display: flex; }
  .iconbtn--menu { display: none; }
}

/* --- Drawer --------------------------------------------------------------- */

.drawer { position: fixed; inset: 0; z-index: 100; background: rgba(7, 37, 54, .5); }
.drawer[hidden] { display: none; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--paper); box-shadow: var(--sh-3);
  display: flex; flex-direction: column;
  animation: slideIn .22s ease;
}
@keyframes slideIn { from { transform: translateX(18px); opacity: .4; } to { transform: none; opacity: 1; } }

.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--line);
}
.drawer__title { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; }
.drawer__nav { padding: 10px; overflow-y: auto; flex: 1; }
.drawer__link {
  display: flex; align-items: center; gap: 12px; padding: .78rem .8rem;
  border-radius: var(--r-sm); color: var(--ink); font-weight: 500; font-size: .94rem;
}
.drawer__link:hover { background: var(--sunk); text-decoration: none; }
.drawer__link.is-active { background: var(--sea-50); color: var(--sea-700); }
.drawer__link.is-active .ic { color: var(--sea-600); }
.drawer__foot { padding: 16px; border-top: 1px solid var(--line); }
.drawer__note { margin: .55rem 0 0; font-size: .74rem; color: var(--muted); text-align: center; }

/* --- Bottom tab bar ------------------------------------------------------- */

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar__link {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--tabbar-h); font-size: .66rem; font-weight: 600; letter-spacing: .01em;
  color: var(--muted); background: none; border: 0; cursor: pointer; text-decoration: none;
}
.tabbar__link .ic { width: 21px; height: 21px; }
.tabbar__link:hover { text-decoration: none; }
.tabbar__link.is-active { color: var(--sea-600); }
:root[data-theme='dark'] .tabbar__link.is-active { color: var(--sea-400); }

@media (min-width: 920px) {
  .tabbar { display: none; }
  body { padding-bottom: 0; }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 380px at 12% -10%, rgba(31, 127, 184, .55), transparent 62%),
    radial-gradient(900px 340px at 88% 0%, rgba(194, 96, 60, .34), transparent 60%),
    linear-gradient(168deg, var(--sea-800) 0%, var(--sea-900) 100%);
  color: #fff;
  padding: 30px 0 34px;
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 42px;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255,255,255,.045) 22px 44px);
  mask-image: linear-gradient(to top, #000, transparent);
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  pointer-events: none;
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: #E8B44A; margin-bottom: .55rem;
}
.hero h1 { color: #fff; font-size: clamp(1.85rem, 6vw, 2.9rem); margin-bottom: .3rem; }
.hero__lead { color: rgba(255,255,255,.82); max-width: 46ch; font-size: 1rem; margin: 0; }

.hero__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 22px;
}
@media (min-width: 620px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.hstat {
  background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r); padding: 12px 14px; backdrop-filter: blur(6px);
}
.hstat__v { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1.1; }
.hstat__l { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.66); margin-top: 2px; }

/* --- Page head (non-hero pages) ------------------------------------------- */

.pagehead { padding: 26px 0 18px; border-bottom: 1px solid var(--line); background: var(--paper); }
.pagehead__kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--terra); margin-bottom: .3rem;
}
.pagehead h1 { margin-bottom: .25rem; }
.pagehead__lead { color: var(--muted); max-width: 62ch; margin: 0; font-size: .95rem; }
.main > .wrap:first-child, .pagehead + .wrap { padding-top: 22px; }
.pagehead + .wrap { padding-top: 22px; }

/* --- Cards ---------------------------------------------------------------- */

.card {
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--sh-1); overflow: hidden;
}
.card--pad { padding: 16px; }
.card__head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--line-2);
}
.card__head h3 { margin: 0; font-size: 1rem; }
.card__head p { margin: 2px 0 0; font-size: .82rem; color: var(--muted); }
.card__body { padding: 14px 16px; }
.card__foot {
  padding: 12px 16px; border-top: 1px solid var(--line-2); background: var(--sunk);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.card__accent { height: 4px; }

.card--link { display: block; color: inherit; transition: transform .16s, box-shadow .16s, border-color .16s; }
.card--link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--sea-300); }

/* --- Buttons and chips ---------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: .58rem 1rem; border-radius: 999px; border: 1px solid transparent;
  font-size: .855rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--sea-700); color: #fff; }
.btn--primary:hover { background: var(--sea-800); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink-2); }
.btn--ghost:hover { border-color: var(--sea-300); background: var(--sea-50); color: var(--sea-700); }
.btn--danger { background: var(--alert); color: #fff; }
.btn--danger:hover { background: #943224; color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .4rem .78rem; font-size: .79rem; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: .22rem .58rem; border-radius: 999px; font-size: .72rem; font-weight: 600;
  background: var(--sunk); color: var(--muted); border: 1px solid var(--line-2);
  white-space: nowrap;
}
.chip--sea    { background: var(--sea-50);   color: var(--sea-700);  border-color: transparent; }
.chip--terra  { background: var(--terra-l);  color: var(--terra-d);  border-color: transparent; }
.chip--olive  { background: var(--olive-l);  color: var(--olive);    border-color: transparent; }
.chip--gold   { background: var(--gold-l);   color: var(--warn);     border-color: transparent; }
.chip--ok     { background: var(--ok-l);     color: var(--ok);       border-color: transparent; }
.chip--alert  { background: var(--alert-l);  color: var(--alert);    border-color: transparent; }
:root[data-theme='dark'] .chip--terra { color: #E9A183; }
:root[data-theme='dark'] .chip--olive { color: #A8BF92; }
:root[data-theme='dark'] .chip--gold  { color: #E0B665; }
:root[data-theme='dark'] .chip--ok    { color: #6EC49C; }
:root[data-theme='dark'] .chip--alert { color: #E38B7A; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- Key/value rows ------------------------------------------------------- */

.kv { display: grid; gap: 0; }
.kv__row {
  display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 10px;
  padding: .5rem 0; border-bottom: 1px dashed var(--line-2); font-size: .875rem;
}
.kv__row:last-child { border-bottom: 0; }
.kv__k { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; padding-top: 2px; }
.kv__v { min-width: 0; overflow-wrap: anywhere; }
.kv__v strong { font-weight: 600; }
@media (max-width: 420px) { .kv__row { grid-template-columns: 1fr; gap: 2px; } }

.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; font-weight: 600; }

/* --- Timeline ------------------------------------------------------------- */

.tl { position: relative; padding-left: 30px; }
.tl::before {
  content: ''; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--sea-300), var(--line)); border-radius: 2px;
}
.tl__item { position: relative; padding-bottom: 14px; }
.tl__item:last-child { padding-bottom: 0; }
.tl__dot {
  position: absolute; left: -30px; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper);
  border: 2px solid var(--sea-300); color: var(--sea-600);
}
.tl__dot .ic { width: 13px; height: 13px; }
.tl__dot--flight   { border-color: var(--sea-500);  color: var(--sea-600); }
.tl__dot--ferry    { border-color: #1F9AA8;         color: #1F9AA8; }
.tl__dot--transfer { border-color: var(--gold);     color: var(--gold); }
.tl__dot--checkin  { border-color: var(--olive);    color: var(--olive); }
.tl__dot--checkout { border-color: var(--faint);    color: var(--faint); }

.tl__row {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--raised); border: 1px solid var(--line); border-radius: var(--r);
  padding: 11px 13px; box-shadow: var(--sh-1); color: inherit;
}
a.tl__row:hover { text-decoration: none; border-color: var(--sea-300); box-shadow: var(--sh-2); }
.tl__time { font-size: .82rem; font-weight: 700; color: var(--sea-700); min-width: 46px; font-variant-numeric: tabular-nums; padding-top: 1px; }
:root[data-theme='dark'] .tl__time { color: var(--sea-400); }
.tl__body { min-width: 0; flex: 1; }
.tl__title { font-weight: 600; font-size: .93rem; margin: 0 0 1px; }
.tl__sub { font-size: .79rem; color: var(--muted); margin: 0; }

/* --- Day cards ------------------------------------------------------------ */

.day { scroll-margin-top: calc(var(--topbar-h) + 14px); }
.day + .day { margin-top: 16px; }
.day__head {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border-bottom: 1px solid var(--line-2);
}
.day__num {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  display: grid; place-items: center; line-height: 1;
  background: var(--sea-800); color: #fff;
}
.day__num b { font-family: var(--serif); font-size: 1.1rem; }
.day__num span { font-size: .58rem; letter-spacing: .09em; text-transform: uppercase; opacity: .72; }
.day--today .day__num { background: var(--terra); }
.day--past  { opacity: .72; }
.day--past .day__num { background: var(--faint); }
.day__meta { min-width: 0; flex: 1; }
.day__date { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.day__title { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin: 0; }
.day__where { font-size: .78rem; color: var(--muted); }

.plan { list-style: none; padding: 0; margin: 0; }
.plan li {
  position: relative; padding-left: 22px; margin-bottom: .42rem; font-size: .885rem; color: var(--ink-2);
}
.plan li::before {
  content: ''; position: absolute; left: 5px; top: .62em; width: 6px; height: 6px;
  border-radius: 50%; background: var(--sea-300);
}
.plan li:last-child { margin-bottom: 0; }

.sublabel {
  font-size: .69rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--faint); margin: 0 0 .5rem;
}

/* --- Callouts ------------------------------------------------------------- */

.note {
  display: flex; gap: 10px; padding: 11px 13px; border-radius: var(--r-sm);
  font-size: .845rem; line-height: 1.55; border: 1px solid transparent;
}
.note .ic { margin-top: 2px; }
.note--info  { background: var(--sea-50);   color: var(--sea-700);  }
.note--warn  { background: var(--warn-l);   color: var(--warn);     }
.note--alert { background: var(--alert-l);  color: var(--alert);    }
.note--ok    { background: var(--ok-l);     color: var(--ok);       }
.note--tip   { background: var(--olive-l);  color: var(--olive);    }
:root[data-theme='dark'] .note--info  { color: var(--sea-300); }
:root[data-theme='dark'] .note--warn  { color: #E0B665; }
:root[data-theme='dark'] .note--alert { color: #E38B7A; }
:root[data-theme='dark'] .note--ok    { color: #6EC49C; }
:root[data-theme='dark'] .note--tip   { color: #A8BF92; }
.note strong { font-weight: 700; }

/* --- Tabs ----------------------------------------------------------------- */

.tabs {
  display: flex; gap: 4px; overflow-x: auto; padding: 4px; margin-bottom: 16px;
  background: var(--sunk); border: 1px solid var(--line); border-radius: 999px;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs__btn {
  padding: .48rem .95rem; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font-size: .84rem; font-weight: 600; color: var(--muted); white-space: nowrap;
}
.tabs__btn:hover { color: var(--ink); }
.tabs__btn.is-active { background: var(--paper); color: var(--sea-700); box-shadow: var(--sh-1); }
:root[data-theme='dark'] .tabs__btn.is-active { color: var(--sea-300); }
.tabpanel[hidden] { display: none; }

/* --- Filter bar ----------------------------------------------------------- */

.filterbar { display: grid; gap: 10px; margin-bottom: 18px; }
.searchbox { position: relative; }
.searchbox .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.searchbox input {
  width: 100%; padding: .68rem .9rem .68rem 2.4rem; font: inherit; font-size: .9rem;
  border: 1px solid var(--line); border-radius: 999px; background: var(--raised); color: var(--ink);
}
.searchbox input:focus { outline: 2px solid var(--sea-400); outline-offset: 0; border-color: transparent; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters__btn {
  padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--raised); color: var(--ink-2); font-size: .79rem; font-weight: 600; cursor: pointer;
}
.filters__btn:hover { border-color: var(--sea-300); color: var(--sea-700); }
.filters__btn.is-active { background: var(--sea-800); border-color: var(--sea-800); color: #fff; }
:root[data-theme='dark'] .filters__btn.is-active { background: var(--sea-600); border-color: var(--sea-600); }
.filter-count { font-size: .8rem; color: var(--muted); }

/* --- Place cards ---------------------------------------------------------- */

.place {
  display: flex; flex-direction: column; height: 100%;
  border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line);
  background: var(--raised); box-shadow: var(--sh-1); color: inherit;
  transition: transform .18s, box-shadow .18s;
}
.place:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--sh-2); }
.place__top {
  position: relative; padding: 20px 18px 16px; color: #fff; min-height: 132px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.place__top::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(150deg, var(--accent, var(--sea-700)) 0%, rgba(7,37,54,.94) 100%);
}
.place__top::after {
  content: ''; position: absolute; inset: 0; opacity: .16;
  background:
    radial-gradient(60px 60px at 82% 22%, #fff, transparent 70%),
    repeating-linear-gradient(115deg, transparent 0 12px, rgba(255,255,255,.35) 12px 13px);
}
.place__top > * { position: relative; }
.place__gr { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.6); }
/* Greek drops its accents when uppercased, so never transform it. */
.gr { text-transform: none; letter-spacing: .01em; font-weight: 600; }
.place__name { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; line-height: 1.05; }
.place__dates { font-size: .78rem; color: rgba(255,255,255,.78); margin-top: 3px; }
.place__body { padding: 14px 16px 16px; flex: 1; display: flex; flex-direction: column; gap: 9px; }
.place__tag { font-size: .87rem; color: var(--ink-2); margin: 0; }
.place__foot { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }

/* --- Listing cards (do / eat) --------------------------------------------- */

.entry { display: flex; flex-direction: column; height: 100%; }
.entry__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.entry__name { font-size: 1rem; font-weight: 600; margin: 0 0 3px; }
.entry__meta { font-size: .76rem; color: var(--muted); margin: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; }
.entry__desc { font-size: .875rem; color: var(--ink-2); margin: .6rem 0 0; }
.entry__tip {
  margin-top: .7rem; padding: .6rem .7rem; border-radius: var(--r-sm);
  background: var(--gold-l); font-size: .8rem; color: var(--warn); line-height: 1.5;
}
:root[data-theme='dark'] .entry__tip { color: #E0B665; }
.entry__tip b { font-weight: 700; }
.entry__foot { margin-top: auto; padding-top: .85rem; display: flex; flex-wrap: wrap; gap: 6px; }
.entry__price { font-weight: 700; color: var(--olive); font-size: .92rem; letter-spacing: .04em; white-space: nowrap; }
:root[data-theme='dark'] .entry__price { color: #A8BF92; }

.rank {
  display: inline-flex; align-items: center; gap: 4px; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .2rem .5rem; border-radius: 6px;
}
.rank--must { background: var(--terra); color: #fff; }
.rank--recommended { background: var(--sea-100); color: var(--sea-700); }
.rank--if-time { background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }
.rank--signature { background: var(--terra); color: #fff; }
.rank--casual { background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }
:root[data-theme='dark'] .rank--recommended { background: var(--sea-50); color: var(--sea-300); }

/* --- Contact rows --------------------------------------------------------- */

.contact { display: flex; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line-2); }
.contact:last-child { border-bottom: 0; }
.contact__ic {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: var(--sea-50); color: var(--sea-600);
}
.contact--critical .contact__ic { background: var(--alert-l); color: var(--alert); }
.contact__main { min-width: 0; flex: 1; }
.contact__name { font-weight: 600; font-size: .93rem; margin: 0; }
.contact__detail { font-size: .8rem; color: var(--muted); margin: 1px 0 0; }
.contact__links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.contact__note { font-size: .79rem; color: var(--ink-2); margin: 7px 0 0; }

/* --- Checklist ------------------------------------------------------------ */

.check { display: flex; gap: 11px; padding: 12px 15px; border-bottom: 1px solid var(--line-2); align-items: flex-start; }
.check:last-child { border-bottom: 0; }
.check input[type='checkbox'] {
  width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--sea-600); cursor: pointer;
}
.check__body { min-width: 0; flex: 1; }
.check__task { display: block; font-weight: 600; font-size: .9rem; margin: 0; }
.check__detail { display: block; font-size: .8rem; color: var(--muted); margin: 3px 0 0; }
.check__task .chip { vertical-align: 1px; }
.check.is-done .check__task { text-decoration: line-through; color: var(--faint); }
.check.is-done .check__task .chip { text-decoration: none; opacity: .55; }
.check.is-done .check__detail { color: var(--faint); }

/* --- Route line (travel page) --------------------------------------------- */

.route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 4px 0 10px; }
.route__pt { min-width: 0; }
.route__pt--to { text-align: right; }
.route__time { font-family: var(--serif); font-size: 1.42rem; font-weight: 600; line-height: 1.1; }
.route__code { font-size: .78rem; font-weight: 700; letter-spacing: .09em; color: var(--sea-600); }
.route__place { font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.route__mid { display: grid; justify-items: center; gap: 2px; color: var(--faint); padding: 0 4px; }
.route__dur { font-size: .68rem; letter-spacing: .04em; white-space: nowrap; }
.route__line { width: 100%; min-width: 54px; height: 1px; background: var(--line); position: relative; }
.route__line::after {
  content: ''; position: absolute; right: -1px; top: -2px; width: 5px; height: 5px;
  border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg);
}

/* --- Misc ----------------------------------------------------------------- */

.stack { display: grid; gap: 14px; }
.stack--sm { gap: 9px; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.tiny  { font-size: .74rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.empty {
  padding: 34px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--r); background: var(--sunk);
}

.divider-label {
  display: flex; align-items: center; gap: 10px; margin: 1.6rem 0 .9rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.divider-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.sitefoot {
  border-top: 1px solid var(--line); background: var(--paper);
  padding: 26px 0 30px; margin-top: 40px; font-size: .82rem;
}
.sitefoot__grid { display: grid; gap: 16px; }
@media (min-width: 760px) { .sitefoot__grid { grid-template-columns: repeat(3, 1fr); } }
.sitefoot__brand { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin: 0 0 2px; }
.sitefoot__label { font-size: .69rem; text-transform: uppercase; letter-spacing: .09em; color: var(--faint); font-weight: 700; margin: 0 0 2px; }
.sitefoot__meta { color: var(--muted); margin: 0; }
.sitefoot__fine { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--faint); font-size: .76rem; max-width: 76ch; }

/* --- Sign in --------------------------------------------------------------- */

.page-login { padding-bottom: 0; }

.signin {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 16px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(900px 420px at 15% -8%, rgba(31, 127, 184, .55), transparent 62%),
    radial-gradient(760px 380px at 88% 4%, rgba(194, 96, 60, .34), transparent 60%),
    linear-gradient(168deg, var(--sea-800) 0%, var(--sea-900) 100%);
}

.signin__panel {
  width: 100%;
  max-width: 400px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: 26px 22px 22px;
}

.signin__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.signin__mark { width: 40px; height: 40px; flex: none; color: var(--sea-800); }
:root[data-theme='dark'] .signin__mark { color: var(--sea-600); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .signin__mark { color: var(--sea-600); } }
.signin__mark svg { width: 100%; height: 100%; }
.signin__kicker {
  margin: 0; font-size: .66rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--terra);
}
.signin__title { margin: 0; font-family: var(--serif); font-size: 1.5rem; letter-spacing: -.02em; }
.signin__lead { margin: 0 0 18px; font-size: .84rem; color: var(--muted); }
.signin__msg { margin-bottom: 14px; }
.signin__form { display: grid; gap: 14px; }
.signin__submit { margin-top: 2px; padding-top: .72rem; padding-bottom: .72rem; }
.signin__foot {
  margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line-2);
  font-size: .74rem; color: var(--faint); line-height: 1.6; text-align: center;
}

/* --- Form fields ----------------------------------------------------------- */

.field__label {
  display: block; margin-bottom: 6px;
  font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}
.field__control { position: relative; display: flex; align-items: center; }
.field__icon {
  position: absolute; left: 13px; display: grid; place-items: center;
  color: var(--faint); pointer-events: none;
}
.field__control input {
  width: 100%;
  padding: .78rem 3rem .78rem 2.5rem;
  font: inherit; font-size: 1rem;   /* 16px stops iOS zooming on focus */
  color: var(--ink);
  background: var(--sunk);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .15s, background .15s;
}
.field__control input:hover:not(:disabled) { border-color: var(--sea-300); }
.field__control input:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--sea-500);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--sea-500) 22%, transparent);
}
.field__control input:disabled { opacity: .55; cursor: not-allowed; }
.field__control input::placeholder { color: var(--faint); }

/* Hide the browser's own reveal control so there is only one eye. */
.field__control input::-ms-reveal,
.field__control input::-ms-clear { display: none; }

.field__eye {
  position: absolute; right: 6px;
  width: 38px; height: 38px; border: 0; border-radius: 9px;
  display: grid; place-items: center;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.field__eye:hover:not(:disabled) { background: var(--sea-50); color: var(--sea-700); }
.field__eye:disabled { opacity: .4; cursor: not-allowed; }
.field__eye .ic { width: 19px; height: 19px; }
.field__eye .ic--eye-off { display: none; }
.field__eye[aria-pressed='true'] .ic--eye-on { display: none; }
.field__eye[aria-pressed='true'] .ic--eye-off { display: block; }
.field__eye[aria-pressed='true'] { color: var(--sea-600); }

/* --- Signed-in user in the top bar ----------------------------------------- */

.userchip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 4px 10px 4px 4px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--raised); color: var(--ink-2);
  font-size: .82rem; font-weight: 600; white-space: nowrap;
}
.userchip:hover { text-decoration: none; border-color: var(--sea-300); color: var(--sea-700); }
.userchip__av {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: var(--sea-800); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
}
:root[data-theme='dark'] .userchip__av { background: var(--sea-600); }
.userchip__name { display: none; }
@media (min-width: 560px) { .userchip__name { display: inline; } }

.drawer__user {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; margin: 0 10px 6px;
  background: var(--sunk); border: 1px solid var(--line-2); border-radius: var(--r);
}
.drawer__user .userchip__av { width: 34px; height: 34px; font-size: .76rem; }
.drawer__user strong { display: block; font-size: .92rem; }
.drawer__user span { font-size: .74rem; color: var(--muted); }

@media print {
  .topbar, .tabbar, .drawer, .filterbar, .tabs, .iconbtn { display: none !important; }
  body { padding: 0; background: #fff; }
  .card, .tl__row { break-inside: avoid; box-shadow: none; }
  .hero { background: #0A2E45 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
