* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-y: scroll;
}

:root {
  --primary: #C0392B;
  --primary-dark: #9e2e22;
  --secondary: #F39C12;
  --dark: #1a1a2e;
  --dark-soft: #222a44;
  --cream: #f7e7dc;
  --cream-soft: #fbf1e9;
  --card: #f1d9c8;
  --background: #FAFAFA;
  --surface: #ffffff;
  --text: #2a2a35;
  --muted: #6b6b76;
  --border: #e5dcd4;

  --header-bg: rgba(255, 255, 255, 0.95);

  --theme-toggle-bg: #EBEBED;
  --theme-toggle-border: transparent;
  --theme-toggle-color: #6b6b76;
  --theme-toggle-hover-bg: #EBF2FE;
  --theme-toggle-hover-border: #C8DBFC;
  --theme-toggle-hover-color: #3B82F6;
}

[data-theme="dark"] {
  --primary: #e05546;
  --primary-dark: #C0392B;
  --secondary: #F5B041;
  --dark: #f3efe9;
  --dark-soft: #e4ddd3;
  --cream: #1f2433;
  --cream-soft: #151a27;
  --card: #242a3c;
  --background: #0f1320;
  --surface: #1a1f2e;
  --text: #e6e3de;
  --muted: #9ca3b5;
  --border: #2a3145;

  --header-bg: #1A1F2E;

  --theme-toggle-bg: #242a3c;
  --theme-toggle-border: transparent;
  --theme-toggle-color: #cbd5e1;
  --theme-toggle-hover-bg: #2f374d;
  --theme-toggle-hover-border: #3a4360;
  --theme-toggle-hover-color: #f3efe9;
}

