:root {
  --navy: #123047;
  --navy-dark: #0b1f2e;
  --ocean: #4A9BB0;
  --ocean-light: #76bacb;
  --warm-white: #F7F5EF;
  --cream: #EFECE1;
  --terracotta: #C9795B;
  --terracotta-dark: #a95b3f;
  --sand: #e6dfce;
  --slate: #5d7182;
  --charcoal: #1c2730;
  --border-light: rgba(18, 48, 71, 0.12);
  --shadow-sm: 0 2px 8px rgba(18, 48, 71, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 48, 71, 0.09);
  --shadow-lg: 0 16px 36px rgba(18, 48, 71, 0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, .serif {
  font-family: var(--font-serif);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* CONTAINER */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* SLIM NON-STICKY HEADER */
.site-header {
  height: 60px;
  background-color: var(--warm-white);
  border-bottom: 1px solid var(--border-light);
  position: static;
  width: 100%;
  z-index: 100;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.brand-logo svg {
  width: 28px;
  height: 28px;
  fill: var(--terracotta);
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.2px;
  position: relative;
  padding: 4px 0;
}

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

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

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--navy);
  color: var(--warm-white);
}

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

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

.btn-accent:hover {
  background-color: var(--terracotta-dark);
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
}

/* NOVEL CARD ARCHITECTURE: FRAMED CANVAS CARD */
.framed-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}

.framed-card::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 6px;
  right: -6px;
  bottom: -6px;
  background: var(--sand);
  z-index: -1;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.framed-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.framed-card:hover::before {
  top: 10px;
  left: 10px;
  background: var(--ocean-light);
}

.card-media {
  position: relative;
  height: 230px;
  overflow: hidden;
  background-color: var(--navy-dark);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.framed-card:hover .card-media img {
  transform: scale(1.06);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 48, 71, 0.88);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
}

.card-beach-type {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(247, 245, 239, 0.95);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-coast-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terracotta);
  font-weight: 700;
  margin-bottom: 6px;
}

.card-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--navy);
}

.card-desc {
  font-size: 14px;
  color: var(--slate);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* DATA-GRID METRICS PANEL */
.data-grid-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: var(--cream);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  border: 1px solid rgba(18, 48, 71, 0.05);
}

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

.metric-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}

.metric-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
}

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

.card-price {
  display: flex;
  flex-direction: column;
}

.price-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
}

.price-sub {
  font-size: 11px;
  color: var(--slate);
}

/* HERO SECTION */
.hero-section {
  padding: 48px 0 32px 0;
  background: linear-gradient(180deg, var(--warm-white) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--border-light);
}

.hero-headline {
  font-size: clamp(32px, 4.5vw, 56px);
  max-width: 900px;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.hero-subhead {
  font-size: 18px;
  color: var(--slate);
  max-width: 720px;
  margin-bottom: 28px;
}

/* SEARCH & FILTER CONTROLS */
.search-filter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
}

.search-input {
  width: 100%;
  padding: 9px 36px 9px 36px;
  font-size: 14px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: var(--charcoal);
  font-family: inherit;
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(74, 155, 176, 0.15);
}

.search-icon {
  position: absolute;
  left: 10px;
  width: 18px;
  height: 18px;
  fill: var(--slate);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: var(--slate);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  display: none;
  line-height: 1;
}

.search-clear-btn:hover {
  color: var(--navy);
}

.results-count-bar {
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 20px;
  letter-spacing: 0.2px;
}

.no-results-box {
  background: #ffffff;
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-md);
  padding: 48px 24px;
  text-align: center;
  color: var(--slate);
  margin: 20px 0;
}

.no-results-box h3 {
  color: var(--navy);
  margin-bottom: 8px;
}

/* MAP FIRST INTERFACE */
.map-canvas-wrapper {
  background: var(--navy-dark);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-top: 20px;
  border: 1px solid rgba(255,255,255,0.1);
}

.map-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.map-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(74, 155, 176, 0.25);
  color: var(--ocean-light);
  border: 1px solid var(--ocean);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.coast-pills-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  width: 100%;
}

.coast-pill {
  padding: 8px 16px;
  border-radius: 30px;
  background: rgba(18, 48, 71, 0.08);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.map-header .coast-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.coast-pill:hover,
.coast-pill.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff;
  box-shadow: 0 4px 12px rgba(201, 121, 91, 0.4);
}

/* SVG INTERACTIVE MAP CONTAINER */
.europe-interactive-map {
  width: 100%;
  height: 420px;
  position: relative;
  background: #0d2538;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-svg-art {
  width: 100%;
  height: 100%;
}

.map-marker {
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.map-marker:hover {
  transform: scale(1.3);
}

.map-infobox {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(18, 48, 71, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--ocean);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* SECTION STYLING */
.section {
  padding: 72px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title {
  font-size: 32px;
  color: var(--navy);
  letter-spacing: -0.5px;
}

.section-subtitle {
  color: var(--slate);
  font-size: 15px;
  margin-top: 4px;
}

.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 32px;
}

.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* EDITORIAL COMPARISON TABLE */
.comparison-table-wrapper {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 780px;
}

.comparison-table th {
  background: var(--navy);
  color: #fff;
  padding: 16px 20px;
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--charcoal);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background-color: var(--cream);
}

/* ROUTE TIMELINE */
.route-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
}

.timeline-step {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  border-top: 4px solid var(--terracotta);
  box-shadow: var(--shadow-sm);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.step-num {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--terracotta);
  font-weight: 800;
  margin-bottom: 8px;
}

.step-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-meta {
  font-size: 13px;
  color: var(--slate);
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  border-top: 1px dashed var(--border-light);
  padding-top: 8px;
}

/* EDITORIAL LEGAL PAGES & ARTICLE DETAILS */
.article-header {
  padding: 60px 0 30px;
  background: var(--cream);
  border-bottom: 1px solid var(--border-light);
}

.article-body {
  padding: 48px 0;
  font-size: 16px;
  line-height: 1.8;
  color: #2b3945;
}

.article-body h2 {
  font-size: 26px;
  margin: 36px 0 16px;
}

.article-body h3 {
  font-size: 20px;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 8px;
}

.specs-callout {
  background: #ffffff;
  border-left: 4px solid var(--ocean);
  padding: 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  box-shadow: var(--shadow-sm);
}

/* CONTACT FORM & INFO */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background: #fff;
  padding: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.contact-info-block {
  padding: 8px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--navy);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  background-color: var(--warm-white);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--ocean);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(74, 155, 176, 0.2);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

/* FOOTER */
.site-footer {
  background-color: var(--navy);
  color: var(--cream);
  padding: 64px 0 32px;
  margin-top: 64px;
  border-top: 3px solid var(--terracotta);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--ocean-light);
  font-size: 14px;
  max-width: 320px;
  line-height: 1.6;
}

.footer-col h4 {
  color: #fff;
  font-size: 15px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #c0d3de;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--terracotta);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  color: #8fa7b8;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

/* PERSISTENT COOKIE CONSENT */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 640px;
  margin: 0 auto;
  background: var(--navy-dark);
  color: #fff;
  border: 1px solid var(--ocean);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
  z-index: 9999;
  display: none;
  animation: slideUp 0.4s ease-out forwards;
}

.cookie-content h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
}

.cookie-content p {
  font-size: 13px;
  color: #cbdbe5;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .cards-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--warm-white);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
  }
  .nav-links.active {
    display: flex;
  }
  .menu-toggle {
    display: block;
  }
  .nav-cta {
    display: none;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}