/*
Theme Name: Cruises.to — Port Guides
Theme URI: https://cruises.to
Author: cruises.to
Description: An elegant, curated guide to the world's most breathtaking cruise ports. Features interactive maps and deep-dive destination insights.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: cruises-to
Tags: travel, cruise, ports, destinations, maps, elegant
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --navy:          #0d1b2a;
  --navy-mid:      #162438;
  --navy-light:    #1e3252;
  --gold:          #c9a257;
  --gold-light:    #e8d5a3;
  --gold-dark:     #9e7c38;
  --ivory:         #f8f4ee;
  --ivory-dark:    #ede7dc;
  --teal:          #3d8fa3;
  --teal-light:    #72b8cc;
  --teal-dark:     #2a6b7c;
  --text-dark:     #0d1b2a;
  --text-body:     #2e3d4f;
  --text-muted:    #607080;
  --text-light:    #94a3b3;
  --white:         #ffffff;
  --border:        rgba(201, 162, 87, 0.25);
  --border-light:  rgba(201, 162, 87, 0.12);
  --shadow-sm:     0 2px 8px rgba(13, 27, 42, 0.08);
  --shadow-md:     0 8px 32px rgba(13, 27, 42, 0.12);
  --shadow-lg:     0 20px 60px rgba(13, 27, 42, 0.18);
  --shadow-gold:   0 4px 24px rgba(201, 162, 87, 0.2);
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --container:     1280px;
  --container-narrow: 840px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Crimson Pro', 'Georgia', serif;
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--text-body);
  background: var(--ivory);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

::selection {
  background: var(--gold);
  color: var(--navy);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', 'Palatino Linotype', serif;
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.1rem); }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.2rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.25em; }
p:last-child { margin-bottom: 0; }

.label {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.label--light { color: var(--gold-light); }
.label--muted { color: var(--text-light); }

blockquote {
  border-left: 3px solid var(--gold);
  padding: 1rem 0 1rem 1.5rem;
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text-muted);
  margin: 2rem 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section-pad { padding: 6rem 0; }
.section-pad--lg { padding: 9rem 0; }
.section-pad--sm { padding: 3.5rem 0; }

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

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

.text-center { text-align: center; }

/* ============================================================
   DECORATIVE ELEMENTS
   ============================================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.divider-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  opacity: 0.7;
  flex-shrink: 0;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem;
}

.section-header .label { margin-bottom: 0.75rem; display: block; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }

/* Gold rule line */
.gold-rule {
  display: block;
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-dark));
  margin: 1.5rem auto;
  border-radius: 1px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
  padding: 1.5rem 0;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.95) 0%, rgba(13,27,42,0.8) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 162, 87, 0.1);
  opacity: 0;
  transition: opacity var(--transition);
  z-index: -1;
}

.site-header.scrolled { padding: 1rem 0; }
.site-header.scrolled::before { opacity: 1; }

/* Header on non-hero pages */
.site-header--solid { padding: 1rem 0; }
.site-header--solid::before { opacity: 1; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(61, 143, 163, 0.4);
}

.site-logo__mark svg {
  width: 20px;
  height: 20px;
  color: white;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.site-logo__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
}

.site-logo__tagline {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.75;
  margin-top: 1px;
}

/* Primary Nav */
.primary-nav { display: flex; align-items: center; gap: 0.25rem; }

.primary-nav a {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a.current-menu-item {
  color: var(--gold-light);
  background: rgba(201, 162, 87, 0.1);
}

/* Header Actions */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-search {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
}

.btn-search:hover {
  background: rgba(201, 162, 87, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

.btn-search svg { width: 15px; height: 15px; }

.btn-explore {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--navy);
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  box-shadow: 0 2px 12px rgba(201, 162, 87, 0.3);
}

.btn-explore:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(201, 162, 87, 0.45);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  color: white;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================================
   HERO — HOMEPAGE
   ============================================================ */
.hero-home {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy);
}

/* Animated ocean gradient mesh */
.hero-home__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 80% at 60% 40%, rgba(61,143,163,0.25) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 10% 80%, rgba(30,50,82,0.8) 0%, transparent 60%),
    radial-gradient(ellipse 120% 100% at 50% 0%, rgba(13,27,42,1) 0%, transparent 80%),
    linear-gradient(165deg, #0d1b2a 0%, #0f2540 40%, #0d2535 70%, #0a1628 100%);
  animation: oceanPulse 12s ease-in-out infinite alternate;
}

