:root {
  /* Primary brand colors from review */
  --emerald: #0F9E87;
  --emerald-700: #0B7D6B;
  --burgundy: #8A2D35;
  --sand: #E6D3A5;
  --ink: #192A2B;
  
  /* Legacy colors - keeping for compatibility */
  --sky: #8ecae6;
  --bluegreen: #219ebc;
  --prussian: #023047;
  --yellow: #ffb703;
  --orange: #fb8500;
  
  /* Semantic aliases */
  --bg: #011f2b;
  --ring: rgba(33, 158, 188, 0.45);
  --text: #f8ffff;
  --card-bg: rgba(142, 202, 230, 0.18);
  --card-stroke: rgba(142, 202, 230, 0.3);
  --card-text: #1a1a1a;
  
  /* Radius system */
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(142, 202, 230, 0.35), transparent),
    linear-gradient(160deg, var(--bg) 0%, var(--prussian) 60%, var(--bluegreen) 100%);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    Segoe UI,
    Roboto,
    Helvetica,
    Arial;
  line-height: 1.6;
  font-size: clamp(16px, 2.5vw, 18px);
  overflow-x: hidden;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--emerald);
  color: white;
  padding: 8px;
  text-decoration: none;
  border-radius: 4px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 6px;
}

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

.container {
  max-width: min(1400px, 100%);
  margin: 0 auto;
  padding: clamp(1rem, 4vw, 3.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* nav */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(10px);
  background: rgba(2, 48, 71, 0.25);
  border-bottom: 1px solid rgba(142, 202, 230, 0.15);
  transition: background .25s ease, border-color .25s ease;
}

/* Mobile navigation toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger-line {
  width: 24px;
  height: 3px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

header.scrolled {
  background: rgba(15, 158, 135, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 44px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
}

.brand span {
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.links a {
  position: relative;
  padding: 10px 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.95;
  transition: all 0.2s ease;
  border-radius: 8px;
}

.links a.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: var(--sand);
  border-radius: 1px;
}

/* Mobile navigation styles */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(2, 48, 71, 0.98);
    backdrop-filter: saturate(140%) blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5rem 2rem 2rem;
    gap: 0;
    transition: right 0.3s ease;
    z-index: 1000;
  }
  
  .links.active {
    right: 0;
  }
  
  .links a {
    padding: 1rem;
    border-radius: 8px;
    margin: 0.25rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
  }
  
  .links a:hover {
    background: rgba(142, 202, 230, 0.1);
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

.links a:hover {
  opacity: 1;
  color: var(--sky);
  background: rgba(142, 202, 230, 0.1);
}

.links a:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 4px;
  background: rgba(142, 202, 230, 0.1);
}

/* Video Dropdown */
.video-dropdown {
  width: 100%;
  background: linear-gradient(90deg, var(--emerald), var(--bluegreen), var(--orange));
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: relative;
  z-index: 40;
}

