/* ============================================
   HAPPENGRID — EVENT DETAIL PAGE
   Redesigned: clean dark glassmorphism, violet accent
   ============================================ */

/* ---- Tokens ---- */
:root {
  --ed-bg:          hsl(240, 15%, 6%);
  --ed-card:        hsl(240, 15%, 9%);
  --ed-card2:       hsl(240, 15%, 12%);
  --ed-border:      hsla(270, 30%, 35%, 0.2);
  --ed-border-hi:   hsla(270, 60%, 55%, 0.4);
  --ed-primary:     hsl(270, 80%, 65%);
  --ed-primary-fg:  hsl(0, 0%, 100%);
  --ed-muted:       hsl(240, 10%, 60%);
  --ed-text:        hsl(0, 0%, 96%);
  --ed-amber:       hsl(38, 100%, 60%);
  --ed-green:       hsl(145, 63%, 45%);
  --ed-red:         hsl(0, 84%, 60%);
  --ed-grad:        linear-gradient(135deg, hsl(270,80%,60%) 0%, hsl(290,80%,55%) 100%);
  --ed-grad-soft:   linear-gradient(135deg, hsla(270,80%,65%,.15) 0%, hsla(290,80%,60%,.08) 100%);
  --ed-radius:      1rem;
  --ed-radius-sm:   .625rem;
  --ed-radius-lg:   1.5rem;
  --ed-shadow:      0 8px 32px hsla(0,0%,0%,.4);
  --ed-shadow-glow: 0 0 40px hsla(270,80%,65%,.2);
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--ed-bg);
  color: var(--ed-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---- Hero ---- */
.ed-hero {
  position: relative;
  height: 52vh;
  min-height: 320px;
  max-height: 520px;
  overflow: hidden;
  margin-top: -70px; /* sit behind navbar */
}
.ed-hero__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: edSlowZoom 22s ease-in-out infinite alternate;
}
@keyframes edSlowZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

/* ---- Page wrapper ---- */
.ed-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  position: relative;
  z-index: 2;
}
@media (min-width: 1024px) { .ed-page { padding: 0 2rem 5rem; } }

/* ---- Back button ---- */
.ed-back-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1.1rem;
  background: hsla(240,15%,12%,.7);
  border: 1px solid var(--ed-border);
  border-radius: 9999px;
  font-size: .875rem; font-weight: 500;
  color: var(--ed-muted);
  backdrop-filter: blur(12px);
  transition: all .25s ease;
  margin-top: 1.5rem; margin-bottom: 2rem;
}
.ed-back-btn:hover {
  color: var(--ed-text);
  border-color: var(--ed-border-hi);
  transform: translateX(-3px);
}

/* ---- Header block ---- */
.ed-header { margin-bottom: 2.5rem; }

.ed-header__badges {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.25rem;
}
.ed-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .9rem;
  border-radius: 9999px;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.ed-badge--category { background: var(--ed-grad); color: #fff; }
.ed-badge--live     { background: hsla(0,84%,60%,.15); border: 1px solid hsla(0,84%,60%,.5); color: hsl(0,84%,65%); }
.ed-badge--online   { background: hsla(200,80%,55%,.15); border: 1px solid hsla(200,80%,55%,.4); color: hsl(200,80%,65%); }
.ed-badge--hybrid   { background: hsla(270,80%,65%,.15); border: 1px solid var(--ed-border-hi); color: var(--ed-primary); }
.ed-badge--free     { background: hsla(145,63%,45%,.15); border: 1px solid hsla(145,63%,45%,.4); color: hsl(145,63%,55%); }
.ed-badge--rating   { background: hsla(38,100%,60%,.12); border: 1px solid hsla(38,100%,60%,.35); color: var(--ed-amber); }
.ed-badge__sub      { font-weight: 400; opacity: .75; }
.ed-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: hsl(0,84%,60%);
  box-shadow: 0 0 6px hsl(0,84%,60%);
  animation: edPulse 1.8s infinite;
}
@keyframes edPulse {
  0%,100% { opacity: 1; } 50% { opacity: .4; }
}

