@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Source+Serif+4:ital,opsz,wght@0,8..60,200..900;1,8..60,200..900&display=swap");
:root {
  --background-color: #f9d7df;
  --text-color: #000000;
  --text-muted: #2f2f2f;
  --text-dark: #222222;
  --text-soft: #333333;
  --white: #ffffff;

  --primary-color:rgb(147, 189, 184);
  --menu-color: rgb(147, 189, 184);
  --hover-color: #e480ba;
  --accent-color: #e270af;
  --menu-text-color: #ffffff;
  --link-color: #3f65c7;

  --border-color: #d4cdc1;
  --surface-color: #ffffff;
  --surface-soft: #f4efe6;
  --surface-muted: #efebe3;
  --surface-muted-hover: #e4ded3;
  --card-bg: #ededed;
  --image-placeholder: #ddd8cf;

  --overlay-bg: rgba(0, 0, 0, 0.486);
  --filter-overlay-bg: rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 6px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 10px 22px rgba(0, 0, 0, 0.12);
  --shadow-button: 0 2px 6px rgba(0, 0, 0, 0.15);
  --shadow-button-active: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-paid: 0 3px 8px rgba(255, 0, 0, 0.25);
  --drawer-shadow: -6px 0 20px rgba(0, 0, 0, 0.15);

  --event-title-gradient: #64c7dd;
  --tag-gradient: #f5fff5; /*linear-gradient(120deg, #e6ffe9, #ffe6f4); */
  --tag-free-gradient: linear-gradient(120deg, #c8f7d4, #e6fff2);
  --tag-paid-gradient: #f09191 ;
  --tag-free-booking-gradient: #93dff0;

  --tag-text-color: #74a86f;
  --tag-active-bg: #d88c9a;
  --tag-active-text: #ffffff;
  --tag-free-text: #166534;
  --tag-paid-text: #ffffff;

  --button-primary-bg: #2f5d50;
  --button-primary-hover: #254c41;
  --button-secondary-bg:#f7e89b;
  --button-secondary-hover: #ded8ce;

  --focus-ring: rgba(29, 172, 105, 0.2);
  --hover-overlay-light: rgba(0, 0, 0, 0.06);
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: Poppins, "Segoe UI", sans-serif;
  color: var(--text-color);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--background-color);
}

main {
  padding: min(30em, 7%);
  padding-top: 40px;
}

main p {
  margin-top: 0.35em;
}

nav {
  background-color: var(--primary-color);
  border-bottom: 1px solid var(--hover-color);
  height: 64px; /* 👈 define bar height */
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 clamp(1rem, 5vw, 2.5rem);
}

nav .home-li {
  margin-right: auto; /* ✅ pushes everything else to the right */
  display: flex;
  align-items: center;
}

nav li {
  display: flex;
  align-items: center;
  height: 100%;
}

nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: bold;
  color: var(--menu-text-color);
  height: 100%;
  padding: 0.9em 1.6em;
}

nav a:hover {
  background-color: var(--hover-color);
}

nav a.active-link {
  border-bottom: 2px solid var(--menu-text-color);
}

nav a.accent-link {
  background-color: var(--accent-color);
}

#open-sidebar-button {
  display: none;
  background: none;
  border: none;
  padding: 1em;
  margin-left: auto;
  cursor: pointer;
}

#close-sidebar-button {
  display: none;
  background: none;
  border: none;
  padding: 1em;
  cursor: pointer;
}

#overlay {
  background: var(--overlay-bg);
  position: fixed;
  inset: 0;
  z-index: 9;
  display: none;
}

.skip-link {
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background-color: var(--accent-color);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
  outline: 3px solid var(--white);
}

@media screen and (max-width: 700px) {
  #open-sidebar-button {
    display: block;
    position: fixed;
    top: 12px;
    right: 14px;
    z-index: 1002;
    background: transparent;
    border: none;
  }

  #close-sidebar-button {
    display: block;
    align-self: flex-end;
    margin: 10px 16px 8px auto;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(20em, 78vw);
    height: 100vh;
    z-index: 1001;
    background: var(--menu-color);
    border-left: 1px solid var(--hover-color);
    transition: right 300ms ease-in-out;
  }

  nav.show {
    right: 0;
  }

  nav ul {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  nav li {
    width: 100%;
    height: auto;
    display: block;
  }

  nav .home-li {
    margin-right: 0;
  }

  nav a,
  .nav-logo-link {
    width: 100%;
    height: auto;
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
  }

  .nav-logo {
    width: 30px;
    height: 30px;
  }

  nav a:hover,
  nav a.active-link {
    background: rgba(255, 255, 255, 0.12);
  }

  nav a.active-link {
    border-bottom: none;
  }

  #overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--overlay-bg);
  }

  nav.show ~ #overlay {
    display: block;
  }
}