.video-toggle {
  width: 100%;
  background: none;
  border: none;
  color: white;
  padding: 16px 24px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.video-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.toggle-text {
  font-family: Montserrat, sans-serif;
}

.toggle-icon {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.video-toggle.expanded .toggle-icon {
  transform: rotate(180deg);
}

.video-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  background: rgba(0, 0, 0, 0.1);
}

.video-content.expanded {
  max-height: 800px;
}

.video-container {
  padding: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.video-container iframe {
  border-radius: 16px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0;
  text-align: center;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bluegreen), var(--orange));
  z-index: 1;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.kicker {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
}

h1 {
  font-family: Montserrat, sans-serif;
  font-size: clamp(38px, 5vw, 72px);
  line-height: 0.98;
  margin: 8px 0 24px;
  color: var(--text);
}

.lead {
  font-size: 1.2rem;
  max-width: 58ch;
  opacity: 0.96;
  margin-bottom: 32px;
  margin-left: auto;
  margin-right: auto;
}

.cta {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  justify-content: center;
}

.btn {
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 0;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.btn.primary {
  background: linear-gradient(135deg, var(--bluegreen), var(--orange));
  color: #fff;
  box-shadow: 0 10px 30px var(--ring);
}

.btn.primary:hover {
  background: linear-gradient(135deg, var(--prussian), var(--bluegreen));
  transform: translateY(-2px);
  box-shadow: 0 15px 40px var(--ring);
}

.btn.ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(142, 202, 230, 0.4);
}

.btn.ghost:hover {
  background: rgba(142, 202, 230, 0.1);
  border-color: rgba(142, 202, 230, 0.6);
}

.center {
  justify-content: center;
}

.pelican-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pelican {
  width: min(700px, 100%);
  height: auto;
  transform: rotate(-2deg);
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
}

.blob {
  position: absolute;
  inset: auto auto -20% -10%;
  width: 55vw;
  height: 55vw;
  background: radial-gradient(closest-side, rgba(142, 202, 230, 0.12), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.blob2 {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 35vw;
  height: 35vw;
  background: radial-gradient(closest-side, rgba(33, 158, 188, 0.12), transparent 60%);
  filter: blur(40px);
}

/* cards/sections */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-stroke);
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.about {
  margin: 60px 0;
  text-align: center;
}

.about .card {
  padding: 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.about h3 {
  font-family: Montserrat, sans-serif;
  margin: 0 0 20px;
  color: var(--yellow);
  font-size: 1.8rem;
}

.about p {
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

.beach-vibes-image {
  margin-bottom: 32px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.beach-vibes-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.beach-vibes-image:hover img {
  transform: scale(1.02);
}

/* upcoming events */
.upcoming-events {
  margin: 80px 0;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.upcoming-events .card {
  padding: 40px;
  text-align: center;
  margin: 0;
}

.event-header {
  margin-bottom: 32px;
}

.event-kicker {
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.event-title {
  font-family: Montserrat, sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.event-dates {
  font-size: 1.3rem;
  color: var(--sky);
  margin: 0;
  font-weight: 600;
}

.event-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.event-links .btn {
  background: transparent;
  color: var(--sky);
  border: 2px solid rgba(142, 202, 230, 0.4);
  padding: 12px 20px;
  font-size: 0.95rem;
}

.event-links .btn:hover {
  background: rgba(142, 202, 230, 0.1);
  border-color: rgba(142, 202, 230, 0.6);
  transform: translateY(-2px);
}

/* accommodations page */
.accommodations-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: 48px;
}

.accommodation-card {
  background: rgba(2, 48, 71, 0.08);
  border: 1px solid rgba(142, 202, 230, 0.3);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: start;
}

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-placeholder {
  width: 320px;
  height: 140px;
  background: rgba(2, 48, 71, 0.08);
  border: 2px dashed rgba(142, 202, 230, 0.4);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky);
  font-weight: 600;
  font-size: 1.1rem;
}

.content h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.8rem;
  margin: 0 0 20px;
  color: var(--text);
  line-height: 1.2;
}

.content h3 {
  font-family: Montserrat, sans-serif;
  font-size: 1.3rem;
  margin: 32px 0 16px;
  color: var(--yellow);
}

.content p {
  margin: 0 0 20px;
  line-height: 1.7;
  font-size: 1.1rem;
  opacity: 0.95;
}

.booking-note {
  background: rgba(255, 184, 3, 0.1);
  border-left: 4px solid var(--yellow);
  padding: 16px 20px;
  margin: 24px 0;
  font-weight: 600;
  color: var(--yellow);
}

.hours-note {
  font-size: 1rem;
  opacity: 0.8;
  font-style: italic;
  margin: 16px 0 24px;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0;
}

.cta-group .btn {
  margin: 0;
}

.joint-properties {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 24px;
}

.property-block {
  background: rgba(142, 202, 230, 0.05);
  border: 1px solid rgba(142, 202, 230, 0.2);
  border-radius: 16px;
  padding: 24px;
}

.property-block h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
}

.property-block p {
  margin: 0 0 20px;
  font-size: 1rem;
}

.property-block .cta-group {
  margin: 0;
}

/* rules page */
.rules-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.rules-intro p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
}

.rules-content {
  max-width: 900px;
  margin: 0 auto 48px;
}

.rule-section {
  margin-bottom: 40px;
  padding: 32px;
  background: rgba(2, 48, 71, 0.06);
  border: 1px solid rgba(142, 202, 230, 0.2);
  border-radius: 16px;
}

.rule-section:last-of-type {
  margin-bottom: 0;
}

.rule-section h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.6rem;
  margin: 0 0 20px;
  color: var(--yellow);
  border-bottom: 2px solid rgba(255, 184, 3, 0.3);
  padding-bottom: 12px;
}

.rule-section p {
  margin: 0 0 16px;
  line-height: 1.7;
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.95;
}

.rule-section p:last-child {
  margin-bottom: 0;
}

.rule-section ul {
  margin: 0 0 16px;
  padding-left: 24px;
}

.rule-section li {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.95;
}

.rule-section li:last-child {
  margin-bottom: 0;
}

.rules-cta {
  text-align: center;
  margin-top: 48px;
}

/* fall classic page */
.event-subtitle {
  text-align: center;
  font-size: 1.4rem;
  color: var(--sky);
  margin: 0 0 40px;
  font-weight: 600;
}

.event-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 48px;
}

.event-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 16px;
}

