/*
  Eden of the East — Shared Site Stylesheet
  ===========================================
  Locked in 24 June 2026. See templates/DESIGN_TOKENS.md for the design
  rationale behind these choices.

  This file holds rules shared across every page type (events, and future
  Food & Beverage / Accommodation / Experiences workflows): design tokens,
  base typography, the topbar/nav, breadcrumb, and common button/heading
  styles. Page-specific layout (grids, hero proportions, detail-panel
  structure) stays in each page's own <style> block — only what's
  genuinely identical across page types lives here.
*/

:root {
  --ink: #224B43;
  --ink-soft: #3D5C54;
  --text: #1D1D1B;
  --text-soft: #6E6E6B;
  --accent: #9A5128;
  --hairline: #F0F0EE;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  line-height: 1.6;
}

h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

/* Keep wrapped category-card titles compact without changing their
   existing spacing from the Explore link. */
.tile-title {
  line-height: 1.15;
}

/* Topbar + nav — identical across every page type */

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 22px 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  font-size: 15px;
  text-transform: uppercase;
}

.brand span {
  display: block;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-top: 2px;
}

nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

nav a {
  color: var(--text-soft);
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

nav .current {
  color: var(--ink);
  font-weight: 600;
}

/* Breadcrumb — used on every detail page (event, venue, listing, etc.) */

.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 40px 0;
  font-size: 13px;
  color: var(--text-soft);
}

.breadcrumb a {
  color: var(--text-soft);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

/* Eyebrow label — small-caps section/category label, used above headings */

.eyebrow {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

/* Primary action button — "Get tickets", future "Book now" / "Visit website" etc. */

.btn-primary {
  display: block;
  text-align: center;
  background: var(--ink);
  color: #FFFFFF;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 15px;
}

.btn-primary:hover {
  background: var(--accent);
}

/* Learn more button — event detail pages */

.learn-more-btn {
  display: block;
  text-align: center;
  background: var(--ink);
  color: #FFFFFF;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 15px;
}

.learn-more-btn:hover {
  background: var(--accent);
}

/* Text-link button — "Load more", used on every listing page */

.btn-text {
  background: none;
  border: none;
  color: var(--ink);
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  padding: 0;
}

.btn-text:hover {
  color: var(--accent);
}

/* Labelled detail row — venue/address/contact lists on event, F&B, accommodation pages */

.details-heading {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0 0 20px;
}

.detail-row {
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
}

.detail-row:first-of-type {
  border-top: none;
  padding-top: 0;
}

.detail-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 4px;
}

.detail-value {
  font-size: 15px;
  color: var(--text);
}

.detail-value a {
  color: var(--ink);
  text-decoration: none;
}

.detail-value a:hover {
  color: var(--accent);
}

/* Header structure for all pages */

.beta-banner {
  background: #F4E6DA;
  border-bottom: 1px solid #DFC8B6;
  color: var(--ink);
}

.beta-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 40px;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.beta-banner-inner strong {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.beta-feedback-link {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 2px 4px;
  color: #743A1E;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.beta-feedback-link:hover {
  color: var(--ink);
}

.beta-feedback-link:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
  border-radius: 2px;
}

.header {
  position: sticky;
  top: 0;
  background: #FFFFFF;
  border-bottom: 1px solid var(--hairline);
  z-index: 1000;
  transform: translateY(0);
  transition: transform 200ms ease;
  will-change: transform;
}

.header.header-hidden {
  transform: translateY(calc(-100% - 1px));
}

.header.header-hidden:focus-within {
  transform: translateY(0);
}

.header-top {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.header-logo {
  flex-shrink: 0;
}

.header-logo-main {
  font-family: 'Poppins', sans-serif;
  font-size: 28px;
  font-weight: 200;
  color: var(--ink);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-logo-img {
  height: 24px;
  width: auto;
  display: block;
}

.header-logo a {
  text-decoration: none;
  color: inherit;
}

.header-meta {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-left: auto;
}

.hub-link {
  font-size: 15px;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.3s ease;
  position: relative;
  font-weight: 500;
  padding-bottom: 8px;
  border-bottom: 2px solid transparent;
}

.hub-link:hover {
  color: var(--ink);
}

.hub-link.active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--ink);
}

/* Unified standard header. The original repeated links remain the no-JavaScript
   fallback and are replaced by the shared header script after enhancement. */

.header-top.is-discovery-header {
  min-height: 82px;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.header-brand-section,
.discovery-actions {
  display: flex;
  align-items: center;
}

.header-brand-section {
  gap: 14px;
  flex: 0 0 auto;
}

.discovery-brand {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  min-width: 58px;
  min-height: 58px;
  border-radius: 12px;
}

.discovery-brand-image {
  display: block;
  width: auto;
  height: 52px;
  object-fit: contain;
}

.discovery-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 9px;
  min-width: 0;
  margin-left: auto;
}

.header-menu {
  position: relative;
  flex: 0 0 auto;
}

.header-pill {
  min-height: 44px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  padding: 10px 17px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  cursor: pointer;
}

.header-pill:hover {
  background: #17372F;
  color: #FFFFFF;
}

.header-pill:focus-visible,
.header-menu-option:focus-visible,
.discovery-brand:focus-visible,
.header-sheet-close:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.section-selector {
  min-height: 42px;
  border-color: #CAD4D0;
  background: transparent;
  color: var(--ink);
  padding: 9px 15px;
  font-weight: 500;
}

.section-selector:hover,
.section-selector[aria-expanded="true"] {
  border-color: var(--ink);
  background: #F7F9F8;
  color: var(--ink);
}

.discovery-primary {
  min-height: 50px;
  padding-right: 21px;
  padding-left: 21px;
  font-size: 14px;
}

.discovery-secondary {
  min-height: 48px;
  background: var(--ink-soft);
  border-color: var(--ink-soft);
  padding-right: 19px;
  padding-left: 19px;
}

.discovery-utility {
  min-height: 44px;
  padding-right: 15px;
  padding-left: 15px;
  font-size: 12px;
}

.header-chevron {
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 160ms ease;
}

.header-pill[aria-expanded="true"] .header-chevron {
  transform: translateY(2px) rotate(225deg);
}

.header-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1002;
  width: max-content;
  min-width: 230px;
  max-width: min(310px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #D8E0DD;
  border-radius: 16px;
  background: #FFFFFF;
  box-shadow: 0 18px 44px rgba(23, 55, 47, 0.2);
}

.section-menu .header-popover {
  right: auto;
  left: 0;
  min-width: 260px;
}

.header-popover[hidden],
.header-menu-scrim[hidden] {
  display: none;
}

.header-menu-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px;
  list-style: none;
}