/* DATE FILTER BAR */
.date-filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0.2rem 0 0.6rem;
  margin: 0.75rem 0 1rem;
  scrollbar-width: thin;
}

.date-filter-bar::-webkit-scrollbar {
  height: 8px;
}

.date-filter-bar::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 999px;
}

.date-chip {
  border: 1px solid var(--border-color);
  background: var(--surface-muted);
  color: var(--tag-text-color);
  padding: 9px 12px;
  border-radius: 14px;
  min-width: 74px;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  line-height: 1.15;
  transition: all 0.2s ease;
  flex: 0 0 auto;
  text-align: center;
}

.date-chip:hover {
  background: var(--surface-muted-hover);
  transform: translateY(-1px);
}

.date-chip.active {
  background: var(--tag-active-bg);
  border-color: var(--tag-active-bg);
  color: var(--tag-active-text);
}

.date-chip small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.9;
  font-weight: 500;
}

.date-chip.all-dates {
  min-width: 92px;
}

/* SEARCH */
#search {
  margin-left: 0.4rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  color: var(--text-muted);
  font: inherit;
}

#search:focus {
  outline: 2px solid var(--focus-ring);
  border-color: var(--primary-color);
}

/* TAG BAR */
.tag-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.tag-chip {
  border: 1px solid var(--border-color);
  background: var(--surface-muted);
  color: var(--tag-text-color);
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tag-chip:hover {
  background: var(--surface-muted-hover);
  transform: translateY(-1px);
}

.tag-chip.active {
  background: var(--tag-active-bg);
  border-color: var(--tag-active-bg);
  color: var(--tag-active-text);
}

.tag-chip img {
  pointer-events: none;
}

.filter-icon {
  width: 18px;
  height: 18px;
  display: block;
}

/* FILTER DRAWER */
.filter-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: var(--surface-soft);
  box-shadow: var(--drawer-shadow);
  transition: right 0.3s ease;
  z-index: 1001;
}

.filter-drawer.open {
  right: 0;
}

.filter-drawer-content {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

.filter-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#closeFilters {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  transition: background 0.18s ease;
}

#closeFilters:hover {
  background: var(--hover-overlay-light);
}

#closeFilters img {
  width: 22px;
  height: 22px;
  display: block;
}

.filter-overlay {
  position: fixed;
  inset: 0;
  background: var(--filter-overlay-bg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

.filter-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.filter-group {
  margin-top: 20px;
}

.filter-group h3 {
  margin-bottom: 10px;
  font-size: 16px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-drawer-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
}

.filter-drawer-actions button {
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
}

#applyFiltersButton {
  background: var(--button-primary-bg);
  color: var(--white);
  box-shadow: var(--shadow-button);
}

#applyFiltersButton:hover {
  background: var(--button-primary-hover);
  transform: translateY(-1px);
}

#applyFiltersButton:active {
  transform: translateY(0);
  box-shadow: var(--shadow-button-active);
}

#clearFilters {
  background: var(--button-secondary-bg);
  color: var(--tag-text-color);
  border: 1px solid var(--border-color);
}

#clearFilters:hover {
  background: var(--button-secondary-hover);
  transform: translateY(-1px);
}

#clearFilters:active {
  transform: translateY(0);
}

/* EVENTS LAYOUT */
#events-groups {
  margin-top: 1.5rem;
}

.events-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  align-items: start;
}

@media (min-width: 700px) {
  .events-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .events-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* EVENT CARD */
.event-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  position: relative;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.event-title-bar {
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 8px;
  border-radius: 10px;
  color: var(--white);
  background: var(--event-title-gradient);
  line-height: 1.2;
}

.event-thumbnail {
  width: 100%;
  height: 125px;
  overflow: hidden;
  border-radius: 12px;
}

.event-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: var(--image-placeholder);
  transition: transform 0.3s ease;
}

.event-location {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.event-snippet {
  text-align: center;
  font-size: 0.82rem;
  color: var(--accent-color);
  line-height: 1.35;
  margin: 0;

  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-datetime {
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.35;

  color: var(--text-dark);
}

.event-datetime strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.88rem;
}

.event-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.event-tag {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  background: var(--tag-gradient);
  color: var(--tag-text-color);
}

.event-tag.free {
  background: var(--tag-free-gradient);
  color: var(--tag-free-text);
  font-weight: 600;
}
.event-tag.free-but-booking-essential{
  background: var(--tag-free-booking-gradient);
  color: var(--tag-free-text);
  font-weight: 600;
}
.event-tag.free-but-booking-essential::before {
  content: "🌿 ";
}

.event-tag.free::before {
  content: "🌿 ";
}

.event-tag.paid {
  background: var(--tag-paid-gradient);
  color: var(--tag-paid-text);
  font-weight: 700;
  box-shadow: var(--shadow-paid);
}

.event-tag.paid::before {
  content: "💳 ";
}

.event-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.event-card-link:hover .event-card {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.event-card-link:hover .event-thumbnail img {
  transform: scale(1.05);
}

.event-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0);
  transition: 0.3s;
}

