:root {
  --color-bg: #f3d8bf;
  --color-bg-alt: #ecd0b2;
  --color-card: rgba(252, 247, 239, 0.92);
  --color-card-strong: rgba(252, 247, 239, 0.98);
  --color-clay: #c9774f;
  --color-olive: #24382f;
  --color-sea: #6db5aa;
  --color-sand: #f0c56c;
  --color-ink: #162018;
  --color-muted-ink: #687067;
  --color-accent: var(--color-clay);
  --color-accent-strong: var(--color-olive);
  --color-text: var(--color-ink);
  --color-muted: var(--color-muted-ink);
  --color-border: rgba(36, 56, 47, 0.12);
  --color-white: #fffdf8;
  --shadow-soft: 0 24px 66px rgba(24, 35, 28, 0.1);
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --container: 1180px;

  --schedule-summary-height: 9.0rem;
  --schedule-summary-font-size: 0.98rem;
  --schedule-summary-location-font-size: 0.92rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 16% 10%, rgba(109, 181, 170, 0.26) 0 8px, transparent 9px),
    radial-gradient(circle at 84% 10%, rgba(109, 181, 170, 0.26) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 0%, rgba(240, 197, 108, 0.54), transparent 38%),
    linear-gradient(180deg, #f6d4b1 0%, #f2ccab 36%, #f6e0c8 100%);
}

body.site-locked {
  overflow: hidden;
}

.site-shell {
  min-height: 100vh;
}

.site-locked .site-shell {
  display: none;
}

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.52), transparent 42%),
    linear-gradient(180deg, rgba(246, 214, 183, 0.96), rgba(246, 224, 200, 0.98));
}

.password-gate[hidden] {
  display: none !important;
}

.password-gate-card {
  width: min(560px, 100%);
  padding: clamp(1.5rem, 4vw, 2.3rem);
  display: grid;
  gap: 1.15rem;
  text-align: left;
}

.password-gate-card h1 {
  max-width: 11ch;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  line-height: 0.9;
}

.password-gate-copy {
  margin: 0;
  max-width: 36rem;
  color: var(--color-muted-ink);
  font-size: clamp(1rem, 1.2vw, 1.15rem);
}

.password-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.password-label {
  font-weight: 700;
  color: var(--color-olive);
}

.password-form input {
  background: rgba(255, 252, 245, 0.98);
  border-color: rgba(36, 56, 47, 0.18);
}

.password-submit {
  width: fit-content;
  min-width: 9rem;
}

.password-status {
  min-height: 1.35em;
  margin: 0;
  font-weight: 700;
}

.password-status.success {
  color: #2f6c48;
}

.password-status.error {
  color: #8f4b38;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(135deg, transparent 0 47.2%, rgba(109, 181, 170, 0.58) 47.2% 50%, transparent 50%),
    linear-gradient(225deg, transparent 0 47.2%, rgba(109, 181, 170, 0.58) 47.2% 50%, transparent 50%),
    linear-gradient(45deg, transparent 0 47.2%, rgba(109, 181, 170, 0.58) 47.2% 50%, transparent 50%),
    linear-gradient(315deg, transparent 0 47.2%, rgba(109, 181, 170, 0.58) 47.2% 50%, transparent 50%),
    linear-gradient(rgba(24, 35, 28, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 35, 28, 0.028) 1px, transparent 1px);
  background-size: 25rem 25rem, 25rem 25rem, 25rem 25rem, 25rem 25rem, 58px 58px, 58px 58px;
  background-position: top left, top right, bottom left, bottom right, center, center;
  opacity: 0.25;
  z-index: -1;
}

/* Ensure decorative pseudo-elements stay behind content */
.site-shell,
.container,
.card-panel,
.countdown-panel,
.rsvp-card,
.map-layout,
.hero-media,
main,
footer {
  position: relative;
  z-index: 2;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.inline-icon {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.container {
  width: min(var(--container), calc(100% - 2rem));
  margin-inline: auto;
}

.section {
  padding: 4.5rem 0;
}

.card-panel {
  background: rgba(252, 247, 239, 0.88);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 56, 47, 0.1);
  box-shadow: var(--shadow-soft);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(246, 214, 183, 0.8);
  border-bottom: 1px solid rgba(36, 56, 47, 0.08);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 84px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.15rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
}

.logo-mark {
  position: relative;
  width: 70px;
  height: 70px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-olive);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.logo-mark-image {
  width: 52px;
  height: 52px;
  object-fit: contain;
  object-position: center;
  display: block;
}

.logo-text {
  line-height: 1.04;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(0.85rem, 2vw, 1.8rem);
  font-weight: 600;
  color: var(--color-muted-ink);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--color-olive);
}