.header-menu-option {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-menu-option:hover,
.header-menu-option[aria-current="page"] {
  background: #EEF3F1;
  color: var(--ink);
}

.header-menu-option.is-disabled {
  color: #777F7C;
  cursor: not-allowed;
}

.header-menu-option.is-group {
  min-height: 36px;
  padding-top: 12px;
  padding-bottom: 5px;
  border-radius: 0;
  font-weight: 700;
}

.header-menu-option.is-indented {
  width: calc(100% - 14px);
  margin-left: 14px;
  padding-left: 18px;
  border-left: 2px solid #D8E0DD;
}

.header-menu-option small {
  color: #777F7C;
  font-size: 11px;
  font-weight: 500;
}

.header-sheet-heading {
  display: none;
}

.header-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 999;
  border: 0;
  background: transparent;
  cursor: default;
}

.header.header-menu-open {
  z-index: 1002;
  transform: none;
  will-change: auto;
}

/* Footer */

.footer {
  background: var(--ink);
  color: #FFFFFF;
  margin-top: 0;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-section h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: 0.02em;
  margin: 0 0 20px 0;
  color: #FFFFFF;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-section a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
}

/* Footer logo styling */
.footer-section-logo {
  flex: 1.5;
  display: flex;
  gap: 80px;
  align-items: flex-start;
  min-width: 0;
}

.footer-logo-box {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
}

.footer-logo {
  max-height: 100px;
  width: auto;
  display: block;
}

.footer-section-content {
  flex: 1;
  min-width: 200px;
}

/* Responsive header */