[data-theme="dark"] body {
  background: var(--background);
  color: var(--text);
}
[data-theme="dark"] .landing { background: var(--background); color: var(--text); }
[data-theme="dark"] .app { background: var(--cream-soft); color: var(--text); }
[data-theme="dark"] .app-header,
[data-theme="dark"] .landing-header { background: var(--header-bg); }
[data-theme="dark"] .detail-tabs { border-bottom-color: #475569; }
[data-theme="dark"] .app-nav-btn { color: #ffffff; }
[data-theme="dark"] .app-nav-btn::after { background: #3a4360; }
[data-theme="dark"] .app-nav-btn.is-active::after { background: #ffffff; }
[data-theme="dark"] .app-nav-btn:hover { background: #242a3c; }
[data-theme="dark"] .feature-card,
[data-theme="dark"] .detail-tab-card,
[data-theme="dark"] .install-banner-inner { background: var(--card); border-color: var(--border); }
[data-theme="dark"] .caseta-card { background: #2F4467; border-color: #2F4467; }
[data-theme="dark"] .caseta-card h3 { color: #ffffff; }
[data-theme="dark"] .caseta-card .caseta-status { color: #cbd5e1; }
[data-theme="dark"] .caseta-card .caseta-status.is-open { color: #6ee7a3; }
[data-theme="dark"] .caseta-card .caseta-status.is-closed { color: #f5a3a3; }
[data-theme="dark"] .detail-media { background: var(--card); }
[data-theme="dark"] .detail-map { background: var(--cream); border-color: var(--border); }
[data-theme="dark"] .detail-back { background: #1C2739; color: #f8fafc; border-color: #3d5a80; }
[data-theme="dark"] .detail-back:hover { background: #243347; }
[data-theme="dark"] .btn-ghost { background: #2a3145; color: var(--text); border-color: #3a4360; }
[data-theme="dark"] .btn-primary { background: #459AC0; color: #fff; }
[data-theme="dark"] .btn-primary:hover { background: #63B5DC; color: #0f1320; }
[data-theme="dark"] .btn-dark { background: #f3efe9; color: #0f1320; }
[data-theme="dark"] .btn-dark:hover { background: #e4ddd3; color: #0f1320; }

[data-theme="dark"] .landing-footer,
[data-theme="dark"] .app-footer { background: var(--surface); border-top-color: var(--border); }
[data-theme="dark"] .footer-main,
[data-theme="dark"] .app-footer-main { border-bottom-color: var(--border); }
[data-theme="dark"] .footer-title,
[data-theme="dark"] .app-footer-title { color: #ffffff; }
[data-theme="dark"] .footer-links a,
[data-theme="dark"] .app-footer-links a,
[data-theme="dark"] .app-footer-legal a { color: #CBD5E1; }
[data-theme="dark"] .footer-links a:hover,
[data-theme="dark"] .app-footer-links a:hover,
[data-theme="dark"] .app-footer-legal a:hover { border-bottom-color: #CBD5E1; }
[data-theme="dark"] .footer-legal a,
[data-theme="dark"] .footer-copy,
[data-theme="dark"] .app-footer-copy { color: var(--muted); }
[data-theme="dark"] .footer-social a,
[data-theme="dark"] .app-footer-social a { background: #2a3145; color: var(--text); }

body {
  font-family: 'Segoe UI', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none !important;
}

html[data-boot="app"] #landing { display: none !important; }
html[data-boot="app"] #app { display: block !important; }

/* ===== Landing ===== */
.landing {
  background: #fff;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  line-height: 1.2;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-lg {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
}

.btn-primary {
  background: #2280A4;
  color: #fff;
  box-shadow: 0 6px 18px rgba(34, 128, 164, 0.28);
}
.btn-primary:hover { background: #006687; color: #fff; }

.btn-ghost {
  background: #cfe0f7;
  color: var(--dark);
  border-color: #4a90e2;
}
.btn-ghost:hover { background: #b8d1f0; }

.btn-dark {
  background: var(--dark);
  color: #fff;
}
.btn-dark:hover { background: #0f1428; }

/* Header */
.landing-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark);
}
.brand-logo {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}
.landing-footer .brand-logo {
  height: 72px;
}

.landing-header-actions {
  display: flex;
  gap: 0.6rem;
}

/* Hero */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  background: url('images/image_welcome.png') center/cover no-repeat;
  filter: saturate(1.05);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26,26,46,0.70) 0%, rgba(26,26,46,0.45) 55%, rgba(26,26,46,0.25) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.15), rgba(0,0,0,0.35));
}
.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  align-items: center;
  gap: 3rem;
}
.hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-logo img {
  width: 100%;
  max-width: 320px;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 6px 20px rgba(0,0,0,0.35));
}
.hero-copy h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.hero-copy p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.75rem;
  max-width: 560px;
}

/* Feature split */
.feature-split-wrap {
  background: var(--cream-soft);
  padding: 5rem 2.5rem;
}
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.feature-split-text h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  margin-bottom: 0.75rem;
  color: var(--dark);
}
.feature-split-text p {
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 420px;
}
.feature-split-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 420px;
}
.feature-split-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.45;
}
.feature-split-list li svg { margin-top: 2px; }
.feature-split-list svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #fff;
  background: #5a8dc7;
  border-radius: 50%;
  padding: 3px;
}
.feature-split-image img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}

/* Features */
.features {
  background: var(--cream-soft);
  padding: 0 2.5rem 5rem;
}
.features-head {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.features-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  color: var(--dark);
  margin-bottom: 0.5rem;
}
.features-head p {
  color: var(--muted);
}
.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  background: var(--card);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  border: 1px solid rgba(0,0,0,0.04);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.08);
}
.feature-card h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 0.4rem;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* CTA */
.cta {
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}
.cta-media {
  position: absolute;
  inset: 0;
  background: url('images/image_welcome3.png') center/cover no-repeat;
  transform: scale(1.05);
  filter: blur(1px);
}
.cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,26,46,0.75), rgba(26,26,46,0.7));
}
.cta-inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}
.cta-inner h2 {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: 0.75rem;
}
.cta-inner p {
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.75rem;
}

/* Footer */
.landing-footer {
  background: #fff;
  padding: 3rem 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
}
.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: start;
  gap: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand-col {
  display: flex;
  align-items: flex-start;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-title {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--dark);
  text-transform: uppercase;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
  align-self: flex-start;
}
.footer-links a:hover { border-bottom-color: var(--dark); }
.footer-social {
  display: flex;
  gap: 0.6rem;
}
.footer-social a {
  color: #475569;
  background: #e8eaee;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, outline 0.2s ease;
}
.footer-social a:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}
.footer-social svg { width: 20px; height: 20px; }

@media (hover: hover) {
  .footer-social a:hover {
    color: #ffffff;
    transform: translateY(-2px);
  }
  .footer-social .social-x:hover {
    background: #000000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }
  .footer-social .social-gh:hover {
    background: #772F9D;
    box-shadow: 0 6px 16px rgba(119, 47, 157, 0.35);
  }
  .footer-social .social-in:hover {
    background: #0A66C2;
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35);
  }
}

.footer-bottom {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
  align-self: flex-start;
}
.footer-legal a:hover { border-bottom-color: var(--muted); }

/* Landing responsive */
@media (max-width: 900px) {
  .landing-header { padding: 0.9rem 1.25rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem;
    gap: 2rem;
  }
  .hero-copy p { margin-left: auto; margin-right: auto; }
  .hero-logo img { max-width: 220px; }
  .feature-split-wrap { padding: 3.5rem 1.5rem; }
  .feature-split {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .feature-split-text p { margin-left: auto; margin-right: auto; }
  .feature-split-list { margin-left: auto; margin-right: auto; max-width: 340px; }
  .feature-split-list li { text-align: left; }
  .feature-split-image img { height: 240px; }
  .features { padding: 0 1.5rem 3.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-inner { padding: 3.5rem 1.5rem; }
  .landing-footer { padding: 2.5rem 1.75rem 1.5rem; }
  .footer-main {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    gap: 2rem;
    padding-bottom: 1.5rem;
  }
  .footer-brand-col { justify-content: flex-start; }
  .landing-footer .brand-logo { height: 64px; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
  }
  .footer-copy { font-size: 0.9rem; margin: 0; }
}

/* ===== Info modal (footer links) ===== */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}
.info-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 40, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.info-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: min(85vh, 720px);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: info-modal-in .18s ease-out;
}
@keyframes info-modal-in {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.info-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--border);
}
.info-modal-head h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  margin: 0;
}
.info-modal-x {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
  color: var(--dark);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease;
}
.info-modal-x:hover { background: #eef1f6; color: var(--dark); }
.info-modal-x svg { width: 18px; height: 18px; }
.info-modal-body {
  padding: 1.25rem 1.75rem 0.5rem;
  overflow-y: auto;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.6;
}
.info-modal-body p { margin-bottom: 0.75rem; }
.info-modal-body p:last-child { margin-bottom: 0; }
.info-modal-body ul,
.info-modal-body ol {
  padding-left: 1.25rem;
  margin: 0.25rem 0 0.5rem;
}
.info-modal-body li {
  margin-bottom: 0.5rem;
}
.info-modal-body li:last-child { margin-bottom: 0; }
.info-modal-body strong { color: var(--dark); }
.info-dl { margin: 0; }
.info-dl dt {
  font-weight: 700;
  color: var(--dark);
  margin-top: 0.85rem;
}
.info-dl dt:first-child { margin-top: 0; }
.info-dl dd {
  margin: 0.15rem 0 0;
  color: var(--text);
}
.info-modal-foot {
  padding: 1rem 1.75rem 1.5rem;
  display: flex;
  justify-content: center;
}
.info-modal-close {
  min-width: 180px;
  font-weight: 700;
  font-size: 1.05rem;
}

@media (max-width: 560px) {
  .info-modal-head { padding: 1.25rem 1.25rem 0.85rem; }
  .info-modal-body { padding: 1rem 1.25rem 0.5rem; }
  .info-modal-foot { padding: 0.85rem 1.25rem 1.25rem; }
  .info-modal-head h2 { font-size: 1.2rem; }
  .info-modal-close { width: 100%; }
}

/* ===== App ===== */
.app {
  background: var(--cream-soft);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* App Header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.85rem 2.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.app-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.app-brand-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}
.app-nav {
  display: flex;
  gap: 0.4rem;
  flex: 1;
  justify-content: center;
}
.app-nav-btn {
  background: transparent;
  border: none;
  color: var(--dark);
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  transition: color .2s ease, background-color .2s ease;
}
.app-nav-btn::after {
  content: '';
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
}
.app-nav-btn:hover { background: #f3ece6; }
.app-nav-btn.is-active::after {
  background: var(--dark);
}
.app-header-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Hamburger button (mobile-only) */
.app-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--dark);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
  flex-shrink: 0;
}
.app-hamburger:hover { background: #f3ece6; }
.app-hamburger svg { width: 22px; height: 22px; }
[data-theme="dark"] .app-hamburger { color: var(--text); border-color: var(--border); }
[data-theme="dark"] .app-hamburger:hover { background: #242a3c; }

/* Mobile nav drawer */
.app-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 1500;
}
.app-mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 19, 32, 0.45);
  opacity: 0;
  transition: opacity .2s ease;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.app-mobile-nav.is-open .app-mobile-nav-backdrop { opacity: 1; }
.app-mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(82vw, 320px);
  background: var(--surface);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.18);
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateX(100%);
  transition: transform .2s ease;
}
.app-mobile-nav.is-open .app-mobile-nav-panel { transform: translateX(0); }
.app-mobile-nav-close {
  align-self: flex-start;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--dark);
  cursor: pointer;
  border-radius: 8px;
}
.app-mobile-nav-close svg { width: 20px; height: 20px; }
.app-mobile-nav-close:hover { background: #f3ece6; }
[data-theme="dark"] .app-mobile-nav-close { color: var(--text); }
[data-theme="dark"] .app-mobile-nav-close:hover { background: #242a3c; }
.app-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.app-mobile-nav-btn {
  position: relative;
  background: transparent;
  border: none;
  text-align: left;
  color: var(--dark);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.app-mobile-nav-btn:hover { background: #f3ece6; }
.app-mobile-nav-btn.is-active {
  background: var(--cream);
  color: var(--dark);
}
.app-mobile-nav-btn.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  border-radius: 2px;
  background: var(--dark);
}
[data-theme="dark"] .app-mobile-nav-btn { color: var(--text); }
[data-theme="dark"] .app-mobile-nav-btn:hover { background: #242a3c; }
[data-theme="dark"] .app-mobile-nav-btn.is-active { background: #2a3145; color: #fff; }
[data-theme="dark"] .app-mobile-nav-btn.is-active::before { background: #fff; }
.app-mobile-nav-install {
  margin-top: auto;
  width: 100%;
}

/* Theme toggle (round) */
.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--theme-toggle-border, transparent);
  background: var(--theme-toggle-bg, #EBEBED);
  color: var(--theme-toggle-color, #6b6b76);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  background: var(--theme-toggle-hover-bg, #EBF2FE);
  color: var(--theme-toggle-hover-color, #3B82F6);
  border-color: var(--theme-toggle-hover-border, #C8DBFC);
  transform: translateY(-1px);
}
.theme-toggle:active { transform: translateY(0); }
.theme-toggle-icon {
  width: 18px;
  height: 18px;
}
.theme-toggle-sun { display: none; }
[data-theme="dark"] .theme-toggle-moon { display: none; }
[data-theme="dark"] .theme-toggle-sun { display: block; }

/* Install banner */
.install-banner {
  max-width: 1100px;
  margin: 1.75rem auto 0;
  padding: 0 2rem;
}
.install-banner[hidden] { display: none; }
.install-banner-inner {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
}
.install-banner-text h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.35rem;
}
.install-banner-text p {
  color: var(--text);
  font-size: 0.95rem;
  margin: 0;
  max-width: 60ch;
}
.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.install-banner-close {
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease;
}
.install-banner-close:hover { background: rgba(0, 0, 0, 0.06); color: var(--dark); }
.install-banner-close svg { width: 18px; height: 18px; }

/* App sections */
.app-section {
  max-width: 1100px;
  width: 100%;
  margin: 2rem auto 0;
  padding: 0 2rem;
  flex: 1;
}
.app-section-head { margin-bottom: 1.5rem; }
.app-section-head h2 {
  font-size: 1.8rem;
  color: var(--dark);
  margin: 0 0 0.35rem;
}
.app-section-head p {
  color: var(--muted);
  margin: 0;
}

/* App search */
.app-search {
  position: relative;
  max-width: 620px;
  margin: 0 auto 2rem;
}
.app-search input {
  width: 100%;
  padding: 0.95rem 1.25rem 0.95rem 3rem;
  border: 2px solid #BCC1F1;
  background: #E2E8F0;
  border-radius: 16px;
  font-family: inherit;
  font-size: 1rem;
  color: #1e293b;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.app-search input::placeholder { color: #64748b; }
.app-search input:focus {
  border-color: #5a8dc7;
  box-shadow: 0 0 0 4px rgba(90, 141, 199, 0.15);
}
.app-search-icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  color: #6B6B76;
  pointer-events: none;
}

/* Casetas global map */
.casetas-map-wrap {
  margin-bottom: 1.5rem;
  isolation: isolate;
  position: relative;
  z-index: 0;
}
.casetas-map-title {
  font-size: 1.05rem;
  color: var(--dark);
  margin: 0 0 0.85rem;
}
.casetas-map {
  width: 100%;
  height: 380px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
}
[data-theme="dark"] .casetas-map { background: var(--cream); border-color: var(--border); }

/* Casetas pin markers on global map */
.caseta-pin-wrap { background: transparent; border: none; }
.caseta-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  transition: transform .15s ease, box-shadow .15s ease;
}
.caseta-pin.is-open { background: #2ecc71; }
.caseta-pin.is-closed { background: var(--primary); }
.caseta-pin-inner {
  line-height: 1;
  pointer-events: none;
}
.caseta-pin-wrap.is-highlighted .caseta-pin,
.caseta-pin-wrap:hover .caseta-pin {
  transform: scale(1.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  z-index: 1000;
}

/* Casetas toolbar (sort) */
.casetas-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1rem;
}
.casetas-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.92rem;
  color: var(--dark);
}
.casetas-sort select {
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--dark);
  font-size: 0.92rem;
  cursor: pointer;
}
.casetas-sort select:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* Casetas grid */
.casetas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.caseta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}
@media (hover: hover) {
  .caseta-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(26, 26, 46, 0.1);
    border-color: #d9c4b3;
  }
}
.caseta-card-image,
.caseta-no-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.85rem;
  display: block;
}
.caseta-no-image {
  background: var(--card);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.caseta-no-image::after { content: 'Imagen no disponible'; }
.caseta-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.caseta-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}
.caseta-status {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.caseta-status::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.caseta-status.is-open { color: #3a8f5a; }
.caseta-status.is-closed { color: #b04a4a; }
.caseta-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 1rem;
  background: #FCE073;
  color: #1e293b;
  border: 2px solid #000;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.75rem 1.1rem;
  cursor: pointer;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.caseta-card-btn:hover {
  background: #F4CE4B;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(244, 197, 66, 0.35);
}
.caseta-card-btn:active { transform: translateY(0); }
.caseta-card-btn svg { width: 20px; height: 20px; flex-shrink: 0; }

/* Menus section */
.menus-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.menus-head-text { flex: 1; min-width: 260px; }
.menus-head-text h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 0.4rem;
}
.menus-head-text p {
  color: var(--muted);
  margin: 0;
  max-width: 420px;
}
.menus-search { margin: 0; max-width: 360px; width: 100%; }

/* Menus grid */
.menus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.menu-caseta-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
}
.menu-caseta-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.85rem;
}
.menu-caseta-image,
.menu-caseta-no-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--bg);
  border-radius: 16px;
  margin-bottom: 0.9rem;
  display: block;
}
.menu-caseta-no-image {
  background: var(--bg);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}
