/* ============================================================
   AKIHTOY — Feria de Abril 2026
   © 2026 Next Force Engineering S.L.
   ============================================================ */

/* ======================== DEMO GATE ======================== */
.demo-gate {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--red, #C41E3A);
  display: flex; align-items: center; justify-content: center;
}
.demo-gate-box {
  background: #fff; border-radius: 16px; padding: 32px; text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.3); max-width: 300px; width: 90%;
}
.demo-gate-box h2 { margin: 0 0 8px; font-family: 'Pacifico', cursive; color: var(--red, #C41E3A); }
.demo-gate-box p { margin: 0 0 20px; font-size: 13px; color: #666; }
.demo-gate-box input {
  width: 100%; padding: 12px; border: 2px solid #ddd; border-radius: 10px;
  font-size: 16px; text-align: center; box-sizing: border-box; outline: none;
  transition: border-color .2s;
}
.demo-gate-box input:focus { border-color: var(--red, #C41E3A); }
.demo-gate-box button {
  margin-top: 12px; width: 100%; padding: 12px; border: none; border-radius: 10px;
  background: var(--red, #C41E3A); color: #fff; font-size: 16px; font-weight: 700;
  cursor: pointer;
}

/* ======================== THEME SYSTEM ======================== */
:root {
  --red: #C41E3A;
  --red-dk: #9B1830;
  --green: #1B5E20;
  --gold: #F4C542;
  --gold-lt: #F9D876;
  --cream: #FFF8E7;
  --brown: #3D1F0A;
  --g100: #F5F5F5;
  --g200: #EEE;
  --g400: #BDBDBD;
  --g600: #757575;
  --ff-d: 'Pacifico', cursive;
  --ff: 'Nunito', sans-serif;
  --nav: 58px;
  --hdr: 50px;
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
}

[data-theme="green"] {
  --red: #2E7D32;
  --red-dk: #1B5E20;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: var(--ff); color: var(--brown); overflow: hidden;
  -webkit-font-smoothing: antialiased; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
a { color: inherit; }
.hidden { display: none !important; }

/* ======================== SPLASH ======================== */
.splash {
  position: fixed; inset: 0; z-index: 9999;
  background-color: var(--red);
  background-image: radial-gradient(circle, rgba(255,255,255,0.22) 3px, transparent 3px);
  background-size: 22px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .5s, transform .5s;
}
.splash.out { opacity: 0; transform: scale(1.1); pointer-events: none; }

/* farolillos */
.farolillos-row {
  position: absolute; top: 20px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 10px; padding: 0 8px;
}
.farolillos-string {
  position: absolute; top: 0; left: 3%; right: 3%; height: 2px;
  background: rgba(0,0,0,.3);
}
/* Farolillo images */
.farolillo-img {
  width: 62px; height: 62px; margin-top: 14px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.25));
  transform-origin: top center;
  animation: sway-hang 3s ease-in-out infinite;
}
.farolillo-img:nth-child(odd) { animation-delay: -1s; }
.farolillo-img:nth-child(3n) { animation-delay: -.5s; }

@keyframes sway-hang { 0%,100%{transform:rotate(-4deg)} 50%{transform:rotate(4deg)} }

/* Hide farolillos that match the background theme */
[data-theme="red"] .frl-hide-red { display: none; }
[data-theme="green"] .frl-hide-green { display: none; }

@keyframes sway { 0%,100%{transform:rotate(-3deg)} 50%{transform:rotate(3deg)} }

.splash-body { text-align: center; padding: 0 32px; }
.splash-title {
  font-family: var(--ff-d); font-size: 3.8rem; color: #fff;
  text-shadow: 0 3px 14px rgba(0,0,0,.3);
  animation: bounceIn .8s ease-out;
}
.splash-sub {
  font-size: 1.15rem; color: rgba(255,255,255,.88); font-weight: 600;
  animation: fadeUp .6s ease-out .3s both;
}
.splash-ed {
  font-size: .88rem; color: rgba(255,255,255,.65); margin-bottom: 18px;
  animation: fadeUp .6s ease-out .5s both;
}

/* name input */
.name-input {
  display: block; width: 220px; margin: 0 auto 14px;
  padding: 12px 18px; border: none; border-radius: 50px;
  font-family: var(--ff); font-size: 1.1rem; font-weight: 700;
  text-align: center; color: var(--brown); background: rgba(255,255,255,.92);
  box-shadow: 0 4px 16px rgba(0,0,0,.15); outline: none;
  animation: fadeUp .6s ease-out .6s both;
}
.name-input::placeholder { color: #ccc; font-weight: 600; }
.name-input:focus { box-shadow: 0 4px 16px rgba(0,0,0,.25); }

/* ======================== BIG AVATAR PICKER ======================== */
.avatar-big-wrap {
  margin: 0 auto 16px; text-align: center;
  animation: fadeUp .6s ease-out .65s both;
}
.avatar-big {
  width: 80px; height: 80px; margin: 0 auto 6px;
  border-radius: 50%; background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 42px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.2);
  transition: transform .2s, box-shadow .2s;
  user-select: none;
}
.avatar-big:hover { transform: scale(1.08); }
.avatar-big:active { transform: scale(.95); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.avatar-hint {
  font-size: .78rem; color: rgba(255,255,255,.6); font-weight: 600;
}

/* avatar picker modal */
.av-modal {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
.av-modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.av-modal-sheet {
  position: relative; background: #fff; width: 100%; max-width: 360px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 8px 20px 32px;
  animation: slideUp .3s cubic-bezier(.34,1.56,.64,1);
}
.av-modal-sheet h3 {
  font-size: 1.1rem; font-weight: 800; text-align: center; margin-bottom: 16px;
  color: var(--brown);
}
.avatar-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  max-height: 320px; overflow-y: auto; padding: 4px;
}
.av-grid-item {
  width: 64px; height: 64px; margin: 0 auto;
  border-radius: 16px; background: var(--g100);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; cursor: pointer;
  border: 3px solid transparent;
  transition: all .2s;
}
.av-grid-item:hover { background: var(--cream); transform: scale(1.08); }
/* Custom image avatars */
.av-img { object-fit: contain; }
.av-big-img { width: 52px; height: 52px; }
.av-grid-img { width: 36px; height: 36px; }
.av-mk-img { width: 22px; height: 22px; }
.av-grid-item:active { transform: scale(.93); }
.av-grid-item.sel {
  border-color: var(--red); background: rgba(196,30,58,.08);
  transform: scale(1.1);
}

/* enter button */
.enter-caseta {
  height: 32px; width: auto; vertical-align: middle; margin-right: 8px;
}
[data-theme="green"] .enter-caseta { content: url('caseta verde sin bg.png'); }

.enter-btn {
  background: #fff; color: var(--red); font-size: 1.05rem; font-weight: 800;
  padding: 12px 32px; border-radius: 50px;
  display: inline-flex; align-items: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  transition: transform .2s, box-shadow .2s;
  animation: fadeUp .6s ease-out .7s both, pulsebtn 2s ease-in-out 1.5s infinite;
}
.enter-btn:hover { transform: scale(1.05); }
.enter-btn:active { transform: scale(.97); }

@keyframes bounceIn {
  0%{transform:scale(.3);opacity:0} 50%{transform:scale(1.05)}
  70%{transform:scale(.95)} 100%{transform:scale(1);opacity:1}
}
@keyframes fadeUp { from{transform:translateY(18px);opacity:0} to{transform:translateY(0);opacity:1} }
@keyframes pulsebtn { 0%,100%{transform:scale(1)} 50%{transform:scale(1.04)} }

/* ======================== APP ======================== */
.app { position: fixed; inset: 0; display: flex; flex-direction: column; background: var(--cream); }

/* header */
.app-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--hdr); z-index: 500;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between; padding: 0 14px;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.logo { font-family: var(--ff-d); font-size: 1.4rem; color: var(--red); }
.hdr-right { display: flex; align-items: center; gap: 8px; }
.my-pill {
  display: flex; align-items: center; gap: 6px; background: var(--cream);
  padding: 4px 12px; border-radius: 20px; font-size: .82rem; font-weight: 700;
}
.hamburger {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--brown); background: var(--cream);
  transition: background .2s;
}
.hamburger:hover { background: var(--g200); }
.hamburger:active { background: var(--g400); }
.pill-dot { width: 9px; height: 9px; border-radius: 50%; background: #FF5722; transition: background .3s; }

/* map */
#map { flex: 1; margin-top: var(--hdr); margin-bottom: var(--nav); z-index: 1; }

/* GPS banner */
.gps-banner {
  position: fixed; top: calc(var(--hdr) + 8px); left: 10px; right: 10px; z-index: 500;
  background: #E3F2FD; color: #1565C0; padding: 9px 14px; border-radius: var(--r-md);
  font-size: .82rem; font-weight: 700; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.12);
  animation: slideD .3s ease; cursor: pointer;
}

/* geofence warning */
.geo-warn {
  position: fixed; top: calc(var(--hdr) + 8px); left: 10px; right: 10px; z-index: 500;
  background: #FFF3E0; color: #E65100; padding: 9px 14px; border-radius: var(--r-md);
  font-size: .82rem; font-weight: 700; text-align: center; box-shadow: 0 4px 14px rgba(0,0,0,.12);
  animation: slideD .3s ease;
}
@keyframes slideD { from{transform:translateY(-16px);opacity:0} to{transform:translateY(0);opacity:1} }

/* toast */
.toast {
  position: fixed; top: -70px; left: 50%; transform: translateX(-50%); z-index: 700;
  background: #fff; padding: 9px 18px; border-radius: var(--r-md);
  box-shadow: 0 4px 14px rgba(0,0,0,.14); font-size: .82rem; font-weight: 600;
  white-space: nowrap; border-left: 4px solid var(--red);
  transition: top .4s cubic-bezier(.34,1.56,.64,1);
  max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
}
.toast.show { top: calc(var(--hdr) + 10px); }

/* center-me FAB */
.fab-center {
  position: fixed; bottom: calc(var(--nav) + 14px); right: 14px; z-index: 400;
  width: 42px; height: 42px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); font-size: 19px;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
}
.fab-center:hover { transform: scale(1.1); }
.fab-center:active { transform: scale(.95); }

/* ======================== MARKERS ======================== */
.mk-friend { text-align: center; filter: drop-shadow(0 2px 4px rgba(0,0,0,.28)); }
.mk-dot {
  width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin: 0 auto; transition: transform .3s;
}
.mk-friend:hover .mk-dot { transform: scale(1.15); }
.mk-lbl {
  font-size: 10px; font-weight: 800; color: var(--brown);
  background: rgba(255,255,255,.88); padding: 1px 5px; border-radius: 5px;
  margin-top: 2px; display: inline-block; white-space: nowrap;
}

/* me */
.mk-me { text-align: center; filter: drop-shadow(0 2px 5px rgba(66,133,244,.4)); }
.mk-me .mk-dot {
  width: 38px; height: 38px; background: #4285F4; border: 3px solid #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin: 0 auto; animation: pulseme 2s infinite;
}
.mk-me .mk-lbl { font-weight: 800; color: #4285F4; }
@keyframes pulseme {
  0%{box-shadow:0 0 0 0 rgba(66,133,244,.4)}
  70%{box-shadow:0 0 0 14px rgba(66,133,244,0)}
  100%{box-shadow:0 0 0 0 rgba(66,133,244,0)}
}

/* status animations */
.mk-wobble .mk-dot { animation: wobble 2s ease-in-out infinite; }
@keyframes wobble { 0%,100%{transform:rotate(0)} 25%{transform:rotate(5deg)} 75%{transform:rotate(-5deg)} }
.mk-pulse .mk-dot { animation: gpulse 1.5s infinite; }
@keyframes gpulse {
  0%,100%{box-shadow:0 0 0 0 rgba(76,175,80,.5)}
  50%{box-shadow:0 0 0 10px rgba(76,175,80,0)}
}

/* popup */
.feria-popup .leaflet-popup-content-wrapper {
  background: #fff; border-radius: var(--r-md); border: 2px solid var(--red);
  box-shadow: 0 6px 24px rgba(0,0,0,.18); padding: 0;
}
.feria-popup .leaflet-popup-content { margin: 0; font-family: var(--ff); }
.feria-popup .leaflet-popup-tip { background: var(--red); }
.pop-in { padding: 12px 16px; text-align: center; min-width: 130px; }
.pop-av { font-size: 26px; margin-bottom: 3px; }
.pop-nm { font-size: .95rem; font-weight: 800; margin-bottom: 5px; }
.pop-st {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 11px; border-radius: 18px; font-size: .78rem; font-weight: 700; color: #fff;
}

/* ======================== MODALS (shared) ======================== */
.modal {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: flex-end; justify-content: center;
  animation: fadeIn .2s ease;
}
.modal-bg { position: absolute; inset: 0; background: rgba(0,0,0,.42); }
.modal-sheet {
  position: relative; background: #fff; width: 100%; max-width: 420px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 8px 20px calc(var(--nav) + 16px);
  animation: slideUp .3s cubic-bezier(.34,1.56,.64,1);
}
.sheet-handle {
  width: 34px; height: 4px; background: var(--g400); border-radius: 2px;
  margin: 0 auto 12px;
}
.modal-sheet h3 { font-size: 1.15rem; font-weight: 800; text-align: center; margin-bottom: 14px; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes slideUp { from{transform:translateY(100%)} to{transform:translateY(0)} }

/* ======================== STATUS MODAL ======================== */
.status-opts { display: flex; flex-direction: column; gap: 6px; }
.st-opt {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-radius: var(--r-md); border: 2px solid transparent;
  transition: all .2s; cursor: pointer;
}
.st-opt:hover { background: var(--cream); }
.st-opt.active { background: var(--cream); border-color: var(--red); }
.st-emoji {
  font-size: 26px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--g100); display: flex; align-items: center; justify-content: center;
}
.st-catavinos { width: 26px; height: 26px; object-fit: contain; }
.mk-catavinos { width: 20px; height: 20px; object-fit: contain; }
.st-info { flex: 1; }
.st-label { font-size: .95rem; font-weight: 700; }
.st-desc { font-size: .76rem; color: var(--g600); margin-top: 1px; }

/* ======================== FRIENDS DRAWER ======================== */
.drawer {
  position: fixed; bottom: var(--nav); left: 0; right: 0; max-height: 55vh; z-index: 600;
  background: #fff; border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: 0 -4px 18px rgba(0,0,0,.1);
  display: flex; flex-direction: column; overflow: hidden;
  transform: translateY(100%); transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.drawer.vis { transform: translateY(0); }
.drawer-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 6px;
}
.drawer-top h3 { font-size: 1rem; font-weight: 800; }
.badge {
  background: var(--red); color: #fff; font-size: .72rem; font-weight: 800;
  padding: 2px 10px; border-radius: 18px;
}
.drawer-list { flex: 1; overflow-y: auto; padding: 2px 10px 14px; }
.f-card {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px;
  border-radius: var(--r-md); cursor: pointer; transition: background .15s;
}
.f-card:hover { background: var(--cream); }
.f-card:active { background: var(--g200); }
.f-av {
  width: 42px; height: 42px; border-radius: 50%; border: 2px solid;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.f-info { flex: 1; }
.f-nm { font-size: .92rem; font-weight: 700; }
.f-st { font-size: .78rem; color: var(--g600); }

/* ======================== BOTTOM NAV ======================== */
.bnav {
  position: fixed; bottom: 0; left: 0; right: 0; height: var(--nav); z-index: 800;
  background: #fff; display: flex; align-items: center; justify-content: space-around;
  border-top: 1px solid rgba(0,0,0,.07);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.bnav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px;
  padding: 5px 14px; border-radius: var(--r-sm); color: var(--g600); transition: color .2s;
}
.bnav-btn.active { color: var(--red); }
.bnav-ico { font-size: 21px; }
.bnav-lbl { font-size: .68rem; font-weight: 700; }

/* ======================== GHOST MODE ======================== */
.ghost-banner {
  position: fixed; top: calc(var(--hdr) + 8px); left: 10px; right: 10px; z-index: 500;
  background: #263238; color: #B0BEC5; padding: 9px 14px; border-radius: var(--r-md);
  font-size: .82rem; font-weight: 700; text-align: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.2); animation: slideD .3s ease;
}
.pill-ghost { opacity: .5; }
.pill-ghost .pill-dot { background: #607D8B !important; }

/* toggle switch */
.toggle-sw {
  width: 44px; height: 26px; border-radius: 13px;
  background: var(--g400); position: relative; cursor: pointer;
  transition: background .3s; flex-shrink: 0;
}
.toggle-sw.on { background: var(--red); }
.toggle-knob {
  width: 22px; height: 22px; border-radius: 50%; background: #fff;
  position: absolute; top: 2px; left: 2px;
  box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: left .3s;
}
.toggle-sw.on .toggle-knob { left: 20px; }

/* status divider & special options */
.st-divider { height: 1px; background: var(--g200); margin: 10px 0 6px; }
.st-opt-ghost { border: 1px solid var(--g200); }
.st-opt-ghost:hover { background: #ECEFF1; }
.st-opt-exit { border: 1px solid #FFCDD2; }
.st-opt-exit:hover { background: #FFF0F0; }
.st-opt-exit .st-label { color: var(--red); }

/* ======================== SHARE MODAL ======================== */
.share-sheet { padding-bottom: calc(var(--nav) + 24px); }
.share-code { text-align: center; padding: 20px 0 14px; }
.share-code-sub { font-size: .82rem; color: var(--g600); margin-bottom: 14px; }
.share-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--r-md);
  font-size: .88rem; font-weight: 700; cursor: pointer; transition: all .2s;
}
.share-btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.share-btn-primary:hover { transform: scale(1.03); }
.share-btn-secondary { background: var(--g100); color: var(--brown); }
.share-btn-secondary:hover { background: var(--g200); }

.share-link-box {
  background: var(--g100); border-radius: var(--r-sm); padding: 10px 14px;
  font-size: .78rem; color: var(--g600); word-break: break-all;
  margin: 10px 0; text-align: center; border: 1px dashed var(--g400);
}

/* invite button in drawer */
.invite-btn {
  display: block; width: calc(100% - 20px); margin: 6px 10px 14px;
  padding: 12px; border-radius: var(--r-md);
  background: var(--cream); color: var(--red); font-size: .88rem; font-weight: 800;
  border: 2px dashed var(--red); text-align: center; transition: all .2s;
}
.invite-btn:hover { background: #FFF0F0; }

/* ======================== EXITED OVERLAY ======================== */
.exited-overlay {
  position: fixed; inset: 0; z-index: 950;
  background: rgba(0,0,0,.7); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  animation: fadeIn .4s ease;
}
.exited-body { text-align: center; padding: 40px 32px; max-width: 320px; }
.exited-emoji { font-size: 4rem; display: block; margin-bottom: 12px; }
.exited-body h2 { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.exited-body p { font-size: .95rem; color: rgba(255,255,255,.7); margin-bottom: 28px; line-height: 1.5; }
.exited-body .enter-btn { animation: none; }

/* ======================== FRIEND CARD ACTIONS ======================== */
.f-actions { display: flex; gap: 4px; flex-shrink: 0; }
.f-act {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; transition: background .2s; background: var(--g100);
}
.f-act:hover { background: var(--g200); }
.f-act-stop { color: var(--red); }
.f-act-stop:hover { background: #FFEBEE; }

/* ======================== MORE / SETTINGS ======================== */
.more-sheet { padding-bottom: calc(var(--nav) + 20px); }

.setting-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 4px;
}
.setting-label { font-size: .92rem; font-weight: 700; }

.theme-toggle {
  display: flex; gap: 0; border-radius: var(--r-md); overflow: hidden;
  border: 2px solid var(--g200);
}
.theme-opt {
  padding: 8px 16px; font-size: .82rem; font-weight: 700;
  transition: all .2s; color: var(--g600); background: #fff;
}
.theme-opt.active { color: #fff; }
.theme-opt-red.active { background: #C41E3A; }
.theme-opt-green.active { background: #2E7D32; }

.more-divider { height: 1px; background: var(--g200); margin: 12px 0; }

.more-links { display: flex; flex-direction: column; gap: 2px; }
.more-link {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 8px; border-radius: var(--r-md);
  font-size: .92rem; font-weight: 600; transition: background .15s;
  text-align: left; width: 100%;
}
.more-link:hover { background: var(--cream); }
.more-link:active { background: var(--g200); }
.more-link-ico { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.more-link-txt { flex: 1; }
.more-link-arrow { color: var(--g400); font-size: 1.3rem; font-weight: 300; }

/* ======================== INFO SHEETS (help/credits/legal) ======================== */
.info-sheet {
  max-height: 75vh; overflow-y: auto;
  padding-bottom: calc(var(--nav) + 24px);
}
.info-content { padding: 4px 4px 8px; }
.info-content h4 {
  font-size: .88rem; font-weight: 800; color: var(--red);
  margin: 16px 0 6px;
}
.info-content h4:first-child { margin-top: 4px; }
.info-content p {
  font-size: .82rem; color: var(--g600); line-height: 1.5; margin-bottom: 4px;
}
.info-content a { color: var(--red); text-decoration: underline; }

/* help steps */
.help-step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px; font-size: .88rem; font-weight: 600;
}
.help-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: .78rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.help-tip {
  background: var(--cream); padding: 12px 14px; border-radius: var(--r-md);
  font-size: .82rem; font-weight: 600; color: var(--brown);
  margin-top: 14px; border-left: 3px solid var(--gold);
}

/* credits */
.credits-content { text-align: center; padding: 10px 0 8px; }
.credits-logo { font-size: 3.5rem; margin-bottom: 4px; }
.credits-app {
  font-family: var(--ff-d); font-size: 2rem; color: var(--red);
}
.credits-ver { font-size: .78rem; color: var(--g600); margin-bottom: 4px; }
.credits-sep { height: 1px; background: var(--g200); margin: 14px 20px; }
.credits-by { font-size: .82rem; color: var(--g600); margin-bottom: 2px; }
.credits-company { font-size: 1rem; font-weight: 800; }
.credits-loc { font-size: .82rem; color: var(--g600); }
.credits-web {
  display: inline-block; margin-top: 4px;
  font-size: .82rem; color: var(--red); font-weight: 700; text-decoration: none;
}
.credits-copy { font-size: .75rem; color: var(--g600); }
.credits-rights { font-size: .72rem; color: var(--g400); }
.credits-attr { font-size: .72rem; color: var(--g400); margin-top: 4px; }

/* legal */
.legal-sheet { max-height: 80vh; }
.legal-update {
  font-size: .75rem; color: var(--g400); font-style: italic; margin-bottom: 8px;
}
.legal-email {
  display: inline-block; margin: 6px 0;
  font-size: .92rem; font-weight: 800; color: var(--red); text-decoration: none;
}
.legal-footer {
  margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--g200);
  text-align: center;
}
.legal-footer p { font-size: .72rem; color: var(--g400); margin-bottom: 2px; }

/* ======================== FERIA OVERLAY ======================== */
.st-name {
  font-family: var(--ff); font-size: 9px; font-weight: 800;
  color: #4A2810; white-space: nowrap; text-transform: uppercase;
  letter-spacing: 1.5px; padding: 1px 5px;
  background: rgba(255,248,231,.82); border-radius: 3px;
  display: inline-block; pointer-events: none;
}
/* Churros icon */
.mk-churros { text-align: center; }
.churros-ico {
  font-size: 28px; display: block;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.churros-ico-img {
  width: 35px; height: 35px; display: block; margin: 0 auto;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.churros-lbl {
  font-family: var(--ff); font-size: 8px; font-weight: 800;
  color: #5D4037; background: rgba(255,255,255,.85);
  padding: 1px 5px; border-radius: 4px; display: inline-block;
  letter-spacing: 0.5px;
}

/* Portada icon */
.mk-portada { text-align: center; }
.portada-img { width: 90px; height: auto; display: block; }
.portada-lbl {
  font-family: var(--ff); font-size: 9px; font-weight: 800;
  color: var(--brown); background: rgba(255,255,255,.85);
  padding: 1px 6px; border-radius: 4px; display: inline-block;
  letter-spacing: 1px; margin-top: 1px;
}

.poi-lbl {
  font-size: 9px; font-weight: 700; color: #555;
  background: rgba(255,255,255,.72); padding: 1px 6px;
  border-radius: 4px; white-space: nowrap;
}
.poi-extra {
  font-size: 11px; font-weight: 800; white-space: nowrap;
  padding: 3px 8px; border-radius: 6px;
  display: inline-block; pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.15);
}
.poi-bus {
  background: #E53935; color: #fff;
}
.poi-infierno {
  background: #7B1FA2; color: #fff;
}
.poi-metro {
  background: #F57F17; color: #fff;
}

/* ======================== CASETA NUMBERS (OSM) ======================== */
.caseta-num {
  font-size: 9px;
  font-weight: 600;
  font-family: 'Nunito', sans-serif;
  color: #757575;
  text-align: center;
  line-height: 12px;
  text-shadow: 0 0 2px #fff, 0 0 2px #fff;
  pointer-events: none;
}

/* ======================== CALLE DEL INFIERNO ZONE ======================== */
.infierno-zone {
  fill: url(#infierno-hatch) !important;
}

/* ======================== LEAFLET TWEAKS ======================== */
.leaflet-control-attribution { font-size: 9px !important; }
.leaflet-control-zoom { border-radius: var(--r-sm) !important; }
.leaflet-control-zoom a {
  border-radius: var(--r-sm) !important;
  width: 30px !important; height: 30px !important; line-height: 30px !important;
}
