@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-seafoam: #F4F8FA;
  --bg-white: #FFFFFF;
  --primary-blue: #0284C7;
  --deep-atlantic: #0F172A;
  --med-cyan: #06B6D4;
  --warm-sun: #F59E0B;
  --soft-sand: #F8E9D2;
  --coral-accent: #FB7185;
  --glass-border: rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --dark-glass-bg: rgba(15, 23, 42, 0.96);
  
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-subheading: 'DM Serif Display', serif;
  --font-body: 'Inter', sans-serif;
  --font-stats: 'Space Grotesk', sans-serif;
  --font-nav: 'Poppins', sans-serif;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-premium: 0 30px 60px -15px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.02);
  --shadow-glass: 0 12px 40px 0 rgba(15, 23, 42, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--bg-seafoam);
  color: var(--deep-atlantic);
  font-family: var(--font-body);
  line-height: 1.625;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* Base Layout Spacing System */
main.main-content {
  padding-top: 11rem;
  padding-bottom: 6rem;
  position: relative;
  z-index: 10;
}

@media (max-width: 1024px) {
  main.main-content {
    padding-top: 8.5rem;
    padding-bottom: 4rem;
  }
}

@media (max-width: 768px) {
  main.main-content {
    padding-top: 7.5rem;
    padding-bottom: 3rem;
  }
}

/* Glassmorphism Panels */
.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-glass);
}

.glass-panel-dark {
  background: var(--dark-glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--bg-white);
}

/* Premium Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--deep-atlantic);
  color: var(--bg-white);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--glass-bg);
  color: var(--deep-atlantic);
  padding: 1rem 2rem;
  border-radius: 9999px;
  font-family: var(--font-nav);
  font-weight: 500;
  font-size: 0.9375rem;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.9);
  border-color: var(--primary-blue);
  transform: translateY(-2px);
}

/* Global Navigation */
header.global-nav {
  position: fixed;
  top: 1.5rem;
  left: 5%;
  right: 5%;
  width: 90%;
  z-index: 1000;
  border-radius: 100px;
  padding: 0.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-smooth);
}

header.global-nav.scrolled {
  top: 0.75rem;
  width: 94%;
  left: 3%;
  right: 3%;
  padding: 0.6rem 2rem;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.1);
}

.logo-container .logo {
  font-family: var(--font-subheading);
  font-size: 1.5rem;
  color: var(--deep-atlantic);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-container .logo span {
  color: var(--primary-blue);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-nav);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--deep-atlantic);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-blue);
  transition: var(--transition-smooth);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--deep-atlantic);
}

/* Premium Improved Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 10rem 0 6rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--bg-white);
  text-align: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: slowZoom 24s infinite alternate;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.85) 100%);
  z-index: -1;
}

.hero-content {
  width: 100%;
  max-width: 960px;
  padding: 0 1.5rem;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-editorial {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.6rem 1.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-block;
  margin-bottom: 2rem;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
  color: var(--bg-white);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-title {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.15;
  letter-spacing: -1px;
  text-shadow: 0 4px 20px rgba(15, 23, 42, 0.45);
  background: linear-gradient(180deg, #FFFFFF 30%, rgba(255, 255, 255, 0.85) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-family: var(--font-body);
  font-weight: 300;
  max-width: 750px;
  margin: 0 auto 3.5rem;
  opacity: 0.95;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(15, 23, 42, 0.3);
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

/* Premium Scroll Indicator */
.hero-scroll-indicator {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeInUp 1s ease-out 0.4s both, pulse 2s infinite;
}

.scroll-text {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.7);
}

.scroll-mouse {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background-color: var(--primary-blue);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollAnim 1.5s infinite;
}

@keyframes scrollAnim {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, 8px); }
}

@keyframes pulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Floating Search Bar */
.search-container-wrap {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.floating-search {
  border-radius: 100px;
  padding: 0.6rem 0.6rem 0.6rem 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
  transition: var(--transition-smooth);
}

.floating-search:hover, .floating-search:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 35px 70px rgba(15, 23, 42, 0.35), 0 0 0 4px rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.3);
}

.search-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.search-field label {
  font-family: var(--font-nav);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.6;
  margin-bottom: 0.15rem;
  color: var(--deep-atlantic);
}

.search-field input, .search-field select {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--deep-atlantic);
  width: 100%;
  padding: 0.25rem 0;
}

.search-field select {
  cursor: pointer;
  appearance: none;
}