.btn {
  border-radius: 999px;
  padding: 0.78rem 1.25rem;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.btn-ghost {
  background: transparent;
  color: var(--color-olive);
  border-color: rgba(36, 56, 47, 0.18);
}

.btn-solid {
  background: linear-gradient(135deg, #24382f, #315044);
  color: var(--color-white);
  box-shadow: 0 18px 30px rgba(36, 56, 47, 0.14);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 2rem;
  align-items: center;
  position: relative;
}

.hero-grid::before {
  content: "";
  position: absolute;
  top: -1.4rem;
  right: 14%;
  width: 10rem;
  height: 10rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffcf45 0 42%, rgba(255, 207, 69, 0.15) 43% 100%);
  box-shadow: 0 0 0 0.6rem rgba(109, 181, 170, 0.25);
  pointer-events: none;
  z-index: -1;
}

.hero-grid::after {
  content: "";
  position: absolute;
  top: 0.9rem;
  right: 3%;
  width: 5rem;
  height: 5rem;
  background: conic-gradient(from 0deg, #c9774f 0 8deg, transparent 8deg 16deg, #c9774f 16deg 24deg, transparent 24deg 32deg, #c9774f 32deg 40deg, transparent 40deg 48deg, #c9774f 48deg 56deg, transparent 56deg 64deg, #c9774f 64deg 72deg, transparent 72deg 80deg, #c9774f 80deg 88deg, transparent 88deg 100%);
  filter: drop-shadow(0 10px 18px rgba(24, 35, 28, 0.1));
  pointer-events: none;
  z-index: -1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(3.35rem, 8vw, 7.8rem);
  line-height: 0.88;
  max-width: 8ch;
  margin: 0.2rem 0 1rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.4);
}

h2 {
  font-size: clamp(2.2rem, 4.4vw, 4.8rem);
  line-height: 0.96;
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  line-height: 1.04;
}

.eyebrow {
  margin: 0 0 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-clay);
}

.hero-subtitle,
.section-text,
.about-copy p,
.lineup-card p,
.tip-card p,
.rsvp-intro {
  font-size: clamp(1rem, 1.05vw, 1.12rem);
  color: var(--color-muted-ink);
}

.hero-copy {
  display: grid;
  gap: 1.15rem;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 1.7vw, 1.55rem);
  max-width: 32ch;
  margin: 0;
  color: var(--color-text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  padding-top: 0.7rem;
  color: var(--color-olive);
  font-weight: 700;
}

.hero-note span + span {
  position: relative;
  padding-left: 1rem;
}

.hero-note span + span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1px;
  height: 1rem;
  background: rgba(36, 56, 47, 0.22);
}

.hero-aside {
  display: grid;
  gap: 1.15rem;
}

.hero-media {
  margin: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(36, 56, 47, 0.1);
  position: relative;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border: 2px solid rgba(109, 181, 170, 0.52);
  border-radius: 22px;
  pointer-events: none;
  z-index: -1;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 5 / 6;
}

.hero-card {
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  display: grid;
  gap: 0.35rem;
  background: rgba(251, 244, 233, 0.98);
}

.card-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--color-clay);
}

.about-disclosure,
.countdown-panel,
.rsvp-card {
  padding: 2rem;
}

.about-disclosure,
.countdown-panel,
.rsvp-card,
.map-layout {
  position: relative;
  overflow: hidden;
}

.about-disclosure::before,
.countdown-panel::before,
.rsvp-card::before,
.map-layout::before {
  content: "";
  position: absolute;
  inset: 0.9rem;
  border: 1px solid rgba(109, 181, 170, 0.34);
  border-radius: calc(var(--radius-lg) - 10px);
  pointer-events: none;
  z-index: -1;
}

.about-disclosure summary {
  list-style: none;
  display: grid;
  gap: 0.4rem;
  cursor: pointer;
  padding-bottom: 0.75rem;
}

.about-disclosure summary::-webkit-details-marker {
  display: none;
}

.about-disclosure summary::after {
  content: "";
  width: 1rem;
  height: 1rem;
  justify-self: end;
  align-self: start;
  border-right: 2px solid var(--color-olive);
  border-bottom: 2px solid var(--color-olive);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-top: 0.2rem;
}

.about-disclosure[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 0.6rem;
}

.summary-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.8rem, 3.2vw, 3.3rem);
  line-height: 1;
  color: var(--color-text);
}

.about-copy {
  display: grid;
  gap: 1.15rem;
  padding-top: 0.5rem;
}

.section-heading {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.section-heading.compact {
  max-width: 42rem;
}

.section-heading.left-aligned {
  text-align: left;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
}

.countdown-item {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(247, 222, 178, 0.58);
  border: 1px solid rgba(36, 56, 47, 0.08);
  text-align: center;
  display: grid;
  gap: 0.45rem;
}

.countdown-value {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.2rem, 4vw, 4.2rem);
  line-height: 1;
  font-weight: 600;
  color: var(--color-olive);
  display: flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
  min-height: 1.2em;
}

.countdown-value-half {
  display: block;
  position: absolute;
  width: 100%;
  height: 50%;
  overflow: hidden;
  transform-style: preserve-3d;
  left: 0;
  line-height: 1;
}

.countdown-value-half.top {
  top: 0;
  transform-origin: center bottom;
}

.countdown-value-half.bottom {
  bottom: 0;
  transform-origin: center top;
}

.countdown-label {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-muted-ink);
}

@keyframes flip-up {
  0% {
    opacity: 1;
    transform: rotateX(0deg);
  }
  50% {
    opacity: 0;
    transform: rotateX(90deg) translateY(10px);
  }
  51% {
    opacity: 0;
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg) translateY(0);
  }
}

