/* BuggIN Madeira – design inspired by madtoursadventure.pt */
:root {
  --color-bg: #1a2520;
  --color-surface: #232f2a;
  --color-primary: #2d8a5e;
  --color-primary-hover: #3aa870;
  --color-accent: #237050;
  --color-text: #e8edea;
  --color-text-muted: #9ba89f;
  --color-border: #2a3530;
  /* Áreas claras */
  --color-bg-light: #eef4f1;
  --color-surface-light: #e2ebe6;
  --color-text-dark: #1a2320;
  --color-text-muted-dark: #4a5c56;
  --color-border-light: #c5d2cc;
  --font-heading: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-body: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --container: min(1200px, 94vw);
  --section-padding-x: clamp(1.5rem, 4vw, 3rem);
  --header-h: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

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

a:hover {
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

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

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: rgba(13, 20, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.95;
}

.logo img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2)) brightness(1.12) contrast(1.05);
}

.logo:hover img {
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.3)) brightness(1.2) contrast(1.05);
}

@media (max-width: 600px) {
  .logo img {
    height: 48px;
    max-width: 170px;
  }
}

.nav ul {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a {
  color: var(--color-text-muted);
  font-weight: 500;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-toggle {
  padding: 0.4rem 0.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--color-text);
  border-color: var(--color-primary);
}

.nav-toggle {
  display: none;
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ba89f'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/contain no-repeat;
  border: none;
  cursor: pointer;
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-toggle {
    display: block;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 2rem) var(--section-padding-x) 4rem;
  overflow: hidden;
}

/* Hero slider */
.hero--slider .hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background: var(--slide-bg) center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  width: 100%;
  height: 100%;
}

.hero-slide:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero-slide--active {
  opacity: 1;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(13,20,18,0.75) 0%, rgba(13,20,18,0.5) 50%, rgba(13,20,18,0.85) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1rem;
  color: #fff;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

.hero-slider-dots {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, border-color 0.25s;
}

.hero-dot:hover {
  border-color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.3);
}

.hero-dot--active,
.hero-dot[aria-current="true"] {
  background: #fff;
  border-color: #fff;
}

.scroll-hint {
  position: absolute;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 2px solid var(--color-text-muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  animation: bounce 2s ease-in-out infinite;
}

.scroll-hint span {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: 3px;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* Sections common */
section {
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: #fff;
  text-align: center;
}

.section-lead,
.section-note {
  color: var(--color-text-muted);
  margin: 0 auto 2rem;
  max-width: 60ch;
  text-align: center;
}

/* Intercalação: secções claras e escuras */

/* CLARAS: gallery, about, tour, contact */
.gallery,
.about,
.tour,
.contact {
  background: var(--color-bg-light);
  color: var(--color-text-dark);
}

.gallery .section-title,
.about .section-title,
.tour .section-title,
.contact .section-title {
  color: var(--color-text-dark);
}

.gallery .section-lead,
.about .section-lead,
.about .about-content p,
.about .about-extra p,
.tour .section-lead,
.tour .tour-detail p,
.tour .tour-intro,
.tour .tour-notice p,
.contact .section-lead,
.contact .section-note {
  color: var(--color-text-muted-dark);
}

.about .about-experience {
  color: var(--color-primary);
}

.tour .tour-name {
  color: var(--color-primary);
}

.tour .tour-notice {
  background: rgba(45, 138, 94, 0.12);
  border-color: var(--color-primary);
}

.gallery .gallery-placeholder {
  background: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  color: var(--color-text-muted-dark);
}

.about .about-img .gallery-placeholder {
  background: var(--color-surface-light);
  border-color: var(--color-border-light);
  color: var(--color-text-muted-dark);
}

.contact-form input,
.contact-form textarea {
  background: #fff;
  border-color: var(--color-border-light);
  color: var(--color-text-dark);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted-dark);
}

/* ESCURAS: getbuggin, faq, calendar (texto claro, boa leitura) */
.getbuggin,
.faq,
.calendar {
  background: var(--color-surface);
  color: var(--color-text);
}

.getbuggin .section-title,
.faq .section-title,
.calendar .section-title {
  color: var(--color-text);
}

.getbuggin .section-lead,
.getbuggin .getbuggin-text,
.faq .section-lead,
.faq .faq-item summary,
.faq .faq-item p,
.calendar .section-lead,
.calendar .calendar-hint {
  color: var(--color-text-muted);
}

.faq .faq-item {
  border-bottom-color: var(--color-border);
}

.faq .faq-item summary {
  color: var(--color-text);
}


.gallery .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: var(--container);
}

