/* Lemesos Live — Mediterranean editorial: limestone paper, sea ink, coral accent. */
:root {
  --ink: #0f1720;
  --ink-soft: #26313d;
  --paper: #f7f2e8;
  --paper-2: #efe7d8;
  --sea: #0d4c63;
  --coral: #e2542f;
  --olive: #6b7d4e;
  --line: #d9cfbc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15,23,32,.06), 0 10px 30px rgba(15,23,32,.07);
  --card: #ffffff;
  --shade: rgba(15,23,32,.055);
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --serif: "Fraunces", Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
.muted { color: #6b7280; }
.tiny { font-size: 12px; }

/* loader */
.loader { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: var(--paper); transition: opacity .45s ease, visibility .45s; }
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader.done .loader-mark { transform: scale(.96); }
.loader-mark { font: 700 44px/1 var(--serif); letter-spacing: .06em; color: var(--sea);
  border: 2px solid var(--sea); border-radius: 18px; padding: 18px 22px; }
.loader-text { margin-top: 18px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.dots i { animation: blink 1.2s infinite; font-style: normal; }
.dots i:nth-child(2) { animation-delay: .2s; } .dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%,100% { opacity: .15 } 50% { opacity: 1 } }

/* nav */
.nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; row-gap: 10px; padding: 16px max(20px, 4vw);
  border-bottom: 1px solid var(--line); background: var(--paper);
  position: sticky; top: 0; z-index: 20; backdrop-filter: blur(8px); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { background: var(--sea); color: var(--paper); font: 700 14px/1 var(--serif);
  padding: 7px 8px; border-radius: 8px; letter-spacing: .05em; }
.brand-name { font: 600 19px/1 var(--serif); }
.brand-name span { color: var(--coral); margin-left: 3px; }
.nav-links { display: flex; gap: 18px; margin-left: 8px; font-size: 14px; }
.nav-links a { color: var(--ink-soft); }
.nav-user { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.nav-user form { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--sea); color: var(--paper); border: 1px solid var(--sea); border-radius: 999px;
  padding: 9px 18px; font: 500 14px var(--sans); cursor: pointer; transition: transform .08s, background .15s; }
.btn:hover { background: #0a3b4d; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--sea); }
.btn.ghost:hover { background: rgba(13,76,99,.07); }
.btn.danger { background: #a4271a; border-color: #a4271a; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn.wide { width: 100%; }

/* hero + filters */
.wrap { max-width: 1180px; margin: 0 auto; padding: 28px max(20px, 4vw) 64px; }
.hero h1 { font-size: clamp(30px, 5vw, 54px); line-height: 1.02; margin: 12px 0 8px; }
.hero h1 em { font-style: italic; color: var(--coral); }
.lede { color: var(--ink-soft); font-size: 16px; margin: 0 0 20px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.filters.slim { padding: 8px; margin-bottom: 16px; }
.filters input[type="search"] { flex: 1 1 240px; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--card); color: var(--ink); font: inherit; }
.filters select { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); font: inherit; color: var(--ink); }
.chip-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-soft); }
input[type="checkbox"] { accent-color: var(--sea); width: 16px; height: 16px; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 24px; }
.card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; transition: transform .12s ease, box-shadow .12s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(15,23,32,.06), 0 18px 40px rgba(15,23,32,.1); }
.card-link { display: flex; flex-direction: column; min-height: 196px; padding: 18px 18px 16px; color: var(--ink); }
.card-link:hover { text-decoration: none; }
.card-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
/* The time is the one fact on this row a reader scans for, so it must never be the thing that falls off the
   card. With wrapping it drops to its own line and right-aligns, instead of being pushed out of the viewport
   by however many tags an event happens to carry. */
.card-top .when { margin-left: auto; flex: 0 0 auto; white-space: nowrap; }
.tag { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px;
  border-radius: 999px; background: rgba(13,76,99,.09); color: var(--sea); font-weight: 600; }
.tag.free { background: rgba(107,125,78,.14); color: var(--olive); }
.tag-plain { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); font-weight: 500;
  letter-spacing: .04em; }