@keyframes split-flap-top {
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  51% {
    opacity: 0;
    transform: rotateX(-90deg);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

@keyframes split-flap-bottom {
  0% {
    transform: rotateX(0deg);
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
  51% {
    opacity: 0;
    transform: rotateX(90deg);
  }
  100% {
    opacity: 1;
    transform: rotateX(0deg);
  }
}

/* Schedule Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInStagger {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.schedule-day {
  animation: fadeInUp 0.6s ease-out;
}

.schedule-day.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

.schedule-event {
  animation: fadeInStagger 0.5s ease-out both;
}

.schedule-day:nth-child(1) .schedule-event:nth-child(1) {
  animation-delay: 0.1s;
}

.schedule-day:nth-child(1) .schedule-event:nth-child(2) {
  animation-delay: 0.2s;
}

.schedule-day:nth-child(2) .schedule-event:nth-child(1) {
  animation-delay: 0.3s;
}

.schedule-day:nth-child(2) .schedule-event:nth-child(2) {
  animation-delay: 0.4s;
}

.schedule-day:nth-child(2) .schedule-event:nth-child(3) {
  animation-delay: 0.5s;
}

.schedule-day:nth-child(3) .schedule-event:nth-child(1) {
  animation-delay: 0.6s;
}

/* Per-digit split-flap styles */
.digit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 1.2ch;
  height: 1.1em;
  margin: 0 0.12ch;
  overflow: hidden;
}

.digit .top {
  display: block;
  width: 100%;
  text-align: center;
  transform-origin: center bottom;
}

.digit.flip .top {
  animation: split-flap-top 0.45s ease-in-out forwards;
}

/* Backwards-compatibility: keep original container-level flip no-op */
.countdown-value.flip { animation: none; }

.lineup-grid,
.schedule-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.schedule-container {
  grid-template-columns: 1fr;
}

.lineup-card,
.tip-card,
.attendance-card {
  background: rgba(251, 246, 238, 0.95);
  border: 1px solid rgba(36, 56, 47, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 14px 30px rgba(22, 33, 26, 0.05);
}

.lineup-card {
  padding: 1.05rem;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  min-height: 100%;
  position: relative;
}

.lineup-card::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.8rem;
  height: 0.35rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-sea), var(--color-sand), var(--color-clay));
  opacity: 0.8;
}

.lineup-media {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  aspect-ratio: 4 / 5;
  background: rgba(36, 56, 47, 0.08);
}

.lineup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lineup-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lineup-day {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-clay);
}

.lineup-icons {
  display: inline-flex;
  gap: 0.45rem;
  color: var(--color-olive);
}

.lineup-time {
  margin: 0;
  font-weight: 700;
  color: var(--color-olive);
}

.lineup-place,
.lineup-card p {
  margin: 0;
}

.lineup-card h3 {
  margin-top: 0.05rem;
}

.lineup-card p:last-child {
  color: var(--color-clay);
  font-weight: 700;
}

.map-layout {
  padding: 1.2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.1rem;
}

.map-column {
  display: grid;
  gap: 1.15rem;
}

#wedfest-map {
  height: min(66vh, 700px);
  border-radius: 22px;
  border: 1px solid rgba(36, 56, 47, 0.1);
  overflow: hidden;
}

.map-legend {
  background: rgba(255, 249, 241, 0.97);
  border: 1px solid rgba(36, 56, 47, 0.1);
  border-radius: 14px;
  padding: 0.95rem;
  box-shadow: var(--shadow-soft);
  color: var(--color-text);
  font: 600 0.9rem/1.3 "DM Sans", sans-serif;
}

.map-legend-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--color-olive);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.map-legend-item {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  padding: 0.34rem 0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.map-legend-item:hover {
  transform: translateX(4px);
  color: var(--color-clay);
}

.map-legend-item + .map-legend-item {
  margin-top: 0.4rem;
}

.map-legend-text {
  flex: 1;
}

.map-legend-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.map-legend-item:hover .map-legend-dot {
  transform: scale(1.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.map-legend-note {
  margin: 0.6rem 0 0;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(36, 56, 47, 0.1);
  font-size: 0.8rem;
  color: var(--color-muted-ink);
  font-style: italic;
}

.map-legend-item-inactive {
  opacity: 0.4;
  color: var(--color-muted-ink);
}

.map-legend-item-inactive .map-legend-dot {
  opacity: 0.4;
}

.map-legend-item-inactive:hover {
  opacity: 0.6;
  color: var(--color-clay);
}

.map-popup {
  display: grid;
  gap: 0.4rem;
  min-width: 190px;
}

.map-popup strong {
  font-size: 1rem;
  color: var(--color-olive);
}

.map-popup span {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-clay);
}

.map-popup p {
  margin: 0;
  color: var(--color-muted-ink);
  font-size: 0.92rem;
}

.map-popup a {
  font-weight: 700;
  color: var(--color-olive);
}

.tips-column {
  display: grid;
  gap: 1.15rem;
}

.tip-card {
  padding: 1.2rem;
}

.tip-card h3 {
  margin-bottom: 0.45rem;
}

.tip-card-image {
  margin: 1rem 0 0;
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(36, 56, 47, 0.1);
  box-shadow: 0 12px 24px rgba(22, 33, 26, 0.08);
}

.tip-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tip-quote {
  display: grid;
  align-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 600;
  color: var(--color-olive);
  background: linear-gradient(135deg, rgba(36, 56, 47, 0.07), rgba(109, 181, 170, 0.08), rgba(201, 119, 79, 0.08));
}

.tip-quote p {
  margin: 0;
  font-size: inherit;
  color: inherit;
}

.rsvp-intro {
  max-width: 52rem;
  margin: 0 0 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-bottom: 1rem;
}

.form-grid-spaced {
  margin-top: 1rem;
}

.form-grid label,
.attendance-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-weight: 700;
}

.attendance-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin: 1rem 0;
}

