/* Cobh Foodie Trail: deep harbour navy, champagne gold, ivory. Fraunces + Figtree (shared with Cobh Loop Tours). */
:root {
  --navy: #0E2440;
  --navy-2: #17345A;
  --navy-soft: #E7ECF3;
  --gold: #C9A961;        /* champagne gold: accents on navy, rules, highlights */
  --gold-ink: #7E6428;    /* gold text on light backgrounds (AA contrast) */
  --gold-soft: #F5EEDC;
  --ivory: #F7F3EA;
  --card: #FFFDF8;
  --line: #E4DCCB;
  --ink: #0E2440;
  --text: #2A3446;
  --muted: #5D6677;
  --ok: #1F6F55;
  --ok-soft: #E3F1EA;
  --danger: #A63A2E;
  --display: "Fraunces", Georgia, serif;
  --body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --top-h: 64px;
  --side-w: 340px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 36, 64, .14);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; overflow: hidden; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--navy-2); }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 16px; padding: 0 16px; background: var(--navy); border-bottom: 2px solid var(--gold); position: relative; z-index: 1001; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { height: 44px; width: auto; display: block; }
.brand-ft { font: 700 26px/1 var(--display); color: var(--gold); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; }
.brand-sub { display: flex; flex-direction: column; font-size: 12px; color: #C9D3E2; line-height: 1.3; border-left: 1px solid rgba(201,169,97,.45); padding-left: 12px; white-space: nowrap; }
.brand-dates { color: var(--gold); font-weight: 600; }
.tabs { margin-left: auto; display: flex; gap: 2px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; padding: 3px; }
.tab { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 9px; text-decoration: none; color: #C9D3E2; font-weight: 600; font-size: 14px; }
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: #fff; }
.tab.on { background: var(--gold); color: var(--navy); box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.count { min-width: 19px; height: 19px; border-radius: 10px; background: #D2384E; color: #fff; font-size: 11px; display: inline-grid; place-items: center; padding: 0 5px; }
.info-btn { border: 1px solid rgba(201,169,97,.6); background: transparent; border-radius: 50%; width: 38px; height: 38px; display: grid; place-items: center; color: var(--gold); flex: none; }
.preview-bar { flex: none; background: var(--gold-soft); color: #4D3F1D; border-bottom: 1px solid var(--line); font-size: 13px; padding: 7px 16px; text-align: center; position: relative; z-index: 1000; }
.preview-bar strong { color: var(--gold-ink); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; margin-right: 8px; }

/* ---------- views ---------- */
main { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; }
.view-map { display: flex; }
.side { width: var(--side-w); flex: none; display: flex; flex-direction: column; background: var(--card); border-right: 1px solid var(--line); min-height: 0; }
.side-head { padding: 14px 14px 10px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.side-title { font-size: 17px; }
.search { display: flex; align-items: center; gap: 8px; background: var(--ivory); border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; color: var(--muted); }
.search svg { width: 17px; height: 17px; }
.search input { border: 0; background: transparent; font: inherit; padding: 9px 0; width: 100%; color: var(--text); outline: none; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 500; color: var(--text); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--navy)); }
.chip[aria-pressed="true"] { background: var(--c, var(--navy)); border-color: var(--c, var(--navy)); color: #fff; }
.chip[aria-pressed="true"] i { background: #fff; }
.loc-list { list-style: none; margin: 0; padding: 6px 8px 24px; overflow-y: auto; flex: 1; }
.loc { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: start; padding: 11px 8px; border-radius: 12px; cursor: pointer; border: 1.5px solid transparent; }
.loc:hover { background: var(--ivory); }
.loc.sel { border-color: var(--gold); background: var(--gold-soft); }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; margin-top: 1px; }
.num.sq { border-radius: 7px; }
.loc-name { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.3; }
.loc-name .tick { color: var(--ok); margin-left: 4px; }
.loc-sum { color: var(--muted); font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; margin-top: 1px; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.badge { font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 7px; background: color-mix(in srgb, var(--c, var(--navy)) 13%, white); color: color-mix(in srgb, var(--c, var(--navy)) 80%, black); }
.badge.prop { background: var(--gold-soft); color: var(--gold-ink); border: 1px dashed var(--gold); }
.badge.tag { background: var(--ok-soft); color: var(--ok); }
.heart { border: 0; background: none; padding: 6px; color: #9AA3B2; border-radius: 50%; }
.heart:hover { color: var(--danger); }
.heart.on { color: #D2384E; }
.heart.on svg { fill: currentColor; }
.loc-list .group-head { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 14px 8px 4px; }
.list-empty { color: var(--muted); padding: 24px 12px; text-align: center; }

/* map */
.map-wrap { flex: 1; position: relative; min-width: 0; }
#map { position: absolute; inset: 0; background: #E8E4DA; }
.map-chips { display: none; }
.leaflet-container { font-family: var(--body); }
.locate { position: absolute; right: 12px; top: 12px; z-index: 500; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); }
.locate.on { color: #2563EB; }
.key { position: absolute; right: 12px; bottom: 22px; z-index: 500; background: rgba(255, 253, 248, .96); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px 12px 10px; font-size: 13px; min-width: 170px; }
.key-toggle { border: 0; background: none; padding: 0; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.key-toggle::after { content: " ▾"; }
.key.closed .key-toggle::after { content: " ▸"; }
.key.closed .key-list { display: none; }
.key-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 5px; }
.key-list li { display: flex; align-items: center; gap: 8px; }
.key-list .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--c); border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: grid; place-items: center; color: #fff; font-size: 9px; font-weight: 800; }
.key-list .dot.sq { border-radius: 4px; }
.filter-pill { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 600; background: var(--navy); color: #fff; border-radius: 12px; padding: 8px 8px 8px 14px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; max-width: calc(100% - 120px); }
.filter-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-pill button { border: 0; background: rgba(255,255,255,.14); color: #fff; border-radius: 8px; padding: 5px 9px; font-size: 13px; white-space: nowrap; }

/* pins */
.pin { position: relative; width: 34px; height: 44px; }
.pin svg { width: 34px; height: 44px; stroke: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.28)); }
.pin b { position: absolute; top: 7px; left: 0; width: 34px; text-align: center; color: #fff; font: 700 13px/18px var(--body); }
.pin.prop svg .body { stroke: #fff; stroke-width: 1.5; stroke-dasharray: 3 2; }
.pin.sel { z-index: 1000 !important; }
.pin.sel svg { transform: scale(1.18); transform-origin: 50% 100%; }
.pin.done::after { content: "✓"; position: absolute; right: -4px; top: -4px; width: 16px; height: 16px; border-radius: 50%; background: var(--ok); color: #fff; font: 800 10px/16px var(--body); text-align: center; border: 1.5px solid #fff; }
.sq-pin { width: 28px; height: 28px; border-radius: 7px; background: var(--c); color: #fff; display: grid; place-items: center; font: 800 16px var(--body); border: 2px solid #fff; box-shadow: 0 2px 5px rgba(0,0,0,.3); }
.sq-pin svg { width: 17px; height: 17px; }
.group-pin { display: flex; align-items: center; gap: 8px; background: var(--c); color: #fff; border: 2px solid #fff; border-radius: 22px; padding: 4px 12px 4px 4px; box-shadow: 0 3px 8px rgba(0,0,0,.3); font: 700 13px var(--body); white-space: nowrap; }
.group-pin b { width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--c); display: grid; place-items: center; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: #2563EB; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.2); }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow); }
.leaflet-popup-content { margin: 12px 14px; font: 14px/1.4 var(--body); min-width: 200px; }
.pop-cat { display: flex; gap: 6px; align-items: center; margin-bottom: 4px; }
.pop-name { font: 600 16px/1.25 var(--display); color: var(--ink); }
.pop-addr { color: var(--muted); font-size: 13px; }
.pop-more { border: 0; background: none; color: var(--navy-2); font-weight: 600; padding: 0; margin-top: 6px; font-size: 13px; }

/* ---------- list page ---------- */
.list-page { height: 100%; display: flex; flex-direction: column; max-width: 980px; margin: 0 auto; background: var(--card); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.list-head { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.list-head h2 { font-size: 22px; }
.loc-list.wide .loc { padding: 14px 10px; }
.loc-list.wide .loc-sum { -webkit-line-clamp: 2; }

/* ---------- pages ---------- */
.view-page { overflow-y: auto; }
.page { max-width: 640px; margin: 0 auto; padding: 28px 18px 64px; }
.page-title { font-size: 30px; }
.page-sub { color: var(--muted); margin-top: 4px; }
.ticket-hint { margin: 18px 0 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.ticket-hint b { color: var(--ink); }
.ticket-hint .big { font: 700 22px var(--display); color: var(--navy); }
.empty { text-align: center; color: var(--muted); padding: 32px 0 12px; }
.empty svg { width: 30px; height: 30px; color: #A3ACBA; margin-bottom: 8px; }
.eyebrow { font: 700 12px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 30px 0 10px; }
.share-list { display: grid; gap: 10px; }
.share-row { display: flex; align-items: center; gap: 14px; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.share-row:hover { border-color: var(--gold); }
.share-row span:nth-child(2) { flex: 1; display: grid; }
.share-row b { color: var(--ink); font-weight: 600; }
.share-row small { color: var(--muted); font-size: 13px; }
.share-row i { font-style: normal; color: var(--muted); font-size: 20px; }
.share-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.share-ico svg { width: 21px; height: 21px; }
.ico-story { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: var(--gold); }
.ico-wa { background: #25A55A; }
.ico-photo { background: linear-gradient(135deg, #C9A961, #A8823A); }
.ico-copy { background: var(--navy-soft); color: var(--navy); }
.hashtags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hashtags button { border: 0; background: var(--gold-soft); color: var(--gold-ink); border-radius: 999px; padding: 5px 12px; font-weight: 600; font-size: 13px; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.stat { background: var(--navy-2); color: #fff; border-radius: var(--radius); padding: 22px 12px; text-align: center; }
.stat.dark { background: var(--navy); }
.stat b { display: block; font: 700 38px/1 var(--display); color: #fff; }
.stat span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.rank { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.rank li { display: grid; grid-template-columns: 30px 1fr 110px 54px; gap: 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.rank li:first-child { border-top: 0; }
.rank .pos { font: 700 15px var(--display); color: var(--muted); text-align: center; }
.rank .pos.medal { color: var(--gold-ink); }
.rank .nm { font-weight: 600; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rank .bar i { display: block; height: 100%; background: #D2384E; border-radius: 3px; }
.rank.green .bar i { background: var(--ok); }
.rank .n { text-align: right; font-weight: 700; color: #D2384E; font-size: 14px; }
.rank.green .n { color: var(--ok); }
.rank .none { display: block; color: var(--muted); cursor: default; padding: 16px; text-align: center; }

/* ---------- details sheet ---------- */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; display: flex; justify-content: center; pointer-events: none; }
.sheet-inner { pointer-events: auto; width: 100%; max-height: 62vh; overflow-y: auto; background: var(--card); border-radius: 20px 20px 0 0; box-shadow: 0 -10px 40px rgba(14,36,64,.22); padding: 10px 20px calc(16px + env(safe-area-inset-bottom)); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
.sheet-grab { width: 42px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 10px; }
.sheet-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.num-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.sheet-head h2 { font-size: 21px; }
.sheet-addr { color: var(--muted); font-size: 14px; }
.sheet-body { display: grid; gap: 10px; padding: 14px 0; }
.taste { background: var(--ivory); border-radius: 12px; padding: 10px 14px; }
.credits { display: inline-flex; align-items: center; gap: 5px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 12px; border-radius: 6px; padding: 2px 8px; margin-bottom: 4px; }
.credits.two { background: var(--gold-soft); color: var(--gold-ink); }
.note { border: 1px dashed var(--gold); background: var(--gold-soft); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: #4D3F1D; }
.note b { color: var(--gold-ink); }
.desc { color: var(--text); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; color: var(--muted); }
.facts a { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.facts svg { width: 16px; height: 16px; }
.sheet-actions { display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--card); padding-top: 6px; }
.btn { border-radius: 12px; padding: 12px 16px; font-weight: 600; font-size: 15px; border: 1px solid var(--line); background: var(--card); color: var(--ink); flex: 1; }
.btn.primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn.primary:hover { background: var(--navy-2); }
.btn.done { background: var(--ok-soft); border-color: #9CCBB3; color: var(--ok); }
.btn.ghost:hover { border-color: var(--gold); }
.btn.narrow { flex: 0 0 auto; }
.btn.fav-on { color: #D2384E; border-color: #F0B9C2; background: #FDF0F2; }
.btn:disabled { opacity: .7; cursor: default; }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 2000; background: rgba(14,36,64,.45); display: grid; place-items: center; padding: 16px; }
.modal-card { position: relative; background: var(--card); border-radius: 20px; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 22px; box-shadow: var(--shadow); }
.modal-card.wide { width: min(620px, 100%); }
.modal-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--ivory); }
.modal h2 { font-size: 21px; padding-right: 40px; }
.modal .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.drop { margin: 16px 0; border: 2px dashed #B9CDBF; border-radius: 14px; background: #F3F8F4; min-height: 130px; display: grid; place-items: center; text-align: center; color: var(--ok); font-weight: 600; cursor: pointer; overflow: hidden; position: relative; }
.drop img { width: 100%; max-height: 260px; object-fit: cover; display: block; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.field { display: grid; gap: 4px; margin: 10px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select { font: inherit; font-weight: 400; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 10px 0; }
.check input { margin-top: 3px; }
.modal .btn { width: 100%; margin-top: 8px; }
.fine { font-size: 12px; color: var(--muted); margin-top: 10px; }
.story-preview { width: 100%; border-radius: 14px; display: block; margin: 14px 0; box-shadow: var(--shadow); }
.info-hero { background: var(--navy); color: #fff; margin: -22px -22px 18px; padding: 26px 22px 22px; border-radius: 20px 20px 0 0; }
.info-hero h2 { color: #fff; font-size: 26px; }
.info-hero p { color: #DCE3EE; }
.info-hero .gold { color: var(--gold); font-weight: 600; margin-top: 6px; letter-spacing: .04em; }
.info-sec { margin-top: 16px; }
.info-sec h3 { font-size: 17px; margin-bottom: 4px; }
.info-sec p, .info-sec li { font-size: 14px; color: var(--text); }
.info-sec ul { padding-left: 18px; margin: 6px 0 0; }
.endorse { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 20px; padding-top: 14px; font-size: 13px; color: var(--muted); }
.endorse img { height: 40px; width: auto; border-radius: 6px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3000; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; }

@media (min-width: 761px) {
  .sheet { left: var(--side-w); }
  body:has(.view-map[hidden]) .sheet { left: 0; }
}

/* ---------- phones ---------- */
@media (max-width: 760px) {
  :root { --top-h: 56px; }
  .top { padding: 0 12px; gap: 10px; }
  .brand img { height: 34px; width: auto; }
  .brand-ft { font-size: 19px; }
  .brand-sub { display: none; }
  .tab { color: var(--muted); }
  .tab:hover { color: var(--navy); }
  .tab.on { background: var(--navy); color: #fff; box-shadow: none; }
  .tab.on svg { color: var(--gold); }
  .tabs { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0; border: 0; border-top: 1px solid var(--line); background: var(--card); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; z-index: 1600; }
  .tab { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 4px; flex: 1; position: relative; }
  .tab svg { width: 21px; height: 21px; }
  .tab .count { position: absolute; top: 1px; left: 52%; }
  .info-btn { margin-left: auto; }
  main { margin-bottom: calc(62px + env(safe-area-inset-bottom)); }
  .side { display: none; }
  .map-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; position: absolute; left: 0; right: 0; top: 0; z-index: 550; padding: 10px; scrollbar-width: none; }
  .map-chips::-webkit-scrollbar { display: none; }
  .map-chips .chip { box-shadow: 0 2px 6px rgba(14,36,64,.15); }
  .locate { top: 58px; right: 10px; }
  .filter-pill { top: 56px; max-width: calc(100% - 24px); }
  .key { bottom: 12px; right: 10px; min-width: 0; }
  .list-page { border: 0; }
  .sheet { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .sheet-inner { max-height: 70vh; }
  .sheet-actions { flex-wrap: wrap; }
  .sheet-actions .btn { padding: 11px 10px; font-size: 14px; }
  .rank li { grid-template-columns: 26px 1fr 60px 44px; padding: 10px; }
  .page-title { font-size: 26px; }
  .stat b { font-size: 30px; }
}

/* Local services toggle (toilets, parking, transport, pharmacy, ATM, info) */
.svc-btn { position: absolute; right: 12px; top: 60px; z-index: 500; height: 40px; padding: 0 12px 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--navy); display: flex; align-items: center; gap: 7px; font: 700 13px var(--body); box-shadow: var(--shadow); }
.svc-btn .svc-wc { width: 24px; height: 24px; border-radius: 6px; background: #94A3B8; color: #fff; display: grid; place-items: center; font-size: 9.5px; font-weight: 800; }
.svc-btn.on .svc-wc { background: #0E8FA3; }
.svc-panel { position: absolute; right: 12px; top: 108px; z-index: 600; width: 250px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 12px; }
.svc-title { margin: 0 0 6px; font: 700 11px var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 7px 2px; font-size: 14px; font-weight: 600; cursor: pointer; border-top: 1px solid var(--line); }
.svc-row:first-child { border-top: 0; }
.svc-row input { width: 20px; height: 20px; accent-color: var(--navy); }
.svc-row .num svg { width: 15px; height: 15px; }
.svc-actions { display: flex; gap: 8px; margin-top: 8px; }
.svc-actions button { flex: 1; border: 1px solid var(--line); background: var(--ivory); border-radius: 999px; padding: 7px; font: 700 12.5px var(--body); color: var(--navy); }
@media (max-width: 760px) {
  .svc-btn { top: 106px; right: 10px; }
  .svc-panel { top: 152px; right: 10px; width: min(260px, calc(100vw - 20px)); }
}

/* Irish Foodie Trail ~ Global Explorer: strip above each page's header */
.explorer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 16px; background: #081729; font-size: 13px; position: relative; z-index: 1002; }
.explorer-bar a { color: #C9D3E2; text-decoration: none; }
.explorer-bar .xb-home { font: 700 13px var(--display); color: var(--gold); letter-spacing: .04em; }
.explorer-bar .xb-home i { font-weight: 500; color: #C9D3E2; }
.xb-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.xb-tabs a { padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.xb-tabs a:hover { color: #fff; }
.xb-tabs a[aria-current="page"] { background: var(--gold); color: var(--navy); }
@media (max-width: 560px) { .explorer-bar { justify-content: center; } .explorer-bar .xb-home { width: 100%; text-align: center; } }

/* Global navigation (nav.js) */
.xnav { background: #081729; position: relative; z-index: 1100; font-size: 14px; }
.xnav-in { display: flex; align-items: center; gap: 8px; padding: 6px 12px; min-height: 52px; flex-wrap: wrap; }
.xnav a { color: #C9D3E2; text-decoration: none; }
.xb-home { margin-right: auto; white-space: nowrap; line-height: 1.1; }
.xb-home b { font: 700 16px var(--display); color: var(--gold); }
.xb-home i { font: 500 italic 13px var(--display); color: #C9D3E2; }
.xbtns { display: flex; gap: 6px; align-items: center; }
.xdrop { position: relative; }
.xdrop summary { list-style: none; cursor: pointer; white-space: nowrap; }
.xdrop summary::-webkit-details-marker { display: none; }
.xtrails summary, .xbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; font: 700 14px var(--body); white-space: nowrap; }
.xtrails summary { background: var(--gold); color: var(--navy); min-height: 46px; padding: 0 18px; font-size: 15.5px; }
.xbtn { background: #17345A; color: #fff !important; border: 1px solid rgba(201,169,97,.55); }
.xbtn:hover, .xbtn[aria-current="page"] { border-color: var(--gold); color: var(--gold) !important; }
.xdrop[open] summary { box-shadow: 0 0 0 2px #fff inset; }
.xmenu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.3); padding: 8px; display: grid; z-index: 1200; }
.xmenu-r { left: auto; right: 0; min-width: 180px; }
.xmenu a { color: var(--ink) !important; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.xmenu a:hover { background: #F3ECDD; }
.xmenu a[aria-current="page"] { background: var(--navy); color: #fff !important; }
.xm-group { margin: 6px 12px 2px; font: 700 11px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.xlinks { display: flex; gap: 2px; }
.xlinks a { padding: 8px 10px; border-radius: 999px; font-weight: 600; }
.xlinks a:hover { color: #fff; }
.xlinks a[aria-current="page"] { color: var(--gold); }
.xmore { display: none; }
.xmore summary { color: #fff; font-size: 22px; padding: 4px 10px; min-height: 40px; display: flex; align-items: center; }
@media (max-width: 900px) {
  .xlinks { display: none; }
  .xmore { display: block; }
}
@media (max-width: 640px) {
  .xnav-in { padding: 6px 10px 8px; row-gap: 6px; }
  .xb-home b { font-size: 15px; }
  .xb-home i { font-size: 12px; }
  .xmore { order: 2; }
  .xbtns { order: 3; width: 100%; display: grid; grid-template-columns: 1.3fr 1fr 1fr; }
  .xtrails summary, .xbtn { width: 100%; padding: 0 8px; font-size: 13px; }
  .xtrails .xmenu { width: min(300px, calc(100vw - 20px)); }
  .xbtns:has(> .xtrails:only-child) { display: block; }
  .xtrails { width: 100%; }
  .xtrails summary { min-height: 54px; font-size: 17px; padding: 0 18px; justify-content: space-between; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
  .xtrails .xmenu { left: 0; right: 0; width: 100%; }
  .xtrails .xmenu a { font-size: 16px; padding: 12px 14px; }
  .xnav + .top .wallet-link { display: none; }
}
.xm-note { margin: 8px 6px 4px; padding: 8px 10px; border-radius: 10px; background: #F3ECDD; font-size: 12.5px; line-height: 1.4; color: var(--ink); }
.xmenu a.xm-fest { margin-top: 4px; background: var(--gold); color: var(--navy) !important; font-weight: 700; }

/* Festival, Homecoming, Passport and Wallet are hidden for now. Delete this rule to bring them back. */
[data-fest] { display: none !important; }
/* Cobh Loop Tours branding is hidden for now. Delete this rule to bring it back. */
[data-loop] { display: none !important; }
/* Harbour Points are hidden for now. Delete this rule (and set SHOW_POINTS in nav.js) to bring them back. */
[data-points] { display: none !important; }
/* The Foodie Club is parked until after launch. Delete this rule (and set SHOW_CLUB in nav.js) to bring it back. */
[data-club] { display: none !important; }
/* T.I.P · The Irish Pint bar */
.tipnav { background: #032A21; border-bottom: 3px solid #DDB447; }
.tip-home { margin-right: auto; display: flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.tip-home b { font: 700 26px/1 var(--display); color: #E9C171; letter-spacing: .06em; }
.tip-home b i { font-style: normal; color: var(--gold); }
.tip-home span { font: 600 italic 14px var(--display); color: #BFD9C9; }
.tipnav .xlinks a { color: #EEF5EE; }
.tipnav .xlinks a.tip-out { color: #8FD3A8; }
.tip-cta { background: #DDB447 !important; color: #032A21 !important; border-color: #DDB447 !important; }
@media (max-width: 640px) { .tipnav .tip-cta { order: 2; width: auto; } .tip-home span { font-size: 12px; } .tip-home b { font-size: 20px; } }
.tipnav .tip-cta[aria-current="page"] { color: #032A21 !important; }
.tipnav a { color: #EEF5EE; }
.tipnav .xb-home i, .tipnav .brand-sub { color: #BFD9C9; }
svg.stout-ico { width: 15px !important; height: 20px !important; display: inline-block; vertical-align: -3px; margin-right: 2px; fill: initial; stroke: initial; }
.xmenu a { white-space: nowrap; }

/* Top bar stays put while scrolling, clear of the phone's status bar. On phones it slides
   away as you scroll down to read, and comes straight back when you scroll up. */
.xnav { position: sticky; top: 0; padding-top: env(safe-area-inset-top); box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: transform .25s ease; will-change: transform; }
.xnav.xnav-hide { transform: translateY(-100%); }
.xnav:has(details[open]) { transform: none; }
@media (prefers-reduced-motion: reduce) { .xnav { transition: none; } }

/* Gaeilge / English toggle in the T.I.P bar */
.xlang { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; min-width: 44px; padding: 0 12px; font: 700 13px/1 var(--body, Figtree, system-ui, sans-serif); letter-spacing: .06em; color: #C9D3E2; background: transparent; border: 1.5px solid rgba(201,211,226,.45); border-radius: 999px; cursor: pointer; }
.xlang:hover { color: #fff; border-color: #fff; }
.xlang:focus-visible { outline: 3px solid #D4AF37; outline-offset: 2px; }
.xlang-g { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .8; }
.xl-o { opacity: .55; } .xl-o.on { opacity: 1; color: #F9F6EE; text-decoration: underline; text-decoration-color: #D4AF37; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.xl-sep { opacity: .4; }
@media (max-width: 400px) { .xlang-g { display: none; } .xlang { padding: 0 9px; } }
@media (max-width: 440px) { .tipnav.ga .tip-home span { display: none; } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Demo trail photos (admin › Demo data) */
.ny-th, .ny-gi, .gl-item { position: relative; }
.tp-demo { position: absolute; top: 4px; left: 4px; z-index: 2; background: #C0392B; color: #fff; font: 800 9px/1 var(--body); letter-spacing: .08em; padding: 3px 5px; border-radius: 4px; font-style: normal; pointer-events: none; }
/* Phones: keep the T.I.P bar on one line with the EN | GA switch */
@media (max-width: 480px) {
  .tipnav .xlang-g { display: none; }
  .tipnav .xlang { padding: 0 9px; gap: 4px; }
  .tipnav .xnav-in { flex-wrap: nowrap; gap: 6px; }
  .tipnav .tip-cta { padding-left: 12px; padding-right: 12px; white-space: nowrap; }
}
@media (max-width: 400px) { .tipnav .tip-home span { font-size: 13px; } }
@media (max-width: 360px) { .tipnav .tip-home span { display: none; } }

/* Trails menu: many countries, so it scrolls */
.xtrails .xmenu { max-height: min(72vh, 640px); overflow-y: auto; overscroll-behavior: contain; }
