/* Costa de la Luz — zand, zee, lucht */
:root {
  --sand: #f4ead8;
  --sand-deep: #e8dcc4;
  --sky: #c8e3ef;
  --sky-deep: #7eb8d2;
  --ink: #1c2a33;
  --muted: #5a6b75;
  --card: #fffef9;
  --accent: #2d6a7e;
  --accent-soft: #e4f2f6;
  --border: rgba(28, 42, 51, 0.12);
  --shadow: 0 8px 28px rgba(28, 42, 51, 0.08);
  --radius: 14px;
  --font: "Georgia", "Times New Roman", serif;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-height: 52px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: linear-gradient(180deg, var(--sand) 0%, var(--sand-deep) 40%, #fff 100%);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  outline: 2px solid var(--sky-deep);
}

.hero {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(255, 255, 255, 0.55), transparent),
    linear-gradient(165deg, var(--sky) 0%, var(--sky-deep) 45%, #4a8fa8 100%);
  color: #0f2329;
  padding: 2.5rem 1.25rem 3rem;
}

.hero__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font);
  font-size: clamp(2.25rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__date {
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
}

.hero__tz {
  font-size: 0.92em;
  font-weight: 500;
  color: rgba(15, 35, 41, 0.75);
}

.countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.countdown__unit {
  min-width: 4.5rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.countdown__value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.countdown__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 254, 249, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  min-height: var(--nav-height);
}

.site-nav__inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  justify-content: center;
}

.site-nav a {
  font-size: 0.82rem;
  color: var(--accent);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover {
  background: var(--accent-soft);
  border-color: var(--border);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--sky-deep);
  outline-offset: 2px;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.section {
  padding: 2.5rem 1.25rem;
}

.section--alt {
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__inner {
  max-width: 840px;
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--font);
  font-size: 1.75rem;
  color: #0f2329;
}

.section h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
  color: #1a3540;
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink);
}

.section ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.checklist {
  list-style: none;
  padding-left: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.75rem;
}

.countdown {
  margin-top: 0.5rem;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--sky-deep);
  border-radius: 50%;
}

.photo-gallery {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0.5rem;
}

@media (min-width: 640px) {
  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .photo-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

.photo-gallery__item {
  margin: 0;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.photo-gallery__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

@media (min-width: 640px) {
  .photo-gallery__item img {
    height: 220px;
  }
}

.photo-gallery__item figcaption {
  padding: 0.65rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.photo-gallery__item figcaption a {
  color: var(--accent);
  font-weight: 600;
}

.gallery-attribution {
  margin: 0 0 1.5rem;
}

.beach-grid {
  display: grid;
  gap: 0.85rem;
  margin: 1rem 0 1.5rem;
}

@media (min-width: 700px) {
  .beach-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.beach-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.beach-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #1a3540;
}

.beach-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

.food-hero-grid {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0 0.35rem;
}

@media (min-width: 700px) {
  .food-hero-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.food-hero-grid__item {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
}

.food-hero-grid__item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

@media (min-width: 700px) {
  .food-hero-grid__item img {
    height: 220px;
  }
}

.food-hero-grid__item figcaption {
  padding: 0.6rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.food-hero-grid__item figcaption a {
  color: var(--accent);
  font-weight: 600;
}

.venue-grid {
  display: grid;
  gap: 1rem;
  margin: 0.85rem 0 1.5rem;
}

@media (min-width: 720px) {
  .venue-grid:not(.venue-grid--narrow) {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 720px) {
  .venue-grid--narrow {
    grid-template-columns: repeat(2, 1fr);
  }
}

.venue-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

.venue-card h4 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  color: #1a3540;
}

.venue-card__meta {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}

.venue-card p:not(.venue-card__meta):not(.venue-card__reviews) {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

.venue-card__reviews {
  margin: 0 0 0.75rem !important;
}

.venue-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.venue-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent) !important;
  background: var(--accent-soft);
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid var(--border);
}

.venue-link:hover {
  text-decoration: none;
  filter: brightness(0.97);
}

.howto-box {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1.15rem;
  background: var(--accent-soft);
  border: 1px solid rgba(45, 106, 126, 0.28);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.howto-box__title {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #1a3540;
}

.howto-box__list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.howto-box__list li {
  margin-bottom: 0.45rem;
}

.route-detail {
  margin: 0 0 1.35rem;
  padding: 1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.route-detail h4 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: #1a3540;
}

.route-detail p {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}

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

.route-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.88rem !important;
  margin-top: 0.35rem !important;
}

.route-detail__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.komoot-card--inline {
  width: 100%;
  max-width: 28rem;
  min-height: unset;
}

.komoot-grid--single {
  margin-top: 0.65rem;
}

@media (min-width: 700px) {
  .komoot-grid--single {
    grid-template-columns: 1fr;
    max-width: 24rem;
  }
}

.card-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 640px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.card--highlight {
  border-color: rgba(45, 106, 126, 0.35);
  background: linear-gradient(145deg, #fffef9, var(--accent-soft));
}

.card h3 {
  margin-top: 0;
}

.link-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.link-list li {
  margin-bottom: 0.5rem;
}

.link-list a,
.card > a {
  color: var(--accent);
  font-weight: 600;
}

.link-list a:hover,
.card > a:hover {
  text-decoration: underline;
}

.link-list--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.btn {
  display: inline-block;
  padding: 0.55rem 1rem;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  filter: brightness(1.06);
  text-decoration: none;
}

.komoot-grid {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

@media (min-width: 700px) {
  .komoot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.komoot-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ff5c39 0%, #ff8a5c 100%);
  color: #fff !important;
  text-decoration: none;
  font-weight: 600;
  min-height: 5.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.komoot-card:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  text-decoration: none;
}

.komoot-card:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.komoot-card__title {
  font-size: 1rem;
  line-height: 1.35;
}

.komoot-card__meta {
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.95;
}

.weather-panel {
  margin: 1rem 0 1.5rem;
  padding: 1.25rem;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.weather-panel__loading {
  margin: 0;
  color: var(--muted);
}

.weather-panel__error {
  margin: 0;
  color: #a32;
  font-weight: 600;
}

.weather-current__line {
  margin: 0.35rem 0 0;
  font-size: 1.05rem;
}

.weather-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.weather-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.weather-table th,
.weather-table td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--border);
}

.weather-table th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
}

.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;
}

.footer {
  background: #0f2329;
  color: rgba(255, 255, 255, 0.88);
  padding: 1.75rem 1.25rem;
  font-size: 0.9rem;
}

.footer__inner {
  max-width: 720px;
  margin: 0 auto;
}

.footer code {
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.12);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

@media print {
  .site-nav,
  .countdown,
  .weather-panel,
  .skip-link {
    display: none !important;
  }

  .hero {
    background: none;
    color: #000;
    padding: 1rem 0;
  }

  body {
    background: #fff;
    font-size: 11pt;
  }
}
