/* ===========================================================================
   GyroMatch — Daylight toy theme
   Sibling of YouGamePlay's deep-space toy theme, built from the same /graphics
   art direction: moulded plastic lit from above, chunky rounded silhouettes,
   saturated primaries on a pastel sky. One light, one palette, no dark mode
   (the direction rules out dark/desaturated palettes for this site).
   =========================================================================== */
:root {
  color-scheme: light;
  /* sky + ground */
  --sky-top: #7fd0ff; --sky-mid: #bfe7ff; --sky-low: #fff1d6;
  --bg: #fff6e8;
  /* plates (moulded plastic) */
  --panel: #ffffff; --panel-2: #fff9f0; --panel-edge: #e2c7a6;
  --line: #efdcc4; --line-2: #d9b98f;
  --text: #2b1d14; --muted: #6f5a4b; --dim: #9a8576;
  /* saturated gameplay colours — interactables get these, environment stays softer */
  --acc: #ff5a1f; --acc-dark: #c93f0c; --acc-edge: #a6320a; --acc-soft: rgba(255, 90, 31, .14);
  --gold: #ffc42e; --gold-dark: #d39a00; --gold-edge: #a67800; --gold-ink: #6f4f08;
  --mint: #2ad1a4; --mint-edge: #128c6c;
  --sky: #2f9bff; --sky-edge: #1f6fc2;
  --hot: #ff2e63;
  /* toy shading model */
  --toy-rim: rgba(255, 255, 255, .85);
  --toy-band: rgba(120, 70, 30, .14);
  --toy-ao: rgba(120, 60, 20, .22); /* warm, never neutral black */
  --round: 18px; --round-sm: 12px;
  --f-head: "Fredoka", "Baloo 2", "Arial Rounded MT Bold", system-ui, sans-serif;
  --f-body: "Nunito", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--f-body); color: var(--text); line-height: 1.55;
  background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: var(--acc-dark); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--f-head); font-weight: 700; line-height: 1.1; margin: .2em 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); } h2 { font-size: 1.75rem; } h3 { font-size: 1.25rem; }
p { margin: .4em 0 .8em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap-sm { justify-content: flex-start; }
.muted { color: var(--muted); } .small { font-size: .86rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; color: var(--acc-dark); font-weight: 800; font-family: var(--f-head); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.section { padding: 40px 20px; }
.big { font-family: var(--f-head); font-size: 3.2rem; color: var(--gold); line-height: 1; text-shadow: 0 3px 0 var(--gold-dark); }

/* --- Sky ------------------------------------------------------------------
   Pastel sky gradient + two slow cloud layers. Painted once, fixed, so every
   page sits on the same daylight. */
.sky { position: fixed; inset: 0; z-index: -2; background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sky-low) 78%, var(--bg) 100%); }
.clouds { position: fixed; left: 0; right: 0; top: 0; height: 60vh; z-index: -1; pointer-events: none; overflow: hidden; }
.clouds svg { position: absolute; top: 0; width: 200%; height: 100%; animation: drift 140s linear infinite; }
.clouds svg.far { opacity: .6; animation-duration: 220s; top: 8%; height: 70%; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .clouds svg { animation: none; } }

/* --- Plates (moulded plastic) ------------------------------------------ */
.plate, .card, .quiz, .notice, .gmap {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-2) 100%);
  border-radius: var(--round);
  box-shadow:
    inset 0 2px 0 var(--toy-rim),            /* lit rim along the top edge */
    inset 0 -6px 0 var(--toy-band),          /* shadow band along the bottom of the fill */
    0 4px 0 var(--panel-edge),               /* extruded side wall */
    0 14px 24px -8px var(--toy-ao);          /* warm AO pool */
}