.gallery-item {
  aspect-ratio: 4/3;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  border: 2px solid var(--color-border-light);
  cursor: pointer;
  padding: 0;
  margin: 0;
  font: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.gallery-item:hover {
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.gallery-placeholder {
  aspect-ratio: 4/3;
  background: var(--color-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Get BuggIN */
.getbuggin {
  text-align: center;
}

.getbuggin-text {
  max-width: 56ch;
  margin: 0 auto 1.5rem;
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

/* About */
.about .section-title,
.about .about-experience {
  text-align: center;
}

.about-content,
.about-extra {
  margin-left: auto;
  margin-right: auto;
  max-width: 65ch;
}

.about-content p,
.about-extra p {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.about-experience {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 1rem;
}

.about-banner {
  margin: 2rem 0;
  text-align: center;
}

.about-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin: 2rem auto;
  width: 100%;
  max-width: var(--container);
}

.about-img {
  aspect-ratio: 16/10;
  background-color: var(--color-border);
  background-size: cover;
  background-position: center;
  border-radius: var(--radius);
  border: 2px solid var(--color-border-light);
  cursor: pointer;
  padding: 0;
  margin: 0;
  font: inherit;
  transition: border-color 0.2s, transform 0.2s;
}

.about-img:hover {
  border-color: var(--color-primary);
  transform: scale(1.02);
}

.about-img:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.about-img .gallery-placeholder {
  aspect-ratio: 16/10;
}

/* FAQ */
.faq {
  background: var(--color-surface);
}

.faq .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-list {
  width: 100%;
  max-width: 640px;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  padding-right: 1.5rem;
  position: relative;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  margin: 0.75rem 0 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Tour */
.tour .section-title,
.tour .tour-name {
  text-align: center;
}

.tour .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tour-intro,
.tour-detail,
.tour-duration,
.tour-notice {
  width: 100%;
  max-width: 65ch;
  margin-left: auto;
  margin-right: auto;
}

.tour-detail p,
.tour-intro {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.tour-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.tour-duration {
  margin: 1rem 0;
}

.tour-notice {
  background: rgba(45, 138, 94, 0.15);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2rem 0;
  max-width: 50ch;
}

.tour-notice strong {
  display: block;
  margin-bottom: 0.5rem;
}

.tour-notice p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Galeria do passeio (fotos da rota) */
.tour-gallery-wrap {
  width: 100%;
  max-width: 900px;
  margin: 2rem 0;
}

.tour-gallery-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-text-dark);
  margin: 0 0 1rem;
  text-align: center;
}

.tour-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tour-gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 2px solid var(--color-border-light);
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s, transform 0.2s;
}

.tour-gallery-item:hover {
  border-color: var(--color-primary);
  transform: scale(1.02);
}

/* Secção Buggies */
.buggies {
  background: var(--color-surface);
  color: var(--color-text);
}

.buggies .section-title {
  color: var(--color-text);
}

.buggies .section-lead {
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.buggies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.buggy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--color-border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  text-align: center;
}

.buggy-card:hover {
  border-color: var(--color-primary);
  background: rgba(255, 255, 255, 0.08);
}

.buggy-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  background-color: var(--color-surface-light);
  margin-bottom: 0.75rem;
}

.buggy-card-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

/* Lightbox galeria */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}

.gallery-lightbox.is-open {
  visibility: visible;
  opacity: 1;
}

.gallery-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  cursor: pointer;
}

.gallery-lightbox-box {
  position: relative;
  width: min(92vw, 1200px);
  height: min(88vh, 800px);
  max-width: 92vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.gallery-lightbox-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.gallery-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

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

.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 50%;
  padding: 0;
  transition: background 0.2s;
}

.gallery-lightbox-prev {
  left: -4rem;
}

.gallery-lightbox-next {
  right: -4rem;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255, 255, 255, 0.35);
}

.gallery-lightbox-single .gallery-lightbox-prev,
.gallery-lightbox-single .gallery-lightbox-next {
  display: none;
}

.gallery-lightbox-counter {
  position: absolute;
  bottom: -2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .gallery-lightbox-prev {
    left: 0.5rem;
  }
  .gallery-lightbox-next {
    right: 0.5rem;
  }
}

/* Calendar */
.calendar .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.calendar-hint {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin: 0 auto 1.5rem;
  text-align: center;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 800px;
}

.calendar-grid--quick {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 100%;
  width: 100%;
}