@media (prefers-reduced-motion: reduce) {
  .header,
  .header-chevron {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .header-top.is-discovery-header {
    flex-wrap: wrap;
    gap: 9px 20px;
  }

  .header-brand-section {
    width: 100%;
  }

  .discovery-actions {
    width: 100%;
    justify-content: flex-start;
    margin-left: 72px;
  }
}

@media (max-width: 1024px) {
  .header-top {
    gap: 40px;
    padding: 16px 32px;
  }

  .header-meta {
    gap: 32px;
  }

  .hub-link {
    font-size: 14px;
  }
}

@media (max-width: 768px) {
  .beta-banner-inner {
    padding: 8px 20px;
    font-size: 13px;
  }

  .header-top {
    padding: 16px 20px;
    gap: 24px;
  }

  .header-top.is-discovery-header {
    min-height: 0;
    padding: 9px 20px 7px;
    gap: 7px;
  }

  .header-brand-section {
    min-height: 50px;
    gap: 11px;
  }

  .discovery-brand {
    min-width: 50px;
    min-height: 50px;
  }

  .discovery-brand-image {
    height: 44px;
  }

  .section-selector {
    min-height: 44px;
  }

  .discovery-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    width: 100%;
    margin: 0;
    padding: 1px 0 7px;
    gap: 8px;
  }

  .discovery-actions .header-menu,
  .discovery-actions > .header-pill {
    width: 100%;
    min-width: 0;
    height: 100%;
  }

  .discovery-actions .header-pill {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding-right: 10px;
    padding-left: 10px;
    gap: 6px;
    text-align: center;
    white-space: normal;
  }

  .discovery-primary,
  .discovery-secondary,
  .discovery-utility {
    min-height: 44px;
    font-size: 12px;
  }

  .discovery-primary {
    font-size: 13px;
  }

  .header-popover {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    min-width: 0;
    max-width: none;
    max-height: min(78vh, 620px);
    overflow-y: auto;
    border: 0;
    border-radius: 22px 22px 0 0;
    padding: 8px 12px max(18px, env(safe-area-inset-bottom));
    box-shadow: 0 -18px 52px rgba(23, 55, 47, 0.28);
  }

  .section-menu .header-popover {
    right: 0;
    left: 0;
    min-width: 0;
  }

  .header-sheet-heading {
    min-height: 54px;
    padding: 10px 9px 8px 13px;
    color: var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .header-sheet-heading strong {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
  }

  .header-sheet-close {
    min-width: 64px;
    min-height: 44px;
    border: 1px solid #CAD4D0;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--ink);
    font-weight: 700;
  }

  .header-menu-list {
    padding: 4px;
  }

  .header-menu-option {
    min-height: 52px;
    padding: 13px 15px;
    font-size: 15px;
  }

  .header-menu-scrim {
    z-index: 1001;
    background: rgba(18, 37, 32, 0.46);
  }

  .header-popover {
    z-index: 1002;
  }

  body.header-sheet-open {
    overflow: hidden;
  }

  .header-logo-main {
    font-size: 13px;
  }

  .header-meta {
    gap: 20px;
    flex-wrap: wrap;
  }

  .hub-link {
    font-size: 13px;
    padding-bottom: 6px;
  }

  .footer-content {
    flex-wrap: wrap;
    padding: 40px 20px;
    gap: 32px;
  }

  .footer-bottom {
    padding: 16px 20px;
  }
}

@media (max-width: 600px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 20px 24px;
  }
  nav {
    gap: 20px;
    flex-wrap: wrap;
  }
  .footer-section-logo {
    flex: 1 1 100%;
    flex-direction: column;
    gap: 24px;
  }
  .footer-section-content {
    min-width: 0;
    width: 100%;
  }
}

/* Contextual entry into the one shared regional map. */
.category-map-entry {
  background: #224B43;
  color: #FFFFFF;
  padding: 15px 40px;
}

.category-map-entry-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.category-map-entry p {
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
}

.category-map-entry a {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #FFFFFF;
  color: #224B43;
  padding: 9px 15px;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

/* Individual Food & Beverage pages use the shared regional map. */
.food-map-button {
  display: inline-block;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  padding: 11px 18px;
  background: rgba(22, 57, 49, .86);
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.food-map-button:hover {
  background: rgba(34, 75, 67, .98);
}

@media (max-width: 620px) {
  .category-map-entry { padding: 14px 20px; }
  .category-map-entry-inner { align-items: flex-start; flex-direction: column; gap: 10px; }
  .category-map-entry a { width: 100%; text-align: center; }
}