.attendance-card {
  padding: 1rem;
  min-height: 100%;
}

.checkbox-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.checkbox-card span {
  flex: 1;
}

.checkbox-card input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--color-olive);
}

.full-width {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(36, 56, 47, 0.14);
  background: rgba(255, 252, 245, 0.97);
  padding: 0.8rem 0.9rem;
  color: var(--color-text);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(109, 181, 170, 0.24);
  outline-offset: 2px;
  border-color: rgba(109, 181, 170, 0.44);
}

.form-actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

#form-status {
  margin: 0;
  font-weight: 700;
}

#form-status.success {
  color: #2f6c48;
}

#form-status.error {
  color: #8f4b38;
}

.map-locate-control {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.map-locate-button {
  border: 0;
  border-radius: 999px;
  background: rgba(255, 252, 245, 0.98);
  color: var(--color-olive);
  font: 700 0.82rem/1 "DM Sans", sans-serif;
  padding: 0.78rem 0.95rem;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.map-locate-button:disabled {
  opacity: 0.7;
  cursor: progress;
}

.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  background: rgba(255, 252, 245, 0.98);
  color: var(--color-text);
}

.leaflet-popup-content {
  margin: 0.95rem 1rem;
  font: 400 0.95rem/1.45 "DM Sans", sans-serif;
}

.site-footer {
  margin-top: 3rem;
  padding: 2.4rem 0 3rem;
  border-top: 1px solid rgba(36, 56, 47, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1fr;
  gap: 1.2rem;
}

.footer-contact {
  margin: 0.5rem 0 0;
  font-weight: 600;
  display: grid;
  gap: 0.15rem;
}

.footer-contact a {
  font-weight: 700;
  color: var(--color-olive);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-decoration-color: rgba(36, 56, 47, 0.4);
}

.footer-grid h4 {
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  margin-bottom: 0.5rem;
}

.footer-grid p {
  margin: 0.14rem 0;
  color: var(--color-muted-ink);
}

.footer-legal {
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .map-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .lineup-grid,
  .attendance-grid {
    grid-template-columns: 1fr;
  }

  .hero-aside {
    max-width: 32rem;
  }

  .footer-legal {
    text-align: left;
  }

  .schedule-card-media {
    width: 100%;
    margin: 0;
    aspect-ratio: 1.4 / 1;
  }
}

@media (max-width: 640px) {
   .container {
    width: min(var(--container), calc(100% - 1.2rem));
  }

  .section {
    padding: 3.2rem 0;
  }

  .nav-wrap {
    grid-template-columns: 1fr;
    justify-items: start;
    padding: 0.8rem 0;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 0.7rem 0.95rem;
  }

  .hero-grid {
    gap: 1.2rem;
  }

  .hero-grid::before,
  .hero-grid::after {
    content: none;
  }

  h1 {
    max-width: 100%;
  }

  .countdown-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .carousel-wrapper {
    margin: 1.4rem 0 3rem;
    padding: 0;
  }

  .carousel-container {
    height: 1550px;
    padding: 0.8rem 0 1rem;
    perspective: 900px;
  }

  .carousel-track {
    transform: translateX(-50%) translateY(-50%);
  }

  .carousel-item {
    padding: 0.45rem;
    opacity: 0.22;
    transform: translateZ(-140px) scale(0.56);
  }

  .carousel-item .schedule-day {
    width: min(94vw, 540px);
    max-width: none;
    height: auto;
    min-height: 100%;
  }

  .carousel-item.active {
    transform: translateX(0) translateZ(18px) scale(0.94);
    opacity: 1;
  }

  .carousel-item.left {
    transform: translateX(-34vw) translateZ(-170px) scale(0.56) rotateY(8deg);
    opacity: 0.72;
  }

  .carousel-item.right {
    transform: translateX(34vw) translateZ(-170px) scale(0.56) rotateY(-8deg);
    opacity: 0.72;
  }

  .carousel-nav {
    bottom: -54px;
  }

  .schedule-card-shell {
    min-height: 100%;
    padding: 0.82rem 0.88rem;
    gap: 0.52rem;
  }

  .schedule-card-header {
    gap: 0.5rem;
  }

  .schedule-day-title {
    gap: 0.25rem;
  }

  .schedule-day-heading h3 {
    font-size: clamp(1.02rem, 4.6vw, 1.28rem);
  }

  .schedule-day-date {
    font-size: 0.72rem;
    padding: 0.14rem 0.5rem;
  }

  .schedule-day-emoji {
    font-size: 1.35rem;
  }

  .schedule-card-summary {
    padding: 0.48rem 0.58rem;
  }

  .schedule-summary-line {
    font-size: 0.76rem;
  }

  .schedule-summary-highlights {
    font-size: 0.79rem;
  }

  .schedule-card-hero {
    padding: 0.14rem;
  }

  .schedule-media {
    aspect-ratio: 16 / 9;
  }

  .schedule-card-body {
    gap: 0.55rem;
    overflow: visible;
  }

  .schedule-events {
    gap: 0.55rem;
  }

  .schedule-events-two-columns {
    grid-template-columns: 1fr;
  }

  .schedule-event {
    padding: 0.45rem 0.52rem;
  }

  .schedule-event-label {
    font-size: 0.8rem;
  }

  .schedule-time,
  .schedule-location {
    font-size: 0.83rem;
  }

  .schedule-activities {
    font-size: 0.8rem;
  }

  .schedule-dressCode,
  .schedule-transport {
    padding: 0.48rem 0.58rem;
  }

  .schedule-description {
    font-size: 0.96rem;
    line-height: 1.35;
  }

  .carousel-wrapper {
    width: 100%;
    margin: 1rem 0 0;
    left: auto;
    right: auto;
    transform: none;
    padding: 0;
  }

  .carousel-container {
    height: auto;
    min-height: 0;
    overflow: visible;
    perspective: none;
    padding: 0;
    background: transparent;
  }

  .carousel-track {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    display: grid;
    gap: 1.15rem;
    height: auto;
    transform-style: flat;
  }

  .carousel-item {
    position: static;
    opacity: 1;
    transform: none;
    padding: 0;
  }

  .carousel-item.active,
  .carousel-item.left,
  .carousel-item.right {
    opacity: 1;
    transform: none;
    z-index: auto;
  }

  .carousel-item .schedule-day {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
  }

  .carousel-nav {
    display: none;
  }

  .schedule-card-shell {
    height: auto;
  }

  .map-legend {
    padding: 0.32rem 0.4rem;
    max-width: 116px;
    font-size: 0.58rem;
    border-radius: 8px;
  }

  .map-legend-title {
    font-size: 0.62rem;
    margin-bottom: 0.16rem;
    letter-spacing: 0.04em;
  }

  .map-legend-item {
    gap: 0.28rem;
    padding: 0.08rem 0;
  }

  .map-legend-dot {
    width: 8px;
    height: 8px;
  }

  .map-legend-text {
    line-height: 1.05;
  }

  .map-legend-note {
    display: none;
  }

  .map-locate-button {
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 1rem;
  }

  .about-disclosure,
  .countdown-panel,
  .rsvp-card,
  .map-layout {
    padding: 1.1rem;
  }

  #wedfest-map {
    height: 380px;
  }

  .hero-media img {
    aspect-ratio: 4 / 5;
  }

  .hero-note {
    gap: 0.45rem;
  }

  .hero-note span + span {
    padding-left: 0;
  }

  .hero-note span + span::before {
    display: none;
  }
}

/* Map Markers & Animations */
.map-marker-wrapper {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.map-marker {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.9);
  color: white;
  font-weight: 700;
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), 
              box-shadow 0.3s ease, 
              filter 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.map-marker:hover,
.map-marker:focus-visible {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18), 
              0 0 0 5px rgba(255, 255, 255, 0.3);
  filter: brightness(1.1);
}