@media (max-width: 900px) {
  .calendar-grid--quick {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .calendar-grid--quick {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .calendar-grid--quick .cal-day {
    padding: 0.85rem;
  }
  .calendar-grid--quick .cal-day-date {
    font-size: 0.9rem;
  }
  .calendar-grid--quick .cal-slot {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
  }
}

@media (max-width: 380px) {
  .calendar-grid--quick {
    grid-template-columns: 1fr;
  }
}

.cal-day {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 1rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.cal-day-date {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.cal-day-slots {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.cal-slot {
  display: block;
  width: 100%;
  padding: 0.5rem 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  background: var(--color-bg);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  color: var(--color-primary);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.cal-slot:hover {
  background: var(--color-primary);
  color: #fff;
}

.cal-slot.selected {
  background: var(--color-primary);
  color: #fff;
}

/* Horário completo (sem disponibilidade) ou bloqueado (prazo mesmo dia) – reserva rápida */
.cal-slot--full,
.cal-slot--blocked {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.35);
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.9;
}

.cal-slot--closed {
  background: rgba(108, 117, 125, 0.18);
  border-color: rgba(108, 117, 125, 0.45);
  color: var(--color-text-muted);
  cursor: not-allowed;
  opacity: 0.95;
}

.cal-slot--full:hover,
.cal-slot--blocked:hover {
  background: rgba(220, 53, 69, 0.18);
  color: var(--color-text-muted);
}

.cal-slot--closed:hover {
  background: rgba(108, 117, 125, 0.24);
  color: var(--color-text-muted);
}

.cal-day--full {
  border-color: rgba(220, 53, 69, 0.35);
  background: rgba(220, 53, 69, 0.06);
  position: relative;
}

.cal-day--closure.cal-day--full,
.cal-day--closure {
  border-color: rgba(108, 117, 125, 0.45);
  background: rgba(108, 117, 125, 0.1);
}

.cal-day-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #dc3545;
  background: rgba(220, 53, 69, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Reserve */
.reserve {
  background: var(--color-surface);
}

.reserve .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reserve-form-wrap {
  width: 100%;
  max-width: 480px;
}

.booking-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.booking-form label {
  font-weight: 500;
  font-size: 0.9rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
}

.booking-form select {
  cursor: pointer;
  max-width: 120px;
}

.booking-selection {
  padding: 0.75rem 1rem;
  background: rgba(45, 138, 94, 0.15);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius);
  margin-bottom: 0.25rem;
}

.booking-selection-text {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.booking-selection.has-selection .booking-selection-text {
  color: var(--color-accent);
  font-weight: 500;
}

.booking-message-box {
  padding: 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.booking-message-box.success {
  background: rgba(45, 138, 94, 0.2);
  border: 1px solid var(--color-primary);
  color: var(--color-accent);
}

.booking-message-box.error {
  background: rgba(180, 60, 60, 0.15);
  border: 1px solid #b43c3c;
  color: #e88;
}

.calendar-other-dates {
  margin: 1.5rem 0 0;
  text-align: center;
}

/* Booking Modal & Wizard */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.booking-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.booking-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  cursor: pointer;
}

.booking-modal-box {
  position: relative;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.booking-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius);
}

.booking-modal-close:hover {
  color: var(--color-text);
  background: var(--color-border);
}

.booking-modal-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  margin: 0 0 1rem;
  padding-right: 2rem;
}

.wizard-steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.wizard-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.wizard-dot.active {
  background: var(--color-primary);
  color: #fff;
}

.wizard-panels {
  position: relative;
  min-height: 280px;
}

.wizard-panel {
  display: none;
}

.wizard-panel.wizard-panel--active {
  display: block;
}

.wizard-panel-label {
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.wizard-calendar-wrap {
  margin-bottom: 1rem;
}

.wizard-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}

.wizard-calendar-prev,
.wizard-calendar-next {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wizard-calendar-prev:hover,
.wizard-calendar-next:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.wizard-calendar-month {
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-text);
}

.wizard-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 0.75rem;
}

.wizard-calendar-day {
  padding: 0.4rem;
  text-align: center;
  font-size: 0.85rem;
  border-radius: 6px;
  cursor: pointer;
  background: var(--color-bg);
  border: 1px solid transparent;
  color: var(--color-text-muted);
}

.wizard-calendar-day:hover:not(.disabled) {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.wizard-calendar-day.selected {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

.wizard-calendar-day.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.wizard-calendar-day--today {
  background: rgba(45, 138, 94, 0.2);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Dia completo: vermelho sobrepõe-se ao verde do dia atual */
.wizard-calendar-day--full.wizard-calendar-day--today,
.wizard-calendar-day--full {
  background: rgba(220, 53, 69, 0.2);
  border-color: rgba(220, 53, 69, 0.4);
  color: var(--color-text);
  cursor: not-allowed;
}

.wizard-calendar-day--full:hover {
  background: rgba(220, 53, 69, 0.3);
}

/* Dia fechado na agenda (bloqueio backoffice) — cinza, não “completo” vermelho */
.wizard-calendar-day--closure.wizard-calendar-day--today,
.wizard-calendar-day--closure {
  background: rgba(108, 117, 125, 0.22);
  border-color: rgba(108, 117, 125, 0.55);
  color: var(--color-text);
  cursor: not-allowed;
}

.wizard-calendar-day--closure:hover {
  background: rgba(108, 117, 125, 0.3);
}

.wizard-calendar-day.weekday {
  font-weight: 600;
  color: var(--color-text);
  cursor: default;
}

.wizard-slots {
  display: flex;
  gap: 0.5rem;
}

.wizard-slot {
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  cursor: pointer;
}

.wizard-slot:hover,
.wizard-slot.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.wizard-slot--full,
.wizard-slot--blocked,
.wizard-slot--closure,
.wizard-slot:disabled {
  cursor: not-allowed;
  background: var(--color-bg-muted, #e0e0e0);
  border-color: var(--color-border);
  color: #444;
  opacity: 1;
}

.wizard-slot--closure {
  border-color: rgba(108, 117, 125, 0.65);
  background: rgba(108, 117, 125, 0.15);
}

.wizard-slot--full:hover,
.wizard-slot--blocked:hover,
.wizard-slot--closure:hover,
.wizard-slot:disabled:hover {
  background: var(--color-bg-muted, #e0e0e0);
  border-color: var(--color-border);
  color: #444;
}

.wizard-slot--closure:hover {
  background: rgba(108, 117, 125, 0.2);
}

.wizard-tour-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem;
  padding: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid var(--color-border);
}

.wizard-tour-image {
  height: 80px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.wizard-tour-name {
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: var(--color-accent);
}

.wizard-tour-duration,
.wizard-tour-price {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.35rem;
}

.wizard-buggies-types-label {
  font-size: 0.85rem;
  font-weight: 500;
  margin: 0 0 0.75rem;
  color: var(--color-text);
}

.wizard-buggy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.wizard-buggy-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border: 2px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wizard-buggy-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-primary);
}

.wizard-buggy-card.is-selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary);
}

.wizard-buggy-card--unavailable,
.wizard-buggy-card:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.wizard-buggy-card--unavailable .wizard-buggy-card-check,
.wizard-buggy-card:disabled .wizard-buggy-card-check {
  display: none !important;
}

.wizard-buggy-card-lock {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.35rem;
  background: #6c757d;
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.wizard-buggy-card-lock svg {
  width: 16px;
  height: 16px;
}

.wizard-buggy-card--unavailable .wizard-buggy-card-lock,
.wizard-buggy-card:disabled .wizard-buggy-card-lock {
  display: flex;
}

.wizard-buggy-card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg);
  cursor: pointer;
  border-radius: calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0 0;
}

.wizard-buggy-card-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.wizard-buggy-card-check {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.35rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
}

.wizard-buggy-card-check svg {
  width: 18px;
  height: 18px;
}

.wizard-buggy-card.is-selected .wizard-buggy-card-check {
  display: flex;
}

@media (max-width: 480px) {
  .wizard-buggy-cards {
    grid-template-columns: 1fr;
  }
}

.wizard-total {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--color-text);
}

.wizard-form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1rem;
}

.wizard-form label {
  font-size: 0.9rem;
  font-weight: 500;
}

.wizard-form input,
.wizard-form textarea {
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
}

.wizard-summary {
  padding: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  white-space: pre-line;
}

.wizard-step4-payment {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 0.5rem 0.65rem;
  margin: 0 0 0.65rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.wizard-step4-payment.wizard-step4-payment--hidden {
  display: none !important;
}

.wizard-step4-payment-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.02em;
}

.wizard-step4-payment-cards-wrap {
  width: auto;
  max-width: min(100%, 188px);
  padding: 0.3rem 0.45rem;
  background: rgba(255, 255, 255, 0.96);
  border-radius: calc(var(--radius) * 0.85);
  box-sizing: border-box;
}

.wizard-step4-payment-cards {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  vertical-align: top;
}

.wizard-payment-note {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.wizard-total-line {
  margin: 0 0 1rem;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.wizard-result-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.wizard-result-message {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  line-height: 1.5;
}

.payment-return-details {
  text-align: left;
  margin-top: 1rem;
  padding: 0.75rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.payment-return-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-muted);
}

.payment-return-details pre {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
  word-break: break-all;
  overflow-x: auto;
}

.wizard-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.wizard-sibs-container {
  margin-top: 1rem;
  min-height: 200px;
}

.wizard-sibs-container .paymentSPG {
  max-width: 100%;
}

.wizard-sibs-fetch-error {
  margin-bottom: 0.75rem;
  padding: 0.65rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #c62828;
  background: rgba(198, 40, 40, 0.08);
  border-radius: var(--radius);
  border: 1px solid rgba(198, 40, 40, 0.25);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 220px;
  overflow: auto;
}

.wizard-success {
  text-align: center;
  padding: 1rem 0;
}

.wizard-success-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-accent);
  margin: 0 0 0.5rem;
}

