/* ==========================================================================
   WaveRadar (WaveRadar.it) - Modern Minimalist Stylesheet
   Zero Framework, Pure CSS, Mobile-First, Under 50KB, Dark/Light Mode
   ========================================================================== */

:root {
  color-scheme: light;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Palette Chiara (Light Theme) */
  --bg-primary: #f6f8fb;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.93);
  --bg-subtle: #edf2f7;
  --border-color: #e2e8f0;
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  --accent-cyan: #0284c7;
  --accent-cyan-light: #e0f2fe;
  --accent-emerald: #059669;
  --accent-emerald-light: #d1fae5;
  --accent-amber: #d97706;
  --accent-amber-light: #fef3c7;
  --accent-rose: #e11d48;
  --accent-rose-light: #ffe4e6;
  --accent-indigo: #4f46e5;
  --accent-indigo-light: #e0e7ff;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #090d16;
  --bg-surface: #111827;
  --bg-surface-elevated: #1a2234;
  --bg-surface-glass: rgba(17, 24, 39, 0.93);
  --bg-subtle: #1e293b;
  --border-color: #1e293b;
  --border-focus: #38bdf8;

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-cyan: #38bdf8;
  --accent-cyan-light: rgba(56, 189, 248, 0.12);
  --accent-emerald: #34d399;
  --accent-emerald-light: rgba(52, 211, 153, 0.12);
  --accent-amber: #fbbf24;
  --accent-amber-light: rgba(251, 191, 36, 0.12);
  --accent-rose: #fb7185;
  --accent-rose-light: rgba(251, 113, 133, 0.12);
  --accent-indigo: #818cf8;
  --accent-indigo-light: rgba(129, 140, 248, 0.12);

  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 20px -3px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg-primary: #090d16;
    --bg-surface: #111827;
    --bg-surface-elevated: #1a2234;
    --bg-surface-glass: rgba(17, 24, 39, 0.93);
    --bg-subtle: #1e293b;
    --border-color: #1e293b;
    --border-focus: #38bdf8;

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    --accent-cyan: #38bdf8;
    --accent-cyan-light: rgba(56, 189, 248, 0.12);
    --accent-emerald: #34d399;
    --accent-emerald-light: rgba(52, 211, 153, 0.12);
    --accent-amber: #fbbf24;
    --accent-amber-light: rgba(251, 191, 36, 0.12);
    --accent-rose: #fb7185;
    --accent-rose-light: rgba(251, 113, 133, 0.12);
    --accent-indigo: #818cf8;
    --accent-indigo-light: rgba(129, 140, 248, 0.12);

    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 20px -3px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
  }
}

/* Base Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  transition: background-color var(--transition-base), color var(--transition-base);
}

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

a:hover {
  text-decoration: underline;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  flex-shrink: 0;
  display: block;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: transform var(--transition-fast);
}

.brand-link:hover .brand-logo-img {
  transform: scale(1.05) rotate(-2deg);
}

.brand-title {
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
}

.brand-title strong {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 0.75rem;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-cyan-light);
  color: var(--accent-cyan);
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background-color: var(--border-color);
  transform: translateY(-1px);
}

/* ==========================================================================
   NAVBAR ACTIONS
   ========================================================================== */