.map-marker-icon {
  display: none;
}

/* Schedule/Timeline Styles */
.schedule-filters {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.schedule-filter-btn {
  padding: 0.6rem 1.2rem;
  border: 2px solid rgba(36, 56, 47, 0.2);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: capitalize;
}

.schedule-filter-btn:hover {
  border-color: var(--color-sea);
  background: rgba(109, 181, 170, 0.1);
  color: var(--color-sea);
}

.schedule-filter-btn.active {
  background: linear-gradient(135deg, var(--color-sea), var(--color-olive));
  color: white;
  border-color: var(--color-sea);
}

.schedule-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.6rem;
}

.schedule-day {
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  position: relative;
  height: 100%;
  display: flex;
}

.schedule-day.hidden {
  display: none;
}

.schedule-day::before {
  content: none;
}

.schedule-card-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.75rem 0.9rem 1rem;
  border-radius: 28px;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.9), rgba(251, 246, 238, 0.85)) border-box;
  border: 3px solid rgba(162, 107, 78, 0.55);
  box-shadow: 0 20px 46px rgba(22, 33, 26, 0.18), inset 0 0 0 2px rgba(255, 255, 255, 0.5);
  overflow: visible;
}

.schedule-card-shell::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 22px;
  border: 1px dashed rgba(162, 107, 78, 0.4);
  pointer-events: none;
}

.schedule-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(36, 56, 47, 0.15);
}

