:root{
  --bg: #1B1330;
  --bg-deep: #120B22;
  --surface: #241A3D;
  --surface-raised: #2E2251;
  --gold: #F2B705;
  --gold-dim: #C99A1F;
  --pink: #FF5DA2;
  --cream: #F5F0E6;
  --muted: #A99BC9;
  --line: rgba(245,240,230,0.12);
  --good: #6FE3A8;
  --bad: #FF6B6B;
}
*{box-sizing:border-box;}
body{
  margin:0;
  background: radial-gradient(1200px 600px at 50% -10%, #2A1E4D 0%, var(--bg) 55%, var(--bg-deep) 100%);
  color: var(--cream);
  font-family: 'Space Grotesk', sans-serif;
  min-height:100vh;
}
a{ color: inherit; }

/* HEADER / NAV */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(18,11,34,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 20px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}
.brand{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}
.nav-toggle{
  display:none;
  background:none;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cream);
  font-size: 18px;
  padding: 6px 10px;
  cursor:pointer;
}
.main-nav{
  display:flex;
  align-items:center;
  gap: 22px;
  flex-wrap: wrap;
}
.main-nav a{
  text-decoration:none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:hover{ color: var(--cream); }
.main-nav a.active{ color: var(--gold); border-color: var(--gold); }

@media (max-width: 620px){
  .nav-toggle{ display:block; }
  .main-nav{
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 20px 16px;
    display: none;
  }
  .main-nav.open{ display:flex; }
  .main-nav a{ width:100%; padding: 10px 0; }
}

.wrap{
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

/* PAGE HEAD (Events / Media / Booking / Login) */
.page-head{ margin: 4px 0 26px; }
.page-title{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: clamp(28px, 6vw, 40px);
  color: var(--gold);
  margin: 0 0 6px;
}
.page-sub{ color: var(--muted); font-size: 15px; margin:0; }

/* HERO */
.hero{
  text-align:center;
  padding: 12px 0 28px;
  position:relative;
}
.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 22px;
}
.dot{ width:8px; height:8px; border-radius:50%; background: var(--bad); flex-shrink:0; transition: background .3s; }
.dot.on{ background: var(--good); box-shadow: 0 0 0 0 rgba(111,227,168,.5); animation: pulse 1.8s infinite; }
@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(111,227,168,.55); }
  70%{ box-shadow: 0 0 0 9px rgba(111,227,168,0); }
  100%{ box-shadow: 0 0 0 0 rgba(111,227,168,0); }
}
h1{
  font-family:'Anton', sans-serif;
  font-weight:400;
  letter-spacing: 0.5px;
  font-size: clamp(38px, 8vw, 64px);
  line-height: 0.98;
  margin: 0 0 6px;
  color: var(--gold);
  text-shadow: 0 0 28px rgba(242,183,5,0.25);
}
.sub{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: clamp(16px, 3vw, 20px);
  color: var(--pink);
  margin: 0 0 14px;
  letter-spacing: 0.5px;
}
.tag{
  max-width: 480px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* STATUS LINE ABOVE MAP */
.status-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin: 30px 0 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.status-text{ font-size: 14px; color: var(--muted); }
.status-text b{ color: var(--cream); font-weight:600; }

/* MAP */
.map-card{
  border-radius: 18px;
  overflow:hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
#map{
  width:100%;
  height: 380px;
  background: #1a1330;
}
.leaflet-container{ font-family:'Space Grotesk', sans-serif; background: #1a1330; }
/* Recolor plain OpenStreetMap raster tiles (free, no API key) to match the
   site's dark theme instead of relying on a hosted "dark" tile style. */
.leaflet-tile-pane .dark-tiles{
  filter: invert(1) hue-rotate(180deg) brightness(0.95) contrast(0.9) saturate(0.9);
}

.empty-map-note{
  padding: 14px 18px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display:flex;
  align-items:center;
  gap:8px;
}

/* OFFLINE / EVENTS TEASER (home) */
.offline-block{ margin-top: 20px; }
.offline-badge{
  display:inline-block;
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.35);
  color: #ffb3b3;
  padding: 10px 18px;
  border-radius: 999px;
  font-family:'Anton', sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
  margin-bottom: 22px;
}
.event-teaser-list{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.event-teaser-card{
  display:block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  text-decoration:none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-teaser-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.4);
  border-color: var(--gold-dim);
}
.event-teaser-card img{
  width:100%;
  height: 120px;
  object-fit: cover;
  display:block;
}
.event-teaser-body{ padding: 12px 14px; }
.event-teaser-date{ font-size: 12px; color: var(--gold); font-weight:600; margin-bottom: 4px; }
.event-teaser-title{ font-size: 15px; font-weight:700; margin-bottom: 4px; }
.event-teaser-loc{ font-size: 13px; color: var(--muted); }
.teaser-empty, .empty-note-text{ color: var(--muted); font-size: 14px; }

/* HOW IT WORKS */
.how{
  margin-top: 48px;
}
.how h2{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 22px;
  color: var(--cream);
  margin: 0 0 18px;
}
.steps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 620px){
  .steps{ grid-template-columns: 1fr; }
}
.step{
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 16px;
}
.step .n{
  font-family:'Anton', sans-serif;
  color: var(--gold);
  font-size: 28px;
  display:block;
  margin-bottom: 6px;
}
.step p{ margin:0; font-size:14px; color: var(--muted); line-height:1.5; }
.step p b{ color:var(--cream); }