/* --- Header / footer ---------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 20; padding: 10px 0; }
.top .wrap { height: 62px; background: rgba(255, 255, 255, .82); backdrop-filter: blur(10px); border-radius: 999px; box-shadow: inset 0 2px 0 var(--toy-rim), 0 4px 0 var(--panel-edge), 0 12px 20px -8px var(--toy-ao); padding: 0 10px 0 18px; }
.brand { font-family: var(--f-head); font-size: 1.5rem; color: var(--text); display: flex; align-items: center; gap: 8px; font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand b { color: var(--acc); }
.cone { display: inline-block; width: 34px; height: 34px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .15)); }
nav { display: flex; gap: 6px; align-items: center; }
nav a { color: var(--text); font-weight: 800; font-family: var(--f-head); padding: 8px 12px; border-radius: 999px; font-size: .95rem; }
nav a:hover { background: var(--acc-soft); text-decoration: none; }
.foot { padding: 24px 0; margin-top: 40px; color: var(--muted); font-size: .9rem; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 56px 0 28px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin: .1em 0 .2em; text-shadow: 0 3px 0 #fff, 0 6px 0 rgba(120, 60, 20, .15); }
.hero h1 em { color: var(--acc); font-style: normal; }
.hero .lead { margin-bottom: 22px; color: #4f3b2c; }
.hero .btn { margin: 4px 6px 4px 0; }
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 340px); height: auto; filter: drop-shadow(0 18px 18px rgba(120, 60, 20, .25)); animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-art svg { animation: none; } }
.hud { display: inline-flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.hud span { background: rgba(255, 255, 255, .7); border-radius: 999px; padding: 5px 12px; font-family: var(--f-head); font-weight: 700; font-size: .9rem; box-shadow: inset 0 2px 0 var(--toy-rim), 0 3px 0 var(--panel-edge); }
.hud b { color: var(--acc); }

/* --- Buttons: raised = interactive, sits on an extruded edge it presses into */
.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 999px; border: 0;
  font-family: var(--f-head); font-weight: 700; font-size: 1rem; cursor: pointer; color: #fff; background: var(--acc);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 5px 0 var(--acc-edge), 0 10px 14px -6px var(--toy-ao);
  transition: transform .08s ease, box-shadow .08s ease; text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), inset 0 -3px 0 rgba(0, 0, 0, .12), 0 7px 0 var(--acc-edge), 0 14px 18px -6px var(--toy-ao), 0 0 22px var(--acc-soft); }
