:root{
  --bg:#0b0b0b; --text:#ececec; --muted:#b6b6b6; --accent:#ff4d2e;
  --card:#111; --border:#222; --radius:14px;
  --vh: 1vh; /* will be set via JS for mobile accuracy */
}

*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--text);font:16px/1.5 system-ui,-apple-system,Segoe UI,Roboto,Arial}
html,body{height:100%}
body{touch-action:pan-y; overscroll-behavior-y:none}

/* ===== Overlay UI (doesn't consume lane height) ===== */
.city-badge{
  position:fixed; top:10px; left:12px; z-index:30;
  background:rgba(0,0,0,.55); color:#fff; padding:6px 10px;
  border:1px solid #222; border-radius:999px; font-size:12px; pointer-events:none;
}
.controls-overlay{
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%); /* centers it */
  z-index: 40;

  display:flex;
  gap:8px;
  align-items:center;

  background:rgba(0,0,0,0.72); /* cleaner, richer, more “app” */
  box-shadow: 0 6px 18px rgba(0,0,0,0.45);
  backdrop-filter: blur(12px);   /* stronger, smoother blur */
  border:1px solid rgba(255,255,255,0.12);
  border-radius:12px;
  padding:4px 8px;
}

/* Unified clean sizing */
.controls-overlay select,
.controls-overlay input,
.controls-overlay button {
  height: 30px;
  border-radius: 10px;
  font-size: 13px;
}

/* City dropdown */
.controls-overlay select {
  min-width: 95px;
  max-width: 120px;
  padding: 0 8px;
}

/* Search input — responsive width */
.controls-overlay input {
  width: 160px;
  max-width: 45vw;
  padding: 0 10px;
}
.controls-overlay input::placeholder {
  color: #bfbfbf;
}

/* Search button — subtle glass style */
.controls-overlay button {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 0 14px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.controls-overlay button:hover {
  background: rgba(255,255,255,0.18);
}

.controls-overlay button:active {
  transform: translateY(1px);
}



/* ===== True TikTok-style snap stack ===== */
.snap-container{
  height:calc(var(--vh) * 100);              /* reliable 100vh on mobile */
  overflow-y:scroll;
  -webkit-overflow-scrolling:touch;
  scroll-snap-type:y mandatory;
  background:var(--bg);
}

/* A slide = exactly one viewport */
.slide{
  height:calc(var(--vh) * 100);
  scroll-snap-align:start;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  margin:0; border:0; background:var(--bg);
}

/* TikTok blockquote container sizing */
.slide .tiktok-embed{
  width:100%;
  max-width:480px;
  min-width:320px;
  margin:0 auto;
}

/* Info & action bar below each video — polished & slimmer */
.info{
  width:100%;
  max-width:520px;
  margin:8px auto 12px;        /* tighter */
  padding:0 10px;
}
.meta{ color:var(--muted); font-size:13px; margin-bottom:8px; }
.meta strong{ color:var(--text); }

/* Button grid (unchanged layout, just centered & cleaner) */
.actions{
  display:grid;
  grid-template-columns: repeat(4, 1fr);  /* 4 across on wide screens */
  gap:10px;
  max-width:520px;
  margin:0 auto 12px;                     /* center the grid block */
}
@media (max-width:640px){
  .actions{ grid-template-columns: repeat(2, 1fr); }  /* 2x2 on mobile */
}

/* Buttons: slimmer, glassy cards */
.actions a,
.actions button{
  display:inline-block;
  text-align:center;
  padding:8px 10px;              /* slimmer than before */
  height:38px;                   /* compact */
  font-size:13.5px;
  font-weight:600;
  text-decoration:none;
  border-radius:12px;

  /* subtle glass style */
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.actions a:hover,
.actions button:hover{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.20);
}

/* Footer (copyright) — more breathing room */
.site-footer{
  position: fixed;
  bottom: max(18px, env(safe-area-inset-bottom, 18px));
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  color: #9a9a9a;
  font-size: 11.5px;
  pointer-events: none;
}
.site-footer span{ pointer-events:auto; }

/* ---- Map Sheet DELETE THIS IS SITE FAILS ---- */
.map-sheet{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 60vh;
  transform: translateY(100%);
  transition: transform 220ms ease;
  z-index: 60; /* below your controls overlay (40)? raise if needed */
  backdrop-filter: blur(12px);
  background: rgba(0,0,0,0.65);
  border-top: 1px solid rgba(255,255,255,0.12);
  display: grid;
  place-items: stretch;
}
.map-sheet.open{ transform: translateY(0); }

.map-sheet__inner{
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  padding: 12px;
}

.map-sheet__handle{
  width: 48px; height: 5px; border-radius: 999px;
  background: rgba(255,255,255,0.28);
  justify-self: center; margin-top: 6px;
}

.map-sheet__title{
  display: flex; align-items: center; justify-content: space-between;
  color: #fff; font-weight: 700; letter-spacing: .2px;
}

.map-sheet__close{
  background: transparent; border: 0; color:#fff; font-size: 18px;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
}
.map-sheet__close:hover{ background: rgba(255,255,255,0.08); }

.map-sheet__mapwrap{
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.12);
  min-height: 220px;
}

.map-sheet__actions{
  display: flex; gap: 8px; justify-content: center; padding-bottom: 6px;
}

.map-btn{
  display: inline-flex; align-items:center; justify-content:center;
  padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none;
  background: var(--accent, #ff6a00); color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.map-btn:hover{ filter: brightness(1.05); }