.event-card-link:hover .event-card::after {
  background: rgba(0, 0, 0, 0.03);
}

.event-card:active {
  transform: scale(0.98);
}

/* MOBILE */
@media (max-width: 760px) {
  #main-content {
    padding-top: 4.5rem;
  }

  .event-card {
    padding: 8px;
    border-radius: 18px;
  }

  .event-title-bar {
    font-size: 0.82rem;
    padding: 7px 6px;
  }

  .event-thumbnail {
    height: 95px;
  }

  .event-location {
    font-size: 0.78rem;
  }

  .event-snippet {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
  }

  .event-datetime {
    font-size: 0.72rem;
  }

  .event-datetime strong {
    font-size: 0.78rem;
  }

  .event-tag {
    font-size: 0.66rem;
    padding: 3px 8px;
  }
}

/* FOOTER */
.site-footer {
  background: var(--menu-color);
  color: var(--menu-text-color);
  margin-top: 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 30px 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 10px;
}

.footer-section p {
  opacity: 0.8;
  font-size: 0.9rem;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section li {
  margin-bottom: 6px;
}

.footer-section a {
  color: var(--menu-text-color);
  text-decoration: none;
  opacity: 0.85;
  transition: 0.2s;
}

.footer-section a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom {
  text-align: center;
  padding: 12px;
  font-size: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.7;
}

@media (min-width: 768px) {
  .footer-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* EMPTY STATE + FILTER SUMMARY */
.empty-state {
  text-align: center;
  padding: 40px 10px;
  opacity: 0.8;
}

.empty-state button {
  margin-top: 10px;
  padding: 8px 14px;
  border: none;
  border-radius: 10px;
  background: var(--primary-color);
  color: white;
  cursor: pointer;
}

.active-filters {
  font-size: 0.9rem;
  margin: 10px 0 15px;
  opacity: 0.8;
}

/* WEEK TOGGLE */
.week-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.week-btn {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--surface-muted);
  cursor: pointer;
  font-weight: 600;
}

.week-btn.active {
  background: var(--primary-color);
  color: white;
}

/* EVENT DETAIL PAGE */
.event-detail-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  padding-top: 20;
  margin-top: 20;
}

.event-detail-page {
  display: grid;
  gap: 22px;
}

.event-back-link {
  display: inline-flex;
  width: fit-content;
  text-decoration: none;
  color: var(--primary-color);
  font-weight: 600;
}

.event-back-link:hover {
  text-decoration: underline;
}

.event-top {
  display: grid;
  gap: 8px;
  text-align: center;
}

.event-top h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  margin: 0;
}

.event-top-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  color: var(--text-muted);
  font-weight: 500;
}

.event-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 28px;
  overflow: hidden;
  background: var(--image-placeholder);
  box-shadow: var(--shadow-soft);
}

.event-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.media-arrow.left {
  left: 14px;
}

.media-arrow.right {
  right: 14px;
}

.media-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}

.media-toggle-btn {
  border: 1px solid var(--border-color);
  background: var(--surface-muted);
  color: var(--tag-text-color);
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 600;
  cursor: pointer;
}

.media-toggle-btn.active {
  background: #8dbbf3;
  color: white;
  border-color: #8dbbf3;
}

.event-main-grid {
  display: grid;
  gap: 22px;
}

.event-main-left,
.event-main-right {
  display: grid;
  gap: 18px;
}

.event-panel {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
}

.event-panel h2 {
  margin: 0 0 12px;
  font-size: 1.9rem;
}

.event-mini-meta {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.event-mini-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-dark);
}

.event-map {
  width: 100%;
  aspect-ratio: 16 / 8;
  border-radius: 18px;
  overflow: hidden;
  background: var(--image-placeholder);
  margin-bottom: 10px;
}

.event-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-map-link {
  color: #4f74b8;
  text-decoration: none;
  font-weight: 500;
}

.event-map-link:hover {
  text-decoration: underline;
}

.event-description {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.side-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-weight: 700;
  color: var(--text-dark);
  font-size: 1.45rem;
}

.side-info {
  display: grid;
  gap: 12px;
}

.side-info-block {
  display: grid;
  gap: 5px;
}

.side-info-label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.side-info-value {
  color: var(--text-dark);
  line-height: 1.5;
}

.side-info-value a {
  color: inherit;
  text-decoration: none;
}

.side-info-value a:hover {
  text-decoration: underline;
}

.event-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.book-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: none;
  border-radius: 18px;
  background: #efc75e;
  color: #2f2a1f;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.book-button:hover {
  filter: brightness(0.97);
}