.ed-header__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.15;
  color: #fff;
  margin-bottom: .6rem;
}
.ed-header__subtitle {
  font-size: 1.1rem; color: var(--ed-muted);
  margin-bottom: 1.25rem;
}

.ed-header__meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--ed-border);
}
.ed-meta-item {
  display: flex; align-items: center; gap: .5rem;
  font-size: .95rem; color: var(--ed-muted);
}
.ed-meta-item svg { color: var(--ed-primary); flex-shrink: 0; }

.ed-header__organizer {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem; color: var(--ed-muted);
}
.ed-header__organizer strong { color: var(--ed-text); }
.ed-organizer-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ed-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff;
  overflow: hidden; flex-shrink: 0;
}
.ed-organizer-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Main grid ---- */
.ed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 1024px) {
  .ed-grid { grid-template-columns: 1fr 380px; gap: 3rem; }
}

/* ---- Section ---- */
.ed-section { margin-bottom: 3rem; }
.ed-section__title {
  font-size: 1.35rem; font-weight: 700;
  color: #fff; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 1rem;
}
.ed-section__title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--ed-border-hi), transparent);
}
.ed-section-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* ---- About card ---- */
.ed-about-card {
  background: hsla(240,15%,10%,.6);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 1.75rem 2rem;
}
.ed-about-text {
  font-size: 1rem; line-height: 1.85;
  color: hsl(240,5%,78%);
}

/* Highlights */
.ed-highlights { margin-top: 1.75rem; padding-top: 1.75rem; border-top: 1px solid var(--ed-border); }
.ed-highlights__title { font-size: 1rem; font-weight: 600; color: var(--ed-text); margin-bottom: 1.1rem; }
.ed-highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.ed-highlight-item {
  display: flex; align-items: center; gap: .75rem;
  font-size: .9rem; color: var(--ed-muted);
}
.ed-highlight-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--ed-grad-soft);
  border: 1px solid var(--ed-border-hi);
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--ed-primary);
  transition: all .25s ease;
}
.ed-highlight-item:hover .ed-highlight-icon {
  background: var(--ed-grad); color: #fff;
  transform: scale(1.08) rotate(4deg);
}

/* ---- Speakers ---- */
.ed-speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.25rem;
}
.ed-speaker-card {
  background: linear-gradient(135deg, hsla(240,15%,12%,.9), hsla(240,15%,8%,.9));
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: all .3s ease;
}
.ed-speaker-card:hover {
  border-color: var(--ed-border-hi);
  transform: translateY(-4px);
  box-shadow: var(--ed-shadow-glow);
}
.ed-speaker-card__avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--ed-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  margin: 0 auto 1rem;
  box-shadow: 0 0 20px hsla(270,80%,65%,.3);
  overflow: hidden;
}
.ed-speaker-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ed-speaker-card__photo {
  width: 72px; height: 72px; border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem;
  display: block;
  border: 2px solid hsla(270,80%,65%,.4);
  box-shadow: 0 0 20px hsla(270,80%,65%,.3);
}
.ed-speaker-card__name { font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: .25rem; }
.ed-speaker-card__role { font-size: .85rem; color: var(--ed-primary); }