@keyframes oceanPulse {
  0%   { filter: hue-rotate(0deg) brightness(1); }
  100% { filter: hue-rotate(8deg) brightness(1.05); }
}

/* Nautical grid overlay */
.hero-home__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 87, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 87, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}

/* Hero featured image */
.hero-home__image {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-home__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

/* Decorative wave bottom */
.hero-home__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 2;
}

.hero-home__wave svg {
  width: 100%;
  height: 100%;
}

.hero-home__content {
  position: relative;
  z-index: 3;
  padding: 8rem 0 6rem;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}

.hero-home__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  animation: fadeInDown 0.8s ease both;
}

.hero-home__eyebrow::before,
.hero-home__eyebrow::after {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.hero-home__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.9s 0.15s ease both;
}

.hero-home__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-home__subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeInUp 0.9s 0.3s ease both;
}

/* Search bar on hero */
.hero-search {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201, 162, 87, 0.3);
  border-radius: 50px;
  padding: 0.5rem 0.5rem 0.5rem 1.5rem;
  max-width: 520px;
  margin: 0 auto 3rem;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  animation: fadeInUp 0.9s 0.45s ease both;
}

.hero-search:focus-within {
  border-color: var(--gold);
  background: rgba(255,255,255,0.12);
  box-shadow: var(--shadow-gold);
}

.hero-search input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  color: white;
  min-width: 0;
}

.hero-search input::placeholder { color: rgba(255,255,255,0.45); }

.hero-search button {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.65rem 1.3rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.hero-search button:hover { transform: scale(1.03); }

/* Port count stats */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  animation: fadeInUp 0.9s 0.6s ease both;
}

.hero-stat {
  text-align: center;
}

.hero-stat__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}

.hero-stat__label {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 0.25rem;
  display: block;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(201, 162, 87, 0.2);
}

/* ============================================================
   PORT CARD COMPONENT
   ============================================================ */
.port-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-light);
}

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

.port-card__image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-light);
}

.port-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.port-card:hover .port-card__image img { transform: scale(1.06); }

.port-card__image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.port-card__image--placeholder svg {
  width: 48px;
  height: 48px;
  color: var(--teal);
  opacity: 0.4;
}

/* Region badge */
.port-card__region {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  background: rgba(13, 27, 42, 0.7);
  backdrop-filter: blur(6px);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.12);
}

.port-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.port-card__country {
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.port-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.port-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.port-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
}

.port-card__link {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap var(--transition), color var(--transition);
}

.port-card:hover .port-card__link {
  color: var(--teal-dark);
  gap: 0.65rem;
}

.port-card__link svg { width: 14px; height: 14px; }

/* ============================================================
   FEATURED PORTS GRID (Homepage)
   ============================================================ */
.featured-ports { background: var(--ivory); }

.ports-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Hero card — spans 2 columns */
.ports-grid .port-card--featured {
  grid-column: span 2;
  flex-direction: row;
}

.port-card--featured .port-card__image {
  width: 55%;
  flex-shrink: 0;
  aspect-ratio: unset;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.port-card--featured .port-card__body { padding: 2rem; justify-content: center; }
.port-card--featured .port-card__title { font-size: 1.9rem; margin-bottom: 1rem; }

.port-card--featured .port-card__excerpt {
  -webkit-line-clamp: 4;
  margin-bottom: 1.5rem;
}

/* ============================================================
   REGIONS SECTION
   ============================================================ */
.regions-section { background: var(--navy); position: relative; overflow: hidden; }

.regions-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61,143,163,0.12) 0%, transparent 70%);
  pointer-events: none;
}

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

.region-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  cursor: pointer;
}

.region-card__bg {
  position: absolute;
  inset: 0;
  transition: transform var(--transition-slow);
}

.region-card__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-card:hover .region-card__bg { transform: scale(1.06); }

.region-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,27,42,0.2) 0%,
    rgba(13,27,42,0.5) 50%,
    rgba(13,27,42,0.85) 100%
  );
  transition: background var(--transition);
}

.region-card:hover .region-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(13,27,42,0.3) 0%,
    rgba(13,27,42,0.6) 50%,
    rgba(13,27,42,0.92) 100%
  );
}

.region-card__content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
}

.region-card__label {
  font-family: 'Jost', sans-serif;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
  display: block;
}

.region-card__name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.region-card__count {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
}