.menu-caseta-no-image::after { content: 'Imagen no disponible'; }
.menu-caseta-subtitle {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.55rem;
}
.menu-caseta-pdf { margin-top: 1.75rem; width: 100%; }
.menu-caseta-card .menu-items {
  list-style: none;
  padding-top: 0.6rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 1px dashed var(--border);
}
.menu-caseta-card .menu-items li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.93rem;
  color: var(--text);
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border);
}
.menu-caseta-card .menu-items li::before {
  content: '';
  flex: 1;
  order: 2;
  border-bottom: 1px dotted var(--muted);
  transform: translateY(-0.25em);
  opacity: 0.55;
}
.menu-caseta-card .menu-items li > span:first-child { order: 1; }
.menu-caseta-card .menu-items li > span:last-child { order: 3; }
.menu-caseta-card .menu-items li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.menu-caseta-card .menu-items .price {
  color: #5a8dc7;
  font-weight: 700;
}

/* Schedule day chips */
.schedule-days {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  margin-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.schedule-days::-webkit-scrollbar { display: none; }
.schedule-day {
  flex: 0 0 auto;
  min-width: 78px;
  height: 74px;
  padding: 0.6rem 1rem;
  background: var(--card);
  border: 2px solid #000;
  border-radius: 12px;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font: inherit;
  transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.schedule-day:hover { background: #FFDFA0; color: #000; transform: translateY(-1px); }
.schedule-day.is-active {
  background: #F6BE39;
  color: #000;
}
[data-theme="dark"] .schedule-day { border-color: #f3efe9; }
.schedule-day-all { justify-content: center; }
.schedule-day-weekday {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.schedule-day-number {
  font-size: 1.15rem;
  font-weight: 700;
}
.schedule-day-calendar {
  position: relative;
  padding: 0.6rem;
  min-width: 74px;
}
.schedule-day-calendar svg { width: 24px; height: 24px; }
.schedule-day-date-input {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
}

/* Schedule */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.concert-card {
  background: var(--card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s ease, transform .15s ease;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.concert-card:hover {
  border-color: #2c5f9e;
  background: #ffe9c2;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(44, 95, 158, 0.18);
}
[data-theme="dark"] .concert-card:hover {
  border-color: #f6be39;
  background: #2a3142;
  box-shadow: 0 6px 16px rgba(246, 190, 57, 0.25);
}
.concert-time {
  background: var(--dark);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  min-width: 80px;
  text-align: center;
}
[data-theme="dark"] .concert-time { background: #f3efe9; color: #0f1320; }
.concert-info {
  flex: 1;
  min-width: 0;
}
.concert-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.2rem;
}
.concert-info p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}
.concert-date {
  color: #5a8dc7 !important;
  font-weight: 600;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 46, 0.55);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 1rem;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.modal-content {
  background: #fff;
  border-radius: 18px;
  padding: 2rem;
  max-width: 540px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  background: transparent;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease, color .2s ease;
}
.modal-close:hover { background: #eef1f6; color: var(--dark); }
.modal-close svg { width: 18px; height: 18px; }
.modal-content h2 {
  font-size: 1.5rem;
  color: var(--dark);
  margin: 0 0 0.35rem;
}
.caseta-number-detail {
  color: #5a8dc7;
  font-weight: 600;
  margin-bottom: 1rem;
}
.modal-content h3 {
  margin: 1.5rem 0 0.75rem;
  color: var(--dark);
  font-size: 1.05rem;
}
.menu-list, .concert-list {
  list-style: none;
}
.menu-list li, .concert-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.menu-list li:last-child, .concert-list li:last-child { border-bottom: none; }
.price {
  color: #5a8dc7;
  font-weight: 700;
}
.genre {
  color: var(--muted);
  font-size: 0.85rem;
}

.no-results {
  color: var(--muted);
  text-align: center;
  padding: 2.5rem 1rem;
  grid-column: 1 / -1;
}

/* App Footer */
.app-footer {
  margin-top: 4rem;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem 1.5rem;
}
.app-footer-main {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  align-items: start;
  gap: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.app-footer-brand-col {
  display: flex;
  align-items: flex-start;
}
.app-footer-brand-logo {
  height: 96px;
  width: auto;
  object-fit: contain;
}
.app-footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.app-footer-title {
  margin: 0 0 0.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--dark);
  text-transform: uppercase;
}
.app-footer-links,
.app-footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.app-footer-links a,
.app-footer-legal a {
  color: var(--dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
  align-self: flex-start;
}
.app-footer-links a:hover,
.app-footer-legal a:hover { border-bottom-color: var(--dark); }
.app-footer-social {
  display: flex;
  gap: 0.6rem;
}
.app-footer-social a {
  color: #475569;
  background: #e8eaee;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.app-footer-social a:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}
.app-footer-social svg { width: 20px; height: 20px; }
@media (hover: hover) {
  .app-footer-social a:hover {
    color: #fff;
    transform: translateY(-2px);
  }
  .app-footer-social .social-x:hover {
    background: #000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }
  .app-footer-social .social-gh:hover {
    background: #772F9D;
    box-shadow: 0 6px 16px rgba(119, 47, 157, 0.35);
  }
  .app-footer-social .social-in:hover {
    background: #0A66C2;
    box-shadow: 0 6px 16px rgba(10, 102, 194, 0.35);
  }
}
.app-footer-bottom {
  max-width: 1200px;
  margin: 1.25rem auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}
.app-footer-copy { margin: 0; }

/* App responsive */
@media (max-width: 900px) {
  .app-header {
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  .app-brand-logo { height: 40px; }
  .app-hamburger { display: inline-flex; }
  .app-nav { display: none; }
  .app-header-actions { margin-left: auto; gap: 0.5rem; }
  #app-install-btn { display: none !important; }
  .install-banner { padding: 0 1.25rem; margin-top: 1.25rem; }
  .install-banner-inner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1.5rem;
    gap: 1rem;
    text-align: center;
  }
  .install-banner-text h3 { font-size: 1.2rem; }
  .install-banner-actions { justify-content: center; }
  .app-section { padding: 0 1.25rem; margin-top: 1.5rem; }
  .app-search { margin-bottom: 1.5rem; }
  .casetas-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1rem;
  }
  .casetas-map { height: 280px; }
  .casetas-toolbar { justify-content: flex-start; }
  .caseta-card-image,
  .caseta-no-image { height: 140px; }
  .concert-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .app-footer { padding: 2.5rem 1.75rem 1.5rem; }
  .app-footer-main {
    grid-template-columns: 1fr;
    justify-items: start;
    text-align: left;
    gap: 2rem;
    padding-bottom: 1.5rem;
  }
  .app-footer-brand-col { justify-content: flex-start; }
  .app-footer-brand-logo { height: 64px; }
  .app-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.6rem;
    margin-top: 1.25rem;
  }
}

@media (max-width: 640px) {
  .casetas-grid { grid-template-columns: 1fr; }
  .caseta-card { padding: 0.85rem; }
  .caseta-card-image,
  .caseta-no-image { height: 180px; }
}

/* ===== Caseta detail page ===== */
#detail-section {
  max-width: 1100px;
}
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  color: #1e293b;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.6rem 1.25rem;
  margin-bottom: 1.25rem;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.detail-back:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}
.detail-back:active { transform: translateY(0); }
.detail-back svg { width: 20px; height: 20px; }

.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2rem;
}
.detail-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.95rem;
}
.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.detail-info h2 {
  font-size: 2rem;
  color: var(--dark);
  margin: 0 0 0.75rem;
}
.detail-info p {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.detail-info p strong { color: var(--dark); }

.detail-bottom {
  display: grid;
  grid-template-columns: minmax(0, 380px) 1fr;
  gap: 2rem;
  align-items: start;
  margin-bottom: 2.5rem;
}
.detail-panel { min-width: 0; }
.detail-tabs {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  border-bottom: 2px solid #cbd5e1;
  margin-bottom: 1rem;
}
.detail-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.6rem 0;
  cursor: pointer;
  position: relative;
  transition: color .2s ease;
}
.detail-tab:hover { color: var(--dark); }
.detail-tab.is-active { color: var(--dark); }
.detail-tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background: var(--dark);
}
.detail-tab-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.35rem;
}
.detail-tab-card h3 {
  font-size: 1.05rem;
  color: var(--dark);
  margin: 0 0 0.85rem;
}
.detail-menu-list,
.detail-schedule-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.detail-schedule-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  align-items: baseline;
  font-size: 0.95rem;
  color: var(--text);
}
.detail-menu-list {
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border);
}
.detail-menu-list li {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.93rem;
  color: var(--text);
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed var(--border);
}
.detail-menu-list li::before {
  content: '';
  flex: 1;
  order: 2;
  border-bottom: 1px dotted var(--muted);
  transform: translateY(-0.25em);
  opacity: 0.55;
}
.detail-menu-list li > span:first-child { order: 1; }
.detail-menu-list li > span:last-child { order: 3; }
.detail-menu-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.detail-menu-list li .price {
  color: #5a8dc7;
  font-weight: 700;
}
.detail-schedule-list li .time {
  color: #5a8dc7;
  font-weight: 700;
  font-size: 1.05rem;
}
.detail-schedule-list .detail-schedule-day-header {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 0 0.25rem;
  border-bottom: 1px dashed var(--border);
}
.detail-schedule-list .detail-schedule-day-header:first-child { padding-top: 0; }
.detail-schedule-list .detail-schedule-item {
  align-items: center;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--border);
}
.detail-schedule-list .detail-schedule-item:last-child { border-bottom: none; }
.detail-schedule-main {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.detail-schedule-artist {
  font-weight: 700;
  color: var(--dark);
}
.detail-schedule-meta {
  font-size: 0.85rem;
  color: var(--muted);
}
.detail-schedule-empty {
  color: var(--muted);
  font-style: italic;
}
.detail-schedule-more {
  width: 100%;
  margin-top: 1rem;
}

/* Schedule caseta filter banner */
.schedule-caseta-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  background: #FFEFD5;
  border: 2px solid #000;
  border-radius: 12px;
  color: var(--dark);
  font-size: 0.95rem;
}
.schedule-caseta-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0.25rem;
}
.schedule-caseta-filter button svg { width: 18px; height: 18px; }
[data-theme="dark"] .schedule-caseta-filter { background: #2F4467; color: #fff; border-color: #f3efe9; }
.detail-download {
  width: 100%;
  margin-top: 1.75rem;
}

.detail-map-wrap {
  min-width: 0;
  isolation: isolate;
  position: relative;
  z-index: 0;
}
.detail-map-title {
  font-size: 1.05rem;
  color: var(--dark);
  margin: 0 0 0.85rem;
}
.detail-map {
  width: 100%;
  height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream);
  border: 1px solid var(--border);
}

