/* Axarquia.app styles. Colours are set once here for light, dark and high contrast. */
:root {
  /* Brand colours from the Axarquia.app logo: navy #004281, sky #1E99D5, teal #4BC7B7, sun #FED038, orange #FA941B */
  --bg: #F3F6FA; --card: #FFFFFF; --ink: #0B1F33; --muted: #4A5B6E; --line: #E2E8F0;
  --sea: #004281; --sea-ink: #FFFFFF; --sea-soft: #E3EEF9; --sea-txt: #004281; --sea-sub: #CFE2F5;
  --clay: #C0392B; --clay-soft: #FBE4E1; --clay-txt: #A4281C;
  --sun: #FA941B; --sun-soft: #FFF1DC;
  --bar: #0B1F33; --bar-ink: #FFFFFF; --bar-btn: #FED038; --bar-btn-ink: #0B1F33;
  --ok: #1E7A46; --warn-bg: #FFF4D6; --warn-ink: #6B4E00;
  --font: 'Atkinson Hyperlegible', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Lexend', var(--font);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #09121C; --card: #13233A; --ink: #EAF1F8; --muted: #A8B9CC; --line: #22354F;
    --sea: #0A3A70; --sea-ink: #FFFFFF; --sea-soft: #16345A; --sea-txt: #6EC3F0; --sea-sub: #CFE2F5;
    --clay: #C0392B; --clay-soft: #3A1A17; --clay-txt: #F59A8E;
    --sun: #FA941B; --sun-soft: #3A2A10;
    --bar: #172B45; --bar-ink: #FFFFFF; --bar-btn: #FED038; --bar-btn-ink: #0A1626;
    --ok: #5FD08F; --warn-bg: #3A3110; --warn-ink: #F5DB8A;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #09121C; --card: #13233A; --ink: #EAF1F8; --muted: #A8B9CC; --line: #22354F;
  --sea: #0A3A70; --sea-ink: #FFFFFF; --sea-soft: #16345A; --sea-txt: #6EC3F0; --sea-sub: #CFE2F5;
  --clay: #C0392B; --clay-soft: #3A1A17; --clay-txt: #F59A8E;
  --sun: #FA941B; --sun-soft: #3A2A10;
  --bar: #172B45; --bar-ink: #FFFFFF; --bar-btn: #FED038; --bar-btn-ink: #0A1626;
  --ok: #5FD08F; --warn-bg: #3A3110; --warn-ink: #F5DB8A;
  color-scheme: dark;
}
/* High contrast: pure black and white, thicker edges, for bright sunshine */
:root[data-theme="contrast"] {
  --bg: #000000; --card: #000000; --ink: #FFFFFF; --muted: #FFFFFF; --line: #FFFFFF;
  --sea: #000000; --sea-ink: #FFFFFF; --sea-soft: #000000; --sea-txt: #FFE500; --sea-sub: #FFFFFF;
  --clay: #FFE500; --clay-soft: #000000; --clay-txt: #FFE500;
  --bar: #000000; --bar-ink: #FFFFFF; --bar-btn: #FFE500; --bar-btn-ink: #000000;
  --ok: #FFE500; --warn-bg: #000000; --warn-ink: #FFE500;
  color-scheme: dark;
}
:root[data-theme="contrast"] .card, :root[data-theme="contrast"] .tile,
:root[data-theme="contrast"] .comingup, :root[data-theme="contrast"] .askbar { border: 2px solid #FFFFFF; }
:root[data-theme="contrast"] .sos { color: #000000; }
:root[data-theme="contrast"] body { font-weight: 700; }

html { font-size: 17px; -webkit-text-size-adjust: 100%; }
:root[data-size="l"] { font-size: 19.5px; }
:root[data-size="xl"] { font-size: 22px; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.45; }
a { color: var(--sea-txt); }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font-family: var(--display); font-size: 2rem; font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.big { font-size: 1.05rem; }
:focus-visible { outline: 3px solid var(--sea-txt); outline-offset: 3px; }

.screen { max-width: 640px; margin: 0 auto; padding: 24px 16px 120px; display: flex; flex-direction: column; gap: 16px; }
.offline { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 16px; text-align: center; font-weight: 700; }

/* home top */
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.top h1 { margin-top: 2px; }
.town { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; text-decoration: none; }
.top-btns { display: flex; gap: 8px; }
.round { width: 48px; height: 48px; border-radius: 24px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }

/* coming up */
.comingup { background: var(--sea); color: var(--sea-ink); border-radius: 22px; padding: 16px 18px 6px; }
.comingup h2 { font-family: var(--display); font-size: 1.25rem; margin-bottom: 4px; }
.cu-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--sea-ink); text-decoration: none; border-top: 1px solid rgba(255,255,255,0.2); min-height: 56px; }
.cu-row:first-of-type { border-top: 0; }
.cu-txt { flex: 1; display: flex; flex-direction: column; }
.cu-txt b { font-size: 1.05rem; }
.cu-txt span { color: var(--sea-sub); }