.nav-alert-btn {
  font-size: 0.825rem;
  padding: 0.4rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* ==========================================================================
   TRIPGUIDE STYLE HERO BANNER & FLOATING SEARCH CARD
   ========================================================================== */
.tg-hero-section {
  position: relative;
  background: 
    linear-gradient(180deg, rgba(7, 24, 42, 0.44) 0%, rgba(15, 23, 42, 0.74) 100%),
    url('/images/hero-wave-contrast.jpg') center center / cover no-repeat;
  color: #ffffff;
  padding: 3.5rem 0 5.25rem;
  margin-bottom: 0;
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
  box-shadow: 0 10px 30px -10px rgba(2, 132, 199, 0.3);
}

.tg-hero-inner {
  text-align: center;
  position: relative;
  z-index: 10;
}

.tg-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.tg-hero-subtitle {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  color: rgba(255, 255, 255, 0.95);
  max-width: 740px;
  margin: 0 auto;
  line-height: 1.55;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

/* ==========================================================================
   BARRA FLUTTUANTE STICKY & MOTO ONDOSO
   ========================================================================== */
.tg-search-sticky-wrapper {
  position: sticky;
  top: 72px; /* Sospesa in aria sotto l'header (64px + 8px spazio aereo) */
  z-index: 40;
  margin-top: -3.6rem;
  margin-bottom: 2.25rem;
  pointer-events: none;
}

.tg-search-container {
  pointer-events: auto;
}

/* Floating Search Card */
.tg-search-card {
  max-width: 1080px;
  margin: 0 auto;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border-radius: 24px;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.22), 0 0 0 1px var(--border-color);
  overflow: visible;
  text-align: left;
  position: relative;
  z-index: 30;
  transition: box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}

/* Quando la barra diventa sticky sospesa in aria durante lo scroll */
.tg-search-card.is-sticky {
  background-color: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px -8px rgba(2, 132, 199, 0.28), 0 0 0 1.5px rgba(2, 132, 199, 0.35);
  border-color: rgba(2, 132, 199, 0.4);
}

/* Moto ondoso marino naturale a velocità costante e uniforme (indipendente dallo scroll) */
.tg-search-card.is-floating-wave {
  animation: seaFloatSwell 3.6s ease-in-out infinite alternate;
}

@keyframes seaFloatSwell {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(1.5px, -3.2px, 0) rotate(0.42deg);
  }
  50% {
    transform: translate3d(0px, 1.8px, 0) rotate(-0.25deg);
  }
  75% {
    transform: translate3d(-1.5px, -2px, 0) rotate(0.32deg);
  }
  100% {
    transform: translate3d(0, 2.2px, 0) rotate(-0.35deg);
  }
}

/* Disabilita oscillazione quando l'utente sta interagendo con i controlli */
.tg-search-card:focus-within {
  animation: none !important;
  transform: translate3d(0, 0, 0) rotate(0deg) !important;
}

/* Card Top Tabs */
.tg-card-tabs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem 0.6rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-surface);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tg-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.tg-tab-btn:hover {
  color: var(--text-primary);
  background-color: var(--bg-subtle);
}

.tg-tab-btn.active {
  background-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

.tg-tab-icon {
  font-size: 1rem;
}

/* Card Fields Body */
.tg-card-body {
  padding: 1.25rem;
  background-color: var(--bg-surface);
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.tg-fields-row {
  display: grid;
  grid-template-columns: 2.2fr 1.6fr 1.6fr 1.4fr auto;
  gap: 0.85rem;
  align-items: stretch;
}

.tg-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background-color: var(--bg-subtle);
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 0.55rem 0.85rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background-color var(--transition-fast);
}

.tg-field-group:focus-within {
  border-color: var(--accent-cyan);
  background-color: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--accent-cyan-light);
}

.tg-field-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.tg-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
}

.tg-input-icon {
  font-size: 1rem;
  flex-shrink: 0;
  opacity: 0.85;
}

.tg-input,
.tg-select {
  width: 100%;
  border: none;
  background-color: transparent;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary) !important;
  outline: none;
  font-family: inherit;
}

.tg-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
}

.tg-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%230284c7' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 4px center;
  padding-right: 1.4rem;
}

.tg-select option {
  background-color: var(--bg-surface) !important;
  color: var(--text-primary) !important;
  font-weight: 600;
  padding: 8px 12px;
}

.tg-field-btn {
  display: flex;
  align-items: stretch;
}

.tg-cta-button {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0 1.65rem;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.tg-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
}

.tg-cta-button:active {
  transform: translateY(0);
}