.tag-music { background: rgba(226,84,47,.1); color: #b23c1e; }
.tag-nightlife { background: rgba(76,42,120,.1); color: #4c2a78; }
.tag-networking, .tag-business { background: rgba(13,76,99,.1); color: var(--sea); }
.tag-tech { background: rgba(20,120,140,.12); color: #0f6f80; }
.tag-arts, .tag-theatre { background: rgba(150,60,120,.1); color: #8a2f6b; }
.tag-food { background: rgba(190,120,30,.12); color: #9a5a10; }
.tag-sport, .tag-wellness { background: rgba(107,125,78,.12); color: #4f6039; }
.when { margin-left: auto; font-size: 12px; color: #6b7280; font-variant-numeric: tabular-nums; }
.card h3 { font-size: 21px; margin: 2px 0 6px; line-height: 1.15; }
.venue { font-size: 13px; color: var(--ink-soft); margin: 0 0 8px; }
.blurb { font-size: 13.5px; color: #4b5563; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; justify-content: space-between; gap: 10px; font-size: 13px;
  border-top: 1px dashed var(--line); padding-top: 10px; margin-top: auto; }
.price { color: var(--ink); font-weight: 600; }
.go { color: var(--coral); }
.save-form { position: absolute; top: 12px; right: 12px; z-index: 3; }
.save-form button { pointer-events: auto; }
.save { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.92); color: var(--coral); font-size: 17px; line-height: 1; cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease, transform .12s ease; }
.save:hover { transform: scale(1.06); border-color: var(--coral); }
/* Saved state has to be unmistakable at a glance in a grid of posters: solid fill, white heart. */
.save.on { background: var(--coral); color: #fff; border-color: var(--coral);
  box-shadow: 0 3px 12px rgba(226, 84, 47, .35); }
.save.pop { animation: save-pop .3s ease; }
@keyframes save-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.28); }
  100% { transform: scale(1); }
}
.save-wide.on { background: var(--coral); border-color: var(--coral); color: #fff; }
.empty { grid-column: 1/-1; padding: 40px; text-align: center; color: var(--ink-soft); }

/* calendar */
.cal-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.cal-head h1 { font-size: clamp(26px, 4vw, 40px); margin: 8px 0 12px; }
.cal-nav { display: flex; gap: 8px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.cal-wd { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
  padding: 6px 6px; font-weight: 600; }
.cal-day { position: relative; min-width: 0; min-height: 124px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.cal-day.has { cursor: default; }
.cal-day.weekend { background: var(--paper-2); }
.cal-day.pad { background: transparent; border: none; }
.cal-day.today { border-color: var(--coral); box-shadow: 0 0 0 1px var(--coral) inset; }
.cal-day:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
.dnum { font-size: 13px; font-weight: 600; color: var(--ink); opacity: .8; font-variant-numeric: tabular-nums; }
.cal-day.today .dnum { color: var(--coral); opacity: 1; }
.cal-ev { max-width: 100%; font-size: 11.5px; line-height: 1.3; padding: 4px 7px; border-radius: 7px; color: var(--ink);
  background: rgba(13,76,99,.10); border-left: 3px solid var(--sea);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev b { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-ev:hover { text-decoration: none; background: rgba(13,76,99,.18); }
.cal-ev.tag-nightlife { border-left-color: #8a4fd0; background: rgba(138,79,208,.14); }
.cal-ev.tag-music { border-left-color: #d4552f; background: rgba(212,85,47,.14); }
.cal-ev.tag-networking, .cal-ev.tag-business { border-left-color: var(--sea); }
.cal-ev.tag-tech { border-left-color: #1a8fa6; background: rgba(26,143,166,.14); }
.cal-ev.tag-arts, .cal-ev.tag-theatre { border-left-color: #a2447f; background: rgba(162,68,127,.14); }
.cal-ev.tag-food { border-left-color: #b0741f; background: rgba(176,116,31,.14); }
.more { font-size: 11px; font-weight: 600; color: var(--sea); }

/* hover / focus expansion: the cell is the trigger, the popover holds the full day */
.day-pop { position: fixed; z-index: 60; width: 300px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  box-shadow: 0 18px 40px rgba(15,23,32,.22); opacity: 0; transform: translateY(-4px);
  pointer-events: none; transition: opacity .12s ease, transform .12s ease; max-height: min(320px, 60vh); overflow: auto; }
.day-pop.open { opacity: 1; transform: none; pointer-events: auto; }
.day-pop-date { margin: 0 0 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-soft); }
.pop-row { display: flex; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); color: var(--ink); }
.pop-row:hover { text-decoration: none; background: var(--paper-2); }
.pop-time { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--sea);
  min-width: 42px; }
.pop-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pop-body strong { font-size: 13px; font-weight: 600; line-height: 1.25; }
.pop-body span { font-size: 11.5px; color: var(--ink-soft); }

@media (hover: none) {
  /* touch: no hover, so a tap opens the day's own page listing */
  .day-pop { display: none; }
}
/* detail */
.detail { max-width: 900px; }
.back { font-size: 13px; color: var(--ink-soft); }
.detail h1 { font-size: clamp(28px, 4.4vw, 44px); margin: 10px 0 6px; }
.detail-when { color: var(--ink-soft); font-variant-numeric: tabular-nums; margin: 0 0 22px; }
.detail-cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.detail-desc { font-size: 16.5px; line-height: 1.6; white-space: pre-line; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.panel-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7c8794; margin: 0 0 8px; }
.panel p { margin: 0 0 8px; }
.link { font-size: 13px; }

/* auth / account */
.auth { max-width: 420px; margin: 40px auto; }
.auth h1 { font-size: 30px; margin-bottom: 18px; }
.auth form { display: flex; flex-direction: column; gap: 12px; }
.auth label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.auth input[type="email"], .auth input[type="password"], .auth input[type="text"] {
  padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: var(--card); color: var(--ink); }
.error { background: #fdecea; color: #a4271a; border: 1px solid #f5c6c0; padding: 10px 12px; border-radius: 10px; }
.account { max-width: 720px; }
.saved-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.saved-row span { color: #6b7280; font-size: 13px; }

/* newsletter + footer */
.digest { margin-top: 48px; padding: 26px; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius); display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.digest h2 { margin: 0 0 6px; font-size: 24px; }
.mini { display: flex; gap: 8px; flex-wrap: wrap; }
/* A 220px min-width input plus a button is 334px — wider than the 317px footer column on a 360px phone, so the
   subscribe field pushed the page 21px sideways. The input now fills the row and the button wraps under it
   rather than setting a floor the layout cannot meet. */
.mini input { padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; font: inherit;
  background: var(--card); color: var(--ink); flex: 1 1 180px; min-width: 0; }
.mini .btn { flex: 0 0 auto; }
.foot { border-top: 1px solid var(--line); padding: 28px max(20px, 4vw); background: var(--card); }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 26px; max-width: 1180px; margin: 0 auto 18px; }
.foot-brand { font: 600 17px var(--serif); margin: 0 0 6px; }
.foot-head { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #7c8794; margin: 0 0 8px; }
.foot a { display: block; font-size: 13.5px; margin-bottom: 6px; color: var(--ink-soft); }
body:has(.consent) { padding-bottom: 92px; }
.consent { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); z-index: 40;
  background: var(--ink); color: var(--paper); border-radius: 12px; padding: 14px 18px; display: flex;
  gap: 16px; align-items: center; max-width: 720px; box-shadow: 0 10px 30px rgba(0,0,0,.25); flex-wrap: wrap; }
.consent p { margin: 0; font-size: 13px; flex: 1 1 320px; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn.ghost { color: var(--paper); border-color: rgba(247,242,232,.4); }

/* legal */
.legal { background: var(--paper); }
.legal-body { max-width: 760px; margin: 32px auto; padding: 0 20px; }
.legal-body h1 { font-size: 34px; }
.legal-body h2 { font-size: 22px; margin-top: 28px; }
.legal-body p, .legal-body li { font-size: 15px; line-height: 1.65; color: var(--ink-soft); }
.legal-body table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal-body th, .legal-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.legal-body th { background: var(--paper-2); }

@media (max-width: 760px) {
  .detail-cols { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav { gap: 10px; }
  .nav-user .btn.ghost { display: none; }   /* "Sign in" wrapped onto two lines; Join covers it */
  .brand-name { font-size: 17px; }
  .cal-day { min-height: 82px; padding: 6px; }
  .cal-ev { font-size: 10px; }
  .foot-cols { grid-template-columns: 1fr; }
}

/* moderation */
.notice { background: rgba(107,125,78,.14); border: 1px solid rgba(107,125,78,.4); padding: 8px 12px; border-radius: 10px; }
.draft { border-left: 3px solid var(--coral); }
.draft-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.draft-text { font-size: 13.5px; color: #4b5563; white-space: pre-line; max-height: 110px; overflow: hidden; }
.draft-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.draft-actions form { margin: 0; }
.table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.tr { display: grid; grid-template-columns: 2fr 1.4fr .7fr .7fr 1.6fr; gap: 8px; padding: 8px 12px; font-size: 13px;
  border-bottom: 1px dashed var(--line); }
.tr.th { background: var(--paper-2); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #7c8794; }
.status-blocked { color: #a4271a; }
.status-ok { color: var(--olive); }

/* ---------- dark mode ---------- */
:root[data-theme="dark"] {
  --ink: #eef2f7;
  --ink-soft: #b6c2d0;
  --paper: #0d1218;
  --paper-2: #141b24;
  --card: #161d27;
  --line: #28323f;
  --shade: rgba(255,255,255,.06);
  --sea: #7fc4e0;
  --coral: #ff7a56;
  --olive: #a3b57e;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #eef2f7; --ink-soft: #b6c2d0; --paper: #0d1218; --paper-2: #141b24; --card: #161d27;
    --line: #28323f; --shade: rgba(255,255,255,.06); --sea: #7fc4e0; --coral: #ff7a56; --olive: #a3b57e;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.35);
  }
}
/* Surfaces read their colour from tokens, so the OS-dark path and the manual toggle stay identical. */
body, .card, .panel, .cal-day, .foot, .table, .nav { background: var(--card); }
.nav { background: var(--paper); }

.theme-toggle { background: transparent; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; width: 34px; height: 34px; cursor: pointer; font-size: 15px; line-height: 1; }

/* ---------- poster cards ---------- */
.card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--paper-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-media img { transform: scale(1.04); }
.card-fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 600 34px var(--serif);
  color: var(--sea); background: linear-gradient(135deg, rgba(13,76,99,.16), rgba(226,84,47,.12)); }
.card-date { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.94); color: #0f1720;
  border-radius: 9px; padding: 5px 9px; text-align: center; line-height: 1; font-weight: 600;
  font-size: 10px; letter-spacing: .1em; }
.card-date b { display: block; font: 600 17px/1.1 var(--serif); letter-spacing: 0; }
.card-flag { position: absolute; top: 10px; right: 10px; background: var(--olive); color: #fff;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 6px 0 4px; font-size: 19px; }
.card-body h3 a { color: inherit; }
.card-body h3 a:hover { text-decoration: none; color: var(--sea); }
.card-link { padding: 0; min-height: 0; }
.card-foot { margin-top: auto; }

/* ---------- detail hero ---------- */
.detail-hero { margin: 14px 0 18px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 21 / 9;
  background: var(--paper-2); }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .card { animation: rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .card:nth-child(2) { animation-delay: .04s; } .card:nth-child(3) { animation-delay: .08s; }
  .card:nth-child(4) { animation-delay: .12s; } .card:nth-child(5) { animation-delay: .16s; }
  .card:nth-child(6) { animation-delay: .2s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* chips */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.chip:hover { text-decoration: none; border-color: var(--sea); color: var(--sea); }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* map */
.map { height: min(70vh, 620px); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden;
  background: var(--paper-2); }
.leaflet-container { background: var(--paper-2); font: inherit; }
:root[data-theme="dark"] .leaflet-tile { filter: brightness(.62) contrast(1.05) saturate(.7); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile { filter: brightness(.62) contrast(1.05) saturate(.7); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-popup-content-wrapper,
  :root:not([data-theme="light"]) .leaflet-popup-tip { background: var(--card); color: var(--ink); } }
:root[data-theme="dark"] .leaflet-popup-content-wrapper, :root[data-theme="dark"] .leaflet-popup-tip {
  background: var(--card); color: var(--ink); }

/* similar events */
.similar { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.similar h2 { font-size: 22px; margin: 0 0 14px; }
.similar-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.similar-card { display: flex; flex-direction: column; gap: 6px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; padding: 14px; color: var(--ink); }
.similar-card:hover { text-decoration: none; border-color: var(--sea); }
.similar-card strong { font-size: 15px; line-height: 1.25; }

.panel.warn { border-left: 3px solid var(--coral); }
.save-search { margin: -6px 0 10px; }

/* ---------- promos ---------- */
.promo { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card);
  margin: 0 0 14px; box-shadow: var(--shadow); }
.promo:hover { text-decoration: none; border-color: var(--coral); }
.promo-hero { position: relative; min-height: 132px; }
.promo-img { width: 210px; height: 132px; object-fit: cover; flex: 0 0 210px; }
.promo-body { padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.promo-tag { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); font-weight: 600; }
.promo-tag.small { margin-right: 8px; }
.promo-body strong { font: 600 19px var(--serif); }
.promo-blurb { font-size: 13.5px; color: var(--ink-soft); }
.promo-cta { font-size: 13px; color: var(--sea); margin-top: 4px; }
.promo-strip { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }

/* ---------- admin ---------- */
.admin { max-width: 1080px; }
.admin-nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 10px 0 16px;
  border-bottom: 1px solid var(--line); margin-bottom: 18px; font-size: 14px; }
.admin-nav a { color: var(--ink-soft); padding: 6px 2px; }
.admin-nav a.on { color: var(--ink); font-weight: 600; border-bottom: 2px solid var(--coral); }
.admin-nav .spacer { flex: 1; }
.admin-nav .inline { margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 10px; margin-bottom: 18px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
  display: flex; flex-direction: column; gap: 2px; }
.kpi.alert { border-color: var(--coral); }
.kpi a { color: inherit; }
.kpi-n { font: 600 26px/1.1 var(--serif); }
.kpi-l { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #7c8794; }
.admin-cols { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 28px; gap: 8px; align-items: center;
  font-size: 13px; margin-bottom: 6px; }
.bar-label { color: var(--ink-soft); text-transform: capitalize; }
.bar { height: 8px; background: linear-gradient(90deg, var(--sea), var(--coral)); border-radius: 999px;
  width: var(--w); min-width: 6px; }
.bar-n { text-align: right; color: #7c8794; font-variant-numeric: tabular-nums; }
.table.compact .tr { grid-template-columns: 1.6fr .9fr .5fr .8fr; padding: 6px 10px; font-size: 12.5px; }
.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.admin-form .wide { grid-column: 1 / -1; }
.admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; letter-spacing: .08em;
  text-transform: uppercase; color: #7c8794; }
.admin-form input, .admin-form select, .admin-form textarea { font: 15px var(--sans); letter-spacing: normal;
  text-transform: none; color: var(--ink); background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 12px; }
.admin-form textarea { resize: vertical; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }
.promo-row { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px dashed var(--line); }
.promo-row p { margin: 4px 0 0; }
@media (max-width: 760px) {
  .admin-cols { grid-template-columns: 1fr; }
  .admin-form { grid-template-columns: 1fr; }
  .promo-img { width: 110px; height: 100px; flex-basis: 110px; }
}

/* language switcher: four languages, no dropdown — one click each, and the choice is a cookie */
.langs { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.langs a { font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 4px 7px; border-radius: 999px;
  color: var(--ink-soft); }
.langs a:hover { text-decoration: none; color: var(--ink); background: var(--paper-2); }
.langs a.on { background: var(--sea); color: #fff; }
@media (max-width: 640px) { .langs a { padding: 4px 5px; font-size: 10px; } }

/* At 390px eight language links plus the brand and a button measure 410px — 20px of horizontal scroll on the
   page, which on a phone means the right edge of every card sits under your thumb. The languages keep every
   option and take their own row instead of being shrunk into illegibility or trimmed to a few. */
@media (max-width: 480px) {
  .nav-user { margin-left: auto; }
  .langs { order: 3; width: 100%; justify-content: space-between; }
  .langs a { padding: 5px 6px; }
}

/* Pins resolved to a town rather than a venue: same colour, hollow, so the map never overstates precision. */
.pin-approx { opacity: .72; box-shadow: 0 0 0 2px rgba(255,255,255,.55) inset; }


/* --- save confirmation --------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 12px);
  background: var(--ink); color: #fff; border-radius: 999px;
  padding: 10px 18px; font-size: 13.5px; box-shadow: 0 10px 30px rgba(15, 23, 32, .28);
  opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease;
  z-index: 80; max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
/* The cookie banner owns the bottom of the screen on a first visit; the confirmation sits above it. */
body:has(.consent) .toast { bottom: 104px; }

/* saved list in the account */
.saved-row form { margin: 0; }
.saved-heart { border: 1px solid var(--line); background: #fff; color: var(--coral);
  width: 30px; height: 30px; border-radius: 999px; cursor: pointer; font-size: 15px; line-height: 1; }
.saved-heart:hover { border-color: var(--coral); }