.sos { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--clay); color: #FFFFFF; border-radius: 18px; min-height: 60px; font-size: 1.15rem; font-weight: 700; text-decoration: none; }

.sec { font-family: var(--display); font-size: 1.25rem; margin-top: 8px; }

/* tile grid */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tile { background: var(--card); color: var(--ink); border-radius: 18px; padding: 14px 2px; min-height: 108px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; text-align: center; }
.tile-ic { width: 52px; height: 52px; border-radius: 26px; background: var(--sea-soft); color: var(--sea-txt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tile-sos .tile-ic { background: var(--clay-soft); color: var(--clay-txt); }
.tile-name { font-weight: 700; font-size: 0.9rem; line-height: 1.15; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; max-width: 100%; }
@media (min-width: 560px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

/* category page */
.back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; text-decoration: none; }
.cat-head { display: flex; align-items: center; gap: 14px; }
.cat-ic { width: 60px; height: 60px; border-radius: 30px; background: var(--sea); color: var(--sea-ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-ic.sos-ic { background: var(--clay); color: #FFFFFF; }
.lead { font-size: 1.05rem; margin: 0; }
.note { background: var(--warn-bg); color: var(--warn-ink); padding: 10px 14px; border-radius: 12px; margin: 0; }
.cards { display: flex; flex-direction: column; gap: 10px; }
.card { background: var(--card); border-radius: 18px; padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.card-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.card h3 { font-size: 1.1rem; }
.card p { margin: 0; }
.from { color: var(--muted); font-size: 0.9rem; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.btn { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; }
.btn span { overflow-wrap: anywhere; }
.btn-call, .btn-primary, .ask-go { background: radial-gradient(ellipse 130% 170% at 88% -10%, #FFD44A 0%, #FDB714 26%, #FB9A02 58%, #E87C01 86%, #DA6F02 100%); color: #0B1F33; box-shadow: 0 3px 10px rgba(222,114,2,0.30), inset 0 1px 0 rgba(255,255,255,0.40); }
.btn-call:hover, .btn-primary:hover, .ask-go:hover { filter: brightness(1.04) saturate(1.05); }
.btn-call:active, .btn-primary:active, .ask-go:active { filter: brightness(0.94); }
:root[data-theme="contrast"] .btn-call, :root[data-theme="contrast"] .btn-primary, :root[data-theme="contrast"] .ask-go { background: #FFE500; color: #000000; box-shadow: none; }
.btn-link { background: var(--sea-soft); color: var(--sea-txt); border: 1.5px solid transparent; }
:root[data-theme="contrast"] .btn-link { border-color: #FFFFFF; }
.btn-primary { justify-content: center; font-size: 1.1rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; font-weight: 700; border-radius: 10px; padding: 3px 8px; background: var(--sea-soft); color: var(--sea-txt); }
.b-season, .b-check { background: var(--warn-bg); color: var(--warn-ink); }
.tick { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--muted); background: transparent; color: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.tick.on { background: var(--ok); border-color: var(--ok); color: var(--bg); }
.hol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.hol li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid var(--line); }
.hol li:first-child { border-top: 0; }
.foot { font-size: 0.9rem; margin-top: 12px; }

/* setup and settings */
.setup { align-items: stretch; padding-top: 48px; }
.logo { align-self: center; }
.setup h1 { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
select { font: inherit; font-size: 1.05rem; min-height: 54px; padding: 0 12px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--ink); }

/* search bar, fixed at the bottom */
.askbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 616px; display: flex; align-items: center; gap: 8px; background: var(--bar); color: var(--bar-btn); border-radius: 30px; padding: 6px 6px 6px 18px; margin: 0; box-shadow: 0 6px 24px rgba(0,0,0,0.25); }
.askbar input { flex: 1; min-width: 0; height: 48px; border: 0; background: transparent; color: var(--bar-ink); font: inherit; font-size: 1.05rem; outline: none; }
.askbar input::placeholder { color: #B7C7CE; }
.ask-go { background: radial-gradient(circle at 68% 24%, #FFE07A 0%, #FDB714 24%, #FB9A02 56%, #E97C01 82%, #D46A02 100%); box-shadow: 0 3px 10px rgba(212,106,2,0.40), inset -2px -3px 6px rgba(160,60,0,0.25); width: 48px; height: 48px; border-radius: 24px; border: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }

/* forms */
input:not([type=checkbox]):not([type=radio]), textarea { font: inherit; font-size: 1.05rem; min-height: 50px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); width: 100%; }
textarea { min-height: 70px; resize: vertical; }
.askbar input#q { background: transparent; border: 0; padding: 0; min-height: 48px; color: var(--bar-ink); }
.field-s { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 0.95rem; }
.check, .radio { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; }
.check input, .radio input { width: 24px; height: 24px; accent-color: var(--sea-txt); }
fieldset { border: 0; margin: 0; padding: 0; }
.stack-s { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.btn-small { min-height: 44px; background: var(--sea-txt); color: var(--bg); justify-content: center; }
.form-msg { margin: 0; font-weight: 700; color: var(--sea-txt); }
.form-msg:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* report a problem */
.report { margin-top: 4px; }
.report summary { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; color: var(--muted); font-size: 0.9rem; cursor: pointer; list-style: none; }
.report summary::-webkit-details-marker { display: none; }
.report[open] summary { color: var(--ink); font-weight: 700; }

/* live water box */
.water-live { border: 2px solid var(--sea-txt); }
.water-live h3 { display: flex; align-items: center; gap: 8px; }
.wl-warn { background: var(--clay-soft); color: var(--clay-txt); padding: 10px 12px; border-radius: 12px; font-weight: 700; }
:root[data-theme="contrast"] .wl-warn { border: 2px solid #FFE500; }
.alert-box { display: flex; flex-direction: column; gap: 2px; background: var(--warn-bg); color: var(--warn-ink); padding: 10px 12px; border-radius: 12px; margin-top: 6px; }
.actions.two { display: grid; grid-template-columns: 1fr 1fr; }
.actions.two .btn { justify-content: center; text-align: center; }
.cu-alert { background: var(--clay); margin: 4px -10px 6px; padding: 12px 10px; border-radius: 14px; border-top: 0; }

/* directory */
.card-featured { border: 2px solid #C99A1E; }
.b-featured { align-self: flex-start; background: #FFF1C9; color: #6B4E00; }
:root[data-theme="dark"] .b-featured { background: #3A3110; color: #F5DB8A; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .b-featured { background: #3A3110; color: #F5DB8A; } }
.btn-primary { gap: 10px; }

/* brand */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { height: 30px; width: auto; display: block; }
.only-dark { display: none !important; }
:root[data-theme="dark"] .only-dark, :root[data-theme="contrast"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light, :root[data-theme="contrast"] .only-light { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .only-dark { display: block !important; }
  :root[data-theme="auto"] .only-light { display: none !important; }
}
.setup-logo { align-self: center; width: min(100%, 340px); }
.setup-logo img { width: 100%; height: auto; }
.comingup { background: linear-gradient(135deg, #004281 0%, #0B5FA8 100%); }
:root[data-theme="contrast"] .comingup { background: #000000; }

/* slide-up banner: rises from behind the search bar */
.askbar { z-index: 20; }
.peek { position: fixed; z-index: 10; left: 50%; bottom: calc(16px + 52px + env(safe-area-inset-bottom)); width: calc(100% - 40px); max-width: 600px;
  transform: translate(-50%, 110%); opacity: 0; transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  background: var(--card); color: var(--ink); border-radius: 22px 22px 14px 14px; padding: 12px 10px 26px 12px; display: flex; align-items: center; gap: 6px;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18); border: 1px solid var(--line); }
.peek.show { transform: translate(-50%, 0); opacity: 1; }
.peek-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-height: 48px; }
.peek-ic { width: 44px; height: 44px; border-radius: 22px; background: var(--sea-soft); color: var(--sea-txt); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.peek-ic.pk-house { background: var(--sea-soft); color: var(--sea-txt); }
.peek-txt .peek-label.pk-house { color: var(--sea-txt); }
.peek-ic.pk-sp { background: var(--sun-soft); color: var(--sun); }
.peek-ic.pk-alert { background: var(--clay-soft); color: var(--clay-txt); }
.peek-ic.pk-event { background: var(--sea-soft); color: var(--sea-txt); }
.peek-ic.pk-news { background: var(--clay-soft); color: var(--clay-txt); }
.peek-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.peek-txt b { font-size: 1rem; }
.peek-txt span { color: var(--muted); font-size: 0.92rem; }
.peek-txt .peek-label { color: var(--sea-txt); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.peek-txt .peek-label.pk-sp { color: var(--sun); }
.peek-txt .peek-label.pk-alert, .peek-txt .peek-label.pk-news { color: var(--clay-txt); }
.peek-count { width: 30px; height: 30px; border-radius: 15px; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; color: var(--muted); animation: peekpulse 1s ease-in-out infinite; }
@keyframes peekpulse { 50% { transform: scale(0.88); } }
.peek-x:disabled { cursor: default; }
.peek-x { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); border-radius: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
body.peeking .screen { padding-bottom: 210px; }
:root[data-theme="contrast"] .peek { border: 2px solid #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .peek { transition: opacity 0.2s ease; } .peek-count { animation: none; } }
.peek-body { flex: 1; min-width: 0; transition: opacity 0.35s ease, transform 0.35s ease; }
.peek.swap .peek-body { opacity: 0; transform: translateY(8px); }
.peek-dots { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); display: flex; gap: 0; }
.peek-dots button { width: 28px; height: 24px; border: 0; background: transparent; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.peek-dots i { width: 8px; height: 8px; border-radius: 4px; background: var(--line); display: block; transition: width 0.25s ease; }
.peek-dots button.on i { background: var(--sea-txt); width: 18px; }
:root[data-theme="contrast"] .peek-dots i { background: #777777; }
:root[data-theme="contrast"] .peek-dots button.on i { background: #FFE500; }
@media (prefers-reduced-motion: reduce) { .peek-body { transition: opacity 0.2s ease; } .peek.swap .peek-body { transform: none; } }

/* business logos on ads and listings */
.peek-logo, .lst-logo { position: relative; flex-shrink: 0; background: #FFFFFF; border: 1px solid var(--line); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.peek-logo { width: 56px; height: 56px; border-radius: 14px; }
.lst-logo { width: 52px; height: 52px; border-radius: 12px; }
.peek-logo img, .lst-logo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: contain; padding: 4px; background: #FFFFFF; }
.logo-letters { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 1.15rem; color: #FFFFFF; background: var(--sea); }
.lst-head { display: flex; align-items: center; gap: 12px; }
/* logos with their own background colour fill the whole tile */
.peek-logo:has(img[src*="handyman-axarquia"]), .lst-logo:has(img[src*="handyman-axarquia"]) { background: #000000; border-color: #000000; }
.peek-logo img[src*="handyman-axarquia"], .lst-logo img[src*="handyman-axarquia"] { background: #000000; padding: 0; }
.calc-out { margin-top: 10px; }
.big-num { font-family: var(--head, inherit); font-size: 1.8rem; font-weight: 700; margin: 6px 0; color: var(--sea-txt); }
.big-num span { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.calc-table { width: 100%; border-collapse: collapse; margin: 6px 0; }
.calc-table td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.calc-table td:last-child { text-align: right; font-weight: 700; }
.calc-table .tot td { font-size: 1.15rem; border-bottom: 0; }

/* home helpers & carers */
.b-ok { background: #E3F4EA; color: #1E6B3E; }
.b-vol { background: var(--sun-soft); color: #8A4B00; }
.b-paid { background: var(--sea-soft); color: var(--sea-txt); }
:root[data-theme="dark"] .b-ok { background: #173A28; color: #8FE0B0; }
:root[data-theme="dark"] .b-vol { color: #FFC56B; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .b-ok { background: #173A28; color: #8FE0B0; } :root[data-theme="auto"] .b-vol { color: #FFC56B; } }
/* ratings: average and count only ("★ 4.7 · 38 orders"), or "New on Axarquia.app" */
.score-box { margin: 8px 0 6px; }
.score { margin: 0; font-size: 1.1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.score-st { color: #E08A00; font-size: 1.35rem; line-height: 1; }
.score-new span { display: inline-block; background: var(--sea-soft); color: var(--sea-txt); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 0.95rem; }
.how-rated { margin: 2px 0 0; }
.how-rated summary { cursor: pointer; color: var(--muted); font-size: 0.95rem; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.how-rated p { margin: 0 0 6px; color: var(--muted); font-size: 0.95rem; max-width: 60ch; }
:root[data-theme="contrast"] .score-st { color: #FFE500; }
.h-rating { margin: 8px 0 4px; }
.h-rating .stars, .stars-pick .stars { color: #F08A00; letter-spacing: 1px; }
.h-svc { font-weight: 700; margin: 6px 0; }
.stars-pick { border: 0; padding: 0; margin: 0; display: grid; gap: 2px; }
.stars-pick legend { font-weight: 700; margin-bottom: 6px; }
fieldset.stack-s { border: 0; padding: 0; margin: 0; }
fieldset.stack-s legend { font-weight: 700; margin-bottom: 6px; }
.check span a { color: var(--sea-txt); }
[hidden] { display: none !important; }
.check { align-items: flex-start; }
.check input[type="checkbox"], .radio input[type="radio"] { width: 24px; height: 24px; min-width: 24px; margin: 1px 0 0; flex-shrink: 0; accent-color: #E87C01; }
.check, .radio { padding-top: 8px; padding-bottom: 8px; }
fieldset.stack-s.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
fieldset.stack-s.langs legend { grid-column: 1 / -1; }

/* map-app chooser (shared with the web pages via /assets/places.js) */
.mapchoose { position: fixed; inset: 0; z-index: 100; background: rgba(9,18,28,0.55); display: flex; align-items: flex-end; justify-content: center; padding: 16px; }
.mapchoose[hidden] { display: none; }
.mapchoose-box { background: var(--card); color: var(--ink); border-radius: 18px; padding: 20px; width: 100%; max-width: 420px; display: grid; gap: 10px; box-shadow: 0 10px 40px rgba(0,0,0,0.3); }
.mapchoose-box h2 { margin: 0 0 4px; font-size: 1.25rem; }
.mapchoose-btn { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--sea-soft); color: var(--sea-txt); font: inherit; font-weight: 700; font-size: 1.1rem; cursor: pointer; }
.mapchoose-rem { display: flex; gap: 10px; align-items: center; font-weight: 700; padding: 6px 0; }
.mapchoose-rem input { width: 22px; height: 22px; accent-color: #E87C01; }
.mapchoose-x { background: none; border: 0; font: inherit; font-weight: 700; padding: 10px; cursor: pointer; color: var(--muted); }

/* Ask Axarquia */
.aiask { background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.aiask-h { display: flex; align-items: center; gap: 10px; margin: 0; font-family: var(--display); font-size: 1.25rem; color: var(--sea-txt); }
.aiask p { margin: 0; }
.aiask-form { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.aiask-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1.1rem; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); color: var(--ink); resize: vertical; min-height: 64px; }
.aiask-form textarea:focus { outline: 3px solid var(--sun); outline-offset: 1px; }
.ai-log { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.ai-q { align-self: flex-end; max-width: 88%; background: var(--sea); color: var(--sea-ink); padding: 12px 16px; border-radius: 18px 18px 4px 18px; font-size: 1.05rem; overflow-wrap: anywhere; }
.ai-a { display: block; font-size: 1.05rem; line-height: 1.55; overflow-wrap: anywhere; }
.ai-a p { margin: 0 0 10px; } .ai-a ul { margin: 0 0 10px; padding-left: 22px; } .ai-a li { margin-bottom: 6px; }
.ai-cite { display: inline-block; min-width: 1.4em; padding: 0 5px; margin-left: 2px; border-radius: 8px; background: var(--sea-soft); color: var(--sea-txt); font-size: 0.85em; font-weight: 700; text-align: center; text-decoration: none; vertical-align: 1px; }
.ai-src { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-size: 0.98rem; }
.ai-src ol { margin: 6px 0 0; padding-left: 24px; } .ai-src li { margin-bottom: 6px; }
.ai-src a { color: var(--sea-txt); }
.small { font-size: 0.92rem; }
:root[data-theme="contrast"] .aiask, :root[data-theme="contrast"] .ai-q { border: 2px solid #FFFFFF; }
.linkish { background: none; border: 0; padding: 4px 0; font: inherit; color: var(--sea-txt); text-decoration: underline; cursor: pointer; min-height: 44px; }

.motto { display: block; margin-top: 4px; font-style: italic; color: var(--muted); text-decoration: none; font-size: .95rem; }
.motto:hover { text-decoration: underline; }

.ai-hit { padding: 10px 0; border-top: 1px solid var(--line); }
.ai-hit:first-of-type { border-top: 0; }
.ai-hit h3 { font-size: 1.05rem; margin: 0 0 4px; display: flex; gap: 6px; align-items: center; }
.ai-hit p { margin: 0 0 6px; }
.ai-hit-top h3 { color: var(--sea-txt); }
.ai-general { font-size: .9rem; color: var(--muted); font-style: italic; margin: 0 0 6px; }

.dir-search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1.5px solid var(--line); border-radius: 18px; padding: 6px 6px 6px 14px; }
.dir-search input { flex: 1; min-width: 0; min-height: 48px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 1.05rem; outline: none; }
.dir-search .btn { min-height: 48px; padding: 0 18px; }

/* "Not yet checked" marker on directory listings */
.lst-head .unchk { margin-left: auto; flex: none; position: relative; }
.unchk summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; color: var(--muted); border: 1.5px solid var(--line); }
.unchk summary::-webkit-details-marker { display: none; }
.unchk summary:hover, .unchk[open] summary { color: var(--warn-ink); background: var(--warn-bg); border-color: transparent; }
.unchk summary:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; }
.unchk-note { position: absolute; right: 0; top: 38px; z-index: 5; width: min(260px, 70vw); margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--card); color: var(--ink); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0,0,0,.18); font-size: 15px; line-height: 1.45; }
.unchk-claim { display: block; margin-top: 8px; padding: 8px 0; font-weight: 700; color: var(--sea-txt, var(--sea)); }
.claim-name { font-size: 1.15rem; margin: 0 0 6px; }

/* ---------- home delivery shop: who delivers, shop, basket bar, checkout, order page ---------- */
.shop-who { display: flex; flex-direction: column; gap: 10px; }
.shop-who-card { border: 2px solid var(--sea-txt); }
.shop-who-h { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.2rem; color: var(--sea-txt); }
.shop-who-h svg { flex-shrink: 0; }
.shop-kind { width: 52px; height: 52px; border-radius: 26px; background: var(--sun-soft); color: var(--sun); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.shop-sub { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-family: var(--display); font-size: 1.08rem; font-weight: 700; }
.shop-dates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.shop-dates li { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); }
.shop-dates li:first-child { border-top: 0; }
.shop-dates li b { font-size: 1.08rem; min-width: 7.5em; }
.shop-dates li span { color: var(--muted); }
.shop-change summary, .shop-remind summary { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; font-weight: 700; color: var(--sea-txt); cursor: pointer; list-style: none; }
.shop-change summary::-webkit-details-marker, .shop-remind summary::-webkit-details-marker { display: none; }
.shop-how { margin: 10px 0; display: block; }
.shop-how > .card-body { display: block; }
.shop-how > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0; font-weight: 700; color: var(--sea-txt); cursor: pointer; list-style: none; }
.shop-how > summary::-webkit-details-marker { display: none; }
.shop-how > summary::after { content: '+'; margin-left: auto; font-size: 1.4rem; }
.shop-how[open] > summary::after { content: '−'; }
.shop-how .card-body { padding: 8px 0 0; }
.shop-how-steps { margin: 0 0 12px; padding-left: 1.5em; }
.shop-how-steps li { margin: 0 0 6px; }
.shop-how-notes { margin: 0; }
.shop-how-notes dt { font-weight: 700; margin-top: 10px; }
.shop-how-notes dd { margin: 2px 0 0; }
.shop-remind { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 2px; }
.shop-prods { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 560px) { .shop-prods { grid-template-columns: 1fr 1fr; } }
.shop-prod { flex-direction: column; padding: 0; overflow: hidden; gap: 0; }
.shop-prod .card-body { padding: 14px 16px 16px; width: 100%; }
.shop-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--sea-soft); }
.shop-nophoto { display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 7; color: var(--sea-txt); }
.shop-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px !important; }
.shop-price b { font-family: var(--display); font-size: 1.45rem; color: var(--ink); }
.shop-price span { color: var(--muted); }
.shop-qty { margin-top: 6px; }
.shop-add { justify-content: center; width: 100%; min-height: 56px; font-size: 1.08rem; }
.qty { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; gap: 8px; }
.qty-b { width: 64px; height: 56px; border-radius: 14px; border: 2px solid var(--sea-txt); background: var(--sea-soft); color: var(--sea-txt); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.qty-b:disabled { opacity: .4; cursor: default; }
.qty output { text-align: center; font-family: var(--display); font-size: 1.6rem; font-weight: 700; }
/* the basket bar stays at the bottom of the shop screen */
.shop-bar { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: calc(100% - 24px); max-width: 616px;
  background: var(--bar); color: var(--bar-ink); border-radius: 22px; padding: 10px 10px 10px 18px; box-shadow: 0 6px 24px rgba(0,0,0,0.28); }
.shop-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-bar-txt { display: flex; flex-direction: column; min-width: 0; }
.shop-bar-txt b { font-size: 1.1rem; }
.shop-bar-txt span { font-size: .9rem; opacity: .85; }
.shop-bar .btn { flex-shrink: 0; min-height: 56px; padding: 10px 18px; font-size: 1.1rem; }
.shop-bar .btn.is-off { background: #6B7A8A; color: #FFFFFF; box-shadow: none; cursor: default; }
body.has-shopbar .screen { padding-bottom: 150px; }
:root[data-theme="contrast"] .shop-bar { border: 2px solid #FFFFFF; }
:root[data-theme="contrast"] .shop-who-card, :root[data-theme="contrast"] .qty-b { border-color: #FFE500; }
/* checkout */
.co-box { background: var(--card); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.co-box legend { float: left; width: 100%; font-family: var(--display); font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.co-box legend + * { clear: both; }
:root[data-theme="contrast"] .co-box { border: 2px solid #FFFFFF; }
.field-l { margin: 4px 0 0; font-weight: 700; }
.big-radio { align-items: flex-start; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; min-height: 56px; cursor: pointer; }
.big-radio:has(input:checked) { border-color: var(--sea-txt); background: var(--sea-soft); }
.big-radio > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.big-radio b { display: inline-flex; align-items: center; gap: 6px; font-size: 1.05rem; }
.big-radio .muted { font-weight: 400; }
.co-sum td:first-child { padding-right: 10px; }
.co-seller { display: flex; flex-direction: column; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.co-seller p { margin: 0; }
.co-terms { white-space: pre-wrap; margin: 6px 0 0; font-size: .95rem; }
.co-go { min-height: 64px; font-size: 1.2rem; width: 100%; }
.co-go:disabled { filter: grayscale(.6); cursor: default; }
.co-thanks { background: #E3F4EA; color: #1E6B3E; }
:root[data-theme="dark"] .co-thanks { background: #173A28; color: #8FE0B0; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .co-thanks { background: #173A28; color: #8FE0B0; } }
html.season-halloween .co-thanks { background: #173A28; color: #8FE0B0; }
.co-cancel { background: var(--clay-soft); color: var(--clay-txt); }
.co-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.co-steps li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 14px; border-radius: 14px; background: var(--card); color: var(--muted); font-weight: 700; }
.co-steps li i { width: 20px; height: 20px; border-radius: 10px; border: 2px solid var(--line); flex-shrink: 0; }
.co-steps li.done { color: var(--ok); }
fieldset.co-box { padding: 16px; }

/* ---------- butane price card (Home delivery page) ---------- */
.butane { border: 2px solid var(--sun); }
.butane h4 { margin: 6px 0 0; font-family: var(--display); font-size: 1.05rem; }
.butane-h { display: flex; align-items: center; gap: 10px; }
.butane-h svg { flex-shrink: 0; color: var(--sun); }
.butane-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.butane-price b { font-family: var(--display); font-size: 2rem; line-height: 1.1; }
.butane-price span { color: var(--muted); }
.butane-how { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.butane-src { font-size: .9rem; }
:root[data-theme="contrast"] .butane { border-color: #FFE500; }
:root[data-theme="contrast"] .butane-h svg { color: #FFE500; }

/* ---------- what comes to my village ---------- */
.vweek { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vday { background: var(--card); border-radius: 18px; padding: 14px 16px; border: 2px solid transparent; }
.vday.is-empty { padding-top: 10px; padding-bottom: 10px; }
.vday.is-today { border-color: var(--sea-txt); box-shadow: 0 0 0 3px var(--sea-soft); }
.vday-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-family: var(--display); font-size: 1.12rem; }
.vday-h span:first-child::first-letter { text-transform: uppercase; }
.vday.is-empty .vday-h { font-size: 1rem; color: var(--muted); }
.b-today { background: var(--sea); color: var(--sea-ink); font-size: .9rem; padding: 4px 10px; }
.vnone { margin: 2px 0 0; }
.vlist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; }
.visit { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.visit:first-child { border-top: 0; }
.visit-ic { width: 44px; height: 44px; border-radius: 22px; background: var(--sun-soft); color: var(--sun); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.visit-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.visit-txt p { margin: 0; }
.visit-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 1.05rem; }
.visit-note { font-size: .95rem; }
.visit-src { font-size: .9rem; }
.visit-src a { display: inline-block; padding: 6px 0; }
.v-change { margin-top: -6px; }
:root[data-theme="contrast"] .vday { border-color: #FFFFFF; }
:root[data-theme="contrast"] .vday.is-today { border-color: #FFE500; border-width: 3px; box-shadow: none; }
:root[data-theme="contrast"] .b-today { background: #FFE500; color: #000000; }
:root[data-theme="contrast"] .visit-ic { background: #000000; color: #FFE500; border: 2px solid #FFE500; }
html.season-halloween .vday.is-today { border-color: #FFB062; }
/* phone numbers written in card text are tap-to-call */
.tel-inline{font-weight:700;white-space:nowrap;text-decoration:underline;text-underline-offset:3px}
.tel-inline::before{content:"\260E\FE0E";font-weight:400;margin-right:3px;text-decoration:none;display:inline-block}
