/* Explore Kerala – styles. Theme: periwinkle background, violet #6B3BF5, mint #C6F6C1, pink #F25BD0, ink #17152B. */
:root {
  --bg: #8E9BF7; --violet: #6B3BF5; --violet-d: #4F22D6; --violet-l: #EFEBFF; --lilac: #EEF0FF;
  --mint: #C6F6C1; --mint-l: #E4FBE0; --pink: #F25BD0; --pink-d: #B0249A; --pink-l: #FBE8F7;
  --ink: #17152B; --muted: #5B5873; --line: #DCD9F2; --line-2: #E7E4FA;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --head: 'Outfit', var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.45; overflow-x: hidden; }
a { color: var(--violet); }
a:hover { color: var(--violet-d); }
button { font-family: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--head); letter-spacing: -0.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }

/* page + background */
.page { position: relative; min-height: 100vh; overflow: hidden; padding: 44px 32px 32px; }
.bg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.bg .dash { animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -400; } }
.spark { position: absolute; left: 6px; top: 64px; width: 110px; animation: float 5s ease-in-out infinite; pointer-events: none; }
.burst { position: absolute; right: 14px; top: 1010px; width: 140px; animation: spin 16s linear infinite; pointer-events: none; }
@keyframes float { 50% { transform: translateY(-12px) rotate(8deg); } }
@keyframes spin { to { transform: rotate(360deg); } }
.vword { position: absolute; left: 32px; top: 380px; display: flex; flex-direction: column; gap: 16px; font-family: var(--head); font-size: 18px; color: #4F22D6; letter-spacing: .1em; }

/* app frame */
.frame { position: relative; max-width: 1380px; margin: 0 auto; background: #fff; border: 4px solid var(--ink); border-radius: 40px; padding: 14px; display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }

/* left sidebar */
.side { flex: 0 1 220px; min-height: 760px; border-radius: 30px; padding: 22px 14px; background: linear-gradient(170deg, #D6F7D2 0%, #F4FBF2 45%, #EEF0FF 100%); border: 1px solid #E3E6F5; display: flex; flex-direction: column; gap: 4px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 4px 8px 22px; font-family: var(--head); font-weight: 600; font-size: 21px; }
.brand:hover { color: var(--ink); }
.side-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: 14px; text-decoration: none; color: var(--ink); font-size: 14px; transition: background .15s; }
.side-link:hover { background: rgba(255, 255, 255, .75); color: var(--ink); }
.side-link.is-on { background: rgba(255, 255, 255, .9); font-weight: 600; }
.side-link span { display: flex; align-items: center; gap: 10px; }
.side-link svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.badge { min-width: 22px; height: 22px; border-radius: 11px; background: var(--violet); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.new-plan { margin: 18px 4px 0; height: 46px; border-radius: 23px; border: 0; background: var(--violet); color: #fff; font-weight: 600; font-size: 14px; transition: background .15s, transform .15s; }
.new-plan:hover { background: var(--violet-d); transform: translateY(-1px); }
.side-fill { flex: 1; min-height: 20px; }
.trend { position: relative; border: 0; border-radius: 22px; background: #9A2D2D; color: #fff; padding: 14px; min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; text-align: left; transition: transform .2s; }
.trend:hover { transform: translateY(-3px); }
.trend .photo-tag { position: static; }
.trend-text { padding-right: 34px; font-size: 13px; font-weight: 600; line-height: 1.3; }
.trend-go { position: absolute; right: 12px; bottom: 12px; width: 30px; height: 30px; border-radius: 15px; background: rgba(255, 255, 255, .9); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.ad-side { margin-top: 10px; min-height: 64px; }

/* centre: map */
.center { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 12px; padding: 8px 4px; }
.center-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 6px 6px 0; }
.center-head h1 { margin: 0; font-weight: 600; font-size: 26px; }
.center-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.head-tools { display: flex; gap: 10px; align-items: center; }
.search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 21px; border: 1.5px solid var(--line); background: #fff; box-shadow: 0 2px 0 var(--line-2); }
.search svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.search input { border: 0; outline: none; font: inherit; font-size: 13.5px; color: var(--ink); width: 150px; background: transparent; }
.lang-btn { height: 42px; padding: 0 14px; border-radius: 21px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 13px; }
.map-card { flex: 1; position: relative; min-height: 640px; border-radius: 30px; overflow: hidden; background: #E9ECFF; border: 1px solid #DCDFF8; }
#map { position: absolute; inset: 0; }
.map-badge { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .95); font-size: 12.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(40, 20, 120, .08); }
.legend { position: absolute; right: 16px; top: 16px; z-index: 2; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, .95); display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; font-weight: 600; box-shadow: 0 4px 14px rgba(40, 20, 120, .08); }
.legend span { display: flex; align-items: center; gap: 8px; transition: opacity .3s; }
.legend span.dim { opacity: .4; }
.legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.legend .air { color: var(--muted); }
.legend .air i { width: 10px; height: 10px; border-radius: 3px; background: var(--ink); transform: rotate(45deg); margin: 0 4px; }
.map-tools { position: absolute; left: 16px; bottom: 66px; z-index: 2; display: flex; gap: 8px; }
.tool { width: 44px; height: 44px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .95); font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(40, 20, 120, .1); }
.tool:hover { color: var(--violet); }
.quick { position: absolute; left: 16px; right: 60px; bottom: 16px; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; }
.q { height: 36px; padding: 0 14px; border-radius: 18px; font-size: 13px; color: var(--ink); transition: transform .15s; }
.q:hover { transform: translateY(-2px); }
.q-mint { background: var(--mint-l); border: 1px solid #BFEAB8; box-shadow: 0 3px 0 #BFEAB8; }
.q-lilac { background: var(--lilac); border: 1px solid #CDD3FB; box-shadow: 0 3px 0 #CDD3FB; }
.q-pink { background: var(--pink-l); border: 1px solid #F2C3E8; box-shadow: 0 3px 0 #F2C3E8; }
.map-note { position: absolute; left: 16px; top: 54px; z-index: 2; font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .85); padding: 4px 10px; border-radius: 10px; }
.maplibregl-ctrl-group { border-radius: 14px !important; overflow: hidden; }

/* map markers (outer div is positioned by the map, inner div is ours) */
.mk-airport { display: flex; align-items: center; gap: 6px; pointer-events: none; }
.mk-diamond { width: 16px; height: 16px; border-radius: 5px; background: var(--ink); border: 2.5px solid #fff; transform: rotate(45deg); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); position: relative; }
.mk-code { font-size: 11.5px; font-weight: 700; color: var(--ink); text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; }
.mk-airport.is-minor .mk-diamond { background: #A9A5C8; width: 12px; height: 12px; }
.mk-airport.is-minor .mk-code { color: #8C89A8; font-weight: 600; }
.mk-airport.is-active .mk-diamond { background: var(--pink); }
.mk-airport.is-pulse .mk-diamond::after { content: ''; position: absolute; inset: -4px; border-radius: 6px; background: var(--pink); opacity: .7; z-index: -1; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { to { transform: scale(3); opacity: 0; } }
.mk-stop { display: flex; align-items: center; gap: 6px; animation: pop .5s cubic-bezier(.3, 1.6, .5, 1) both; pointer-events: none; }
.mk-num { width: 26px; height: 26px; border-radius: 13px; color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; border: 2.5px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); }
.mk-name { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 3px 9px; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 3px 10px rgba(40, 20, 120, .1); }
@keyframes pop { from { transform: scale(0); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mk-fest { display: flex; align-items: center; gap: 6px; pointer-events: none; animation: pop .5s ease both; }
.mk-fest-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px dashed #8C89A8; background: #fff; }
.mk-fest-name { font-size: 11px; font-weight: 600; color: #6E6990; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 3px #fff; white-space: nowrap; }
.mk-fest.is-on .mk-fest-dot { border: 2px solid #fff; background: var(--pink); box-shadow: 0 0 0 4px rgba(242, 91, 208, .3); }
.mk-fest.is-on .mk-fest-name { color: var(--pink-d); }
.mk-car { width: 28px; height: 28px; border-radius: 14px; background: var(--pink); border: 2.5px solid #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(0, 0, 0, .25); pointer-events: none; }
.mk-car svg path { stroke: #fff; }

/* right panel */
.panel { flex: 1 1 360px; min-width: 0; max-width: 100%; height: 820px; display: flex; flex-direction: column; border-radius: 30px; overflow: hidden; background: linear-gradient(165deg, #F3F1FF 0%, #E6E8FF 55%, #DCE0FF 100%); border: 1px solid #D7DAF9; box-shadow: 8px 8px 0 #C9CEFA; }
.panel-head { padding: 18px 22px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dots { display: flex; gap: 6px; }
.dots span { width: 8px; height: 8px; border-radius: 4px; background: #CFCBEA; transition: width .3s, background .3s; }
.dots span.is-done { background: var(--violet); }
.dots span.is-now { width: 26px; background: var(--violet); }
.back { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-weight: 500; }
.panel-body { flex: 1; overflow-y: auto; padding: 6px 22px 22px; }
.fade { animation: fade .45s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.panel h2 { margin: 0 0 4px; font-size: 26px; font-weight: 600; }
.sub { margin: 0 0 16px; color: var(--muted); }
.label { margin: 16px 0 8px; font-weight: 600; }
.fine { margin: 14px 0 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.opt { border: 1.5px solid var(--line); background: #fff; border-radius: 16px; text-align: left; padding: 14px 16px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.opt:hover { transform: translateY(-2px); border-color: var(--violet); box-shadow: 0 6px 18px rgba(107, 59, 245, .15); }
.opt b { display: block; font-size: 16px; font-weight: 600; }
.opt small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.opt-lang { min-height: 84px; }
.opt-lang b { font-size: 20px; font-family: 'Noto Sans Malayalam', var(--head); }
.opt-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.opt-row i { font-style: normal; color: var(--violet); font-size: 18px; }
.opt.is-sel { border-color: var(--violet); background: var(--violet-l); }
.check { display: flex; align-items: center; gap: 10px; margin-top: 16px; min-height: 44px; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--violet); }

.chip { height: 46px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: background .15s, color .15s; }
.chip:hover { border-color: var(--violet); }
.chip.is-sel { background: var(--ink); color: #fff; border-color: var(--ink); }
.months .chip { height: 52px; }
.season { width: 18px; height: 4px; border-radius: 2px; }
.keys { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.keys i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 4px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper span { min-width: 90px; text-align: center; font-weight: 600; font-size: 16px; }
.round { width: 44px; height: 44px; border-radius: 22px; border: 1.5px solid var(--line); background: #fff; font-size: 20px; }
.cta { width: 100%; min-height: 54px; border-radius: 27px; border: 0; background: var(--violet); color: #fff; font-size: 16px; font-weight: 600; margin-top: 18px; transition: background .15s, transform .15s; }
.cta:hover { background: var(--violet-d); transform: translateY(-1px); }
.ghost { min-height: 54px; border-radius: 27px; border: 1.5px solid var(--ink); background: #fff; font-weight: 600; margin-top: 18px; }
.ghost.is-sel { background: var(--ink); color: #fff; }
.actions .cta, .actions .ghost { margin-top: 18px; font-size: 15px; }
.dark { height: 40px; padding: 0 16px; border-radius: 20px; border: 0; background: var(--violet); color: #fff; font-weight: 600; font-size: 14px; }
.pill { height: 34px; padding: 0 12px; border-radius: 17px; border: 1.5px solid var(--violet); background: #fff; color: var(--violet); font-weight: 600; font-size: 13px; white-space: nowrap; }
.link { border: 0; background: none; color: var(--violet); font-weight: 600; padding: 6px 0; text-decoration: underline; }

/* circuit cards */
.circuit { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; }
.circuit .bar { flex: 0 0 6px; align-self: stretch; border-radius: 3px; background: var(--c); }
.circuit-body { flex: 1; min-width: 0; }
.circuit-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.circuit-top em { font-style: normal; padding: 3px 9px; border-radius: 999px; background: var(--mint); color: #1F5A2A; font-size: 11.5px; font-weight: 700; }
.circuit-stops { display: block; font-size: 13px; margin-top: 6px; }
.circuit.is-rec { border-color: var(--c); box-shadow: 0 8px 22px rgba(107, 59, 245, .14); }

/* plan */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 16px; background: #DCDFFA; margin-bottom: 14px; }
.tab { height: 40px; border-radius: 12px; border: 0; background: transparent; font-weight: 600; font-size: 13px; color: var(--muted); }
.tab.is-sel { background: #fff; color: var(--c); box-shadow: 0 2px 8px rgba(40, 20, 120, .1); }
.who { margin: 0; font-size: 13px; color: var(--muted); }
.summary { margin: 2px 0 14px; font-family: var(--head); font-size: 24px; font-weight: 600; line-height: 1.2; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.stats > div { padding: 10px 12px; border-radius: 14px; background: #fff; }
.stats > div.gold { background: var(--pink-l); }
.stats small { display: block; font-size: 12px; color: var(--muted); }
.stats b { font-size: 18px; font-weight: 700; }
.delta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--mint-l); color: #1F5A2A; font-size: 13px; margin-bottom: 12px; }
.note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid #F2C3E8; font-size: 13px; color: var(--pink-d); }
.days { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.day { display: flex; gap: 12px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); align-items: flex-start; animation: fade .4s ease both; }
.day .num { flex: 0 0 28px; height: 28px; border-radius: 14px; background: var(--c); color: #fff; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.day-home .num { background: var(--ink); }
.day-body { flex: 1; min-width: 0; }
.day-top { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.day-top b { font-weight: 600; }
.day-top small { color: var(--muted); font-size: 12.5px; }
.day p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.day p.leg { margin-top: 6px; color: var(--ink); font-size: 12.5px; }
.day p.leg span { color: var(--pink-d); font-weight: 600; }
.drop { align-self: center; height: 34px; padding: 0 12px; border-radius: 17px; border: 1.5px solid #F2C3E8; background: #fff; color: var(--pink-d); font-weight: 600; font-size: 12.5px; }
.fests { margin-bottom: 4px; }
.fest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 12px; margin-bottom: 8px; font-size: 13.5px; }
.fest-on { background: var(--mint-l); }
.fest-on b { color: #1F5A2A; }
.fest-off { background: #fff; border: 1.5px dashed #A9A5C8; }
.fest-off b { color: var(--muted); }

/* ads */
.ad-slot { border-radius: 16px; border: 1.5px dashed #A9A5C8; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 12px; min-height: 50px; text-align: center; padding: 6px 12px; background: rgba(255, 255, 255, .5); }
.ad-slot[hidden] { display: none; }
.ad-wide { min-height: 96px; border-radius: 24px; background: rgba(255, 255, 255, .6); }

/* sections below the frame */
.block { position: relative; max-width: 1380px; margin: 0 auto; padding: 32px 8px 4px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.block-head h2 { margin: 0; font-size: 30px; font-weight: 600; color: #fff; }
.see-all { height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: 20px; background: rgba(255, 255, 255, .85); color: var(--ink); font-weight: 600; text-decoration: none; }
.plan-row { display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 16px; scroll-snap-type: x mandatory; }
.plan-row::-webkit-scrollbar { height: 8px; }
.plan-row::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .6); border-radius: 8px; }
.plan-card { flex: 0 0 256px; scroll-snap-align: start; border-radius: 26px; background: #fff; border: 3px solid var(--ink); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.plan-card:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 var(--ink); }
.plan-img { height: 140px; margin: 8px; border-radius: 20px; position: relative; display: flex; align-items: flex-end; padding: 12px; }
.plan-img h3 { margin: 0; color: #fff; font-size: 21px; font-weight: 600; }
.photo-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 11.5px; font-weight: 600; }
.plan-body { padding: 4px 16px 16px; }
.plan-body p { margin: 6px 0 14px; font-size: 13.5px; color: var(--muted); }
.plan-body .meta { margin: 0; font-weight: 600; color: var(--violet); }
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.how-card { padding: 22px; border-radius: 26px; background: #fff; border: 3px solid var(--ink); }
.how-n { display: inline-flex; width: 44px; height: 44px; border-radius: 22px; align-items: center; justify-content: center; background: var(--mint); font-family: var(--head); font-size: 22px; font-weight: 700; color: var(--ink); }
.how-card h3 { margin: 12px 0 4px; font-size: 18px; font-weight: 600; }
.how-card p { margin: 0; color: var(--muted); }

.foot { position: relative; max-width: 1380px; margin: 28px auto 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 13px; }
.pill-note { padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .78); }
.pill-big { font-family: var(--head); font-size: 15px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 600; z-index: 60; transition: opacity .25s, transform .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* tablets */
@media (max-width: 1100px) {
  .side { flex: 1 1 100%; min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 12px; }
  .brand { padding: 4px 8px; margin-right: auto; }
  .side-link:not(.is-on), .side-fill, .trend, .ad-side { display: none; }
  .new-plan { margin: 0; height: 40px; padding: 0 16px; }
  .vword { display: none; }
}
/* phones */
@media (max-width: 760px) {
  .page { padding: 12px 10px 24px; }
  .frame { border-width: 3px; border-radius: 28px; padding: 8px; gap: 8px; }
  .side { border-radius: 22px; }
  .side-link.is-on { display: none; }
  .center-head h1 { font-size: 21px; }
  .head-tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }
  .map-card { min-height: 0; height: 58vh; border-radius: 22px; }
  .legend { display: none; }
  .quick { right: 16px; }
  .quick .q:nth-child(n+2) { display: none; }
  .panel { height: auto; border-radius: 22px; box-shadow: 5px 5px 0 #C9CEFA; }
  .panel-body { overflow: visible; }
  .spark, .burst { display: none; }
  .block-head h2 { font-size: 24px; }
  .grid4 { gap: 6px; }
  .tabs .tab { font-size: 12px; }
  .stats b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.ek-pop .maplibregl-popup-content { border-radius: 12px; padding: 8px 28px 8px 12px; font-weight: 600; font-size: 13px; box-shadow: 0 6px 18px rgba(40, 20, 120, .15); }
