/* ─── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --open-green:   #2ecc4a;
  --closed-red:   #e63c3c;
  --bg-dark:      #111111;
  --gold:         #f5a623;
  --text-light:   #f2ede6;
  --bar-h:        56px;
  --footer-h:     48px;
  --status-h:     56px;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-light);
  font-family: 'Barlow Condensed', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ─── LAYOUT: full viewport, no scroll ─────────────────────── */
body {
  display: flex;
  flex-direction: column;
  height: 100dvh; /* dynamic viewport height for mobile */
}

/* ─── STATUS BANNER ─────────────────────────────────────────── */
#status-banner {
  flex: 0 0 var(--status-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: #1a1a1a;
  transition: background 0.4s ease;
  z-index: 99;
}

#status-banner.open {
  background: var(--open-green);
}

#status-banner.closed {
  background: var(--closed-red);
}

#status-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

#status-hours {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.9);
}

/* ─── CAROUSEL ──────────────────────────────────────────────── */
#carousel {
  flex: 1 1 0;
  max-height: 50vh;   /* stops it dominating on tall phones */
  /* remove: min-height: 0 is still fine to keep */
}

#carousel-track {
  display: flex;
  height: 100%;
  width: 100%;         
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.25s ease;
  background-size: cover;
  background-position: center;
  animation: kenburns 8s ease-in-out infinite alternate;
  animation-play-state: paused;
}

.slide.active {
  opacity: 1;
  animation-play-state: running;
}

/* Placeholder gradient when no image loaded */
.slide:nth-child(1) { background-color: #1c1c1c; }
.slide:nth-child(2) { background-color: #1a1a1a; }
.slide:nth-child(3) { background-color: #181818; }
.slide:nth-child(4) { background-color: #161616; }

@keyframes kenburns {
  0%   { transform: scale(1);    transform-origin: center center; }
  100% { transform: scale(1.08); transform-origin: 55% 45%; }
}

/* Dots */
#carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 7px;
  z-index: 5;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.dot.active {
  background: var(--gold);
  transform: scale(1.3);
}

/* ─── MAP ───────────────────────────────────────────────────── */
#map-wrapper {
  flex: 1 1 0;
  filter: grayscale(100%) contrast(1.05);
}

#map-link {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  text-decoration: none;
}

#map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none; /* prevent iframe capture; tap opens link */
}

#map-overlay-tap {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.72);
  color: var(--gold);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 4px 8px;
  border: 1px solid var(--gold);
  pointer-events: none;
}

/* ─── LOCATION FOOTER ───────────────────────────────────────── */
#location-bar {
  flex: 0 0 var(--footer-h);
  background: #1a1a1a;
  border-top: 2px solid #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 16px;
}

#location-pin {
  color: var(--gold);
  font-size: 0.7rem;
}

#location-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  color: var(--text-light);
}

/* ─── RESPONSIVE SAFETY ─────────────────────────────────────── */
@media (max-width: 762px) {
  :root {
    --status-h: 52px;
    --footer-h: 44px;
  }
  #status-text {
    font-size: 1.75rem;
  }
}

@media (max-width: 390px) {
  #status-text {
    font-size: 1.55rem;
  }
  #location-name {
    font-size: 1.05rem;
  }
}