.search-divider {
  width: 1px;
  height: 30px;
  background-color: rgba(15, 23, 42, 0.15);
}

/* Sections Structure */
section {
  padding: 6.5rem 0;
  position: relative;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
}

.section-header {
  max-width: 700px;
  margin-bottom: 4rem;
}

.section-tag {
  font-family: var(--font-nav);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--deep-atlantic);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.section-desc {
  font-size: 1.1rem;
  color: #64748B;
  font-weight: 300;
}

/* Statistics Visualizer */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 1rem;
}

.stat-card {
  padding: 2.5rem 2rem;
  border-radius: 24px;
  text-align: center;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-blue), var(--med-cyan));
  opacity: 0;
  transition: var(--transition-smooth);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -10px rgba(15, 23, 42, 0.08);
  border-color: rgba(2, 132, 199, 0.3);
}

.stat-icon {
  color: var(--primary-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.08);
  padding: 0.75rem;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.stat-card:hover .stat-icon {
  background: var(--primary-blue);
  color: var(--bg-white);
  transform: scale(1.1) rotate(5deg);
}

.stat-num {
  font-family: var(--font-stats);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--deep-atlantic);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-nav);
  font-size: 0.875rem;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Interactive Map Section */
.map-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: stretch;
}

.interactive-map-container {
  width: 100%;
  aspect-ratio: 8 / 5;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-premium);
}

.map-placeholder-svg {
  width: 100%;
  height: 100%;
  background-color: #E0F2FE;
  position: relative;
  display: block;
}

.map-hotspot {
  position: absolute;
  width: 16px;
  height: 16px;
  background-color: var(--coral-accent);
  border: 3px solid var(--bg-white);
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 6px rgba(251, 113, 133, 0.3);
  transition: var(--transition-smooth);
  z-index: 15;
}

.map-hotspot:hover, .map-hotspot.active {
  background-color: var(--primary-blue);
  box-shadow: 0 0 0 12px rgba(2, 132, 199, 0.4);
  transform: translate(-50%, -50%) scale(1.3);
}

.map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: 550px;
  overflow-y: auto;
  padding-right: 0.75rem;
}

/* Sidebar Custom Scrollbar */
.map-sidebar::-webkit-scrollbar {
  width: 6px;
}

.map-sidebar::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.03);
  border-radius: 10px;
}

.map-sidebar::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.15);
  border-radius: 10px;
}

.map-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--primary-blue);
}

.beach-map-card {
  padding: 1rem;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.beach-map-card.active, .beach-map-card:hover {
  border-color: var(--primary-blue);
  background-color: var(--bg-white);
  transform: translateX(5px);
}

.beach-map-card img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

/* Beach Showcase Grid (Top 10 Catalogue) */
.beach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

.beach-card {
  border-radius: 28px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.beach-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.15);
}

.card-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.beach-card:hover .card-img-wrap img {
  transform: scale(1.08);
}