/* Responsive Search Card on Tablet / Mobile */
@media (max-width: 992px) {
  .tg-search-sticky-wrapper {
    top: 68px;
    margin-top: -3.4rem;
  }
  .tg-fields-row {
    grid-template-columns: 1fr 1fr;
  }
  .tg-field-search {
    grid-column: 1 / -1;
  }
  .tg-field-btn {
    grid-column: 1 / -1;
  }
  .tg-cta-button {
    height: 48px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tg-hero-section {
    padding: 2.25rem 0 4.5rem;
    margin-bottom: 0;
  }
  .tg-search-sticky-wrapper {
    top: 66px;
    margin-top: -3.2rem;
    margin-bottom: 1.5rem;
  }
  .tg-search-card {
    border-radius: 18px;
  }
  .tg-card-tabs {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
  }
  .tg-card-body {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
  }
  .tg-fields-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  /* Quando sticky su schermi piccoli: compatto per non ostruire i risultati */
  .tg-search-card.is-sticky .tg-card-tabs {
    display: none;
  }
  .tg-search-card.is-sticky .tg-card-body {
    padding: 0.65rem 0.75rem;
  }
  .tg-search-card.is-sticky .tg-fields-row {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .tg-search-card.is-sticky .tg-field-search {
    grid-column: 1 / -1;
  }
  .tg-search-card.is-sticky .tg-field-group {
    padding: 0.4rem 0.6rem;
  }
  .tg-search-card.is-sticky .tg-field-label {
    font-size: 0.65rem;
  }
  .tg-search-card.is-sticky .tg-input,
  .tg-search-card.is-sticky .tg-select {
    font-size: 0.8rem;
  }
  .tg-search-card.is-sticky .tg-field-btn {
    display: none;
  }
}

/* ==========================================================================
   DESTINAZIONI & MACRO-AREE (Template Grafico TripGuide)
   ========================================================================== */
.tg-destinations-section {
  padding: 3.5rem 0 2.25rem;
}

.section-title-wrap {
  text-align: center;
  margin-bottom: 2rem;
}

.tg-section-heading {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.tg-section-sub {
  font-size: 0.9rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

.tg-destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.dest-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  user-select: none;
}

.dest-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 18px rgba(2, 132, 199, 0.15);
  background-color: var(--bg-subtle);
}

.dest-card:active {
  transform: translateY(-1px);
}

.dest-thumb {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.thumb-lake-north { background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%); }
.thumb-conero { background: linear-gradient(135deg, #ccfbf1 0%, #99f6e4 100%); }
.thumb-sardinia { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); }
.thumb-lake-center { background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%); }
.thumb-liguria { background: linear-gradient(135deg, #ecfdf5 0%, #a7f3d0 100%); }
.thumb-sicily { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); }
.thumb-puglia { background: linear-gradient(135deg, #ffedd5 0%, #fed7aa 100%); }
.thumb-lake-south { background: linear-gradient(135deg, #f0fdf4 0%, #bbf7d0 100%); }

.dest-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dest-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dest-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 900px) {
  .tg-destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .tg-destinations-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   SPOTS SECTION HEADER & COUNTER
   ========================================================================== */
.spots-section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.spots-live-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
}

/* AdSense Slot & Preview Styling - Perfettamente centrato */
.ad-slot-wrapper {
  margin: 1.75rem auto;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
  box-sizing: border-box;
}

.ad-slot {
  width: 100%;
  max-width: 728px;
  min-height: 90px;
  margin-left: auto;
  margin-right: auto;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Quando AdSense carica il banner live con iframe, nasconde l'anteprima segnaposto */
.ad-slot ins.adsbygoogle[data-ad-status="filled"] + .ad-preview-content {
  display: none !important;
}

.ad-preview-content {
  width: 100%;
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  text-align: left;
}

.ad-preview-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.ad-badge {
  background-color: #f59e0b;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.4rem;
  border-radius: var(--radius-sm);
}

.ad-brand {
  font-weight: 600;
  color: var(--text-secondary);
}

.ad-info-icon {
  margin-left: auto;
  color: var(--text-muted);
  cursor: help;
  font-size: 0.85rem;
}

.ad-preview-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ad-preview-text {
  display: flex;
  flex-direction: column;
  font-size: 0.825rem;
  line-height: 1.35;
  color: var(--text-secondary);
}

.ad-preview-text strong {
  color: var(--text-primary);
  font-size: 0.925rem;
}

.ad-preview-cta {
  flex-shrink: 0;
  background-color: var(--accent-cyan);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  text-decoration: none !important;
  transition: all var(--transition-fast);
}

.ad-preview-cta:hover {
  background-color: #0369a1;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .ad-preview-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .ad-preview-cta {
    width: 100%;
    text-align: center;
  }
}

/* Spots Grid */
.spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.spot-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.spot-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-cyan);
  text-decoration: none;
}

.spot-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.spot-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.spot-region {
  font-size: 0.825rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.badge-type {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.badge-type.sea {
  background-color: var(--accent-cyan-light);
  color: var(--accent-cyan);
}

.badge-type.lake {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.badge-type.beach {
  background-color: rgba(245, 158, 11, 0.16);
  color: #d97706;
}

.badge-type.port {
  background-color: rgba(99, 102, 241, 0.16);
  color: #6366f1;
}

.spot-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem;
  margin: 0.75rem 0;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wind-arrow-inline {
  display: inline-block;
  transition: transform 0.3s ease;
  font-size: 0.95rem;
}

.spot-card-footer {
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-sport-badge {
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: var(--radius-full);
  padding: 0.2rem 0.55rem;
}

.sport-sup {
  background-color: var(--accent-cyan-light);
  color: var(--accent-cyan);
}

.sport-kite {
  background-color: var(--accent-amber-light);
  color: var(--accent-amber);
}

.sport-surf {
  background-color: var(--accent-emerald-light);
  color: var(--accent-emerald);
}

.sport-relax {
  background-color: var(--accent-indigo-light);
  color: var(--accent-indigo);
}

/* ==========================================================================
   SPOT DETAIL PAGE (3-Second Rule UX)
   ========================================================================== */

.spot-page {
  padding: 1.5rem 0 3rem;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.spot-header-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.spot-header-left h1,
.spot-title-heading,
#spotName {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
  color: var(--text-primary) !important;
  display: block;
}

.spot-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.spot-header-actions {
  display: flex;
  gap: 0.5rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--accent-cyan);
  color: #ffffff;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: #0369a1;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background-color: var(--bg-subtle);
  text-decoration: none;
}

/* 3-Second Verdict Hero Banner */
.verdict-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-elevated) 100%);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.verdict-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 6px;
  background-color: var(--accent-cyan);
}

.verdict-banner.verdict-sup::before { background-color: var(--accent-cyan); }
.verdict-banner.verdict-kite::before { background-color: var(--accent-amber); }
.verdict-banner.verdict-surf::before { background-color: var(--accent-emerald); }
.verdict-banner.verdict-danger::before { background-color: var(--accent-rose); }

.verdict-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.verdict-pill {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.verdict-cache-tag {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.verdict-text {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* The 3 Essential Metric Cards */
.metrics-triad {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.metric-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.metric-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.metric-main-value {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.metric-main-value small {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-sub-detail {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
}

/* Compass and Wind Arrow */
.wind-compass-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.compass-dial {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.compass-arrow {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--accent-cyan);
}

/* Activity Score Meters */
.activity-scores-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.activity-scores-box h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.activity-bars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.activity-bar-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.bar-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
}

.bar-track {
  height: 10px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease-out;
}

.bar-fill.fill-sup { background-color: var(--accent-cyan); }
.bar-fill.fill-kite { background-color: var(--accent-amber); }
.bar-fill.fill-surf { background-color: var(--accent-emerald); }

/* ==========================================================================
   INTERACTIVE SPORTS SUITABILITY LINE CHART & HOURLY SCRUBBER
   ========================================================================== */
.line-chart-card,
.hourly-forecast-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: background-color var(--transition-base), border-color var(--transition-base);
}

.line-chart-header,
.hourly-box-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.chart-badge-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chart-badge-title h3,
.hourly-box-head h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.chart-subtitle {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  max-width: 650px;
  line-height: 1.45;
}

.live-dot-pulse {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: liveDotPulse 2s infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes liveDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.chart-head-controls,
.hourly-head-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.hourly-active-pill {
  font-size: 0.8rem;
  font-weight: 800;
  background-color: var(--accent-cyan-light);
  color: var(--accent-cyan);
  padding: 0.28rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.btn-reset-now {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-reset-now:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

/* Interactive Chart Legend */
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  align-items: center;
  margin-bottom: 1.25rem;
  padding: 0.65rem 1rem;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: default;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.legend-item:hover {
  color: var(--text-primary);
}

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

.legend-color-dash {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
  flex-shrink: 0;
}

.legend-current-val {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.legend-sup .legend-current-val { color: var(--accent-cyan); }
.legend-kite .legend-current-val { color: var(--accent-amber); }
.legend-surf .legend-current-val { color: var(--accent-emerald); }
.legend-wind .legend-current-val { color: var(--accent-indigo); }

/* SVG Chart Container & Graphic Elements */
.chart-svg-container {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-subtle) 100%);
  border: 1px solid var(--border-color);
  padding: 0.5rem 0.25rem 0;
  margin-bottom: 1rem;
  touch-action: pan-y;
  cursor: crosshair;
  overflow: visible;
}

.sports-line-chart-svg {
  width: 100%;
  height: 250px;
  min-height: 220px;
  max-height: 320px;
  display: block;
  overflow: visible;
}

/* Grid & Axes */
.chart-grid-line {
  stroke: var(--border-color);
  stroke-width: 1px;
  stroke-dasharray: 4, 4;
  opacity: 0.7;
}

.chart-axis-text {
  font-size: 11px;
  font-family: var(--font-mono);
  fill: var(--text-muted);
  font-weight: 700;
  user-select: none;
}

.chart-axis-x-label {
  font-size: 11px;
  font-family: var(--font-sans);
  fill: var(--text-secondary);
  font-weight: 700;
  text-anchor: middle;
  user-select: none;
  transition: fill var(--transition-fast), font-weight var(--transition-fast);
}

.chart-axis-x-label.active {
  fill: var(--accent-cyan);
  font-weight: 900;
}

/* Lines & Areas */
.chart-area {
  transition: d 0.25s ease-out, opacity 0.2s ease;
  pointer-events: none;
}

.chart-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transition: d 0.25s ease-out;
}

.chart-line-sup {
  stroke: #0284c7;
  stroke-width: 3.5px;
}

.chart-line-kite {
  stroke: #f59e0b;
  stroke-width: 3.5px;
}

.chart-line-surf {
  stroke: #10b981;
  stroke-width: 3.5px;
}

.chart-line-wind {
  stroke: #818cf8;
  stroke-width: 2.2px;
  stroke-dasharray: 5, 4;
  opacity: 0.9;
}

/* Interactive Scrubber Cursor Line */
.chart-scrubber-line {
  stroke: var(--text-primary);
  stroke-width: 2px;
  stroke-dasharray: 4, 3;
  pointer-events: none;
  opacity: 0.85;
}

/* Interactive Glowing Dots on Curves */
.chart-dot {
  stroke: #ffffff;
  stroke-width: 2.5px;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.35));
}

.chart-dot.dot-sup { fill: #0284c7; }
.chart-dot.dot-kite { fill: #f59e0b; }
.chart-dot.dot-surf { fill: #10b981; }
.chart-dot.dot-wind { fill: #818cf8; }

/* Floating Tooltip Above Cursor */
.chart-floating-tooltip {
  position: absolute;
  top: 15px;
  left: 50px;
  transform: translate(-50%, -100%);
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.35rem 0.65rem;
  pointer-events: none;
  z-index: 25;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  transition: opacity 0.15s ease, transform 0.05s ease-out;
}

.chart-floating-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--border-color);
}

.tooltip-hour {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.tooltip-sport {
  font-size: 0.825rem;
  font-weight: 800;
  color: var(--text-primary);
}

.tooltip-wind {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}

/* Time Scrubber Slider */
.scrubber-slider-wrap {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.scrubber-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

.timeline-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.timeline-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--accent-cyan);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  cursor: grab;
  transition: transform var(--transition-fast);
}

.timeline-range-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}

.timeline-range-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  background: var(--accent-cyan);
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
  cursor: grab;
}

/* Interactive Hourly Chart Track */
.hourly-chart-track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.75rem;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.hour-chart-card {
  min-width: 82px;
  background-color: var(--bg-surface);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: all var(--transition-fast);
  user-select: none;
}

.hour-chart-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  background-color: var(--bg-subtle);
}

.hour-chart-card.active {
  border-color: var(--accent-cyan);
  background: var(--accent-cyan-light);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
}

.hour-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
}

.hour-chart-card.active .hour-label {
  color: var(--accent-cyan);
}

/* Vertical Bar Graph Visual */
.hour-bar-visual-wrap {
  width: 14px;
  height: 48px;
  background-color: var(--bg-subtle);
  border-radius: var(--radius-full);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hour-bar-fill-bar {
  width: 100%;
  border-radius: var(--radius-full);
  transition: height 0.3s ease;
}

.bar-sport-kite { background-color: var(--accent-amber); }
.bar-sport-surf { background-color: var(--accent-emerald); }
.bar-sport-sup { background-color: var(--accent-cyan); }
.bar-sport-relax { background-color: var(--accent-indigo); }

.hour-sport-icon {
  font-size: 1rem;
}

.hour-wind-knots {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--text-primary);
}

.hour-wave-metric {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hourly-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.hourly-wind {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-primary);
}

.hourly-wave {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Disclaimer Box */
.disclaimer-box {
  background-color: var(--bg-subtle);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.15rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   MODAL / DIALOG (Native HTML5 <dialog> with Modern Light-Dismiss)
   ========================================================================== */

dialog {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background-color: var(--bg-surface);
  color: var(--text-primary);
  max-width: 500px;
  width: 90%;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  margin: auto;
}

dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

dialog[open] {
  animation: modalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-cyan);
  outline: none;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  font-size: 0.9rem;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   FLOATING COOKIE POPUP NUVOLETTA (In basso a destra)
   ========================================================================== */
.cookie-bubble {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  max-width: 360px;
  width: calc(100% - 48px);
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.3), 0 8px 16px -6px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transform: translateY(140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cookie-bubble.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-bubble-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.cookie-bubble-text {
  font-size: 0.825rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.cookie-bubble-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.25rem;
}

.cookie-btn-accept {
  flex: 1;
  background-color: var(--accent-cyan);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.825rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  text-align: center;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.cookie-btn-accept:hover {
  background-color: #0369a1;
}

.cookie-btn-customize {
  background-color: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.cookie-btn-customize:hover {
  background-color: var(--border-color);
  color: var(--text-primary);
}

/* ==========================================================================
   CLEAN MINIMALIST FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 2.25rem 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-brand-col {
  max-width: 440px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.footer-brand strong {
  background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  list-style: none;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Skeleton Loading State */
.skeleton {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--border-color) 50%, var(--bg-subtle) 75%);
  background-size: 200% 100%;
  animation: skeletonPulse 1.5s infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
}

@keyframes skeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Responsive Tweaks */
@media (max-width: 640px) {
  .nav-inner { height: 56px; }
  .hero { padding: 1.75rem 0 1rem; }
  .spots-grid { grid-template-columns: 1fr; }
  .metric-main-value { font-size: 1.85rem; }
  .verdict-banner { padding: 1rem 1.15rem; }
  .site-footer { padding: 1.75rem 0 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