.event-intro p:last-child {
  margin-bottom: 0;
}

.registration-notice {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--orange);
  background: rgba(251, 133, 0, 0.1);
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--orange);
  margin-bottom: 24px;
}

.event-intro a {
  color: var(--sky);
  text-decoration: none;
}

.event-intro a:hover {
  text-decoration: underline;
}

.event-content {
  max-width: 1000px;
  margin: 0 auto;
}

.info-section {
  margin-bottom: 48px;
  padding: 32px;
  background: rgba(2, 48, 71, 0.06);
  border: 1px solid rgba(142, 202, 230, 0.2);
  border-radius: 16px;
  text-align: center;
}

.info-section:last-of-type {
  margin-bottom: 0;
}

.info-section h2 {
  font-family: Montserrat, sans-serif;
  font-size: 1.8rem;
  margin: 0 0 24px;
  color: var(--yellow);
  border-bottom: 2px solid rgba(255, 184, 3, 0.3);
  padding-bottom: 12px;
}

.info-section h3 {
  font-family: Montserrat, sans-serif;
  font-size: 1.4rem;
  margin: 24px 0 16px;
  color: var(--sky);
}

.info-section p {
  margin: 0 0 16px;
  line-height: 1.7;
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.95;
}

.info-section p:last-child {
  margin-bottom: 0;
}

.info-section ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.info-section li {
  margin-bottom: 12px;
  line-height: 1.6;
  font-size: 1.1rem;
  color: var(--text);
  opacity: 0.95;
}

.info-section li:last-child {
  margin-bottom: 0;
}

.highlight {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--yellow);
  background: rgba(255, 184, 3, 0.1);
  padding: 16px 20px;
  border-radius: 12px;
  border-left: 4px solid var(--yellow);
}

.note {
  font-style: italic;
  opacity: 0.8;
  font-size: 1rem;
}