/* EVENT CARDS (Events page) */
.events-list{
  display:flex;
  flex-direction:column;
  gap: 16px;
  margin-bottom: 12px;
}
.event-card{
  display:flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow:hidden;
  padding: 0;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.event-card:hover{
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.4);
  border-color: var(--gold-dim);
}
.event-card-img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  display:block;
}
.event-card-body{ padding: 18px; }
.event-card-date{ font-size: 12px; color: var(--gold); font-weight:700; letter-spacing: 0.3px; margin-bottom:6px; }
.event-card-title{ font-family:'Anton', sans-serif; font-weight:400; font-size: 19px; margin: 0 0 6px; color: var(--cream); }
.event-card-desc{ font-size: 14px; color: var(--muted); line-height:1.5; margin: 0 0 8px; }
.event-card-loc{ font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.ics-btn{ font-weight: 700; }

.event-card-actions{
  display:flex;
  align-items:center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.event-action-btn{
  background:none;
  border:none;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor:pointer;
  padding: 0;
  display:inline-flex;
  align-items:center;
  gap: 5px;
}
.event-action-btn:hover{ color: var(--cream); }
.like-btn.active{ color: var(--pink); }
.like-icon{ font-size: 15px; }

.event-card-highlight{
  animation: card-pulse 2.2s ease;
}
@keyframes card-pulse{
  0%{ box-shadow: 0 0 0 3px var(--gold); }
  100%{ box-shadow: 0 0 0 0 rgba(242,183,5,0); }
}

.event-card-past{ opacity: 0.55; filter: grayscale(0.6); }
@media (max-width: 500px){
  .event-card-img{ height: 160px; }
  .event-card-body{ padding: 14px 16px; }
}

.past-heading{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 22px;
  color: var(--cream);
  margin: 36px 0 6px;
}
.past-year{
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 18px 0 10px;
}

/* MEDIA PAGE */
.media-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px){
  .media-grid{ grid-template-columns: 1fr; }
}
.media-col-title{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 18px;
  color: var(--gold);
  margin: 0 0 14px;
}
.instagram-embeds{ display:flex; flex-direction:column; gap: 16px; }
.media-note{ font-size: 14px; color: var(--muted); }
.media-note a{ color: var(--pink); font-weight:600; }

/* FORMS (shared: booking + login + event editor) */
.card-form{
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 22px;
}
.card-form h3{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--gold);
}
.card-form .desc{ font-size:13px; color:var(--muted); margin:0 0 18px; line-height:1.5; }

.field-label{
  display:block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.field-label.small{ flex:1; }
.event-editor-row{ display:flex; gap: 12px; }
@media (max-width: 500px){
  .event-editor-row{ flex-direction: column; gap:0; }
}

.text-input{
  width:100%;
  padding: 13px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--cream);
  font-family: inherit;
  font-size: 14px;
  margin-top: 6px;
  margin-bottom: 4px;
}
.text-input:focus{ outline: 2px solid var(--gold); outline-offset: 1px; }
.text-input::placeholder{ color: var(--muted); }
.textarea{ min-height: 90px; resize: vertical; }