.schedule-day-title {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.schedule-day-heading {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.schedule-day-heading h3 {
  margin: 0;
  font-size: clamp(1.3rem, 2.35vw, 1.65rem);
  line-height: 1.08;
  color: var(--color-olive);
}

.schedule-day-emoji {
  font-size: 1.8rem;
  line-height: 1;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

.schedule-day-date {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-clay);
  background: rgba(201, 119, 79, 0.12);
  border-radius: 999px;
  padding: 0.22rem 0.7rem;
  width: fit-content;
}

.schedule-card-icons {
  display: flex;
  gap: 0.22rem;
  flex-wrap: wrap;
  color: var(--color-sea);
}

.schedule-card-icons .inline-icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}

.schedule-card-summary {
  border: 1px solid rgba(162, 107, 78, 0.28);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  height: var(--schedule-summary-height);
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 10px 20px rgba(22, 33, 26, 0.08);
}

.schedule-summary-line {
  margin: 0;
  font-weight: 800;
  color: var(--color-olive);
  font-size: var(--schedule-summary-font-size);
  letter-spacing: 0.035em;
  line-height: 1.25;
  text-transform: uppercase;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.schedule-summary-line--location {
  margin-top: 0.7rem;
  border-top: 1px solid rgba(36, 56, 47, 0.14);
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-summary-location {
  font-weight: 600;
  color: var(--color-clay);
  font-size: var(--schedule-summary-location-font-size);
  line-height: 1.15;
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-align: center;
}

.schedule-summary-highlights {
  margin: 0;
  font-size: 0.96rem;
  color: var(--color-text);
  font-weight: 500;
}

.schedule-summary-top {
  display: grid;
  gap: 0.55rem;
}

.schedule-card-media {
  width: 100%;
  border-radius: 26px;
  aspect-ratio: 1.618 / 1;
  background: rgba(36, 56, 47, 0.08);
  overflow: hidden;
  box-shadow: 0 18px 32px rgba(22, 33, 26, 0.15);
}

.schedule-media {
  margin: 0;
  width: 100%;
  height: 100%;
}

.schedule-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.schedule-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
  overflow: visible;
}

.schedule-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
  padding-top: 0.4rem;
  border-top: 1px dashed rgba(36, 56, 47, 0.12);
}

.schedule-day--spotlight .schedule-card-shell {
  border-color: rgba(240, 197, 108, 0.8);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.9), rgba(251, 247, 239, 0.85)) padding-box,
    linear-gradient(135deg, rgba(109, 181, 170, 0.32), rgba(240, 197, 108, 0.32)) border-box;
  box-shadow:
    0 32px 60px rgba(22, 33, 26, 0.22),
    inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}

.schedule-day--spotlight .schedule-card-shell::after {
  border-color: rgba(240, 197, 108, 0.45);
}

.schedule-events {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.schedule-event {
  padding: 0.6rem 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(36, 56, 47, 0.08);
  border-radius: 14px;
  border-left: 5px solid var(--color-sea);
  box-shadow: 0 10px 20px rgba(22, 33, 26, 0.08);
  display: grid;
  gap: 0.28rem;
  backdrop-filter: blur(6px);
}

.schedule-event-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-clay);
}

.schedule-event-activities,
.schedule-event-special {
  margin: 0;
  font-size: 0.96rem;
  color: var(--color-text);
}

.schedule-event-info {
  display: grid;
  gap: 0.2rem;
}

.schedule-time,
.schedule-location {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  font-weight: 600;
  color: var(--color-olive);
  font-size: 0.9rem;
}

.schedule-icon {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  width: 1.05rem;
  text-align: center;
}

.schedule-time-value,
.schedule-location-value {
  color: var(--color-text);
}

.schedule-activities {
  margin: 0.1rem 0 0 0;
  padding-left: 1.15rem;
  color: var(--color-muted-ink);
  font-size: 0.96rem;
  line-height: 1.25;
}

.schedule-dressCode {
  padding: 0.48rem 0.58rem;
  background: rgba(109, 181, 170, 0.08);
  border: 1px solid rgba(109, 181, 170, 0.2);
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  font-size: 0.98rem;
}

.schedule-dressCode strong {
  color: var(--color-sea);
}

.schedule-transport {
  padding: 0.48rem 0.58rem;
  background: rgba(240, 197, 108, 0.08);
  border: 1px solid rgba(240, 197, 108, 0.2);
  border-radius: 10px;
  display: grid;
  gap: 0.45rem;
}

.schedule-transport-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--color-olive);
}

.schedule-transport-schedule {
  display: grid;
  gap: 0.22rem;
}

.transport-leg {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.98rem;
  color: var(--color-text);
}

.transport-time {
  font-weight: 700;
  color: var(--color-clay);
  min-width: 60px;
}

.transport-arrow {
  color: var(--color-sea);
  font-weight: bold;
}

.transport-route {
  flex: 1;
}

.transport-to {
  color: var(--color-muted-ink);
  font-size: 0.8rem;
  font-weight: normal;
}

.schedule-description {
  margin: 0;
  padding-top: 0.28rem;
  border-top: 1px solid rgba(36, 56, 47, 0.08);
  color: var(--color-muted-ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

/* Desktop schedule columns */
.carousel-wrapper {
  position: relative;
  width: min(1280px, calc(100vw - 1rem));
  margin: 2.6rem auto 3.2rem;
  padding: 0 clamp(0.6rem, 2vw, 1.5rem);
  box-sizing: border-box;
  overflow: visible;
}

.carousel-container {
  width: 100%;
  position: relative;
  overflow: visible;
  padding: 0;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(109, 181, 170, 0.04), rgba(240, 197, 108, 0.06));
  margin-inline: auto;
}

.carousel-track {
  position: relative;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.1rem, 2vw, 1.9rem);
  align-items: stretch;
  justify-items: stretch;
  justify-content: center;
  padding: 1.4rem 0 3rem;
  margin-inline: auto;
}

.carousel-track::before {
  content: "";
  position: absolute;
  left: clamp(0.5rem, 2vw, 1.3rem);
  right: clamp(0.5rem, 2vw, 1.3rem);
  top: calc(50% + 0.4rem);
  height: 2px;
  background: linear-gradient(90deg, rgba(109, 181, 170, 0), rgba(109, 181, 170, 0.75), rgba(240, 197, 108, 0.85), rgba(109, 181, 170, 0));
  z-index: 0;
  pointer-events: none;
}