.pricing {
  background: rgba(142, 202, 230, 0.08);
  border: 1px solid rgba(142, 202, 230, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.pricing p {
  margin: 0 0 16px;
}

.pricing p:last-child {
  margin-bottom: 0;
}

.cta {
  text-align: center;
  margin: 32px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta .btn {
  margin: 0;
}

.tax-info,
.refund-policy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 24px 0;
}

.schedule-day {
  background: rgba(142, 202, 230, 0.05);
  border: 1px solid rgba(142, 202, 230, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.schedule-day h3 {
  margin: 0 0 16px;
  color: var(--orange);
}

.schedule-day ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.party-event {
  background: rgba(255, 184, 3, 0.08);
  border: 1px solid rgba(255, 184, 3, 0.2);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}

.party-event h3 {
  margin: 0 0 12px;
  color: var(--yellow);
}

.party-event p {
  margin: 0;
}

.section-h {
  font-family: Montserrat, sans-serif;
  margin: 0 0 16px;
  font-size: 1.6rem;
  color: var(--text);
}

.muted {
  opacity: 0.9;
  font-size: 1.1rem;
}

.pad {
  padding: 60px 0;
}

.hosts {
  margin: 100px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
  text-align: center;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.hosts .card {
  width: min(1200px, 100%);
  margin-inline: auto;
  padding: 60px;
  text-align: center;
  box-sizing: border-box;
}

.hosts-logos {
  display: flex;
  justify-content: center;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
  margin: 48px 0;
  width: 100%;
}

.hosts-logos img {
  height: 160px;
  width: auto;
  max-width: 300px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
  object-fit: contain;
}

.maps {
  padding: 80px 0;
  text-align: center;
  width: 100%;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.tile {
  background: linear-gradient(145deg, var(--yellow), var(--orange));
  color: var(--card-text);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(142, 202, 230, 0.2);
  text-align: center;
}

.tile h4 {
  margin: 0 0 16px;
  font-family: Montserrat, sans-serif;
  font-size: 1.4rem;
  color: var(--ink);
}

.tile p {
  margin: 0 0 20px;
  opacity: 0.9;
  line-height: 1.6;
}

.tile .btn {
  background: var(--prussian);
  border: none;
  color: #fff;
  padding: 12px 20px;
}

.tile .btn:hover {
  background: var(--bluegreen);
  transform: translateY(-2px);
}

/* Events */
.events {
  margin: 30px 0;
  text-align: center;
  display: block !important;
  align-items: unset !important;
}

/* Override container flexbox when events class is also present */
.events.container {
  display: block !important;
  flex-direction: unset !important;
  align-items: unset !important;
  justify-content: unset !important;
}

.events .grid {
  display: grid !important;
  gap: 40px;
  grid-template-columns: 1fr 1fr;
  max-width: 1200px;
  margin: 0 auto;
  justify-items: center;
  justify-content: center;
  width: fit-content;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: translateX(150px) translateY(-20px);
}

.events .card {
  padding: 22px;
}

.events h2 {
  margin: 0.2rem 0 0.4rem;
  font-family: Montserrat, sans-serif;
}

.events .meta {
  color: var(--sand);
  font-weight: 700;
  letter-spacing: 0.06em;
}

/* pages */
.page-title {
  font-family: Montserrat, sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  margin: 20px 0 30px;
  color: var(--text);
  scroll-margin-top: 90px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.card.hotel {
  padding: 32px;
  text-align: center;
}

.card.hotel img {
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.card.hotel h3 {
  font-family: Montserrat, sans-serif;
  margin: 0 0 16px;
  color: var(--text);
  font-size: 1.4rem;
}

.card.hotel p {
  margin: 0 0 24px;
  line-height: 1.6;
  opacity: 0.9;
}

/* results table */
table.results {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  background: rgba(142, 202, 230, 0.08);
  border: 1px solid rgba(142, 202, 230, 0.2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

table.results th,
table.results td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(142, 202, 230, 0.15);
  text-align: left;
}

table.results thead th {
  background: rgba(2, 48, 71, 0.3);
  font-weight: 700;
  color: var(--sky);
}

table.results tbody tr:hover {
  background: rgba(142, 202, 230, 0.05);
}

/* Results page specific styles */
.results-content {
  margin: 40px 0;
}

.results-content .card {
  margin-bottom: 24px;
  padding: 32px;
}

.results-content h2 {
  color: var(--text);
  margin-bottom: 16px;
  font-family: Montserrat, sans-serif;
}

.results-content p {
  margin-bottom: 24px;
  line-height: 1.6;
  opacity: 0.9;
}

.results-cta {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background: rgba(142, 202, 230, 0.05);
  border-radius: 16px;
}

/* gallery */
.gallery-masonry {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px;
  margin: 40px 0;
  /* Ensure grid layout is not overridden */
  grid-auto-flow: row;
  align-items: start;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 20px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: rgba(142, 202, 230, 0.05);
  border: 1px solid rgba(142, 202, 230, 0.1);
  width: 100%;
  height: auto;
  /* Ensure grid items display properly */
  display: block;
  /* Force grid item behavior */
  grid-column: span 1;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: filter 0.3s ease;
}

.gallery-item:hover img {
  filter: brightness(1.1);
}

.gallery-cta {
  text-align: center;
  margin: 40px 0;
  padding: 20px;
  background: rgba(142, 202, 230, 0.05);
  border-radius: 16px;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-caption {
  color: white;
  margin-top: 16px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 16px 12px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 768px) {
  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .lightbox-nav {
    display: none;
  }
  
  .lightbox-close {
    top: 20px;
    right: 20px;
  }
}

@media (max-width: 600px) {
  .gallery-masonry {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
  }
}

/* rules */
.rules {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.rules li {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
  line-height: 1.6;
  font-size: 1.1rem;
}

.rules li:last-child {
  margin-bottom: 0;
}

.rules strong {
  color: var(--yellow);
  font-weight: 700;
}

/* Accordion styles for rules page */
.rules-accordion {
  margin: 40px 0;
}

.accordion-item {
  margin-bottom: 16px;
  border: 1px solid rgba(142, 202, 230, 0.2);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(142, 202, 230, 0.05);
}

.accordion-header {
  width: 100%;
  padding: 20px 24px;
  background: rgba(142, 202, 230, 0.1);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  color: var(--text);
  font-family: Montserrat, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.accordion-header:hover {
  background: rgba(142, 202, 230, 0.15);
}

.accordion-header:focus-visible {
  outline: 2px solid var(--sand);
  outline-offset: 2px;
}

.accordion-header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--sky);
  transition: transform 0.3s ease;
}

.accordion-header[aria-expanded="true"] .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background: rgba(255, 255, 255, 0.02);
}

.accordion-content[aria-hidden="false"] {
  max-height: 500px;
}

.accordion-content > * {
  padding: 0 24px 24px;
  margin: 0;
}

.accordion-content p:first-child {
  padding-top: 24px;
}

.accordion-content ul {
  padding: 24px 24px 24px 48px;
  margin: 0;
}

.accordion-content li {
  margin-bottom: 12px;
  line-height: 1.6;
}

.accordion-content li:last-child {
  margin-bottom: 0;
}

/* badges and pills */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.sky {
  background: var(--sky);
  color: var(--prussian);
}

.badge.bluegreen {
  background: var(--bluegreen);
  color: #fff;
}

.badge.orange {
  background: var(--orange);
  color: #fff;
}

.badge.yellow {
  background: var(--yellow);
  color: var(--prussian);
}

/* chat */
.chat-toggle {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: auto;
  min-width: 8rem;
  height: auto;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--prussian);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: pulse-attention 2s ease-in-out infinite;
}

.chat-toggle:hover {
  background: var(--emerald);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 20px rgba(255, 193, 7, 0.3);
  animation: none;
}

.chat-btn-text {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.2rem;
}

.chat-btn-subtitle {
  font-size: 0.7rem;
  font-weight: 400;
  line-height: 1.1;
  opacity: 0.9;
}

@keyframes pulse-attention {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2), 0 0 15px rgba(255, 193, 7, 0.2);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .chat-toggle {
    animation: none;
  }
}

.chat {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: min(480px, calc(100vw - 2rem));
  height: min(600px, 70vh);
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  display: none;
  flex-direction: column;
  z-index: 1000;
  max-height: 70vh;
  overflow: hidden;
}

.chat .head {
  background: var(--emerald);
  color: white;
  padding: 1rem;
  border-radius: 16px 16px 0 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.chat .body {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: #f7fbfb;
  color: #102;
  max-height: 60vh;
}

/* Mobile chat positioning and safe area support */
@media (max-width: 768px) {
  .chat {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    right: 1rem;
    left: 1rem;
    width: auto;
    height: 70vh;
    max-height: 70vh;
  }
  
  .chat-toggle {
    bottom: calc(1rem + env(safe-area-inset-bottom));
    right: 1rem;
  }
  
  .chat .foot {
    padding: 1rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  }
}

.chat .body .bot {
  background: #fff;
  color: #102;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 12px;
  max-width: 80%;
}

.chat .body .user {
  background: #e0f6f3;
  color: #103;
  margin: 0.5rem 0;
  padding: 0.75rem;
  border-radius: 12px;
  max-width: 80%;
  margin-left: auto;
}

.chat .foot {
  padding: 1rem;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 0.5rem;
}

.chat input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  font-size: 0.875rem;
  min-height: 44px;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
}

.chat input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(15, 158, 135, 0.1);
}

.chat button:focus,
.chat-close:focus,
.nav-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(15, 158, 135, 0.3);
}

.chat button {
  padding: 0.75rem 1rem;
  background: var(--emerald);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.875rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-greet {
  color: #6c757d;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  font-weight: 500;
}

.chat-hint {
  color: #adb5bd;
  font-size: 0.75rem;
  font-style: italic;
}

/* Accommodation Logos */
.accommodation-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  background: white;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo-container {
  width: 320px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--prussian) 0%, rgba(0, 0, 0, 0.05) 100%);
  border: 1px solid var(--sky);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
  .logo-container {
    width: 220px;
    height: 100px;
  }
}

/* footer */
footer {
  margin-top: 80px;
  background: var(--prussian);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(142, 202, 230, 0.1);
}

footer .container {
  opacity: 0.9;
  font-size: 1rem;
}

/* responsive */
@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
    padding: 60px 0;
  }

  .pelican {
    margin: 20px auto;
    transform: none;
  }

  .cta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .hosts-logos {
    gap: 24px;
  }

  .hosts-logos img {
    height: 60px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .card-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .about .card {
    padding: 30px 20px;
    margin: 0 20px;
  }

  .upcoming-events .card {
    padding: 30px 20px;
    margin: 0 20px;
    max-width: calc(100% - 40px);
  }

  .event-title {
    font-size: 1.8rem;
  }

  .event-links {
    gap: 12px;
  }

  .event-links .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  /* accommodations responsive */
  .accommodation-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 30px 20px;
  }

  .logo-placeholder {
    width: 220px;
    height: 100px;
    margin: 0 auto;
  }

  .joint-properties {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* upcoming events responsive */
  .events-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .upcoming-events .card {
    padding: 30px 20px;
  }

  .event-title {
    font-size: 1.8rem;
  }

  /* fall classic responsive */
  .info-section {
    padding: 24px 20px;
    margin-bottom: 32px;
  }

  .info-section h2 {
    font-size: 1.6rem;
  }

  .schedule-day,
  .party-event {
    padding: 16px;
  }

  /* rules responsive */
  .rule-section {
    padding: 24px 20px;
    margin-bottom: 32px;
  }

  .rule-section h2 {
    font-size: 1.4rem;
  }

  .hosts .card {
    padding: 30px 20px;
    margin: 0 20px;
    max-width: calc(100% - 40px);
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .hero-wrap {
    padding: 40px 0;
  }

  h1 {
    font-size: clamp(32px, 8vw, 48px);
  }

  .lead {
    font-size: 1.1rem;
  }

  .about .card,
  .hosts .card {
    padding: 24px 16px;
  }

  .upcoming-events .card {
    padding: 24px 16px;
  }

  .event-title {
    font-size: 1.6rem;
  }

  .event-links {
    flex-direction: column;
    gap: 8px;
  }

  .event-links .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* accommodations mobile */
  .accommodation-card {
    padding: 24px 16px;
    gap: 20px;
  }

  .logo-placeholder {
    width: 220px;
    height: 100px;
  }

  .content h2 {
    font-size: 1.6rem;
  }

  .cta-group {
    flex-direction: column;
    gap: 12px;
  }

  .cta-group .btn {
    width: 100%;
    text-align: center;
  }

  /* rules mobile */
  .rule-section {
    padding: 20px 16px;
    margin-bottom: 24px;
  }

  .rule-section h2 {
    font-size: 1.3rem;
  }

  .rule-section p,
  .rule-section li {
    font-size: 1rem;
  }

  .rules-intro p {
    font-size: 1.1rem;
  }

  .tile {
    padding: 20px 16px;
  }
}

section#accommodations.hosts {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

section#accommodations.hosts .container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

section#accommodations.hosts .card {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

/* responsive adjustments */
@media (max-width: 900px) {
  .hosts .card {
    width: 100%;
  }
  
  .gallery-grid,
  .highlights-grid,
  .results-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .gallery-item img {
    height: 200px;
  }

  .highlight-item {
    aspect-ratio: 3/2;
  }
  
  /* events responsive */
  .events .grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1000px;
  }
}

@media (max-width: 600px) {
  .gallery-grid,
  .highlights-grid,
  .results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .gallery-categories h2 {
    font-size: 1.5rem;
    margin: 30px 0 16px;
  }

  .highlight-overlay {
    padding: 16px 12px 12px;
    font-size: 1rem;
  }
  
  /* events mobile */
  .events .grid {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 100%;
  }

  /* upcoming events mobile */
  .events-grid {
    gap: 24px;
  }

  .upcoming-events .card {
    padding: 24px 16px;
  }

  .event-title {
    font-size: 1.6rem;
  }

  .event-links {
    flex-direction: column;
    gap: 8px;
  }

  .event-links .btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
  }

  /* fall classic mobile */
  .info-section {
    padding: 20px 16px;
    margin-bottom: 24px;
  }

  .info-section h2 {
    font-size: 1.4rem;
  }

  .info-section h3 {
    font-size: 1.2rem;
  }

  .info-section p,
  .info-section li {
    font-size: 1rem;
  }

  .highlight {
    font-size: 1.1rem;
    padding: 12px 16px;
  }

  .schedule-day,
  .party-event {
    padding: 16px 12px;
  }

  /* accommodations mobile */
  .accommodation-card {
    padding: 24px 16px;
    gap: 20px;
  }
}