.card-badges {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.badge-country {
  background-color: var(--dark-glass-bg);
  backdrop-filter: blur(8px);
  color: var(--bg-white);
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.card-save-btn {
  background: var(--glass-bg);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.card-save-btn:hover {
  transform: scale(1.1);
  background-color: var(--bg-white);
}

.card-save-btn.saved svg {
  fill: var(--coral-accent);
  stroke: var(--coral-accent);
}

.card-body {
  padding: 2rem;
  border-top: none;
}

.card-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.card-region {
  font-family: var(--font-nav);
  font-size: 0.8125rem;
  color: #64748B;
  font-weight: 500;
  text-transform: uppercase;
}

.card-score {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-stats);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--deep-atlantic);
}

.card-score svg {
  fill: var(--warm-sun);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card-fac-chips {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.chip-facility {
  font-family: var(--font-body);
  font-size: 0.75rem;
  background-color: rgba(2, 132, 199, 0.08);
  color: var(--primary-blue);
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-weight: 500;
}

.card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  padding-top: 1.25rem;
}

.card-weather {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-family: var(--font-stats);
}

.card-link {
  font-family: var(--font-nav);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.card-link:hover {
  color: var(--deep-atlantic);
}

/* Premium Product Detail View */
.detail-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 4rem;
}

.detail-single-hero {
  position: relative;
  height: 480px;
  border-radius: 32px;
  overflow: hidden;
  margin-bottom: 3rem;
  box-shadow: var(--shadow-premium);
}

.detail-single-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-headline-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding-bottom: 2rem;
  gap: 2rem;
}

.detail-tags {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.detail-tag {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  font-weight: 500;
}

.detail-tag.blue-flag {
  background-color: #E0F2FE;
  color: var(--primary-blue);
}

.detail-tag.unesco {
  background-color: #FEF3C7;
  color: var(--warm-sun);
}

.detail-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.detail-gps {
  font-family: var(--font-stats);
  color: #64748B;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ratings-matrix {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.matrix-card {
  padding: 1.5rem;
  border-radius: 18px;
}

.matrix-label {
  font-family: var(--font-nav);
  font-size: 0.8125rem;
  color: #64748B;
  display: block;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.matrix-val {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.matrix-num {
  font-family: var(--font-stats);
  font-size: 1.5rem;
  font-weight: 700;
}

.matrix-bar-bg {
  flex: 1;
  height: 6px;
  background-color: rgba(15, 23, 42, 0.08);
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.matrix-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background-color: var(--primary-blue);
  border-radius: 3px;
}

.itinerary-timeline {
  margin-top: 3rem;
  position: relative;
  padding-left: 2rem;
}

.itinerary-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background-color: rgba(15, 23, 42, 0.1);
}

.timeline-step {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -29px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-white);
  border: 3px solid var(--primary-blue);
}

.timeline-time {
  font-family: var(--font-stats);
  font-size: 0.875rem;
  color: var(--primary-blue);
  font-weight: 600;
  display: block;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Sidebar Travel Planner Box */
.detail-sidebar-box {
  position: sticky;
  top: 8rem;
  padding: 2.5rem;
  border-radius: 28px;
}

.sidebar-heading {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 1rem;
}

.planner-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  gap: 1rem;
}

.planner-lbl {
  color: #64748B;
  flex-shrink: 0;
}

.planner-val {
  font-weight: 600;
  font-family: var(--font-stats);
  text-align: right;
}

/* Coastal Rating Lab Calculator */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
}

.lab-panel-left {
  padding: 3rem;
  border-radius: 28px;
  align-self: start;
}

.lab-field {
  margin-bottom: 2rem;
}

.lab-field label {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  color: var(--deep-atlantic);
}

.range-wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.range-wrap input[type="range"] {
  flex: 1;
  accent-color: var(--primary-blue);
}

.range-val {
  font-family: var(--font-stats);
  font-weight: 600;
  min-width: 40px;
}

.lab-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Editorial About Page Content */
.about-hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.about-img-frame {
  position: relative;
  border-radius: 32px;
  overflow: hidden;
  height: 550px;
  box-shadow: var(--shadow-premium);
}

.about-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-story-text {
  font-size: 1.15rem;
  font-weight: 300;
  color: #475569;
  line-height: 1.8;
}

.about-editorial-dropcap::first-letter {
  font-family: var(--font-subheading);
  font-size: 4.5rem;
  float: left;
  line-height: 0.8;
  margin-right: 0.75rem;
  color: var(--primary-blue);
}

/* Itinerary Grid Card */
.itinerary-grid-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  border-radius: 28px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.itinerary-grid-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

/* Contact/Inquiry Page glass form */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 5rem;
  align-items: center;
}

.contact-info-panel h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.contact-details {
  list-style: none;
  margin-top: 2rem;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-nav);
}

.contact-details li svg {
  color: var(--primary-blue);
}

.contact-glass-form {
  padding: 3.5rem;
  border-radius: 32px;
}

.form-group-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background-color: var(--bg-white);
  outline: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.1);
}

/* Legal Pages */
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 10rem 2rem 6rem;
}

.legal-meta {
  font-family: var(--font-nav);
  font-size: 0.875rem;
  color: #64748B;
  margin-bottom: 2rem;
}

.legal-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
}

.legal-content p, .legal-content ul {
  margin-bottom: 1.5rem;
  color: #475569;
}

/* Global Footer */
footer.global-footer {
  background-color: var(--deep-atlantic);
  color: rgba(255, 255, 255, 0.7);
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9375rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 0.8fr) 1.4fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  font-family: var(--font-subheading);
  font-size: 1.75rem;
  color: var(--bg-white);
  margin-bottom: 1.5rem;
}

.footer-brand .logo span {
  color: var(--primary-blue);
}

.footer-column h4 {
  color: var(--bg-white);
  font-family: var(--font-nav);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 0.85rem;
}

.footer-column ul li a:hover {
  color: var(--bg-white);
  padding-left: 4px;
}

.footer-newsletter p {
  margin-bottom: 1.25rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--bg-white);
  flex: 1;
  outline: none;
}