.event-360-panel {
  display: none;
  text-align: center;
  color: var(--text-muted);
}

.event-360-panel.active,
.event-photos-panel.active {
  display: block;
}

.event-photos-panel.hidden,
.event-360-panel.hidden {
  display: none;
}

.event-not-found {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

@media (min-width: 900px) {
  .event-main-grid {
    grid-template-columns: 1.3fr 0.85fr;
    align-items: start;
  }
}

.event-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* SPLIT HERO */
.event-split-hero {
  display: grid;
  gap: 20px;
}

@media (min-width: 900px) {
  .event-split-hero {
    grid-template-columns: 1.4fr 0.8fr;
    align-items: start;
  }
}

/* LEFT */
.event-split-media {
  width: 100%;
}

/* RIGHT */
.event-split-details {
  display: flex;
}

/* FIX IMAGE SIZE */
.event-hero-media {
  width: 100%;
  height: clamp(220px, 40vw, 420px);
  border-radius: 20px;
  overflow: hidden;
}

/* MAP */
.event-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.event-panel {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.event-panel:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.book-button {
  background: #9dd3df ;
}

.event-back-link {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.event-map {
  margin-bottom: 8px;
}

/* BIG VERSION FOR EVENT PAGE */
.event-title-bar.large {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  padding: 14px 20px;
  border-radius: 16px;
  text-align: center;
  max-width: 700px;
  margin: 0 auto 8px;
}

.event-top {
  gap: 12px;
}
.event-title-bar.large:hover {
  filter: brightness(1.05);
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 24px;
}

.media-lightbox.hidden {
  display: none;
}

.lightbox-backdrop {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.lightbox-content {
  width: min(92vw, 1600px);
  height: min(88vh, 900px);
  display: grid;
  place-items: center;
}

.lightbox-content img,
.lightbox-content iframe,
.lightbox-content .lightbox-360-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border: 0;
  border-radius: 16px;
  background: #111;
}

.lightbox-360-placeholder {
  display: grid;
  place-items: center;
  text-align: center;
  color: white;
  padding: 32px;
  font-size: 1.2rem;
  line-height: 1.6;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3001;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.26);
}

.event-hero-media img,
.event-360-panel .event-panel,
.media-toggle-btn {
  cursor: pointer;
}

.event-description img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 12px;
}

.event-description figure {
  margin: 1rem 0;
}

.event-description figcaption {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

#panoViewer {
  width: min(92vw, 1400px);
  height: min(88vh, 800px);
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}

#open360Panel {
  cursor: pointer;
  position: relative;
}

#open360Panel::after {
  content: "⟳ Click to open 360° view";
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
}

.pano-container {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 16px;
  overflow: hidden;
}

#panoViewerLightbox {
  width: min(92vw, 1400px);
  height: min(88vh, 800px);
  border-radius: 16px;
  overflow: hidden;
  background: #111;
}
/* GALLERY PAGE */
.gallery-shell {
  max-width: 1400px;
  margin: 0 auto;
}

.gallery-header {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  text-align: center;
}