.wizard-success-text {
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.wizard-success-email-notice {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 6px;
}

/* Contact */
.contact .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-form {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Honeypot (anti-bot): não mostrar a utilizadores reais */
.contact-form__hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-turnstile {
  margin: 0.25rem 0 0.5rem;
  min-height: 4rem;
}

.contact-form label {
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  color: var(--color-text);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-book {
  margin-top: 1rem;
}

/* Footer */
.footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  background: var(--color-bg);
  color: var(--color-text);
}

.footer-tagline {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.3;
  margin: 0.5rem 0 0;
  max-width: 200px;
  opacity: 0.9;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin: 0;
  text-align: center;
}

.footer-credit {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.footer-credit a {
  color: var(--color-primary);
  font-weight: 500;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.footer-brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

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

.footer-logo img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  opacity: 0.95;
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
  text-align: center;
}

.footer-contact,
.footer-social {
  text-align: center;
}

@media (min-width: 640px) {
  .footer-top {
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    justify-items: center;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-brand-wrap {
    max-width: 220px;
    align-items: center;
    text-align: center;
  }

  .footer-contact,
  .footer-social {
    text-align: center;
  }

  .footer-address {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-logo img {
    height: 72px;
    max-width: 200px;
  }

  .footer-tagline {
    margin-top: 0.6rem;
    max-width: 200px;
  }
}

@media (min-width: 900px) {
  .footer-top {
    gap: 3rem;
  }

  .footer-brand-wrap {
    max-width: 260px;
  }

  .footer-logo img {
    height: 88px;
    max-width: 240px;
  }

  .footer-tagline {
    font-size: 0.8rem;
    max-width: 220px;
  }
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--color-text);
}

.footer-address,
.footer-email,
.footer-phone {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-address {
  max-width: 220px;
}

.footer-email a,
.footer-phone a {
  color: var(--color-text-muted);
}

.footer-email a:hover,
.footer-phone a:hover {
  color: var(--color-primary);
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color 0.2s ease;
}

.footer-social-link:hover {
  color: var(--color-primary);
}

.footer-social-icon {
  width: 1.5rem;
  height: 1.5rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
}

.footer-legal a {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-legal a:hover {
  color: var(--color-primary);
}

.footer-legal-sep {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  opacity: 0.7;
  pointer-events: none;
}

/* Notyf toasts – alinhado ao tema */
.notyf__toast--success {
  background: var(--color-primary) !important;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.notyf__toast--error {
  background: var(--color-surface) !important;
  color: var(--color-text) !important;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}
.notyf__toast {
  font-family: var(--font-body);
  padding: 0.9rem 1.25rem;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 1rem var(--section-padding-x);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.35s ease-out, opacity 0.35s ease-out;
}

.cookie-banner--hidden {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

@media (min-width: 640px) {
  .cookie-banner-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.cookie-banner-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.cookie-banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.cookie-banner-link:hover {
  color: var(--color-primary);
}

.cookie-banner-accept {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Legal pages */
.legal-page {
  padding: calc(var(--header-h) + 2rem) 0 4rem;
  min-height: 60vh;
}

.legal-page .container {
  max-width: 720px;
}

.legal-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: var(--color-text);
}

.legal-updated {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 2rem;
}

.legal-lang {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 0.5rem;
}

.legal-lang a {
  color: var(--color-primary);
  text-decoration: none;
}

.legal-lang a:hover {
  text-decoration: underline;
}

.legal-content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--color-text);
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.legal-content ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.legal-content a {
  color: var(--color-primary);
}