.broadcast-btn{
  width:100%;
  padding: 16px;
  border-radius: 12px;
  border: none;
  font-family: 'Anton', sans-serif;
  font-size: 17px;
  letter-spacing: 0.5px;
  cursor:pointer;
  transition: transform .15s ease, background .2s ease;
  margin-top: 6px;
}
.broadcast-btn:disabled{ opacity: 0.6; cursor: not-allowed; }
.broadcast-btn:active{ transform: scale(0.98); }
.broadcast-btn.start{
  background: var(--gold);
  color: #241A00;
}
.broadcast-btn.start:hover{ background: #ffd23f; }
.broadcast-btn.stop{
  background: var(--bad);
  color: #2b0000;
}
.broadcast-btn.stop:hover{ background: #ff8a8a; }

.link-btn{
  background:none;
  border:none;
  color: var(--muted);
  font-size: 13px;
  text-decoration: underline;
  text-decoration-color: var(--line);
  cursor:pointer;
  font-family: inherit;
  padding: 0;
}
.link-btn:hover{ color: var(--cream); }
.link-btn.see-all{ display:inline-block; margin-top: 4px; }

.gps-line{
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
  text-align:center;
  min-height: 18px;
}

.error-box{
  margin-top: 14px;
  background: rgba(255,107,107,0.12);
  border: 1px solid rgba(255,107,107,0.35);
  color: #ffb3b3;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height:1.5;
  display:none;
}
.error-box.show{ display:block; }

.success-box{
  margin-top: 14px;
  background: rgba(111,227,168,0.12);
  border: 1px solid rgba(111,227,168,0.35);
  color: var(--good);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height:1.5;
  display:none;
}
.success-box.show{ display:block; }

/* LOCATION AUTOCOMPLETE + MINI MAPS */
.location-field-wrap{ position: relative; }
.location-suggestions{
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 30;
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2px;
}
.location-suggestion{
  display:block;
  width:100%;
  text-align:left;
  background:none;
  border:none;
  color: var(--cream);
  font-family: inherit;
  font-size: 13px;
  padding: 10px 14px;
  cursor:pointer;
  border-bottom: 1px solid var(--line);
}
.location-suggestion:last-child{ border-bottom: none; }
.location-suggestion:hover{ background: var(--surface); color: var(--gold); }

.event-editor-map, .event-card-map{
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid var(--line);
  height: 160px;
  margin: 10px 0;
  background: #1a1330;
}

/* FLATPICKR (date/time picker) re-skin to match the site's dark theme */
.flatpickr-calendar{
  background: var(--surface-raised);
  border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  font-family: 'Space Grotesk', sans-serif;
}
.flatpickr-calendar.arrowTop:before,
.flatpickr-calendar.arrowTop:after{ display:none; }
.flatpickr-months, .flatpickr-weekdays{ background: var(--surface-raised); }
.flatpickr-month{ color: var(--cream); fill: var(--cream); }
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year{ color: var(--cream); background: transparent; }
.flatpickr-weekday{ color: var(--muted); background: var(--surface-raised); }
.flatpickr-day{ color: var(--cream); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay{ color: var(--muted); opacity: 0.4; }
.flatpickr-day:hover{ background: var(--surface); }
.flatpickr-day.selected, .flatpickr-day.selected:hover{ background: var(--gold); border-color: var(--gold); color: #241A00; }
.flatpickr-day.today{ border-color: var(--gold); }
.flatpickr-time{ background: var(--surface-raised); }
.flatpickr-time input{ color: var(--cream); }
.flatpickr-time .numInputWrapper span.arrowUp:after{ border-bottom-color: var(--cream); }
.flatpickr-time .numInputWrapper span.arrowDown:after{ border-top-color: var(--cream); }
.numInputWrapper:hover{ background: var(--surface); }

/* ADMIN EVENT EDITOR + LIST */
.event-editor{ margin-top: 4px; }
.admin-events-list h3{
  font-family:'Anton', sans-serif;
  font-weight:400;
  font-size: 18px;
  color: var(--gold);
  margin: 0 0 14px;
}
.admin-event-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 10px;
}
.admin-event-title{ font-weight:700; font-size: 14px; margin-bottom: 2px; }
.admin-event-date{ font-size: 12px; color: var(--muted); }
.admin-event-actions{ display:flex; gap: 14px; flex-shrink:0; }

footer{
  text-align:center;
  margin-top: 50px;
  color: var(--muted);
  font-size: 12px;
}