.gallery-intro {
  max-width: 60ch;
  margin: 0 auto;
  color: var(--text-muted);
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.gallery-controls input {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  font: inherit;
  min-width: min(420px, 100%);
}

.gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

.gallery-card {
  background: var(--card-bg);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.gallery-image-button {
  border: none;
  padding: 0;
  background: none;
  width: 100%;
  cursor: pointer;
  display: block;
}

.gallery-image-button img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-image-button:hover img {
  transform: scale(1.03);
}

.gallery-card-body {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.gallery-card-body h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.gallery-card-body p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.gallery-event-link {
  color: var(--link-color);
  text-decoration: underline;
  width: fit-content;
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 700px) {
  .gallery-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .gallery-controls input {
    min-width: 0;
    width: 100%;
  }
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}
.site-footer {
  margin-top: auto;
}

/* LIGHTBOX / IMAGE POPOUT */
.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;

  background: rgba(0, 0, 0, 0.555);

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 0; /* ❌ remove padding */
}

.lightbox-content {
  width: 100vw;
  height: 100vh;

  display: flex;
  justify-content: center;
  align-items: center;

  background: transparent;
}

.lightbox-content img {
  max-width: 100vw;
  max-height: 100vh;

  width: auto;
  height: auto;

  object-fit: contain;
  display: block;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  background: var(--image-placeholder);
}

.lightbox-close {
  position: fixed;
  top: 65px;
  right: 22px;
  width: 62px;
  height: 62px;
  border: none;
  border-radius: 50%;
  background: var(--accent-color);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 3001;
  box-shadow: var(--shadow-button);
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.lightbox-close:hover {
  transform: scale(1.08);
  background: var(--hover-color);
}

.lightbox-content {
  width: min(92vw, 1100px);
  max-height: 86vh;
  background: #fff0;
  border-radius: 26px;
  padding: 12px;
  box-shadow: 0 24px 70px rgba(255, 255, 255, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.lightbox-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: calc(86vh - 24px);
  object-fit: contain;
  border-radius: 18px;
  background: var(--image-placeholder);
}

.lightbox-content img {
  max-width: 95vw;
  max-height: 92vh;

  width: auto;
  height: auto;

  object-fit: contain;
  display: block;

  border-radius: 14px; /* optional — keeps soft corners */
}

.lightbox-content img {
  max-width: 100%;
  max-height: 100%;

  width: auto;
  height: auto;

  object-fit: contain; /* key line */
  border-radius: 18px;
  display: block;
}

@keyframes lightboxFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.media-lightbox:not(.hidden) {
  animation: lightboxFadeIn 0.22s ease forwards;
}

.media-lightbox:not(.hidden) .lightbox-content {
  animation: lightboxZoomIn 0.24s ease forwards;
}
.media-arrow {
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.media-arrow:hover {
  transform: translateY(-50%) scale(1.12);
  background: white;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.media-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.media-arrow.left:hover {
  animation: arrowNudgeLeft 0.55s ease infinite;
}

.media-arrow.right:hover {
  animation: arrowNudgeRight 0.55s ease infinite;
}

@keyframes arrowNudgeLeft {
  0%,
  100% {
    transform: translateY(-50%) scale(1.12) translateX(0);
  }
  50% {
    transform: translateY(-50%) scale(1.12) translateX(-4px);
  }
}

@keyframes arrowNudgeRight {
  0%,
  100% {
    transform: translateY(-50%) scale(1.12) translateX(0);
  }
  50% {
    transform: translateY(-50%) scale(1.12) translateX(4px);
  }
}

.event-hero-media {
  position: relative;
  overflow: hidden;
}

.event-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  transition:
    transform 0.35s ease,
    opacity 0.35s ease;
}

/* Default state */
.slide-current {
  transform: translateX(0);
  opacity: 1;
  z-index: 2;
}

/* Incoming image */
.slide-in-right {
  transform: translateX(100%);
  opacity: 1;
  z-index: 3;
}

.slide-in-left {
  transform: translateX(-100%);
  opacity: 1;
  z-index: 3;
}

/* Outgoing image */
.slide-out-left {
  transform: translateX(-100%);
  opacity: 0.8;
}

.slide-out-right {
  transform: translateX(100%);
  opacity: 0.8;
}
.media-arrow {
  z-index: 10;
}

.media-arrow.left,
.media-arrow.right {
  position: absolute;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);

  width: 60px;
  height: 60px;

  border: none;
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: 2rem;

  cursor: pointer;
  z-index: 4000;

  backdrop-filter: blur(6px);

  transition:
    transform 0.2s ease,
    background 0.2s ease;
}

.lightbox-arrow.left {
  left: 20px;
}

.lightbox-arrow.right {
  right: 20px;
}

.lightbox-arrow:hover {
  transform: translateY(-50%) scale(1.15);
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

/* ==============================
   EVENT PAGE BACKGROUND
============================== */

body.event-bg {
  background: transparent !important;
}

body.event-bg::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--event-bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  transform: scale(1.1);
  opacity: 0.4;
}

body.event-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--background-color);
  opacity: 0.5;
}

html {
  background: var(--background-color);
}

/* PAGE BACKGROUND SYSTEM */
/* EVENTS PAGE BACKGROUND (CROSSFADE VERSION) */

body.events-bg {
  background: transparent !important;
}

/* LAYER 1 (current image) */
body.events-bg::before,
body.events-bg::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background-size: cover;
  background-position: center;

  filter: blur(20px);
  transform: scale(1.1);

  transition: opacity 0.6s ease;
}

/* active layer */
body.events-bg::before {
  background-image: var(--events-bg-image);
  opacity: 1;
}

/* next layer (fading in) */
body.events-bg::after {
  background-image: var(--events-bg-image-next);
  opacity: 0;
}

/* when switching */
body.events-bg.fade-bg::after {
  opacity: 1;
}

/* overlay (same as your event page) */
body.events-bg .bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--background-color);
  opacity: 0.85;
  pointer-events: none;
}

body.events-bg::before,
body.events-bg::after {
  animation: bgZoom 20s ease-in-out infinite alternate;
}

@keyframes bgZoom {
  from {
    transform: scale(1.05);
  }
  to {
    transform: scale(1.15);
  }
}
.events-header {
  margin-bottom: 10px;
}

