:root {
  --color-bg-main: #f9f7f2;
  /* Professional sand/beige */
  --color-bg-card: #ffffff;
  --color-navy: #002d4c;
  /* Fred. Olsen Midnight Navy */
  --color-accent: #e42312;
  /* Fred. Olsen Red */
  --color-gold: #c9a66b;
  /* Sophisticated accent */
  --color-text-dark: #222222;
  --color-text-muted: #666666;
  --color-border: #e0dbce;
  --font-family: 'Outfit', sans-serif;
  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 4px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: var(--font-family);
  background-color: var(--color-bg-main);
  color: var(--color-text-dark);
  line-height: 1.6;
}

/* Header */
.global-header {
  background-color: var(--color-navy);
  color: white;
  padding: 1rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-text strong {
  display: block;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

.logo-text span {
  font-size: 0.8rem;
  opacity: 0.8;
  font-weight: 300;
}

.global-nav {
  display: flex;
  gap: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.global-nav a {
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: var(--transition);
}

.global-nav a:hover {
  color: var(--color-gold);
  opacity: 1;
}

/* Hero */
.hero {
  padding: 4rem 5%;
  text-align: center;
  background: linear-gradient(rgba(0, 45, 76, 0.05), rgba(0, 45, 76, 0)), url('https://68c8648dbe66747498d1-6027f91c84d2b73bebfc9b6bc4f4a0ac.ssl.cf3.rackcdn.com/67f7bd829116e20f30c7eecc/3shipsbanners.webp?q=80&w=2000&auto=format&fit=crop');
  background-size: cover;
  background-position: center;
  color: var(--color-navy);
}

.hero-box {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  padding: 3rem;
  border-radius: var(--radius-lg);
  max-width: 800px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.highlight {
  color: var(--color-accent);
}

/* Grid */
/* Promo Banner */
.promo-banner {
  background: linear-gradient(135deg, var(--color-navy) 0%, #004270 100%);
  color: white;
  padding: 3rem;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.promo-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(201, 166, 107, 0.1));
  transform: rotate(30deg);
  pointer-events: none;
}

.promo-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.promo-badge {
  background: var(--color-gold);
  color: var(--color-navy);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
  display: inline-block;
}

@media (max-width: 768px) {
  .promo-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Filters */
.filter-section {
  margin-bottom: 3rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

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

.filter-group {
  flex: 1;
  min-width: 200px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  background-color: #fff;
  transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(0, 45, 76, 0.1);
}

.search-group {
  position: relative;
  flex: 2;
  min-width: 300px;
}

.search-icon {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.results-count {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.main-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 4rem 5%;
}

.cruise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}

/* Card */
.cruise-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.cruise-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.card-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.price-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--color-accent);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1.1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ship-name {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--color-accent);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.cruise-name {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.cruise-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.meta-item svg {
  color: var(--color-navy);
}

.card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--color-navy);
  color: white;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: var(--transition);
}

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

/* Loading */
.loading-indicator {
  text-align: center;
  padding: 4rem;
  font-size: 1.2rem;
  color: var(--color-navy);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: white;
  margin: 5px 0;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 45, 76, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  /* Controlled by JS */
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 2rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--color-bg-main);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 3rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-navy);
  cursor: pointer;
}

/* Itinerary Elements */
.itinerary-modal {
  color: var(--color-navy);
}

.itin-header {
  border-bottom: 2px solid var(--color-accent);
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.itin-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.itin-day {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.itin-date {
  font-weight: 700;
  color: var(--color-accent);
}

.itin-port {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.itin-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.enquiry-header h2 {
  font-size: 1.75rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(0, 45, 76, 0.1);
}

@media (max-width: 768px) {
  .modal-content {
    padding: 1.5rem;
  }

  .itin-day {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .global-nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .main-container {
    padding: 2rem 5%;
  }
}