:root {
  --ocean-deep: #073b4c;
  --ocean: #0a6a8c;
  --aqua: #06b6d4;
  --aqua-light: #a5f3fc;
  --sand: #fdf6ec;
  --sand-dark: #f2e6d0;
  --sunset: #ff8c42;
  --ink: #0f2733;
  --ink-soft: #4a6572;
  --white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(7, 59, 76, 0.10);
  --shadow-lift: 0 16px 40px rgba(7, 59, 76, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: 'Nunito', system-ui, sans-serif;
  color: var(--ink);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
  font-family: 'Poppins', system-ui, sans-serif;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(253, 246, 236, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(7, 59, 76, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 12px 0;
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--ocean-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo span { color: var(--aqua); }

.nav { display: flex; gap: 28px; }

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

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

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean) 55%, var(--aqua) 100%);
  padding: 110px 0 140px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,255,255,0.10) 0%, transparent 40%);
  pointer-events: none;
}

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

.hero-kicker {
  color: var(--aqua-light);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin: 0 0 14px;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  font-weight: 700;
}

.hero-subtitle {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 34px;
  max-width: 560px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
  cursor: pointer;
}

.btn-small { padding: 8px 18px; font-size: 0.85rem; }

.btn-primary {
  background: var(--sunset);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(255, 140, 66, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 140, 66, 0.45); }

.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}

.btn-ghost:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); }

.weather-status .btn-ghost {
  color: var(--ocean-deep);
  border-color: var(--ocean);
  background: transparent;
}

.hero-wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 90px;
}

.hero-wave path { fill: var(--sand); }

/* Sections */
.section { padding: 84px 0; }

.section-head { max-width: 640px; margin: 0 0 40px; }

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--ocean-deep);
  margin: 0 0 10px;
  font-weight: 700;
}

.section-head p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.6; margin: 0; }

.section-head a { color: var(--ocean); font-weight: 700; text-decoration: underline; }

.videos-section { background: var(--sand); }

/* Video grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 24px;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .video-grid .video-info {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 12px 16px;
    gap: 6px;
  }
  .video-grid .video-info h3 { font-size: 0.85rem; line-height: 1.3; }
  .listing-grid { gap: 10px; }
  .listing-card .video-info {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 8px 12px;
    gap: 4px;
  }
  .listing-card h3 { font-size: 0.72rem; line-height: 1.25; }
  .listing-card .ext-icon { display: none; }
  .listing-price { font-size: 0.68rem; }
  .listing-price small { display: block; margin-left: 0; }
  .listing-card .badge { font-size: 0.58rem; padding: 2px 7px; }
}

@media (max-width: 480px) {
  .listing-grid { gap: 8px; }
}

.video-card {
  display: block;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.video-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-deep) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding-left: 4px;
}

.video-info {
  padding: 16px 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.video-info h3 { margin: 0; font-size: 1rem; color: var(--ink); }

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--sunset);
  background: rgba(255, 140, 66, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* Hospedagem (listing cards) */
.hospedagem-section { background: var(--sand); }

.listing-card .video-thumb {
  background-color: var(--sand-dark);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.listing-price {
  display: block;
  font-size: 0.9rem;
  color: var(--ocean-deep);
  font-weight: 700;
  margin-top: 2px;
}

.listing-price small {
  font-size: 0.72em;
  font-weight: 600;
  color: var(--ink-soft);
  margin-left: 2px;
}

.hospedagem-note {
  margin: 18px 2px 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.85;
}

.ext-icon {
  font-size: 0.75em;
  opacity: 0.45;
  margin-left: 2px;
}

.listing-card:hover .ext-icon { opacity: 0.9; }

/* Weather section */
.weather-section { background: var(--sand-dark); }

.weather-status {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-soft);
  font-weight: 600;
}

.weather-status-error { color: #b3261e; }

.forecast-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 340px) {
  .forecast-row { grid-template-columns: repeat(2, 1fr); }
}

.day-card {
  background: var(--white);
  border-radius: 14px;
  padding: 18px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.day-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }

.day-card.today {
  background: linear-gradient(150deg, var(--aqua), var(--ocean));
  color: var(--white);
}

/* Previsão do tempo — indicador sutil por temperatura/chuva */
.day-card.day-green {
  background: #eaf7ee;
  border: 6px solid #4ba869;
  color: var(--ink);
}