/* Default region card gradients (no photo) */
.region-card--caribbean .region-card__bg { background: linear-gradient(135deg, #1a5276, #117a65); }
.region-card--mediterranean .region-card__bg { background: linear-gradient(135deg, #1a3a6b, #4a235a); }
.region-card--alaska .region-card__bg { background: linear-gradient(135deg, #1c2833, #2e4057); }
.region-card--asia .region-card__bg { background: linear-gradient(135deg, #4a1942, #7b1d1d); }
.region-card--europe .region-card__bg { background: linear-gradient(135deg, #1a237e, #283593); }
.region-card--pacific .region-card__bg { background: linear-gradient(135deg, #006064, #00838f); }
.region-card--southamerica .region-card__bg { background: linear-gradient(135deg, #33691e, #1b5e20); }
.region-card--africa .region-card__bg { background: linear-gradient(135deg, #bf360c, #e65100); }

/* ============================================================
   PORT DETAIL — HERO
   ============================================================ */
.port-hero {
  position: relative;
  height: 70vh;
  min-height: 520px;
  max-height: 760px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy);
}

.port-hero__image {
  position: absolute;
  inset: 0;
}

.port-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.port-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(13,27,42,0.15) 0%,
    rgba(13,27,42,0.2) 40%,
    rgba(13,27,42,0.8) 75%,
    rgba(13,27,42,0.97) 100%
  );
}

/* No-image fallback */
.port-hero--no-image {
  background: linear-gradient(145deg, #0d1b2a 0%, #162438 40%, #0d2535 100%);
  height: 50vh;
  min-height: 380px;
}

.port-hero--no-image .port-hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 87, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 87, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}

.port-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 0 4rem;
  width: 100%;
}

.port-hero__breadcrumb {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.port-hero__breadcrumb a { color: var(--gold-light); transition: color var(--transition); }
.port-hero__breadcrumb a:hover { color: var(--gold); }
.port-hero__breadcrumb span { opacity: 0.4; }

.port-hero__region-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 162, 87, 0.35);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
  background: rgba(201, 162, 87, 0.08);
}

.port-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.port-hero__country {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.port-hero__country svg { width: 14px; height: 14px; color: var(--gold); }

/* ============================================================
   PORT CONTENT LAYOUT
   ============================================================ */
.port-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
  padding: 4rem 0 6rem;
}

.port-content {
  min-width: 0;
}

.port-content__body {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--text-body);
}

.port-content__body h2,
.port-content__body h3 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.port-content__body h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 0.75rem;
}

.port-content__body ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.25em;
}

.port-content__body ul li { margin-bottom: 0.4em; }

/* ============================================================
   MAP WIDGET
   ============================================================ */
.port-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.sidebar-card__header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sidebar-card__header svg {
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.sidebar-card__title {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dark);
}

#port-map {
  width: 100%;
  height: 280px;
}

.map-coords {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 1.5rem;
}

.map-coord { flex: 1; }

.map-coord__label {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.15rem;
}

.map-coord__value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* Port Info Card */
.port-info-list { padding: 0.5rem 0; }

.port-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  transition: background var(--transition);
}

.port-info-item:last-child { border-bottom: none; }
.port-info-item:hover { background: var(--ivory); }

.port-info-item__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 162, 87, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.port-info-item__icon svg { width: 15px; height: 15px; color: var(--gold); }

.port-info-item__label {
  font-family: 'Jost', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  display: block;
  margin-bottom: 0.15rem;
}

.port-info-item__value {
  font-family: 'Crimson Pro', serif;
  font-size: 1rem;
  color: var(--text-dark);
  font-weight: 600;
}

/* ============================================================
   RELATED PORTS
   ============================================================ */
.related-ports { background: var(--ivory-dark); padding: 5rem 0; }

.related-ports__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ============================================================
   ARCHIVE / ALL PORTS
   ============================================================ */
.archive-header {
  background: var(--navy);
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.archive-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 162, 87, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 162, 87, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.archive-header__inner { position: relative; z-index: 1; }

.archive-header h1 {
  color: var(--white);
  margin-bottom: 0.75rem;
}

.archive-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 520px;
}

/* Filter Bar */
.filter-bar {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 70px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.filter-bar__inner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-bar__inner::-webkit-scrollbar { display: none; }

.filter-btn {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.45rem 1rem;
  border-radius: 50px;
  white-space: nowrap;
  transition: all var(--transition);
  cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
  color: var(--navy);
  background: var(--gold-light);
  border-color: var(--gold);
}

.ports-count {
  font-family: 'Jost', sans-serif;
  font-size: 0.7rem;
  color: var(--text-light);
  margin-left: auto;
  padding-left: 1rem;
  border-left: 1px solid var(--border-light);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Archive grid */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  padding: 3rem 0 5rem;
}

/* ============================================================
   SEARCH RESULTS
   ============================================================ */
.search-header {
  background: var(--navy);
  padding: 8rem 0 3rem;
}

.search-header h1 { color: var(--white); }
.search-header .search-query { color: var(--gold-light); }
.search-result-count {
  font-family: 'Jost', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.5rem;
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0 5rem;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--navy);
  padding-top: 5rem;
  border-top: 1px solid rgba(201, 162, 87, 0.15);
}

.footer-grid {
  display: grid;
  grid-template-columns: 280px 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  margin-top: 1rem;
}

.footer-col h4 {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer-col ul { display: flex; flex-direction: column; gap: 0.6rem; }

.footer-col a {
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.footer-bottom p {
  font-family: 'Jost', sans-serif;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.05em;
  margin: 0;
}

.footer-bottom a { color: var(--gold); transition: opacity var(--transition); }
.footer-bottom a:hover { opacity: 0.8; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}

.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--navy);
  box-shadow: 0 4px 16px rgba(201, 162, 87, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 162, 87, 0.45);
}

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

.btn-outline:hover {
  background: rgba(201, 162, 87, 0.1);
  transform: translateY(-1px);
}

.btn-outline--white {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.25);
}

.btn-outline--white:hover {
  color: white;
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.07);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 2rem 0 4rem;
}

.pagination a,
.pagination span {
  font-family: 'Jost', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: all var(--transition);
}

.pagination a:hover {
  color: var(--navy);
  background: var(--gold-light);
  border-color: var(--gold);
}

.pagination .current {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.page-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--navy);
}

.page-404__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12rem;
  font-weight: 700;
  color: rgba(201, 162, 87, 0.12);
  line-height: 1;
  display: block;
  margin-bottom: -2rem;
}

.page-404 h1 { color: white; margin-bottom: 1rem; }
.page-404 p { color: rgba(255,255,255,0.55); max-width: 400px; margin: 0 auto 2rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.animate-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* ============================================================
   LEAFLET OVERRIDES
   ============================================================ */
.leaflet-container {
  font-family: 'Jost', sans-serif !important;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.leaflet-control-attribution { font-size: 9px !important; opacity: 0.6; }

.port-popup {
  font-family: 'Crimson Pro', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
}

/* Custom map marker */
.port-marker-icon {
  background: var(--gold);
  border: 3px solid white;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 3px 12px rgba(201,162,87,0.5);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
  .ports-grid { grid-template-columns: repeat(2, 1fr); }
  .ports-grid .port-card--featured { grid-column: span 2; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .port-layout { grid-template-columns: 1fr 320px; }
  .related-ports__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .port-layout { grid-template-columns: 1fr; }
  .port-sidebar { position: static; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .search-results-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 1.5rem; }
  .ports-grid .port-card--featured { grid-column: 1; flex-direction: column; }
  .port-card--featured .port-card__image { width: 100%; }
}

@media (max-width: 768px) {
  .primary-nav, .header-actions .btn-explore { display: none; }
  .menu-toggle { display: flex; }

  .ports-grid { grid-template-columns: 1fr; }
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-grid { grid-template-columns: 1fr; }
  .search-results-grid { grid-template-columns: 1fr; }
  .related-ports__grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  .section-pad { padding: 4rem 0; }
  .section-pad--lg { padding: 5rem 0; }

  .hero-home__content { padding: 7rem 1rem 5rem; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .hero-stat-divider { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .region-grid { grid-template-columns: 1fr; }
  .related-ports__grid { grid-template-columns: 1fr; }
  h1 { font-size: 2.2rem; }
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--navy);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.mobile-nav.open { opacity: 1; pointer-events: all; }

.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}

.mobile-nav a:hover { color: var(--gold-light); }

.mobile-nav__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: rgba(255,255,255,0.6);
  font-size: 2rem;
  cursor: pointer;
  transition: color var(--transition);
}

.mobile-nav__close:hover { color: var(--gold); }

/* ============================================================
   WORDPRESS BLOCK COMPATIBILITY
   ============================================================ */
.wp-block-image { margin: 2rem 0; border-radius: var(--radius-md); overflow: hidden; }
.wp-block-quote { border-left: 3px solid var(--gold); padding: 1rem 1.5rem; }
.wp-block-separator { border: none; border-top: 1px solid var(--border); margin: 3rem auto; max-width: 120px; }

/* Gutenberg alignment */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: 100%; margin-left: calc(-50vw + 50%); margin-right: calc(-50vw + 50%); }