/* ---- Venue card ---- */
.ed-venue-card {
  background: linear-gradient(135deg, hsla(240,15%,12%,.9), hsla(240,15%,8%,.9));
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  overflow: hidden;
  box-shadow: var(--ed-shadow);
}
.ed-venue-card__info {
  display: flex; align-items: center; gap: .9rem;
  padding: 1rem 1.25rem;
}
.ed-venue-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--ed-grad-soft);
  border: 1px solid var(--ed-border-hi);
  border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  color: var(--ed-primary);
}
.ed-venue-icon svg { width: 18px; height: 18px; }
.ed-venue-name { font-size: 1rem; font-weight: 700; color: #fff; margin: 0 0 .15rem; line-height: 1.3; }
.ed-venue-sub  { font-size: .85rem; color: var(--ed-muted); margin: 0; line-height: 1.4; }

/* Map */
.ed-map-container {
  position: relative;
  height: 280px;
  border-top: 1px solid var(--ed-border);
}
#edMap { width: 100%; height: 100%; }
.ed-map-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem;
  background: hsla(240,15%,8%,.8);
  color: var(--ed-muted);
  font-size: .9rem;
}
/* Leaflet overrides */
.leaflet-container { background: hsl(240,15%,8%); }
.leaflet-tile { filter: brightness(.85) saturate(.7); }

/* ---- Organizer card ---- */
.ed-organizer-card {
  display: flex; align-items: center; gap: 1.25rem;
  background: linear-gradient(135deg, hsla(240,15%,12%,.9), hsla(240,15%,8%,.9));
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 1.5rem;
  transition: all .3s ease;
}
.ed-organizer-card:hover { border-color: var(--ed-border-hi); }
.ed-organizer-card__avatar {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--ed-grad);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 700; color: #fff;
  overflow: hidden;
}
.ed-organizer-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ed-organizer-card__name {
  font-size: 1.1rem; font-weight: 700; color: #fff;
  transition: color .2s;
}
.ed-organizer-card__name:hover { color: var(--ed-primary); }
.ed-organizer-card__sub { font-size: .875rem; color: var(--ed-muted); margin-top: .2rem; }

/* ---- Gallery ---- */
.ed-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .875rem;
}
.ed-gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--ed-radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--ed-border);
}
.ed-gallery__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.ed-gallery__item:hover img { transform: scale(1.08); }
.ed-gallery__overlay {
  position: absolute; inset: 0;
  background: hsla(240,15%,6%,.5);
  display: flex; align-items: center; justify-content: center;
  color: #fff; opacity: 0;
  transition: opacity .3s ease;
}
.ed-gallery__item:hover .ed-gallery__overlay { opacity: 1; }