.events-toolbar {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.date-filter-wrapper,
.search-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-filter-wrapper {
  min-width: 180px;
}

.search-wrapper {
  flex: 1;
  min-width: 260px;
  max-width: 520px;
}

.date-filter-wrapper label,
.search-wrapper label {
  height: 22px;
  display: flex;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.75;
}

.date-select,
.search-wrapper input {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--surface-color);
  font: inherit;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-wrapper input {
  cursor: text;
}

.date-select:hover,
.search-wrapper input:hover {
  border-color: var(--primary-color);
}

.date-select:focus,
.search-wrapper input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(29, 172, 105, 0.2);
}
.events-toolbar {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  align-items: end;
}

.tag-bar {
  margin-top: 12px;
  margin-bottom: 6px;
}

.events-header {
  margin-bottom: 16px;
}

.active-filters {
  margin: 8px 0 16px;
}

.events-header p {
  max-width: 600px;
  opacity: 0.8;
}

.nav-logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.nav-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

@media screen and (max-width: 700px) {
  .nav-logo-link {
    padding-left: 2.5em;
  }

  .nav-logo-link span {
    line-height: 1.2;
  }
}

@media (max-width: 700px) {
  main {
    padding: 4.5rem 7% 2rem;
  }

  .events-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .date-filter-wrapper,
  .search-wrapper {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .date-select,
  .search-wrapper input {
    width: 100%;
  }

  .tag-bar {
    gap: 8px;
  }
}
.nav-logo {
  width: 46px;
  height: 46px;
}
nav a {
  padding: 0.8em 1.6em;
}
@media screen and (max-width: 700px) {
  .nav-logo {
    width: 38px;
    height: 38px;
  }
}

.nav-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;

  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* CENTER LINKS */
.nav-center {
  display: flex;
  justify-content: center;
  gap: 20px;
}

/* LEFT + RIGHT stay natural */
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
}

/* ==============================
   MAP PAGE
============================== */

.map-page {
  max-width: none;
  width: 100%;
  padding: 48px 5vw 70px;
}

.map-header,
.map-controls {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.map-header {
  margin-bottom: 16px;
}

.map-header p {
  max-width: 650px;
  opacity: 0.8;
}

.map-controls {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 28px;
}

.map-layout {
  width: 100%;
}

.festival-map-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 24px;
  width: 100%;
  align-items: stretch;
}

.festival-map {
  width: 100%;
  height: 70vh;
  min-height: 620px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--image-placeholder);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
}

.map-event-panel {
  min-height: 620px;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.map-panel-empty {
  height: 100%;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 8px;
  opacity: 0.8;
}

@media (max-width: 800px) {
  .map-page {
    width: 100%;
    max-width: none;
    padding: 10px;
  }

  .map-header,
  .map-controls {
    padding: 24px 7% 0;
  }

  .festival-map-wrapper {
    position: relative;
    display: block;
    width: 100%;
    height: 100vh;
  }

  .festival-map {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border-radius: 0;
  }

  .map-event-panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;

    min-height: 0;
    max-height: none;
    overflow: hidden;

    margin: 0;
    padding: 16px;
    border-radius: 22px 22px 0 0;
    background: var(--card-bg);
  }

  .map-event-panel.hidden {
    display: none;
  }

  .map-panel-image {
    width: calc(100% + 32px);
    height: 150px;
    object-fit: cover;
    display: block;
    margin: -16px -16px 14px;
    border-radius: 22px 22px 0 0;
  }

  .map-panel-content {
    display: grid;
    gap: 6px;
  }

  .map-panel-title {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .map-event-panel .book-button {
    margin-top: 10px;
  }
}

.map-panel-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: -18px -18px 14px; /* stretch to edges */
}

.map-panel-image {
  width: calc(100% + 36px);
  max-width: none;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: -18px -18px 14px;
  border-radius: 24px 24px 0 0;
}

@media screen and (max-width: 700px) {
  nav {
    z-index: 5000;
  }

  #overlay {
    z-index: 4000;
  }

  #close-sidebar-button {
    position: fixed;
    top: 18px;
    right: 22px;
    z-index: 6000;

    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    background: transparent;
    border: none;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;

    pointer-events: auto;
  }

  nav ul {
    padding-top: 82px;
  }
}
#close-sidebar-button {
  display: none;
}

@media screen and (max-width: 700px) {
  #close-sidebar-button {
    display: none;
  }

  nav.show #close-sidebar-button {
    display: grid;
  }
}
@media screen and (max-width: 700px) {
  .nav-logo {
    display: none;
  }
}
@media screen and (max-width: 700px) {
  .home-li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 8px;
  }

  .nav-logo-link span {
    font-size: 1.1rem;
  }
}

@media screen and (max-width: 700px) {
  .nav-logo-link {
    padding-left: 25px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  nav ul {
    padding-top: 72px;
  }
}

.filter-drawer {
  z-index: 7000;
}

.filter-overlay {
  z-index: 6500;
}

@media screen and (max-width: 700px) {
  #open-sidebar-button,
  #close-sidebar-button {
    z-index: 5000;
  }
}
/* ==============================
   ABOUT PAGE
============================== */

