:root{
  --british-green:#002b1b;
  --gold-accent:#c5a059;
  --off-white:#fcfaf7;
  --marble-white:#ffffff;

  --dock-h: 112px; /* altura aproximada del dock */
}

/* =========================
   Base
========================= */
html,body{ height:100%; }

body{
  font-family:'Inter', sans-serif;
  background:var(--off-white);
  color:#111827;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y:none;
  padding-bottom: env(safe-area-inset-bottom);
}

h1,h2,h3,.serif{ font-family:'Cormorant Garamond', serif; }

.no-scrollbar::-webkit-scrollbar{ display:none; }
.no-scrollbar{ scrollbar-width:none; }

/* Color helpers */
.text-gold-accent{ color: var(--gold-accent) !important; }
.text-british-green{ color: var(--british-green) !important; }

/* =========================
   Shared layout shell (alineación global)
   ✅ Esto alinea Header / Block Tabs / Daybar / Main
========================= */
.shell{
  width: min(1180px, 100%);
  margin: 0 auto;
  padding-left: clamp(18px, 4vw, 56px);
  padding-right: clamp(18px, 4vw, 56px);
}

/* =========================
   Header glass
========================= */
.glass-header{
  background: rgba(252,250,247,0.92);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding-top: env(safe-area-inset-top);
}

/* =========================
   Block Switch (Tabs)
========================= */
.block-switch {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.62);
}

.block-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.block-tabs::-webkit-scrollbar {
  height: 0px;
}

.block-tab {
  flex: 0 0 auto;
  min-width: 120px;
  border-radius: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  position: relative;
  transition: transform 0.18s ease, background 0.18s ease, border 0.18s ease;
}

.block-tab:active {
  transform: scale(0.98);
}

.block-tab .tt {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(100, 116, 139, 1);
}

.block-tab .dd {
  font-size: 10px;
  margin-top: 4px;
  color: rgba(148, 163, 184, 1);
  font-weight: 700;
}

.block-tab.active {
  background: rgba(0, 43, 27, 0.95);
  border-color: rgba(197, 160, 89, 0.55);
  box-shadow: 0 18px 45px rgba(0, 43, 27, 0.18);
}

.block-tab.active .tt,
.block-tab.active .dd {
  color: rgba(255, 255, 255, 0.92);
}

.block-tab.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.95);
}

/* Header pill for current block */
.block-pill {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(197, 160, 89, 0.12);
  border: 1px solid rgba(197, 160, 89, 0.35);
  color: rgba(0, 43, 27, 0.85);
}

.block-dates {
  font-size: 10px;
  font-weight: 800;
  color: rgba(100, 116, 139, 0.95);
}

/* =========================
   Day bar
========================= */
.daybar{
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* El day nav NO debe meter padding propio (así alinea con tabs) */
#day-nav{
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Day buttons */
.day-btn{
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.day-btn:active{ transform: scale(.98); }

.day-btn.active-day{
  background: var(--british-green) !important;
  color: white !important;
  box-shadow: 0 10px 18px rgba(0,43,27,0.18);
}

.day-btn .sub{
  opacity:.6;
  font-weight:600;
  letter-spacing:.06em;
}

/* =========================
   Cards
========================= */
.luxury-card{
  background: var(--marble-white);
  border-radius: 24px;
  box-shadow: 0 14px 48px rgba(0,0,0,0.05);
  border: 1px solid rgba(197,160,89,0.14);
  overflow:hidden;
}

/* Image overlay */
.image-gradient{
  background: linear-gradient(to top, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.12) 60%, rgba(0,0,0,0) 100%);
}

/* =========================
   Dock
========================= */
.bottom-nav-dock{
  background: rgba(0,43,27,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(197,160,89,0.40);
  box-shadow: 0 18px 50px rgba(0,0,0,0.42);
  border-radius: 20px;
}

.nav-text{
  font-size: 8.5px;
  letter-spacing: 0.28em;
  font-weight: 800;
}

/* =========================
   Bottom sheet
========================= */
.bottom-sheet{
  position: fixed;
  left:0; right:0; bottom:0;
  background:white;
  border-top-left-radius: 32px;
  border-top-right-radius: 32px;
  z-index: 100;
  transform: translateY(105%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  max-height: 85vh;
  overflow-y: auto;
  padding-bottom: env(safe-area-inset-bottom);
}

.bottom-sheet.active{ transform: translateY(0); }

.overlay{
  position: fixed;
  inset:0;
  background: rgba(0,0,0,0.60);
  backdrop-filter: blur(8px);
  z-index: 90;
  opacity:0;
  visibility:hidden;
  transition: opacity .25s ease;
}

.overlay.active{ opacity:1; visibility:visible; }

/* =========================
   Animation
========================= */
@keyframes revealUp{
  from{ opacity:0; transform: translateY(16px); }
  to{ opacity:1; transform: translateY(0); }
}

.reveal{
  animation: revealUp .65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (prefers-reduced-motion: reduce){
  .reveal{ animation:none; }
  .bottom-sheet{ transition:none; }
}

/* =========================
   Safe padding for dock
========================= */
#itinerary-container{
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 28px);
}

/* =========================
   EVENTS WRAP
   ✅ Mobile: 1 columna
   ✅ Desktop: 2 columnas
========================= */
.events-wrap{
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* =========================
   RESPONSIVE (iPad + Desktop)
========================= */
@media (min-width: 768px){
  /* Tipografía más pro */
  #header-title{
    font-size: 38px !important;
    line-height: 1 !important;
  }

  /* Botones día un poco más grandes */
  .day-btn{
    width: 110px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }

  /* Dock centrado y más “desktop friendly” */
  .bottom-nav-dock{
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Cards con aire */
  .luxury-card{
    border-radius: 28px;
  }

  .luxury-card .p-8{
    padding: 38px !important;
  }

  .luxury-card .h-64{
    height: 300px !important;
  }
}

/* ✅ Desktop: 2 cards por fila */
@media (min-width: 1024px){
  .events-wrap{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    align-items: start;
  }

  .luxury-card{
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    transform: translateZ(0);
  }

  .luxury-card:hover{
    transform: translateY(-3px);
    transition: transform 220ms ease, box-shadow 220ms ease;
    box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  }

  .luxury-card .h-64{
    height: 320px !important;
  }

  /* Pills con mejor lectura */
  .block-pill{
    font-size: 10px !important;
    padding: 6px 10px !important;
  }

  .block-dates{
    font-size: 11px !important;
    opacity: 0.88;
  }

  /* Dock más premium */
  .bottom-nav-dock{
    max-width: 560px;
    padding: 16px 18px !important;
  }

  .dock-btn .nav-text{
    font-size: 12px !important;
    letter-spacing: 0.16em !important;
  }
}

/* Ultra wide */
@media (min-width: 1440px){
  .shell{
    width: min(1240px, 100%);
  }
}

/* Mejora: scroll horizontal del day nav en desktop */
@media (pointer: fine) {
  #day-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.15) transparent;
  }
  #day-nav::-webkit-scrollbar {
    height: 8px;
  }
  #day-nav::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.15);
    border-radius: 999px;
  }
  #day-nav::-webkit-scrollbar-track {
    background: transparent;
  }
}