/* ---- Reviews ---- */
.ed-rating-summary {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--ed-grad-soft);
  border: 1px dashed var(--ed-border-hi);
  border-radius: var(--ed-radius);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
}
.ed-rating-summary__score {
  font-size: 3.5rem; font-weight: 800;
  background: var(--ed-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}
.ed-rating-summary__label { font-size: .875rem; color: var(--ed-muted); margin-top: .35rem; }
.ed-stars { display: flex; gap: .2rem; }
.ed-star { font-size: 1.2rem; color: hsl(240,15%,25%); }
.ed-star--filled { color: var(--ed-amber); filter: drop-shadow(0 0 4px hsla(38,100%,60%,.5)); }

.ed-reviews { display: flex; flex-direction: column; gap: 1rem; }
.ed-review-card {
  background: linear-gradient(135deg, hsla(240,15%,12%,.9), hsla(240,15%,8%,.9));
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 1.5rem;
  transition: border-color .25s ease;
}
.ed-review-card:hover { border-color: var(--ed-border-hi); }
.ed-review-card__header {
  display: flex; align-items: center; gap: .875rem;
  margin-bottom: 1rem;
}
.ed-review-card__avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--ed-grad);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: .9rem;
}
.ed-review-card__meta { flex: 1; }
.ed-review-card__name { font-weight: 600; color: #fff; font-size: .95rem; }
.ed-review-card__date { font-size: .8rem; color: var(--ed-muted); }
.ed-review-card__stars { display: flex; gap: .15rem; }
.ed-review-card__text { font-size: .95rem; color: hsl(240,5%,80%); line-height: 1.7; }
.ed-empty-state { color: var(--ed-muted); font-size: .95rem; padding: 1rem 0; }

/* ---- Booking card (sidebar) ---- */
.ed-col-aside { position: relative; }
.ed-booking-card {
  position: sticky; top: 90px;
  background: hsla(240,15%,10%,.7);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius);
  padding: 1.5rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.ed-booking-card__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.ed-price-block { display: flex; align-items: baseline; gap: .35rem; }
.ed-price {
  font-size: 2rem; font-weight: 800;
  color: var(--ed-primary);
}
.ed-price-suffix { font-size: .875rem; color: var(--ed-muted); }

.ed-booking-actions { display: flex; gap: .5rem; }
.ed-icon-btn {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: hsla(240,15%,15%,.6);
  border: 1px solid var(--ed-border);
  border-radius: .875rem;
  color: var(--ed-muted);
  cursor: pointer; transition: all .25s ease;
}
.ed-icon-btn:hover {
  border-color: var(--ed-border-hi);
  color: var(--ed-primary);
  background: var(--ed-grad-soft);
}
.ed-icon-btn--saved {
  background: hsla(0,84%,60%,.12);
  border-color: hsla(0,84%,60%,.5);
  color: hsl(0,84%,65%);
}
.ed-icon-btn--saved svg { fill: hsl(0,84%,65%); }

/* Seats */
.ed-seats-block {
  background: hsla(240,15%,15%,.4);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}
.ed-seats-row {
  display: flex; justify-content: space-between;
  font-size: .875rem;
}
.ed-seats-row + .ed-seats-row { margin-top: .6rem; }
.ed-seats-label { color: var(--ed-muted); }
.ed-seats-value { font-weight: 700; color: var(--ed-primary); }

/* Includes */
.ed-includes { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ed-border); }
.ed-includes__title { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ed-muted); margin-bottom: .875rem; }
.ed-includes__list { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.ed-includes__list li {
  display: flex; align-items: center; gap: .625rem;
  font-size: .9rem; color: var(--ed-muted);
}
.ed-includes__list li svg { color: var(--ed-green); flex-shrink: 0; }

/* Ticket Tiers on booking card */
.ed-tiers-block { margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--ed-border); }
.ed-tiers-list { display: flex; flex-direction: column; gap: .5rem; margin-top: .75rem; }
.ed-tier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .6rem .75rem;
  border-radius: .6rem;
  background: rgba(139,92,246,.06);
  border: 1px solid rgba(139,92,246,.15);
}
.ed-tier-row__info { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.ed-tier-row__name { font-size: .9rem; font-weight: 600; color: #fff; }
.ed-tier-row__desc { font-size: .78rem; color: var(--ed-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-tier-row__seats { font-size: .75rem; color: var(--ed-muted); }
.ed-tier-row__price { font-size: .95rem; font-weight: 700; color: #a78bfa; white-space: nowrap; flex-shrink: 0; }

/* Book button */
.ed-book-btn {
  width: 100%; justify-content: center;
  padding: .9rem 1.5rem; font-size: 1rem; font-weight: 700;
  border-radius: var(--ed-radius-sm);
  background: var(--ed-grad);
  color: #fff;
  box-shadow: 0 4px 20px hsla(270,80%,65%,.35);
  transition: all .25s ease;
  margin-bottom: .875rem;
}
.ed-book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px hsla(270,80%,65%,.5);
}
.ed-booked-btn {
  width: 100%; justify-content: center;
  padding: .9rem 1.5rem; font-size: 1rem; font-weight: 700;
  border-radius: var(--ed-radius-sm);
  background: hsla(145,63%,45%,.15);
  border: 1px solid hsla(145,63%,45%,.4);
  color: hsl(145,63%,55%);
  cursor: not-allowed;
}
.ed-past-label { text-align: center; color: var(--ed-muted); font-size: .9rem; }

/* Past event ended block */
.ed-past-ended-block {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.ed-past-ended-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-size: .875rem;
  color: var(--ed-muted);
  padding: .6rem 0;
  border-top: 1px solid var(--ed-border);
  border-bottom: 1px solid var(--ed-border);
}

.ed-past-ended-label svg { color: var(--ed-muted); flex-shrink: 0; }

/* Rate button — eligible user */
.ed-rate-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.25rem;
  font-size: .9rem;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--ed-radius-sm);
  border: 1px solid hsla(38, 100%, 60%, .4);
  background: hsla(38, 100%, 60%, .08);
  color: hsl(38, 100%, 68%);
  cursor: pointer;
  transition: all .25s ease;
}
.ed-rate-btn:hover {
  background: hsla(38, 100%, 60%, .16);
  border-color: hsla(38, 100%, 60%, .65);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px hsla(38, 100%, 60%, .2);
}
.ed-rate-btn svg { flex-shrink: 0; }

/* Already reviewed state */
.ed-rate-done {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1rem;
  font-size: .82rem;
  font-weight: 600;
  color: hsl(145, 63%, 55%);
  background: hsla(145, 63%, 45%, .08);
  border: 1px solid hsla(145, 63%, 45%, .25);
  border-radius: var(--ed-radius-sm);
}
.ed-rate-done svg { color: hsl(145, 63%, 55%); flex-shrink: 0; }

/* Not registered — locked state */
.ed-rate-locked {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .65rem 1rem;
  font-size: .82rem;
  color: var(--ed-muted);
  background: hsla(240, 15%, 15%, .4);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
}
.ed-rate-locked svg { flex-shrink: 0; }
.ed-policy {
  display: flex; align-items: center; justify-content: center; gap: .4rem;
  font-size: .78rem; color: var(--ed-muted);
  margin-top: 1rem; padding-top: 1rem;
  border-top: 1px solid var(--ed-border);
}
.ed-policy svg { color: var(--ed-primary); }

/* ---- Modal ---- */
.ed-modal {
  display: none; position: fixed; inset: 0; z-index: 9000;
  align-items: center; justify-content: center;
  padding: 1rem;
}
.ed-modal.active { display: flex; }
.ed-modal__backdrop {
  position: fixed; inset: 0;
  background: hsla(240,15%,4%,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.ed-modal__box {
  position: relative; z-index: 1;
  background: linear-gradient(135deg, hsl(240,15%,11%), hsl(240,15%,7%));
  border: 1px solid var(--ed-border-hi);
  border-radius: var(--ed-radius-lg);
  width: 100%; max-width: 480px;
  box-shadow: 0 40px 80px hsla(0,0%,0%,.6), var(--ed-shadow-glow);
  animation: edModalIn .3s cubic-bezier(.16,1,.3,1);
  overflow: hidden;
}
@keyframes edModalIn {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ed-modal__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--ed-border);
}
.ed-modal__header h3 { font-size: 1.1rem; font-weight: 700; color: #fff; }
.ed-modal__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: transparent; border: none;
  font-size: 1.4rem; color: var(--ed-muted);
  cursor: pointer; transition: color .2s;
}
.ed-modal__close:hover { color: #fff; }
.ed-modal__body { padding: 1.5rem; }

/* Form */
.ed-form-group { margin-bottom: 1.25rem; }
.ed-form-group label {
  display: block; margin-bottom: .5rem;
  font-size: .875rem; font-weight: 600; color: var(--ed-text);
}
.ed-form-group textarea {
  width: 100%; padding: .875rem 1rem;
  background: hsla(240,15%,15%,.6);
  border: 1px solid var(--ed-border);
  border-radius: var(--ed-radius-sm);
  color: var(--ed-text); font-family: inherit; font-size: .95rem;
  resize: vertical; transition: border-color .2s;
}
.ed-form-group textarea:focus {
  outline: none; border-color: var(--ed-primary);
  box-shadow: 0 0 0 3px hsla(270,80%,65%,.12);
}
.ed-form-group textarea::placeholder { color: var(--ed-muted); }

/* Star input */
.ed-star-input { display: flex; gap: .5rem; }
.ed-star-input__star {
  font-size: 2rem; color: hsl(240,15%,25%);
  cursor: pointer; transition: all .2s;
}
.ed-star-input__star:hover,
.ed-star-input__star.active { color: var(--ed-amber); transform: scale(1.15); }

/* ---- Lightbox ---- */
.ed-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: hsla(240,15%,4%,.92);
  backdrop-filter: blur(16px);
  align-items: center; justify-content: center;
}
.ed-lightbox.active { display: flex; }
.ed-lightbox__content { position: relative; max-width: 90vw; max-height: 90vh; }
.ed-lightbox__content img {
  max-width: 90vw; max-height: 85vh;
  border-radius: var(--ed-radius);
  box-shadow: 0 20px 60px hsla(0,0%,0%,.7);
}
.ed-lightbox__close {
  position: absolute; top: -1rem; right: -1rem;
  width: 36px; height: 36px;
  background: var(--ed-card2); border: 1px solid var(--ed-border);
  border-radius: 50%; font-size: 1.25rem; color: var(--ed-text);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.ed-lightbox__close:hover { background: var(--ed-primary); color: #fff; }

/* ---- Toast ---- */
.ed-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(4rem);
  background: hsl(240,15%,14%);
  border: 1px solid var(--ed-border-hi);
  border-radius: 9999px;
  padding: .75rem 1.5rem;
  font-size: .9rem; color: var(--ed-text);
  box-shadow: var(--ed-shadow);
  opacity: 0; transition: all .35s ease;
  z-index: 9999; pointer-events: none;
  white-space: nowrap;
}
.ed-toast.active {
  opacity: 1; transform: translateX(-50%) translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
  .ed-hero { height: 38vh; min-height: 240px; }
  .ed-header__meta { gap: .875rem 1.25rem; }
  .ed-booking-card { position: static; }
  .ed-gallery { grid-template-columns: repeat(2, 1fr); }
  .ed-rating-summary { flex-direction: column; text-align: center; gap: .75rem; }
}

/* ---- Utility ---- */
.w-full { width: 100%; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: 'Outfit', sans-serif; font-weight: 600;
  border-radius: var(--ed-radius-sm); cursor: pointer;
  transition: all .25s ease; border: none; text-decoration: none;
}
.btn-sm { height: 2.25rem; padding: 0 1rem; font-size: .875rem; }
.btn-primary {
  background: var(--ed-grad); color: #fff;
  box-shadow: 0 4px 15px hsla(270,80%,65%,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 25px hsla(270,80%,65%,.5); }
.btn-outline {
  background: transparent; color: var(--ed-text);
  border: 1px solid var(--ed-border);
}
.btn-outline:hover { border-color: var(--ed-border-hi); background: var(--ed-grad-soft); }

/* ---- Leaflet popup dark theme ---- */
.leaflet-popup-content-wrapper {
  background: hsl(240,15%,12%) !important;
  border: 1px solid hsla(270,30%,35%,.4) !important;
  border-radius: .75rem !important;
  box-shadow: 0 8px 32px hsla(0,0%,0%,.5) !important;
  color: #fff !important;
}
.leaflet-popup-tip { background: hsl(240,15%,12%) !important; }
.leaflet-popup-content { color: #fff !important; font-family: 'Outfit', sans-serif !important; }
.leaflet-control-zoom a {
  background: hsl(240,15%,12%) !important;
  color: #fff !important;
  border-color: hsla(270,30%,35%,.4) !important;
}
.leaflet-control-zoom a:hover { background: hsl(240,15%,18%) !important; }
.leaflet-control-attribution {
  background: hsla(240,15%,8%,.8) !important;
  color: hsl(240,10%,50%) !important;
  font-size: .7rem !important;
}
.leaflet-control-attribution a { color: hsl(270,60%,65%) !important; }