.about-page {
  max-width: 1300px;
  margin: 0 auto;
  padding: 56px 7% 70px;
}

.about-hero {
  background: var(--card-bg);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.about-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
  max-width: 850px;
}

.about-hero p {
  font-size: 1.15rem;
  max-width: 1300px;
  margin-top: 16px;
  color: var(--text-dark);
  line-height: 1.7;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.about-card,
.about-panel {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.about-card h2,
.about-panel h2 {
  margin-bottom: 10px;
}

.about-card p,
.about-panel p {
  line-height: 1.7;
  color: var(--text-dark);
}

.about-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.about-actions .book-button {
  width: fit-content;
  min-width: 160px;
  padding: 0 22px;
}

.book-button.secondary {
  background: var(--button-secondary-bg);
  color: var(--tag-text-color);
}

@media (max-width: 800px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-page {
    padding-top: 4.5rem;
  }
}
/* ==============================
   ORGANISERS
============================== */

.about-organisers {
  margin-top: 28px;
}

.organisers-intro {
  max-width: 650px;
  margin-top: 8px;
  margin-bottom: 18px;
  opacity: 0.8;
}

.organisers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.organiser-card {
  background: var(--card-bg);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 0.2s ease;
}

.organiser-card:hover {
  transform: translateY(-2px);
}

.organiser-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.organiser-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.organiser-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-dark);
}

/* MOBILE */
@media (max-width: 800px) {
  .organisers-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* ==============================
   PEOPLE PROFILES
============================== */

.about-people {
  margin-top: 34px;
}

.people-intro {
  max-width: 1300pxpx;
  margin-top: 8px;
  margin-bottom: 18px;
  opacity: 0.8;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.person-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.person-card img {
  width: 196px;
  height: 196px;
  object-fit: contain;
  border-radius: 5%;
  background: var(--image-placeholder);
  margin-bottom: 12px;
}

.person-card h3 {
  margin-bottom: 4px;
}

.person-role {
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 10px;
}

.person-card p {
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .people-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .people-grid {
    grid-template-columns: 1fr;
  }
}

.about-hero {
  position: relative;
  overflow: hidden;
}

.about-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("web-assets/about-hero.jpg"); /* pick a garden image */
  background-size: cover;
  background-position: center;
  opacity: 0.25;
}

.about-hero > div {
  position: relative;
  z-index: 1;
}
.organiser-card img {
  width: 196px;
  height: 196px;
  border-radius: 5%;
  background: white;
  padding: 8px;
}
.person-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.person-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.person-card img {
  border: 3px solid var(--primary-color);
}
.about-page section {
  margin-top: 32px;
}
.about-page h2 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}
/* ==============================
   CONTACT PAGE
============================== */

.contact-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 7% 70px;
}

.contact-hero {
  background: var(--card-bg);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-soft);
  margin-bottom: 24px;
}

.contact-hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.05;
}

.contact-hero p {
  max-width: 700px;
  margin-top: 16px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 22px;
  align-items: start;
}

.contact-form,
.contact-info {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}

.contact-form {
  display: grid;
  gap: 10px;
}

.contact-form h2,
.contact-info h2 {
  margin-bottom: 8px;
}

.contact-form label {
  font-weight: 700;
  color: var(--text-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-color);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(29, 172, 105, 0.2);
}

.contact-info {
  display: grid;
  gap: 16px;
}

.contact-info-block h3 {
  margin-bottom: 4px;
}

.contact-info-block p {
  line-height: 1.6;
}

.contact-info a {
  color: var(--link-color);
}

@media (max-width: 800px) {
  .contact-page {
    padding-top: 4.5rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

.contact-organiser {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 10px;
}

/* HOME HERO CENTERED */
.home-hero.centered {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  min-height: 75vh;
  padding: 40px 20px;
}

.home-hero-center {
  max-width: 600px;
  display: grid;
  gap: 16px;
}

.home-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin: 0 auto 10px;
}

.home-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  line-height: 1.1;
}

.home-hero p {
  opacity: 0.8;
  font-size: 1.1rem;
}

.home-hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==============================
   HOME PAGE
============================== */

.home-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 7% 70px;
}

.home-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 32px 0;
}

.quick-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  color: var(--text-dark);
  transition: 0.2s ease;
}

.quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.quick-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--tag-text-color);
}