.day-card.day-yellow {
  background: #fdf7e3;
  border: 6px solid #d4a72c;
  color: var(--ink);
}

.day-card.day-orange {
  background: #fbeee0;
  border: 6px solid #cc7a2e;
  color: var(--ink);
}

.day-card.day-red {
  background: #fbeaea;
  border: 6px solid #c85c5c;
  color: var(--ink);
}

.weather-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  margin-top: 20px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.legend-green { background: #4ba869; }
.legend-yellow { background: #d4a72c; }
.legend-orange { background: #cc7a2e; }
.legend-red { background: #c85c5c; }

.day-name {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: capitalize;
  margin-bottom: 2px;
}

.day-date {
  font-size: 0.72rem;
  opacity: 0.75;
  margin-bottom: 10px;
}

.day-icon { font-size: 2rem; margin-bottom: 8px; }

.day-desc {
  font-size: 0.72rem;
  min-height: 30px;
  opacity: 0.85;
  margin-bottom: 10px;
}

.day-temps {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.day-temps .min { opacity: 0.55; }

.day-extra {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.72rem;
  opacity: 0.8;
}

/* Trajeto */
.trajeto-section { background: var(--sand-dark); }

.route-card {
  background: linear-gradient(120deg, var(--ocean-deep), var(--ocean));
  color: var(--white);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-lift);
}

.route-endpoints {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 28px;
  flex-wrap: wrap;
  text-align: center;
}

.route-arrow { color: var(--aqua-light); font-size: 1.3rem; }

.route-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 18px;
  text-align: center;
}

.route-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
}

.route-stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.route-stat-label {
  font-size: 0.75rem;
  opacity: 0.85;
  line-height: 1.4;
}

.route-subtitle {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0.85;
  margin: 24px 0;
}

.route-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  cursor: zoom-in;
  transition: opacity 0.15s ease;
}

.route-map:hover { opacity: 0.92; }

.route-map-hint {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.75;
  margin: 10px 0 0;
}

/* Modal de zoom do mapa */
.map-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 15, 20, 0.94);
}

.map-modal[hidden] { display: none; }

.map-modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1001;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.map-modal-close:hover { background: rgba(255, 255, 255, 0.28); }

.map-modal-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: none;
}

.map-modal-viewport.dragging { cursor: grabbing; }

.map-modal-viewport img {
  max-width: 92vw;
  max-height: 88vh;
  user-select: none;
  -webkit-user-drag: none;
  will-change: transform;
}

/* Footer */
.site-footer {
  background: var(--ocean-deep);
  color: rgba(255,255,255,0.75);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.85rem;
}

.footer-inner p { margin: 0; }

/* Responsive */
@media (max-width: 640px) {
  .nav { gap: 16px; }
  .nav a { font-size: 0.85rem; }
  .logo { font-size: 1.1rem; }
  .header-inner { justify-content: center; text-align: center; }
  .hero { padding: 84px 0 120px; }
  .section { padding: 56px 0; }
  .forecast-row { gap: 8px; }

  .day-card { padding: 10px 4px; border-radius: 10px; }

  .day-card.day-green,
  .day-card.day-yellow,
  .day-card.day-orange,
  .day-card.day-red { border-width: 3px; }

  .day-name { font-size: 0.72rem; margin-bottom: 0; }

  .day-date { font-size: 0.6rem; margin-bottom: 4px; }

  .day-icon { font-size: 1.4rem; margin-bottom: 2px; }

  .day-desc {
    font-size: 0.58rem;
    min-height: 0;
    line-height: 1.15;
    margin-bottom: 4px;
  }

  .day-temps { font-size: 0.78rem; gap: 4px; margin-bottom: 4px; }

  .day-extra { font-size: 0.58rem; gap: 4px; }

  .weather-legend { gap: 4px 8px; }

  .legend-item { font-size: 0.62rem; gap: 4px; }

  .legend-dot { width: 8px; height: 8px; }

  .route-card { padding: 20px 16px; }

  .route-endpoints { font-size: 0.95rem; gap: 8px; margin-bottom: 20px; }

  .route-stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .route-stat { padding: 12px 6px; }

  .route-stat-value { font-size: 1.05rem; }

  .route-stat-label { font-size: 0.68rem; }
}