.btn:active { transform: translateY(4px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .35), 0 1px 0 var(--acc-edge), 0 4px 8px -4px var(--toy-ao); }
.btn-primary { background: linear-gradient(180deg, #ff7a3d, var(--acc) 60%); }
.btn-ghost { background: #fff; color: var(--text); box-shadow: inset 0 2px 0 var(--toy-rim), inset 0 -3px 0 var(--toy-band), 0 5px 0 var(--panel-edge), 0 10px 14px -6px var(--toy-ao); }
.btn-ghost:hover { box-shadow: inset 0 2px 0 var(--toy-rim), inset 0 -3px 0 var(--toy-band), 0 7px 0 var(--panel-edge), 0 14px 18px -6px var(--toy-ao); }
.btn-ghost:active { box-shadow: inset 0 2px 0 var(--toy-rim), 0 1px 0 var(--panel-edge); }
.btn-lg { padding: 15px 30px; font-size: 1.15rem; } .btn-sm { padding: 8px 14px; font-size: .88rem; }

/* --- Cards / grids ------------------------------------------------------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.grid.three { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin: 20px 0; }
.list { display: flex; flex-direction: column; gap: 18px; }
.card { display: flex; gap: 14px; position: relative; overflow: hidden; transition: transform .12s ease; }
.card:hover { transform: translateY(-3px); }
.card.pad { padding: 22px; display: block; }
.card-body { padding: 20px; flex: 1; min-width: 0; }
.card h3 { margin: 0 0 4px; } .card h3 a { color: var(--text); }
.card p { margin: .5em 0; }
.citycard { color: var(--text); } .citycard:hover { text-decoration: none; }
.price { color: var(--gold-dark); font-family: var(--f-head); font-size: .95rem; margin-left: 6px; }
/* rank medal */
.rank { position: absolute; left: 12px; top: 12px; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--f-head); font-weight: 700; font-size: .95rem; color: #fff; background: var(--sky); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45), inset 0 -3px 0 rgba(0, 0, 0, .18), 0 3px 0 var(--sky-edge); }
.rank.r1 { background: var(--gold); color: var(--gold-ink); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .6), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 3px 0 var(--gold-edge), 0 0 16px rgba(255, 196, 46, .7); }
.rank.r2 { background: #d7dde6; color: #3d4652; box-shadow: inset 0 2px 0 #fff, inset 0 -3px 0 rgba(0, 0, 0, .14), 0 3px 0 #8f9aa8; }
.rank.r3 { background: #d99a62; color: #4a2a10; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5), inset 0 -3px 0 rgba(0, 0, 0, .14), 0 3px 0 #8f5a2c; }
.card .rank ~ .card-body { padding-left: 62px; }
/* match score HUD */
.score { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 16px; min-width: 92px; background: linear-gradient(180deg, #fff3e6, #ffe4cc); box-shadow: inset 2px 0 0 var(--line); }
.score-n { font-family: var(--f-head); font-size: 2.3rem; color: var(--acc); line-height: 1; font-weight: 700; text-shadow: 0 2px 0 #fff, 0 4px 0 rgba(201, 63, 12, .25); }
.score-l { font-size: .68rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 800; }
.why { font-size: .88rem; color: var(--muted); margin-top: 8px; }
.stars { color: var(--gold-dark); font-size: 1rem; font-weight: 800; }
.tags { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.tagrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.tag { font-size: .76rem; background: #fff; border-radius: 999px; padding: 3px 10px; color: var(--muted); font-weight: 800; box-shadow: inset 0 1px 0 var(--toy-rim), 0 2px 0 var(--panel-edge); }
.tag.hit { color: #fff; background: var(--mint); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 2px 0 var(--mint-edge); }

/* --- Forms: chips are little pressable toys ----------------------------- */
.quiz { padding: 12px 24px 24px; }
.quiz.compact { padding: 6px 16px 16px; }
fieldset { border: 0; padding: 14px 0; margin: 0; border-bottom: 2px dashed var(--line); }
fieldset:last-of-type { border-bottom: 0; }
legend { font-weight: 700; padding: 0; margin-bottom: 10px; font-family: var(--f-head); font-size: 1.15rem; }
legend::before { content: attr(data-n); display: none; }
.opts { display: flex; flex-wrap: wrap; gap: 9px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; width: 0; height: 0; }
.opts span { display: inline-block; padding: 8px 15px; border-radius: 999px; font-size: .95rem; font-weight: 800; font-family: var(--f-head); background: #fff; color: var(--text); box-shadow: inset 0 2px 0 var(--toy-rim), inset 0 -3px 0 var(--toy-band), 0 4px 0 var(--panel-edge); transition: transform .08s ease, box-shadow .08s ease; }
.opts label:hover span { transform: translateY(-1px); }
.opts input:checked + span { background: linear-gradient(180deg, #ff7a3d, var(--acc) 60%); color: #fff; transform: translateY(2px); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .12), 0 2px 0 var(--acc-edge), 0 0 14px var(--acc-soft); }
.opts input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 2px; }
select, input[type=text], input[type=url], input:not([type]), textarea { font: inherit; font-weight: 600; padding: 10px 14px; border: 0; border-radius: var(--round-sm); background: #fff; color: var(--text); width: 100%; box-shadow: inset 0 3px 0 var(--toy-band), inset 0 0 0 2px var(--line); }
select:focus, input:focus, textarea:focus { outline: 0; box-shadow: inset 0 3px 0 var(--toy-band), inset 0 0 0 3px var(--sky); }
select { width: auto; min-width: 200px; }
label { display: block; margin: 10px 0 4px; font-weight: 800; }
label input, label textarea { margin-top: 4px; font-weight: 600; }
.submit label { flex: 1; }
.review .rating label { margin: 8px 0 4px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { padding: 12px 16px; margin: 10px 0; font-weight: 700; border-radius: var(--round-sm); }
.notice.ok { background: linear-gradient(180deg, #e9fbf3, #d4f5e6); color: #14613f; box-shadow: inset 0 2px 0 #fff, 0 4px 0 #9fd9bf; }
.notice.bad { background: linear-gradient(180deg, #fff0ec, #ffe1da); color: #8a1f11; box-shadow: inset 0 2px 0 #fff, 0 4px 0 #e8a89c; }
.retake { margin-top: 28px; } .retake summary { cursor: pointer; font-weight: 800; font-family: var(--f-head); color: var(--acc-dark); margin-bottom: 12px; font-size: 1.1rem; }

/* --- Scorecard bars (HUD meters) ---------------------------------------- */
.bar { display: grid; grid-template-columns: 130px 1fr 36px; align-items: center; gap: 10px; margin: 10px 0; font-size: .92rem; font-weight: 700; }
.track { height: 14px; background: #f3e6d6; border-radius: 999px; overflow: hidden; box-shadow: inset 0 3px 0 var(--toy-band); }
.fill { height: 100%; background: linear-gradient(180deg, #ffd766, var(--gold) 55%, var(--gold-dark)); border-radius: 999px; box-shadow: inset 0 2px 0 rgba(255, 255, 255, .5); }
.rev p { margin: .4em 0 0; }
.how .card { text-align: center; }

/* --- Map ------------------------------------------------------------------ */
.gmap { width: 100%; height: 420px; overflow: hidden; }
.gmap.tall { height: min(72vh, 760px); } .gmap.small { height: 260px; }
.leaflet-container { font-family: var(--f-body); border-radius: var(--round); }
.gm-pin { background: none; border: 0; }
.gm-pin-body { width: 34px; height: 34px; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ff8a4c, var(--acc) 70%); border: 3px solid #fff; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .16), 0 4px 0 var(--acc-edge), 0 8px 12px rgba(120, 60, 20, .35); padding: 3px; box-sizing: border-box; }
.gm-pin-body svg { display: block; }
.gm-pin-tip { width: 0; height: 0; margin: 1px auto 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 11px solid var(--acc-edge); }
.gm-cluster { background: none; border: 0; }
.gm-cluster-body { position: relative; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 35% 28%, #ffd766, var(--gold) 70%); border: 3px solid #fff; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .14), 0 4px 0 var(--gold-edge), 0 8px 14px rgba(120, 60, 20, .35); display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.gm-cluster-body svg { width: 60%; height: 60%; }
.gm-cluster-n { position: absolute; right: -8px; bottom: -6px; background: var(--acc); color: #fff; font-weight: 700; font-family: var(--f-head); font-size: .82rem; border-radius: 999px; padding: 2px 8px; border: 2px solid #fff; box-shadow: 0 2px 0 var(--acc-edge); }
.gm-cluster-l .gm-cluster-n { font-size: 1rem; }
.gm-user { background: none; border: 0; }
.gm-user-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--sky); border: 3px solid #fff; box-shadow: 0 0 0 7px rgba(47, 155, 255, .28), 0 3px 0 var(--sky-edge); }
.gm-pop { font-family: var(--f-body); font-size: .95rem; line-height: 1.4; color: var(--text); }
.gm-pop a { color: var(--acc-dark); } .gm-muted { color: var(--muted); font-size: .85rem; } .gm-stars { color: var(--gold-dark); font-weight: 800; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: inset 0 2px 0 #fff, 0 4px 0 var(--panel-edge), 0 10px 16px -6px var(--toy-ao); }
.maphead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero-art { order: -1; } .hero-art svg { width: 200px; }
  .hero .lead { margin: 0 auto 18px; }
  nav { gap: 2px; } nav a { padding: 8px 8px; font-size: .85rem; } nav a:nth-child(4) { display: none; }
  .score { min-width: 74px; padding: 10px; } .score-n { font-size: 1.8rem; }
  .bar { grid-template-columns: 110px 1fr 32px; }
}

/* --- Map page: map + in-view list ---------------------------------------- */
.mapsplit { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.maplist { padding: 14px; max-height: min(72vh, 760px); display: flex; flex-direction: column; }
.maplist-head { display: flex; align-items: baseline; gap: 8px; padding: 2px 6px 10px; font-family: var(--f-head); font-size: 1.1rem; }
.maplist-items { list-style: none; margin: 0; padding: 0; overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.maplist-items li { display: grid; grid-template-columns: 28px 1fr 34px; gap: 8px; align-items: center; padding: 8px 8px; border-radius: var(--round-sm); background: #fff; box-shadow: inset 0 1px 0 var(--toy-rim), 0 2px 0 var(--panel-edge); cursor: pointer; }
.maplist-items li:hover { background: #fff7ee; }
.maplist-items a { color: var(--text); }
.maplist-n { width: 26px; height: 26px; border-radius: 50%; background: var(--sky); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: .8rem; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 0 var(--sky-edge); }
.maplist-go { border: 0; background: #fff; border-radius: 50%; width: 32px; height: 32px; cursor: pointer; box-shadow: inset 0 1px 0 var(--toy-rim), 0 2px 0 var(--panel-edge); font-size: 1rem; }
.maplist-go:active { transform: translateY(2px); box-shadow: none; }
.maplist-pager { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 10px; font-weight: 800; font-size: .9rem; }
.maplist-pager button[disabled] { opacity: .4; cursor: default; transform: none; }
@media (max-width: 900px) { .mapsplit { grid-template-columns: 1fr; } .maplist { max-height: 420px; } .gmap.tall { height: 56vh; } }

/* --- Floating ingredients (background life) ------------------------------ */
.bits { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bit { position: absolute; width: 64px; height: 64px; opacity: .85; animation: floaty var(--dur, 14s) ease-in-out infinite, spin var(--spin, 30s) linear infinite; filter: drop-shadow(0 6px 0 rgba(120, 60, 20, .12)); }
.bit svg { width: 100%; height: 100%; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-26px); } }
@keyframes spin { from { rotate: 0deg; } to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .bit { animation: none; } }
@media (max-width: 760px) { .bit { width: 44px; height: 44px; } }

/* --- Hero canvas -------------------------------------------------------- */
#spit { width: min(100%, 360px); height: auto; aspect-ratio: 410 / 470; }

/* --- Zillow-style filter bar above the map -------------------------------- */
.filterbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 14px; }
.filterbar input[type=search] { flex: 1 1 240px; min-width: 200px; width: auto; padding: 10px 14px; }
.filterbar select { width: auto; min-width: 0; padding: 9px 32px 9px 14px; font-family: var(--f-head); font-weight: 700; font-size: .95rem; cursor: pointer; appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22><path d=%22M5 7l5 6 5-6%22 fill=%22none%22 stroke=%22%236f5a4b%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/></svg>") no-repeat right 10px center / 16px; border-radius: 999px; box-shadow: inset 0 2px 0 var(--toy-rim), inset 0 -3px 0 var(--toy-band), 0 4px 0 var(--panel-edge); }
.filterbar select.on { background-color: var(--acc); color: #fff; background-image: url("data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22><path d=%22M5 7l5 6 5-6%22 fill=%22none%22 stroke=%22white%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/></svg>"); box-shadow: inset 0 2px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.12), 0 3px 0 var(--acc-edge); }
.filterbar select:focus { outline: 0; box-shadow: inset 0 2px 0 var(--toy-rim), 0 0 0 3px var(--sky); }
.filter-count { margin-left: auto; font-weight: 800; }
@media (max-width: 760px) { .filterbar { padding: 8px; } .filterbar select { font-size: .85rem; padding: 8px 28px 8px 12px; } }

/* --- Home = the map app: fills the viewport under the header ------------- */
body.full main { padding: 0; }
body.full .foot { display: none; }
body.full .bits { display: none; }
.mapapp { padding: 4px 14px 14px; }
.mapapp .filterbar { margin-bottom: 10px; }
.mapsplit.fill { grid-template-columns: 1fr 400px; height: calc(100vh - 168px); min-height: 420px; }
.gmap.fill { height: 100%; }
.mapsplit.fill .maplist { height: 100%; max-height: none; }
.maplist-stats { margin-left: auto; }
@media (max-width: 900px) {
  .mapsplit.fill { grid-template-columns: 1fr; grid-template-rows: 1fr 40vh; height: calc(100vh - 200px); }
  .mapsplit.fill .maplist { height: 100%; }
}

/* Filter bar: slim. Still toy-shaded, but a 2px edge and tight padding. */
.filterbar { padding: 8px 10px; gap: 6px; border-radius: 14px; box-shadow: inset 0 2px 0 var(--toy-rim), 0 3px 0 var(--panel-edge), 0 10px 18px -10px var(--toy-ao); }
.filterbar input[type=search] { padding: 7px 12px; font-size: .92rem; border-radius: 999px; box-shadow: inset 0 2px 0 var(--toy-band), inset 0 0 0 2px var(--line); }
.filterbar select, .filterbar .btn-sm { padding: 6px 26px 6px 12px; font-size: .86rem; font-weight: 600; box-shadow: inset 0 1px 0 var(--toy-rim), inset 0 -2px 0 var(--toy-band), 0 2px 0 var(--panel-edge); background-size: 14px; background-position: right 8px center; }
.filterbar .btn-sm { padding: 6px 12px; }
.filterbar select.on { box-shadow: inset 0 1px 0 rgba(255,255,255,.4), inset 0 -2px 0 rgba(0,0,0,.12), 0 2px 0 var(--acc-edge); }
.filterbar .btn:hover { transform: none; }
.filterbar .btn:active { transform: translateY(2px); }

/* --- Ground: the döner salad ---------------------------------------------- */
.salad { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; }
.sky, .clouds { display: none; }
body { background: #cfe3a6; }

/* salad drift: exactly one tile period per loop, so it never jumps */
.salad .tile { animation: saladDrift 90s linear infinite; }
@keyframes saladDrift { from { transform: translate(0, 0); } to { transform: translate(-560px, -560px); } }
.salad .sway { animation: sway var(--d, 8s) ease-in-out infinite alternate; opacity: .85; }
@keyframes sway { from { transform: rotate(-4deg) translateY(0); } to { transform: rotate(4deg) translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .salad .tile, .salad .sway { animation: none; } }

/* ===========================================================================
   APP CHROME (body.full = the map page). Flat, white, quiet — Zillow-style.
   The toy language survives only in accents: buttons, pins, badges.
   =========================================================================== */
body.full { background: #fff; }
body.full .salad, body.full .bits { display: none; }
body.full h1, body.full h2, body.full h3, body.full nav a, body.full .btn, body.full select { font-family: var(--f-body); }
body.full .brand { font-family: var(--f-head); }
body.full .top { padding: 0; background: #fff; border-bottom: 1px solid #e6e6e6; }
body.full .top .wrap { max-width: none; height: 60px; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; padding: 0 20px; }
body.full nav a { font-weight: 700; color: #333; }
body.full nav a:hover { background: #f3f3f3; }
body.full nav .btn { color: #fff; }
body.full .mapapp { padding: 0; }
body.full .filterbar { margin: 0; border-radius: 0; background: #fff; border-bottom: 1px solid #e6e6e6; box-shadow: none; padding: 10px 20px; gap: 8px; }
body.full .filterbar input[type=search] { border-radius: 8px; box-shadow: inset 0 0 0 1px #cfcfcf; background: #fff; padding: 8px 12px; font-weight: 600; }
body.full .filterbar input[type=search]:focus { box-shadow: inset 0 0 0 2px var(--acc); }
body.full .filterbar select, body.full .filterbar .btn-sm { border-radius: 8px; background-color: #fff; color: #222; box-shadow: inset 0 0 0 1px #cfcfcf; padding: 8px 28px 8px 12px; font-weight: 700; font-size: .9rem; }
body.full .filterbar .btn-sm { padding: 8px 12px; }
body.full .filterbar select:hover, body.full .filterbar .btn-sm:hover { box-shadow: inset 0 0 0 1px #888; transform: none; }
body.full .filterbar select.on { background-color: var(--acc); color: #fff; box-shadow: none; }
body.full .filterbar select:focus { box-shadow: inset 0 0 0 2px var(--acc); }
body.full .mapsplit.fill { gap: 0; height: calc(100vh - 60px - 57px); min-height: 480px; grid-template-columns: 1fr 420px; }
body.full .gmap, body.full .leaflet-container { border-radius: 0; box-shadow: none; background: #eee; }
body.full .maplist { border-radius: 0; box-shadow: none; background: #fff; border-left: 1px solid #e6e6e6; padding: 0; }
body.full .maplist-head { padding: 14px 18px; border-bottom: 1px solid #eee; font-family: var(--f-body); font-size: 1rem; }
body.full .maplist-head b { font-size: 1.05rem; }
body.full .maplist-items { gap: 0; padding: 0; }
body.full .maplist-items li { grid-template-columns: 1fr auto; border-radius: 0; box-shadow: none; border-bottom: 1px solid #eee; padding: 14px 18px; align-items: start; }
body.full .maplist-items li:hover { background: #fff7f2; }
body.full .maplist-n { display: none; }
body.full .maplist-items b { font-size: 1.02rem; color: #111; }
body.full .maplist-meta { color: #666; font-size: .86rem; margin-top: 2px; }
body.full .maplist-tags { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
body.full .maplist-tags span { font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; color: var(--acc-dark); background: #fff1ea; border-radius: 6px; padding: 2px 7px; }
body.full .maplist-rate { font-size: .84rem; color: var(--gold-dark); font-weight: 800; }
body.full .maplist-rate.none { color: #888; font-weight: 600; }
body.full .maplist-go { box-shadow: none; background: #f3f3f3; width: 30px; height: 30px; font-size: .9rem; }
body.full .maplist-go:hover { background: var(--acc-soft); }
body.full .maplist-pager { padding: 10px 18px; border-top: 1px solid #eee; }
body.full .maplist-pager .btn { background: #fff; color: #222; box-shadow: inset 0 0 0 1px #cfcfcf; border-radius: 8px; }
body.full .leaflet-popup-content-wrapper { border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
@media (max-width: 900px) { body.full .mapsplit.fill { grid-template-columns: 1fr; grid-template-rows: 1fr 42vh; height: calc(100vh - 60px - 110px); } body.full .maplist { border-left: 0; border-top: 1px solid #e6e6e6; } }

/* crisper salad (only on content pages now): outlines + less haze */
.salad path, .salad circle { paint-order: stroke; }

/* hover sync, sort, popup actions, mobile toggle */
.gm-pin-body { transition: transform .12s ease, box-shadow .12s ease; transform-origin: 50% 100%; }
.gm-pin-hi .gm-pin-body { transform: scale(1.25); box-shadow: inset 0 -4px 0 rgba(0,0,0,.16), 0 4px 0 var(--acc-edge), 0 0 0 6px rgba(255,90,31,.25), 0 10px 16px rgba(120,60,20,.4); }
.gm-pin.gm-pin-hi { z-index: 900 !important; }
body.full .maplist-items li.hi { background: #fff1ea; }
.maplist-sort { margin-left: auto; font: inherit; font-weight: 700; font-size: .85rem; padding: 5px 26px 5px 10px; border-radius: 8px; box-shadow: inset 0 0 0 1px #cfcfcf; background: #fff url("data:image/svg+xml;utf8,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 20 20%22><path d=%22M5 7l5 6 5-6%22 fill=%22none%22 stroke=%22%23666%22 stroke-width=%222.5%22 stroke-linecap=%22round%22/></svg>") no-repeat right 8px center / 14px; appearance: none; -webkit-appearance: none; width: auto; min-width: 0; }
.gm-pop-tags { display: flex; gap: 5px; flex-wrap: wrap; margin: 6px 0; }
.gm-pop-tags span { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--acc-dark); background: #fff1ea; border-radius: 6px; padding: 2px 7px; }
.gm-pop-rate { margin-bottom: 8px; }
.gm-pop-actions { display: flex; gap: 6px; }
.gm-pop-actions .btn { padding: 6px 10px; font-size: .82rem; border-radius: 8px; }
.gm-pop-actions .btn-ghost { box-shadow: inset 0 0 0 1px #cfcfcf; }
.leaflet-popup-content { margin: 12px 14px; }
.view-toggle { display: none; margin-left: auto; }
@media (max-width: 900px) {
  .view-toggle { display: inline-flex; }
  .filter-count { display: none; }
  body.full .mapsplit.fill { grid-template-rows: 1fr; height: calc(100vh - 60px - 110px); }
  body.full .mapsplit.fill .maplist { display: none; }
  body.full .mapsplit.fill.show-list .maplist { display: flex; } body.full .mapsplit.fill.show-list .gmap { display: none; }
}

/* robust vertical fill: flex column, the map takes whatever is left */
body.full main { display: flex; flex-direction: column; height: calc(100vh - 61px); }
body.full .mapapp { display: flex; flex-direction: column; flex: 1; min-height: 0; }
body.full .mapsplit.fill { flex: 1; height: auto !important; min-height: 0; }
body.full .filterbar { flex: 0 0 auto; }
body.full .filter-count { flex: 0 0 auto; }
@media (max-width: 900px) { body.full .mapsplit.fill { height: auto !important; } }

/* List locked to the map height (scrolls inside itself); page scrolls only
   as far as the footer below. */
body.full .foot { display: block; margin-top: 0; padding: 16px 20px; border-top: 1px solid #e6e6e6; background: #fff; }
body.full .foot .wrap { max-width: none; padding: 0; }
body.full .mapsplit.fill { grid-template-rows: minmax(0, 1fr); }
body.full .maplist { min-height: 0; overflow: hidden; }
body.full .maplist-items { min-height: 0; overflow-y: auto; }

/* location + rating only */
body.full .maplist-items li { grid-template-columns: 1fr auto; }
.maplist-actions { display: flex; gap: 6px; align-items: center; }
.maplist-actions .btn { padding: 6px 10px; font-size: .82rem; border-radius: 8px; }
.chk { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px #cfcfcf; font-weight: 700; font-size: .9rem; cursor: pointer; background: #fff; }
.chk input { width: auto; margin: 0; accent-color: var(--acc); }
.chk:has(input:checked) { background: var(--acc); color: #fff; box-shadow: none; }
body.full .filterbar input[type=search] { flex: 1 1 320px; }

/* compact markers */
.gm-pin { background: none; border: 0; filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); transition: transform .12s ease; transform-origin: 50% 100%; }
.gm-pin svg { display: block; }
.gm-pin.gm-pin-hi { transform: scale(1.3); }
.gm-cluster { background: none; border: 0; }
.gc { border-radius: 50%; background: #ff5a1f; color: #fff; font: 800 12px/1 var(--f-body); display: flex; align-items: center; justify-content: center; border: 2px solid #fff; box-shadow: 0 0 0 3px rgba(255,90,31,.25), 0 2px 6px rgba(0,0,0,.3); }
.gc[style*="width:40"], .gc[style*="width:46"] { font-size: 13px; }

/* --- Mobile ---------------------------------------------------------------- */
@media (max-width: 760px) {
  .top .wrap { padding: 0 12px; gap: 6px; }
  .brand { font-size: 1.25rem; gap: 6px; } .cone { width: 26px; height: 26px; }
  nav { gap: 0; } nav a { padding: 6px 8px; font-size: .9rem; }
  body.full .filterbar { padding: 8px 10px; gap: 6px; }
  body.full .filterbar input[type=search] { flex: 1 1 100%; min-width: 0; }
  body.full .filterbar .btn-sm, body.full .filterbar .chk { flex: 1 1 auto; justify-content: center; padding: 8px 6px; font-size: .84rem; white-space: nowrap; }
  body.full .filterbar .view-toggle { flex: 1 1 auto; margin-left: 0; }
  body.full .maplist-head { padding: 10px 12px; flex-wrap: wrap; }
  body.full .maplist-items li { padding: 12px; }
  .maplist-actions .btn { padding: 6px 8px; }
  .section { padding: 24px 14px; }
  .grid.two { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 96px 1fr 32px; font-size: .85rem; }
  .row.wrap-sm label { flex: 1 1 100%; }
  h1 { font-size: clamp(1.8rem, 8vw, 2.4rem); }
}

/* photos */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 14px 0 20px; }
.gallery .ph { display: block; position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #eee; }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .2s ease; }
.gallery .ph:hover img { transform: scale(1.04); }
.gallery .ph span { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-size: .75rem; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.photo-field input[type=file] { display: block; margin-top: 6px; font-weight: 400; }
.photo-preview img { max-width: 100%; max-height: 220px; border-radius: 10px; margin-top: 8px; display: block; }
.gm-pop-img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 8px; }
body.full .maplist-items li.has-img { grid-template-columns: 64px 1fr auto; }
.maplist-img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }

/* name labels instead of pins */
.gm-label { background: none; border: 0; width: 0 !important; height: 0 !important; margin: 0 !important; overflow: visible; }
.gm-label i { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #ff5a1f; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.gm-label span { position: absolute; left: 0; top: -30px; transform: translateX(-50%); white-space: nowrap; background: #fff; color: #1b1b1b; font: 700 12px/1 var(--f-body); padding: 6px 9px; border-radius: 999px; border: 1px solid #e2d6c8; box-shadow: 0 2px 6px rgba(0,0,0,.18); max-width: 190px; overflow: hidden; text-overflow: ellipsis; cursor: pointer; transition: transform .1s ease, background .1s ease; }
.gm-label span::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 8px; height: 8px; background: #fff; border-right: 1px solid #e2d6c8; border-bottom: 1px solid #e2d6c8; transform: translateX(-50%) rotate(45deg); }
.gm-label:hover span, .gm-label-hi span { background: #ff5a1f; color: #fff; border-color: #ff5a1f; transform: translateX(-50%) scale(1.06); }
.gm-label:hover span::after, .gm-label-hi span::after { background: #ff5a1f; border-color: #ff5a1f; }
.leaflet-marker-pane .gm-label:hover { z-index: 1000 !important; }
.gm-tip { background: #1b1b1b; color: #fff; border: 0; border-radius: 8px; padding: 6px 10px; font: 600 12px/1.3 var(--f-body); box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.gm-tip::before { border-top-color: #1b1b1b !important; }
body.full .mapsplit.fill { grid-template-columns: 1fr; }
