/* GF London: a London food guide set like a menu card.
   Bodoni Moda carries the dishes and headings; Schibsted Grotesk does the work. */

:root {
  --aubergine: #4A1D3F;
  --aubergine-deep: #35132D;
  --aubergine-soft: #F4ECF2;
  --saffron: #E2A33A;
  --ink: #1B1622;
  --muted: #5E5763;
  --faint: #8C8590;
  --line: #E6E1E8;
  --line-strong: #CFC8D3;
  --paper: #FFFFFF;
  --mist: #F3F1F4;
  --made: #2F6B4F;
  --natural: #2D5C8A;
  --ask: #A3570F;
  --open: #2F6B4F;
  --closed: #A1332B;
  --display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--aubergine); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--aubergine-deep); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--aubergine); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1320px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
@media (max-width: 700px) { .wrap { padding-left: 16px; padding-right: 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Header ---------- */
.top { background: var(--aubergine); color: #fff; }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: baseline; gap: 2px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 30px; line-height: 1; letter-spacing: -0.01em; }
.logo:hover { color: #fff; }
.logo i { font-style: italic; font-weight: 500; }
.logo b { font-weight: 800; }
.logo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--saffron); margin: 0 3px 3px; align-self: flex-end; }
.search { flex: 999 1 480px; min-width: 0; display: flex; flex-wrap: wrap; background: #fff; border-radius: 12px; overflow: hidden; }
.search label { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px; color: var(--ink); }
.search label b { font-size: 13px; font-weight: 600; color: var(--muted); }
.search .find { flex: 3 1 240px; }
.search .near { flex: 2 1 170px; border-left: 1px solid var(--line); }
@media (max-width: 560px) {
  .search .find { flex: 1 1 calc(100% - 54px); }
  .search button[type="submit"] { order: 2; }
  .search .near { order: 3; flex: 1 1 calc(100% - 54px); border-left: 0; border-top: 1px solid var(--line); }
  .search .locate { order: 4; border-top: 1px solid var(--line); }
  .header-link { margin-left: auto; }
  .top .wrap { gap: 12px 16px; }
  .top .logo { order: -2; }
  .header-link { order: -1; }
}
.search input { flex: 1; min-width: 0; border: none; outline: none; font: inherit; font-size: 16px; background: transparent; color: var(--ink); }
.search input::placeholder { color: var(--faint); }
.search .locate { background: #fff; color: var(--aubergine); border-left: 1px solid var(--line); }
.search .locate:hover { background: var(--aubergine-soft); }
.search button { flex: none; width: 54px; height: 50px; border: none; background: var(--saffron); color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.search button:hover { background: #D39125; }
.header-link { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 4px; color: #fff; text-decoration: none; font-weight: 600; }
.header-link:hover { color: #fff; text-decoration: underline; }

/* ---------- Filters ---------- */
.filters { border-bottom: 1px solid var(--line); position: relative; z-index: 1000; background: var(--paper); }
.filters .wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 14px; padding-bottom: 14px; }
.seg { display: flex; padding: 3px; gap: 2px; background: var(--mist); border-radius: 999px; }
.seg button { min-height: 38px; padding: 0 16px; border: none; border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); box-shadow: 0 1px 2px rgba(27,22,34,.12), 0 0 0 1px var(--line); }
.divider { width: 1px; height: 26px; background: var(--line); margin: 0 6px; }
@media (max-width: 700px) {
  .divider { display: none; }
  .filters .wrap { gap: 6px; padding-top: 10px; padding-bottom: 10px; }
  .chip, .seg button { min-height: 38px; font-size: 13.5px; padding: 0 12px; }
}
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip:hover { border-color: var(--aubergine); }
.chip[aria-pressed="true"], .chip.active { background: var(--aubergine); color: #fff; border-color: var(--aubergine); }
.chip[data-kind] .dot { width: 8px; height: 8px; }
.chip[data-kind][aria-pressed="true"] .dot { box-shadow: 0 0 0 2px #fff; }
.dd { position: relative; }
.dd-menu { position: absolute; top: 48px; left: 0; min-width: 230px; max-height: 360px; overflow-y: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -12px rgba(53,19,45,.28); padding: 6px; display: none; flex-direction: column; }
.dd.open .dd-menu { display: flex; }
.dd-menu button { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border: none; border-radius: 8px; background: none; text-align: left; cursor: pointer; font-size: 14px; color: var(--ink); }
.dd-menu button:hover { background: var(--mist); }
.dd-menu button[aria-checked="true"] { background: var(--aubergine-soft); color: var(--aubergine); font-weight: 600; }

/* ---------- Layout ---------- */
.layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 36px; padding-bottom: 80px; }
.results { flex: 999 1 600px; min-width: 0; }
.results h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.02em; max-width: 18ch; }
.results .count { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.mapcol { flex: 1 1 340px; min-width: 0; position: sticky; top: 16px; }
.mapbox { position: relative; height: calc(100vh - 32px); max-height: 760px; min-height: 420px; border-radius: 18px; overflow: hidden; background: var(--mist); }
/* Phones and small tablets: the map sits above the list. */
@media (max-width: 1000px) {
  .mapcol { position: static; order: -1; flex: 1 1 100%; }
  .mapbox { height: 300px; min-height: 0; max-height: none; }
  .legend { display: none; }
  .layout { gap: 20px; padding-top: 20px; }
}
#map { position: absolute; inset: 0; }
.map-expand { position: absolute; top: 14px; right: 14px; z-index: 500; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: none; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px -6px rgba(27,22,34,.35); }
body.map-full .mapbox { position: fixed; inset: 0; z-index: 3000; height: auto; max-height: none; border-radius: 0; }
body.map-full { overflow: hidden; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { display: inline-block; flex: none; width: 9px; height: 9px; border-radius: 50%; }
.dot.made { background: var(--made); } .dot.natural { background: var(--natural); } .dot.ask { background: var(--ask); }

/* Map pins and popups */
.pin { width: 32px; height: 32px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--aubergine); border: 2.5px solid #fff; box-shadow: 0 4px 10px -2px rgba(53,19,45,.5); display: flex; align-items: center; justify-content: center; }
.pin span { transform: rotate(45deg); color: #fff; font-family: var(--sans); font-weight: 700; font-size: 13px; }
.pin.ded { background: var(--saffron); }
.pin.ded span { color: var(--ink); }
.pop-meta { color: var(--muted); font-size: 13px; }
.dist { color: var(--aubergine); font-weight: 600; }

/* ---------- Home ---------- */
.home { padding-bottom: 72px; }
.hero { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; padding-top: 44px; padding-bottom: 28px; }
.hero-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(40px, 6vw, 76px); line-height: 0.98; letter-spacing: -0.025em; max-width: 12ch; }
.hero-count { margin: 0; color: var(--muted); font-size: 17px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.tiles { flex: 1 1 420px; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 18px; min-height: 92px; padding: 14px 16px; border: none; border-radius: 16px; background: var(--mist); color: var(--ink); text-align: left; cursor: pointer; }
.tile:hover { background: var(--aubergine-soft); }
.tile-name { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.05; }
.tile-n { font-size: 13px; color: var(--muted); }
.tile[data-tile="9"] { background: var(--aubergine); color: #fff; }
.tile[data-tile="9"] .tile-n { color: rgba(255,255,255,.75); }
.home-map { position: relative; height: 480px; border-radius: 20px; overflow: hidden; background: var(--mist); }
@media (max-width: 700px) { .home-map { height: 340px; } .hero { padding-top: 28px; } }
#homeMap { position: absolute; inset: 0; }
.home-section { margin-top: 44px; }
.home-section h2 { margin: 0 0 14px; font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -0.015em; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.area-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }
.area-chip span { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.area-chip:hover { border-color: var(--aubergine); color: var(--aubergine); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); column-gap: 32px; }
.cards .dish { padding: 18px 0; }
.cards .dish-pic { width: 96px; height: 96px; }
.cards .dish-name { font-size: 22px; }
#dedicatedRow { row-gap: 12px; column-gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.mini { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; }
.mini:hover { border-color: var(--aubergine); }
.mini .mono.tiny { width: 52px; height: 52px; flex: none; border-radius: 12px; font-size: 30px; }
.mini-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mini-name { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.15; }
.mini-meta { font-size: 13px; color: var(--muted); }
.mini-dishes { font-size: 14px; color: var(--ink); }
.back-home { text-decoration: none; }
.site-foot { border-top: 1px solid var(--line); background: var(--mist); }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 22px; padding-bottom: 28px; font-size: 14px; color: var(--muted); }
.site-foot a { font-weight: 600; }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { font-family: var(--sans); font-size: 14px; line-height: 1.45; margin: 14px 16px; }
.leaflet-popup-content b { font-family: var(--display); font-size: 18px; font-weight: 600; }

/* ---------- Dishes / Places tabs ---------- */
.tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); margin: 28px 0 4px; }
.tabs button { display: flex; align-items: baseline; gap: 8px; min-height: 52px; padding: 0 2px; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--faint); font-family: var(--display); font-size: 24px; font-weight: 500; cursor: pointer; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--aubergine); font-weight: 600; }
.tabs .n { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.tabs button[aria-selected="true"] .n { color: var(--aubergine); }

/* ---------- Dish cards ---------- */
.dish { display: flex; gap: 22px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.dish-pic { flex: none; width: 132px; height: 132px; border-radius: 14px; overflow: hidden; background: var(--mist); display: flex; align-items: center; justify-content: center; color: var(--faint); position: relative; }
.dish-pic img { width: 100%; height: 100%; object-fit: cover; }
.dish-pic .tag { position: absolute; left: 8px; bottom: 8px; background: rgba(27,22,34,.72); color: #fff; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
@media (max-width: 520px) { .dish { gap: 14px; } .dish-pic { width: 92px; height: 92px; border-radius: 12px; } }
.dish-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dish-body .line1 { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.dish-name { margin: 0; font-family: var(--display); font-size: 27px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
@media (max-width: 520px) { .dish-name { font-size: 22px; } }
.dish.gone { opacity: .5; }
.dish.gone .dish-name { text-decoration: line-through; text-decoration-thickness: 1px; }
.dish-place { margin: 0; font-size: 15px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.dish-place button { padding: 0; border: none; background: none; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; cursor: pointer; font-size: 15px; }
.dish-place button:hover { text-decoration-color: var(--aubergine); color: var(--aubergine); }
.muted { color: var(--muted); }
.rate { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.sub { font-size: 13.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.src { color: var(--aubergine); font-weight: 600; }
.note { font-size: 13.5px; color: var(--ask); }
.your-note { display: block; font-size: 13.5px; font-style: italic; color: var(--ink); margin-top: 3px; }
.your-note b { font-style: normal; font-weight: 600; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--aubergine); margin-right: 4px; }
.gallery .cap { margin: 2px 0 0; font-size: 13px; font-style: italic; line-height: 1.4; color: var(--muted); }
textarea.input.note-box { min-height: 84px; resize: vertical; font: inherit; line-height: 1.45; padding-top: 10px; }
.kind { flex: none; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.kind.made { color: var(--made); } .kind.natural { color: var(--natural); } .kind.ask { color: var(--ask); }

/* ---------- Place cards ---------- */
.place { display: flex; flex-wrap: wrap; gap: 28px; padding: 32px 0; border-bottom: 1px solid var(--line); transition: background-color .6s; }
.place.highlight { background: var(--aubergine-soft); }
.gallery { flex: 1 1 230px; max-width: 270px; display: flex; flex-direction: column; gap: 6px; }
.gallery .main, .gallery .thumb { background: var(--mist); overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--faint); }
.gallery .main { height: 190px; border-radius: 16px; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gallery .thumb { height: 62px; border-radius: 10px; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .more { position: absolute; inset: 0; background: rgba(53,19,45,.55); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.gallery small { font-size: 12px; color: var(--faint); margin-top: 2px; }
.gallery .add-photo { font-size: 13px; font-weight: 600; margin-top: 4px; }
.mono { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: var(--aubergine-soft); color: var(--aubergine); font-family: var(--display); font-style: italic; font-weight: 500; font-size: 88px; line-height: 1; }
.mono.small { font-size: 54px; }
@media (max-width: 520px) { .mono.small { font-size: 40px; } }
.info { flex: 999 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.info-head { display: flex; flex-direction: column; gap: 6px; }
.info h2 { margin: 0; font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; }
.info h2 a { color: var(--ink); text-decoration: none; }
.info h2 a:hover { color: var(--aubergine); }
.info h2 .num { font-family: var(--sans); font-size: 15px; font-weight: 600; color: var(--faint); vertical-align: 0.6em; margin-right: 8px; font-variant-numeric: tabular-nums; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.rating b { color: var(--ink); }
.stars { display: flex; gap: 1px; }
.facts { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; color: var(--muted); }
.hours { margin: 0; font-size: 14px; font-weight: 600; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--aubergine); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dish-place .badge { height: 22px; font-size: 11.5px; }
.gf-note { margin: 0; font-size: 14px; color: var(--muted); font-style: italic; font-family: var(--display); font-size: 16px; }
.hours.open { color: var(--open); } .hours.closed { color: var(--closed); }

/* The GF menu, set like a menu card */
.menu { background: var(--mist); border-radius: 16px; padding: 18px 20px 8px; }
.menu-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 6px; }
.menu-head h3 { margin: 0; font-family: var(--display); font-style: italic; font-size: 19px; font-weight: 500; }
.menu-head span { font-size: 13px; color: var(--muted); }
.row { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.row.gone { opacity: .5; }
.row.old .sub > span:first-child, .dish.old .sub > span:first-child { color: var(--ask); }
.row.gone .name { text-decoration: line-through; text-decoration-thickness: 1px; }
.pic { flex: none; width: 56px; height: 56px; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; text-decoration: none; }
.pic.empty { background: var(--paper); color: var(--faint); border: 1px dashed var(--line-strong); }
.pic.empty:hover { color: var(--aubergine); border-color: var(--aubergine); }
.pic img { width: 100%; height: 100%; object-fit: cover; }
.row .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.leader { display: flex; align-items: baseline; gap: 10px; }
.leader .name { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.2; }
.leader .fill { flex: 1; min-width: 16px; border-bottom: 1.5px dotted var(--line-strong); transform: translateY(-4px); }
.latest { margin: 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.latest b { color: var(--ink); font-weight: 600; }

.link-btn { padding: 0; border: none; background: none; color: var(--aubergine); font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- Deep search ---------- */
.deep { margin-top: 32px; background: var(--aubergine-soft); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.deep h3 { margin: 0; font-family: var(--display); font-size: 26px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.deep p { margin: 0; color: #3A3340; font-size: 15px; max-width: 62ch; }
.deep .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 4px; }
.deep .input { max-width: 220px; background: var(--paper); }
.deep ul { margin: 0; padding-left: 18px; font-size: 15px; display: flex; flex-direction: column; gap: 4px; }
.deep .srcs { font-size: 13px; color: var(--muted); word-break: break-word; }
.deep .srcs a { margin-right: 12px; }
.pulse { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--aubergine); margin-right: 10px; animation: pulse 1.2s ease-in-out infinite; vertical-align: 0.15em; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

.empty-state { background: var(--mist); border-radius: 18px; padding: 44px 24px; text-align: center; color: var(--muted); margin-top: 20px; }
.empty-state b { display: block; color: var(--ink); margin-bottom: 6px; font-family: var(--display); font-size: 24px; font-weight: 600; }

/* ---------- Forms (add + admin) ---------- */
.subpage { background: var(--mist); min-height: 100vh; }
.topbar { background: var(--aubergine); color: #fff; }
.topbar .bar { max-width: 640px; margin: 0 auto; padding: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar .back { display: flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--display); font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.topbar .back:hover { text-decoration: none; }
.topbar .side { font-weight: 600; font-size: 14px; }
.page { max-width: 640px; margin: 0 auto; padding: 24px 16px 96px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--paper); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card h2 { margin: 0; font-family: var(--display); font-size: 23px; font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 10px; }
.card h2 .step { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--aubergine); background: var(--aubergine-soft); border-radius: 999px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; transform: translateY(-3px); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-weight: 600; font-size: 14px; }
.input, select.input { width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); }
.input::placeholder { color: var(--faint); }
.input:focus { outline: 2px solid var(--aubergine); outline-offset: 0; border-color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 999px; border: none; background: var(--aubergine); color: #fff; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--aubergine-deep); color: #fff; }
.btn:disabled { background: var(--line-strong); color: var(--muted); cursor: not-allowed; }
.btn.secondary { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn.secondary:hover { box-shadow: inset 0 0 0 1px var(--aubergine); color: var(--aubergine); }
.btn.block { width: 100%; }
.err { color: var(--closed); font-weight: 600; margin: 0; }
.ok { color: var(--open); font-weight: 600; }
.hint { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.photo-drop { position: relative; min-height: 200px; border-radius: 16px; border: 1.5px dashed var(--line-strong); background: var(--mist); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-weight: 600; cursor: pointer; overflow: hidden; text-align: center; padding: 16px; }
.photo-drop:hover { border-color: var(--aubergine); color: var(--aubergine); }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.place-option { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; min-height: 56px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); text-align: left; cursor: pointer; color: var(--ink); }
.place-option:hover { border-color: var(--aubergine); }
.place-option b { font-family: var(--display); font-size: 18px; font-weight: 600; }
.place-option small { color: var(--muted); display: block; font-size: 13px; }
.place-option[aria-pressed="true"] { border-color: var(--aubergine); background: var(--aubergine-soft); box-shadow: inset 0 0 0 1px var(--aubergine); }
.selected-tag { color: var(--aubergine); font-weight: 600; font-size: 14px; }
.found { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.found.on { border-color: var(--aubergine); box-shadow: inset 0 0 0 1px var(--aubergine); }
.found > input[type="checkbox"] { width: 22px; height: 22px; accent-color: var(--aubergine); flex: none; margin-top: 13px; }
.found .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.found .two { display: flex; gap: 8px; flex-wrap: wrap; }
.found .two > * { flex: 1 1 130px; }
.found .risk { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); }
.found .risk input { width: 18px; height: 18px; accent-color: var(--aubergine); }
.log { font-family: var(--sans); font-size: 13.5px; line-height: 1.55; background: var(--mist); border-radius: 12px; padding: 14px; max-height: 340px; overflow-y: auto; white-space: pre-wrap; margin: 0; font-variant-numeric: tabular-nums; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; cursor: pointer; }
.checks label:has(input:checked) { background: var(--aubergine-soft); border-color: var(--aubergine); color: var(--aubergine); font-weight: 600; }
.checks input { accent-color: var(--aubergine); }
.status-line { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.status-line b { font-family: var(--display); font-size: 22px; font-weight: 600; margin-right: 4px; }
.done-mark { width: 68px; height: 68px; border-radius: 50%; background: var(--aubergine-soft); color: var(--aubergine); display: flex; align-items: center; justify-content: center; }

/* ---------- Manage data: job bar and review list ---------- */
.jobbar { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgba(27,22,34,.4); }
.jobbar-in { max-width: 640px; margin: 0 auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.job-text { display: flex; flex-direction: column; gap: 2px; }
.job-text b { font-family: var(--display); font-size: 21px; font-weight: 600; line-height: 1.15; }
.job-text span { font-size: 14px; color: var(--muted); }
.job-track { height: 8px; border-radius: 999px; background: var(--mist); overflow: hidden; }
.job-fill { height: 100%; width: 0; background: var(--aubergine); border-radius: 999px; transition: width .4s ease; }
.jobbar.running .job-text b::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--aubergine); margin-right: 10px; vertical-align: 0.12em; animation: pulse 1.2s ease-in-out infinite; }
.jobbar.done { background: #EEF6F0; }
.jobbar.done .job-text b { color: var(--open); }
.jobbar.done .job-fill { background: var(--open); }
.jobbar.done .job-text b::before { content: "✓ "; }
.jobbar.failed { background: #FBF0EE; }
.jobbar.failed .job-text b { color: var(--closed); }
.jobbar.failed .job-track { display: none; }
.job-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.job-actions .btn { min-height: 42px; padding: 0 18px; }
.review-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.review-tools .btn { min-height: 42px; padding: 0 18px; }
.review { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.review-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px; border-top: 1px solid var(--line); cursor: pointer; }
.review-row:first-child { border-top: none; }
.review-row:has(input:checked) { background: #FBF0EE; }
.review-row input { width: 20px; height: 20px; accent-color: var(--closed); flex: none; }
.review-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; }
.review-item { font-family: var(--display); font-size: 17px; font-weight: 600; }
.review-meta { font-size: 13px; color: var(--muted); }
.review-src { font-size: 13px; color: var(--muted); }
details.card summary { cursor: pointer; list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary h2::after { content: " +"; color: var(--faint); font-family: var(--sans); font-size: 18px; }
details.card[open] summary h2::after { content: " −"; }

/* Soften the OpenStreetMap images so the pins stand out and the map matches the site. */
.leaflet-tile-pane { filter: grayscale(1) contrast(0.92) brightness(1.06); }