.newsletter-form button {
  background-color: var(--primary-blue);
  color: var(--bg-white);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* PDF/Document Premium Overlay styles */
.pdf-generation-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.4s ease-out;
}

.pdf-document-card {
  background-color: var(--bg-white);
  color: var(--deep-atlantic);
  width: 100%;
  max-width: 850px;
  max-height: 90vh;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.pdf-header {
  border-bottom: 2px dashed rgba(15, 23, 42, 0.1);
  padding: 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-logo {
  font-family: var(--font-subheading);
  font-size: 1.8rem;
  color: var(--deep-atlantic);
}

.pdf-logo span {
  color: var(--primary-blue);
}

.pdf-stamp {
  font-family: var(--font-stats);
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--primary-blue);
  color: var(--primary-blue);
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 2px;
  transform: rotate(-3deg);
}

.pdf-content {
  padding: 3rem;
  flex: 1;
}

.pdf-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.pdf-meta-item strong {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #64748B;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.pdf-meta-item span {
  font-family: var(--font-stats);
  font-size: 1.05rem;
  font-weight: 600;
}

.pdf-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.5rem;
}

.pdf-table th {
  text-align: left;
  font-family: var(--font-nav);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #64748B;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 0.75rem;
}

.pdf-table td {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
  font-size: 0.9375rem;
}

.pdf-footer-actions {
  background-color: var(--bg-seafoam);
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Satellite Loader Screen */
.pdf-satellite-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--bg-white);
  gap: 1.5rem;
  text-align: center;
}

.radar-sweep-icon {
  width: 80px;
  height: 80px;
  border: 4px solid rgba(2, 132, 199, 0.2);
  border-top-color: var(--primary-blue);
  border-radius: 50%;
  animation: radarRotate 1s linear infinite;
}

/* Animations */
@keyframes radarRotate {
  100% { transform: rotate(360deg); }
}

@keyframes slowZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.toast {
  padding: 1rem 2rem;
  border-radius: 12px;
  animation: slideInRight 0.3s forwards;
  font-family: var(--font-nav);
  font-size: 0.875rem;
  font-weight: 500;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.modal-content {
  max-width: 500px;
  width: 90%;
  padding: 3rem;
  border-radius: 28px;
  text-align: center;
}

/* Cookie consent slide effects */
#cookie-consent-banner {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Print Overrides */
@media print {
  body * {
    visibility: hidden;
  }
  .pdf-generation-overlay, .pdf-generation-overlay * {
    visibility: visible;
  }
  .pdf-generation-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    background: none;
    padding: 0;
  }
  .pdf-footer-actions {
    display: none;
  }
}

/* Responsive Overrides & Flexbox/Grid Fixes */
@media (max-width: 1150px) {
  .map-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .interactive-map-container {
    aspect-ratio: 8 / 5;
  }
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .detail-sidebar-box {
    position: static;
  }
}

@media (max-width: 1024px) {
  header.global-nav {
    border-radius: 0;
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    padding: 1rem 1.5rem;
  }
  header.global-nav.scrolled {
    width: 100%;
    left: 0;
    right: 0;
    top: 0;
    padding: 1rem 1.5rem;
  }
  .nav-links {
    display: none;
  }
  .nav-links.mobile-active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-glass-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2.5rem 2rem;
    gap: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.25);
  }
  .nav-links.mobile-active a {
    color: var(--bg-white);
    font-size: 1.15rem;
    width: 100%;
    display: block;
  }
  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 900px) {
  .about-hero-grid, .contact-grid, .lab-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .itinerary-grid-card {
    grid-template-columns: 1fr;
  }
  .itinerary-grid-card img {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    min-height: auto;
    padding: 8.5rem 0 4rem;
  }
  .hero-scroll-indicator {
    display: none;
  }
  .floating-search {
    flex-direction: column;
    border-radius: 24px;
    padding: 1.5rem;
    align-items: stretch;
    gap: 1.25rem;
  }
  .search-field {
    width: 100%;
  }
  .search-divider {
    width: 100%;
    height: 1px;
  }
  .floating-search button {
    width: 100%;
    justify-content: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  #cookie-consent-banner {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
    padding: 1.25rem 1.5rem !important;
  }
  .ratings-matrix {
    grid-template-columns: 1fr;
  }
  .detail-headline-wrap {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .interactive-map-container {
    aspect-ratio: auto;
    height: 340px;
  }
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-glass-form {
    padding: 2rem 1.5rem;
  }
}