.carousel-item {
  position: relative;
  min-width: 0;
  transition: transform 0.28s ease, box-shadow 0.28s ease, filter 0.28s ease;
  opacity: 1;
  transform: none;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
  cursor: pointer;
  z-index: 1;
}

.carousel-item::after {
  content: "";
  position: absolute;
  bottom: -1.2rem;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sea), var(--color-sand));
  transform: translateX(-50%);
  box-shadow: 0 8px 18px rgba(22, 33, 26, 0.18);
}

.carousel-item .schedule-day {
  width: 100%;
  max-width: none;
  height: 100%;
}

.carousel-item:hover,
.carousel-item:focus-visible {
  transform: translateY(-0.55rem) scale(1.02);
  z-index: 2;
  filter: saturate(1.05);
  outline: none;
  box-shadow: 0 32px 50px rgba(22, 33, 26, 0.2);
}

.carousel-nav {
  display: none;
}

@media (max-width: 1280px) {
  .carousel-track {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(280px, 75vw);
    overflow-x: auto;
    padding-bottom: 3.5rem;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    margin-inline: 0;
  }

  .carousel-track::before {
    display: none;
  }

  .carousel-item {
    scroll-snap-align: start;
  }

  .carousel-track::-webkit-scrollbar {
    display: none;
  }
}

body.mobile-schedule-mode .carousel-wrapper {
  width: 100%;
  margin: 1.2rem 0 0;
  padding: 0 0.25rem;
}

body.mobile-schedule-mode .carousel-container {
  background: transparent;
}

body.mobile-schedule-mode .carousel-track {
  grid-template-columns: none;
  grid-auto-columns: minmax(260px, 82vw);
  scroll-snap-type: x proximity;
  overflow-x: auto;
}

body.mobile-schedule-mode .carousel-track::before {
  display: none;
}

body.mobile-schedule-mode .carousel-item {
  scroll-snap-align: start;
}

body.mobile-schedule-mode .carousel-track::-webkit-scrollbar {
  display: none;
}

/* About Section - Festival Vibe */
.about-header {
  text-align: center;
  margin-bottom: 3rem;
}

.about-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.5rem;
  color: var(--color-olive);
  position: relative;
  display: inline-block;
}

.about-header h2::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-sea), var(--color-sand), var(--color-clay));
  border-radius: 999px;
}

.about-tagline {
  margin: 1.5rem 0 0;
  font-size: 1.2rem;
  color: var(--color-clay);
  font-weight: 600;
  font-style: italic;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
  margin-bottom: 3rem;
}

.about-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.about-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-sea), var(--color-sand), var(--color-clay));
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(22, 33, 26, 0.15);
  border-color: rgba(22, 33, 26, 0.2);
}

.about-card-1,
.about-card-4 {
  background: linear-gradient(135deg, rgba(95, 168, 159, 0.12), rgba(95, 168, 159, 0.06));
  border-color: rgba(95, 168, 159, 0.2);
}

.about-card-2,
.about-card-5 {
  background: linear-gradient(135deg, rgba(249, 214, 82, 0.15), rgba(249, 214, 82, 0.08));
  border-color: rgba(249, 214, 82, 0.3);
}

.about-card-3,
.about-card-6 {
  background: linear-gradient(135deg, rgba(212, 121, 77, 0.12), rgba(212, 121, 77, 0.06));
  border-color: rgba(212, 121, 77, 0.2);
}

.about-card-icon {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  display: inline-block;
  animation: float 3s ease-in-out infinite;
}

.about-card-icon img {
  width: 3.5rem;
  height: 3.5rem;
  object-fit: contain;
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.about-card h3 {
  margin: 1rem 0 0.5rem;
  font-size: 1.4rem;
  color: var(--color-olive);
}

.about-card-main {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text);
}

.about-card-meta {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  color: var(--color-muted-ink);
  line-height: 1.5;
}

.about-cta {
  width: min(920px, 100%);
  margin: 1.25rem auto 0;
  text-align: center;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  background: linear-gradient(135deg, rgba(95, 168, 159, 0.12), rgba(249, 214, 82, 0.1), rgba(212, 121, 77, 0.12));
  border-radius: var(--radius-lg);
  border: 2px solid rgba(36, 56, 47, 0.14);
  border-left: 5px solid var(--color-clay);
  box-shadow: 0 16px 34px rgba(22, 33, 26, 0.08);
}

.about-cta p {
  margin: 0;
  font-size: 1.45rem;
  color: var(--color-olive);
  font-weight: 700;
  line-height: 1.7;
}

