:root {
  --bg: #ffffff;
  --surface: #f7f7fb;
  --surface2: #ffffff;
  --surface3: #eeeff6;
  --ink: #181a2c;
  --ink-2: #5d6075;
  --line: #e4e5ee;
  --line-2: #cfd1de;
  --brand-ink: #b14423;
  --brand-soft: #fff0eb;
  --accent-ink: #b13064;
  --gold-ink: #a46311;
  --cta-from: #cc481f;
  --cta-to: #cb3773;
  --glass: #ffffffdb;
  --live: #e0475b;
  --scrim: linear-gradient(180deg, #0e0e1800 40%, #0e0e189e 100%);
  --shadow-card: 0 1px 2px #181a2c0d, 0 6px 20px #181a2c12;
  --shadow-cta: 0 8px 22px #cc481f4d;
  --shadow-pop: 0 4px 10px #181a2c0f, 0 18px 48px #181a2c24;
  --max: 1240px;
}
:root[data-theme="dark"] {
  --bg: #0e0e18;
  --surface: #0a0a13;
  --surface2: #171824;
  --surface3: #20222f;
  --ink: #f1f1f6;
  --ink-2: #a3a5b8;
  --line: #262838;
  --line-2: #363849;
  --brand-ink: #fe9e7d;
  --brand-soft: #3b1d13;
  --accent-ink: #f799be;
  --gold-ink: #fac463;
  --glass: #171824db;
  --shadow-card: none;
  --shadow-cta: 0 8px 26px #cb377347;
  --shadow-pop: 0 0 0 1px #ffffff0f, 0 18px 48px #0000008c;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { flex-shrink: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.tnum { font-variant-numeric: tabular-nums; }

/* Demo strip */
.demo-strip {
  background: var(--ink); color: var(--bg);
  text-align: center; font-size: 12.5px; font-weight: 500; padding: 6px 12px;
}

/* Header */
.top { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; letter-spacing: -.02em; }
.logo svg { width: 36px; height: 36px; border-radius: 10px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface2);
  font-size: 14px; font-weight: 600; transition: border-color .15s;
}
.chip-btn:hover { border-color: var(--line-2); }
.chip-btn.icon { width: 40px; padding: 0; justify-content: center; }
.flag { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; display: inline-block; }
.btn-text { background: none; border: 0; font-weight: 600; font-size: 14px; padding: 0 10px; height: 40px; }
.btn-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border: 0; border-radius: 12px; color: #fff; font-weight: 600; font-size: 14px;
  background: linear-gradient(110deg, var(--cta-from) 0%, var(--cta-to) 100%);
  box-shadow: var(--shadow-cta); transition: transform .15s, filter .15s;
}
.btn-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-cta.lg { height: 48px; padding: 0 22px; font-size: 15px; border-radius: 14px; }

.cats { display: flex; justify-content: center; gap: 4px; padding: 6px 0 10px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 76px;
  padding: 6px 10px; border-radius: 14px; color: var(--ink-2); font-size: 13px; font-weight: 500; background: none; border: 0;
}
.cat svg { width: 24px; height: 24px; stroke: currentColor; }
.cat:hover, .cat.on { color: var(--ink); background: var(--surface3); }