.quick-card p {
  line-height: 1.6;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-header a {
  color: var(--primary-color);
  font-weight: 700;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.home-featured .event-card {
  min-height: 160px;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.home-about,
.home-cta {
  text-align: justify;
  background: var(--card-bg);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-soft);
  margin-top: 32px;
}

.home-about p,
.home-cta p {
  max-width: 750px;
  line-height: 1.7;
  margin-bottom: 18px;
}

.home-cta {
  text-align: center;
}

.home-cta p {
  margin-left: auto;
  margin-right: auto;
}

.home-cta .book-button,
.home-about .book-button {
  max-width: 260px;
}

@media (max-width: 800px) {
  .home-page {
    padding-top: 4.5rem;
  }

  .home-quick,
  .featured-grid {
    grid-template-columns: 1fr;
  }
}
.event-price {
  display: inline-block;
  width: fit-content;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 700;
}

.event-price.free {
  background: var(--tag-free-gradient);
  color: var(--tag-free-text);
}

.event-price.paid {
  background: var(--tag-paid-gradient);
  color: var(--tag-paid-text);
  box-shadow: var(--shadow-paid);
}
/* ==============================
   EVENT DETAIL HERO LAYOUT FIX
============================== */

.event-split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 24px;
  align-items: start;
}

/* Left image section */
.event-split-media {
  width: 100%;
  min-width: 0;
}

/* Right text/details panel */
.event-split-details {
  width: 100%;
  min-width: 0;
}

/* Keeps the image looking clean */
.event-hero-media {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
}

.event-hero-media img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

/* Makes long text easier to read */
.event-description {
  line-height: 1.7;
}

/* If the screen becomes too narrow, text moves below the image */
@media (max-width: 1200px) {
  .event-split-hero {
    grid-template-columns: 1fr;
  }

  .event-split-details {
    max-width: none;
  }
}

/* Mobile spacing */
@media (max-width: 700px) {
  .event-split-hero {
    gap: 16px;
  }

  .event-hero-media {
    border-radius: 16px;
  }

  .event-hero-media img {
    max-height: 360px;
  }
}
.side-info-value strong {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}
.location-address {
  margin-top: 26px;
}

.location-address a {
  color: inherit;
  text-decoration: none;
}

.location-address a:hover {
  text-decoration: underline;
}
.event-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* prevents stretching */
}
.event-hero-media {
  height: clamp(300px, 45vh, 520px);
}
.event-card-image {
  height: 180px; /* try 200px or 220px */
}
/* EVENT CARD THUMBNAILS */
.event-thumbnail {
  width: 100%;
  height: 125px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--image-placeholder);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  border-radius: 14px;
}

/* Slightly taller on desktop/tablet */
@media (min-width: 700px) {
  .event-thumbnail {
    height: 150px;
  }
}

/* Mobile card image */
@media (max-width: 760px) {
  .event-thumbnail {
    height: 115px;
  }

  .event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
}

.event-card {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

#mapCloseFilters {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

#mapCloseFilters img {
  width: 24px;
  height: 24px;
  display: block;
}

.filter-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0);
}

/* Clear button */
#mapClearFilters {
  background: #e5e3df;
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
}

/* Apply button */
#mapApplyFiltersButton {
  background: #d9d7d2;
  color: #000;
  border: none;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;

  /* softer shadow */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

#mapApplyFiltersButton:hover {
  background: #cfcac4;
}

#mapClearFilters:hover {
  background: #dbd8d3;
}

.book-button.no-booking {
  background:  #b0cafb;
  color: #222;
  cursor: default;
}

.festival-timer {
  margin: 16px auto;
  padding: 14px 20px;
  max-width: 520px;
  border-radius: 18px;
  background: var(--card-bg);
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  text-align: center;
  color: var(--tag-text-color);
}

.featured-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.featured-card h3 {
  color: var(--tag-text-color);
}

.featured-card p {
  line-height: 1.6;
}

.featured-card .book-button {
  margin-top: auto;
}

.featured-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.featured-card {
  background: var(--card-bg);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.featured-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-card h3 {
  padding: 18px 18px 8px;
}

.featured-card p {
  padding: 0 18px 18px;
  line-height: 1.6;
  flex-grow: 1;
}

.featured-card .book-button {
  margin: 0 18px 18px;
  width: calc(100% - 36px);
}

.featured-thumb {
  width: 100%;
  height: 220px;
  overflow: hidden;
  padding: 12px 12px 0;
}

.featured-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 18px;
  cursor: pointer;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}

.featured-thumb img:hover {
  transform: scale(1.03);
  filter: brightness(1.03);
}

/* FIX ABOUT PAGE MOBILE OVERFLOW */
.organisers-grid,
.people-grid {
  width: 100%;
}

.organiser-card,
.person-card {
  min-width: 0;
  overflow-wrap: break-word;
}

.organiser-card img,
.person-card img {
  max-width: 100%;
}

/* Make organisers stack properly on small phones */
@media (max-width: 560px) {
  .organisers-grid {
    grid-template-columns: 1fr;
  }

  .organiser-card img {
    width: min(196px, 100%);
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