.detail-nearby { margin-top: 1rem; }
.detail-nearby-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}
.detail-nearby-head h3 {
  font-size: 1.25rem;
  color: var(--dark);
  margin: 0;
  white-space: nowrap;
}
.detail-nearby-link {
  color: var(--dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .detail-top,
  .detail-bottom {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .detail-info h2 { font-size: 1.5rem; }
  .detail-map { height: 260px; }
}

@media (max-width: 640px) {
  .detail-nearby-head h3 { font-size: 1rem; }
  .detail-nearby-link { font-size: 0.78rem; }
  .detail-nearby #detail-nearby-list {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 1rem;
    overflow-x: scroll;
    padding-bottom: 0.75rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: auto;
    scrollbar-color: #94a3b8 #e5e7eb;
    scrollbar-gutter: stable;
  }
  .detail-nearby #detail-nearby-list::-webkit-scrollbar {
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
    display: block;
  }
  .detail-nearby #detail-nearby-list::-webkit-scrollbar-track {
    background: #e5e7eb;
    border-radius: 5px;
  }
  .detail-nearby #detail-nearby-list::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 5px;
  }
  .detail-nearby #detail-nearby-list::-webkit-scrollbar-thumb:hover { background: var(--muted); }
  [data-theme="dark"] .detail-nearby #detail-nearby-list {
    scrollbar-color: #4a5470 #1f2433;
  }
  [data-theme="dark"] .detail-nearby #detail-nearby-list::-webkit-scrollbar-track { background: #1f2433; }
  [data-theme="dark"] .detail-nearby #detail-nearby-list::-webkit-scrollbar-thumb { background: #4a5470; }
  .detail-nearby #detail-nearby-list .caseta-card {
    flex: 0 0 88%;
    max-width: 360px;
    scroll-snap-align: start;
  }
}