/* Schedule responsive adjustments */
@media (max-width: 1024px) {
  .schedule-card-shell {
    padding: 1.2rem 1.3rem;
  }
  
  .schedule-card-hero {
    padding: 0.6rem;
  }
  
  .schedule-day-heading h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .schedule-card-header {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .schedule-day-title {
    width: 100%;
    justify-content: space-between;
  }
  
  .schedule-card-shell {
    padding: 1.1rem;
  }
  
  .schedule-card-hero {
    padding: 0.5rem;
  }
}

@media (max-width: 640px) {
  .schedule-card-shell {
    padding: 1rem;
    border-radius: 22px;
  }
  
  .schedule-card-icons {
    gap: 0.25rem;
  }
  
  .schedule-card-hero {
    border-radius: 16px;
  }
  
  .schedule-media {
    aspect-ratio: 1 / 1;
  }
  
  .schedule-event {
    padding: 0.9rem;
  }

  .schedule-events-two-columns {
    grid-template-columns: 1fr;
  }
  
  .transport-leg {
    flex-wrap: wrap;
  }
}

/* Ultra-small screens */
@media (max-width: 360px) {
  .schedule-card-shell {
    padding: 0.85rem;
  }
  
  .schedule-day-heading h3 {
    font-size: 1.05rem;
  }
  
  .schedule-day-date {
    font-size: 0.7rem;
    letter-spacing: 0.18em;
  }
  
  .schedule-event {
    padding: 0.75rem;
    border-left-width: 3px;
  }
}

/* Desktop schedule columns responsive adjustments */
@media (max-width: 1024px) {
  .carousel-wrapper {
    padding: 0 0.5rem;
  }
  
  .carousel-container {
    padding: 0;
  }

  .carousel-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .about-card-icon {
    font-size: 3rem;
  }

  .about-card-icon img {
    width: 3rem;
    height: 3rem;
  }
  
  .about-header h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
  }
}

@media (max-width: 640px) {
  .carousel-wrapper {
    width: 100%;
    left: 0;
    right: auto;
    transform: none;
    padding: 0;
  }
  
  .carousel-container {
    height: auto;
    padding: 0;
  }

  .carousel-track {
    grid-template-columns: 1fr;
  }
  
  .carousel-item:hover,
  .carousel-item:focus-visible {
    transform: translateY(-0.35rem) scale(1.015);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .about-card {
    padding: 1.5rem 1.2rem;
  }
  
  .about-card-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
  }

  .about-card-icon img {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .about-card h3 {
    font-size: 1.2rem;
    margin: 0.8rem 0 0.4rem;
  }
  
  .about-card-main {
    font-size: 1rem;
  }
  
  .about-card-meta {
    font-size: 0.85rem;
  }
  
  .about-cta {
    padding: 1.35rem;
    margin-top: 1.5rem;
  }
  
  .about-cta p {
    font-size: 1.25rem;
  }
  
  .about-header h2 {
    font-size: 1.8rem;
  }
}

@keyframes marker-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.05);
  }
}

.map-marker-iglesia .map-marker-icon {
  animation: marker-pulse-iglesia 1.8s ease-in-out infinite;
}

@keyframes marker-pulse-iglesia {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 0px rgba(255, 112, 67, 0.6));
  }
  50% {
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(255, 112, 67, 0.8));
  }
}

.map-marker-evento .map-marker-icon {
  animation: marker-pulse-evento 1.8s ease-in-out infinite;
}

@keyframes marker-pulse-evento {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 0px rgba(255, 138, 128, 0.6));
  }
  50% {
    opacity: 0.9;
    filter: drop-shadow(0 0 8px rgba(255, 138, 128, 0.8));
  }
}

.map-popup-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-top: 0.25rem;
}

.map-popup a {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  background: rgba(36, 56, 47, 0.08);
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.map-popup a:hover {
  background: rgba(36, 56, 47, 0.15);
  transform: translateX(2px);
}

/* Enhanced Leaflet Popup Animations */
.leaflet-popup {
  animation: popup-fade-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popup-fade-in {
  from {
    opacity: 0;
    transform: scale(0.85) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.leaflet-popup-content-wrapper {
  animation: popup-content-fade 0.4s ease 0.1s both;
}

@keyframes popup-content-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Improved Animations for Cards & Elements */
.countdown-item {
  animation: fade-in-up 0.6s ease backwards;
}

.countdown-item:nth-child(1) { animation-delay: 0.1s; }
.countdown-item:nth-child(2) { animation-delay: 0.2s; }
.countdown-item:nth-child(3) { animation-delay: 0.3s; }
.countdown-item:nth-child(4) { animation-delay: 0.4s; }

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lineup-card {
  animation: card-appear 0.6s ease backwards;
}

.lineup-card:nth-child(1) { animation-delay: 0.15s; }
.lineup-card:nth-child(2) { animation-delay: 0.3s; }
.lineup-card:nth-child(3) { animation-delay: 0.45s; }

@keyframes card-appear {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.lineup-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(22, 33, 26, 0.12) !important;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Smooth transitions for form elements */
input:focus,
select:focus,
textarea:focus {
  transform: scale(1.02);
}

.btn {
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.3ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.03ms !important;
    scroll-behavior: auto !important;
  }

  .map-marker-icon {
    animation: none;
  }

  .reveal,
  .lineup-card,
  .countdown-item {
    opacity: 1;
    transform: none;
  }

  .btn::before {
    display: none;
  }
}



.lineup-transport {
  margin-top: 2.6rem;
}

.lineup-transport-card {
  padding: clamp(1.5rem, 3vw, 2.6rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(251, 246, 238, 0.85));
}

.lineup-transport-heading h3 {
  margin: 0.35rem 0 0.9rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.lineup-transport-note {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  color: var(--color-muted-ink);
}

.schedule-transport--standalone {
  margin-top: 0.5rem;
}

.transport-point {
  font-weight: 700;
  color: var(--color-text);
}