/* Hero */
.hero { padding-top: 20px; }
.hero-box {
  position: relative; border-radius: 32px; overflow: hidden; min-height: 520px;
  color: #fff; padding: 48px 32px 0; display: flex; flex-direction: column;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0e0e1880 0%, #0e0e1833 55%, #0e0e1800 100%), linear-gradient(180deg, #0e0e1840 0%, #0e0e1800 45%); }
.hero-box > *:not(.hero-bg) { position: relative; z-index: 1; }
.place {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: #0e0e1859; backdrop-filter: blur(8px); padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
.hero h1 { font-size: clamp(36px, 5.5vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; margin: 18px 0 12px; text-shadow: 0 2px 24px #0003; }
.hero p.sub { font-size: 17px; max-width: 520px; margin: 0; opacity: .95; }
.hero-panel {
  margin-top: auto; background: var(--surface2); color: var(--ink); border-radius: 24px 24px 0 0;
  padding: 16px 16px 18px; margin-left: -8px; margin-right: -8px; box-shadow: var(--shadow-pop);
}
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--surface);
}
.search input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); min-width: 0; }
.search svg { color: var(--ink-2); }
.days-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(58px, 1fr); gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; flex: 1; }
.days::-webkit-scrollbar { display: none; }
.day {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-radius: 18px;
  border: 1px solid var(--line); background: var(--surface2); scroll-snap-align: start; transition: border-color .15s;
}
.day:hover { border-color: var(--line-2); }
.day .dw { font-size: 12px; font-weight: 600; color: var(--brand-ink); }
.day .dn { font-size: 20px; font-weight: 700; line-height: 1; }
.day .dm { font-size: 11px; color: var(--ink-2); }
.day[aria-selected="true"] { border-color: transparent; color: #fff; background: linear-gradient(110deg, var(--cta-from), var(--cta-to)); box-shadow: var(--shadow-cta); }
.day[aria-selected="true"] .dw, .day[aria-selected="true"] .dm { color: #ffffffd9; }
.arrow { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface2); display: grid; place-items: center; }

/* Sections */
section.block { padding: 44px 0 8px; }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.head h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.head a, .head button.link { color: var(--brand-ink); font-weight: 600; font-size: 14px; background: none; border: 0; }
.note { color: var(--ink-2); font-size: 13px; margin: -10px 0 16px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.empty { color: var(--ink-2); padding: 40px 0; text-align: center; border: 1px dashed var(--line-2); border-radius: 20px; }

/* Event card */
.ev { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-snap-align: start; }
.ev-img { position: relative; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; display: block; }
.art { position: absolute; inset: 0; background: var(--surface3); }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.ev-img:hover .art img, .lst-img:hover .art img { transform: scale(1.04); }
.art::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.date-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2; min-width: 48px; text-align: center;
  background: var(--glass); backdrop-filter: blur(8px); border-radius: 12px; padding: 6px 8px; box-shadow: 0 1px 2px #0001;
}
.date-badge b { display: block; font-size: 20px; line-height: 1; color: var(--ink); }
.date-badge span { font-size: 11px; font-weight: 600; color: var(--brand-ink); }
.live { position: absolute; right: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: var(--live); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.tag { position: absolute; left: 10px; bottom: 10px; z-index: 2; background: #ffffff33; backdrop-filter: blur(8px); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.ev-time { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--brand-ink); margin: 0; }
.ev-title { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-title:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.ev-venue { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-2); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.ev-meta b { font-weight: 600; }
.crowd { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.bars { display: flex; gap: 2px; }
.bars i { width: 4px; height: 12px; border-radius: 4px; background: var(--line-2); }
.bars i.on { background: var(--brand-ink); }

/* Destinations */
.dests { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.dests::-webkit-scrollbar { display: none; }
.dest {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 8px 0 14px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface2); border-radius: 999px; font-size: 14px; font-weight: 500;
}
.dest:hover { border-color: var(--line-2); background: var(--surface3); }
.dest svg { color: var(--ink-2); }
.dest .n { background: var(--surface3); color: var(--ink-2); font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; }

/* Listing card */
.lst { display: flex; flex-direction: column; gap: 8px; min-width: 0; scroll-snap-align: start; }
.lst-img { position: relative; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; display: block; }
.lst-img .art::after { background: linear-gradient(180deg, #0e0e1826 0%, #0e0e1800 40%); }
.instant { position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: var(--glass); backdrop-filter: blur(8px); color: var(--ink); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; }
.instant svg { color: var(--gold-ink); }
.fav { position: absolute; right: 10px; top: 10px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(8px); color: var(--ink); }
.fav.on { color: var(--live); }
.fav.on svg { fill: currentColor; }
.lst-loc { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); }
.lst-loc .rate { display: inline-flex; align-items: center; gap: 3px; color: var(--ink); font-weight: 600; white-space: nowrap; }
.lst-loc .rate svg { color: var(--gold-ink); fill: currentColor; }
.lst-title { font-size: 15px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lst-avail { font-size: 13px; color: var(--ink-2); margin: 0; }
.lst-price { font-size: 14px; margin: 0; }
.lst-price b { font-size: 16px; }
.lst-price span { color: var(--ink-2); }

/* Map */
.map-card { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #dfeef3; }
:root[data-theme="dark"] .map-card { background: #13202a; }
.map-canvas { position: relative; height: 440px; z-index: 0; background: inherit; font-family: inherit; }
.map-card.full { position: fixed; inset: 0; z-index: 200; border-radius: 0; border: 0; }
.map-card.full .map-canvas { height: 100%; }
.map-card.full .map-info { display: none; }
.map-close { display: none; position: absolute; right: 16px; top: 16px; z-index: 1001; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface2); color: var(--ink); font-size: 18px; box-shadow: var(--shadow-pop); }
.map-card.full .map-close { display: grid; place-items: center; }
.map-info { z-index: 1000 !important; }
.pin-wrap { background: none; border: 0; }
.pin-wrap .pin { position: absolute; left: 0; top: 0; cursor: pointer; transition: background .15s, color .15s, transform .15s; }
.pin-wrap:hover .pin, .leaflet-marker-icon:focus .pin { background: var(--ink); color: var(--bg); }
.leaflet-container { font-family: inherit; }
:root[data-theme="dark"] .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.7); }
.leaflet-popup-content-wrapper { border-radius: 18px; padding: 0; overflow: hidden; background: var(--surface2); color: var(--ink); box-shadow: var(--shadow-pop); }
.leaflet-popup-content { margin: 0; width: 240px !important; }
.leaflet-popup-tip { background: var(--surface2); }
.leaflet-container a.leaflet-popup-close-button { color: #fff; text-shadow: 0 1px 4px #0008; top: 6px; right: 6px; }
.pop img { width: 100%; height: 130px; object-fit: cover; display: block; }
.pop-b { padding: 10px 14px 14px; }
.pop-loc { font-size: 12px; color: var(--ink-2); }
.pop-t { font-size: 14px; font-weight: 600; line-height: 1.3; margin: 2px 0 6px; }
.pop-p { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.pop-p b { color: var(--ink); font-size: 15px; }
.pop-btn { width: 100%; height: 38px; }
.leaflet-control-attribution { font-size: 10px; background: var(--glass) !important; color: var(--ink-2); }
.leaflet-control-attribution a { color: var(--ink-2); }
.leaflet-bar a { background: var(--surface2); color: var(--ink); border-color: var(--line); }
.leaflet-bar a:hover { background: var(--surface3); }

/* Dropdown (language) */
.dd { position: relative; }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 190px; padding: 6px;
  background: var(--surface2); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s;
}
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd [data-dd] svg:last-child { transition: transform .15s; }
.dd.open [data-dd] svg:last-child { transform: rotate(180deg); }
.dd-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; outline: none; }
.dd-item:hover, .dd-item:focus-visible { background: var(--surface3); }
.dd-item.on { font-weight: 600; }
.dd-item span { flex: 1; }
.dd-item .tick { color: var(--brand-ink); }
.map-info {
  position: absolute; left: 20px; top: 20px; z-index: 2; max-width: 340px; background: var(--surface2); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow-pop);
}
.map-info h2 { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.map-info p { margin: 0 0 14px; color: var(--ink-2); font-size: 14px; }
.pin { position: absolute; z-index: 1; transform: translate(-50%, calc(-100% - 7px)); background: var(--surface2); color: var(--ink); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; box-shadow: var(--shadow-pop); white-space: nowrap; }
.pin::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }

/* App + follow */
.duo { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.panel { border-radius: 24px; padding: 28px; background: var(--surface); border: 1px solid var(--line); }
.panel h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.panel p { margin: 0 0 18px; color: var(--ink-2); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: var(--bg); border: 0; text-align: left; }
.store small { display: block; font-size: 10px; opacity: .75; line-height: 1; }
.store b { display: block; font-size: 15px; line-height: 1.2; }
.store.ghost { background: var(--surface2); color: var(--ink); border: 1px solid var(--line); }
.socials { display: grid; gap: 10px; }
.social { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); text-align: left; width: 100%; }
.social .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #fff; }
.social b { display: block; font-size: 15px; }
.social span { font-size: 13px; color: var(--ink-2); }

/* Footer */
footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0 90px; font-size: 14px; color: var(--ink-2); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.foot h4 { color: var(--ink); margin: 0 0 10px; font-size: 14px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a:hover { color: var(--ink); }
.foot-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 13px; }

/* Bottom nav (mobile) */
.bnav { display: none; }

/* Toast + modal */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 100; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-pop); transition: .25s; max-width: calc(100% - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.cookie {
  position: fixed; right: 16px; bottom: 16px; z-index: 90; width: 340px; max-width: calc(100% - 32px);
  background: var(--surface2); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; box-shadow: var(--shadow-pop);
}
.cookie h2 { font-size: 15px; margin: 0 0 4px; }
.cookie p { margin: 0 0 12px; font-size: 13px; color: var(--ink-2); }
.cookie .row { display: flex; gap: 8px; }
.cookie .row button { flex: 1; height: 38px; border-radius: 12px; }
.cookie .alt { border: 1px solid var(--line); background: var(--surface2); font-weight: 600; font-size: 14px; }

/* Responsive */
@media (max-width: 1024px) {
  .rail { grid-auto-columns: calc((100% - 2 * 16px) / 3); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .top .login, .top .cur { display: none; }
  .top .signup { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
  .top .chip-btn { height: 36px; padding: 0 10px; }
  .top .chip-btn.icon { width: 36px; padding: 0; }
  .top .chip-btn svg:last-child:not(:first-child) { display: none; }
  .logo { font-size: 19px; gap: 8px; }
  .logo svg { width: 32px; height: 32px; }
  .top-actions { gap: 6px; }
}
@media (max-width: 359px) {
  .top .signup { display: none; }
  .cats { justify-content: flex-start; }
  .hero-box { min-height: 470px; padding: 32px 18px 0; border-radius: 26px; }
  .hero-panel { padding: 12px 12px 14px; }
  .arrow { display: none; }
  .rail { grid-auto-columns: 72%; }
  .lst-rail { grid-auto-columns: 82%; }
  .duo { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .map-info { position: static; max-width: none; border-radius: 0; box-shadow: none; border-top: 1px solid var(--line); }
  .map-canvas { height: 340px; }
  .map-card.full .map-canvas { height: 100%; }
  .bnav {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: var(--glass); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bnav button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--ink-2); padding: 4px 0; }
  .bnav button.on { color: var(--brand-ink); }
  .bnav svg { width: 22px; height: 22px; }
  .cookie { bottom: 76px; }
  .toast { bottom: 84px; }
}
