/* Nissos Blue - Museum-Quality Design System */

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

/* Design Tokens */
:root {
  /* Colors */
  --navy-pure: #001F3F;
  --navy-deep: #001429;
  --blue-primary: #0066CC;
  --blue-gradient-start: #0066CC;
  --blue-gradient-end: #004499;
  --white: #FFFFFF;
  --off-white: #FAFAFA;
  --gray-100: #F7F7F7;
  --gray-200: #E5E5E5;
  --gray-400: #999999;
  --gray-600: #666666;
  --gray-800: #333333;
  --black: #000000;
  
  /* Typography */
  --font-display: 'Cormorant Garamond', serif;
  --font-serif: 'Cormorant Garamond', serif;
  --font-sans: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Enhanced Letter Spacing */
  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide: 0.02em;
  --letter-spacing-wider: 0.05em;
  --letter-spacing-widest: 0.1em;
  --letter-spacing-luxury: 0.15em;
  
  /* Spacing Scale - Perfect Fourth */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.333rem;  /* 21px */
  --space-xl: 1.777rem;  /* 28px */
  --space-2xl: 2.369rem; /* 38px */
  --space-3xl: 3.157rem; /* 51px */
  --space-4xl: 4.209rem; /* 67px */
  --space-5xl: 5.61rem;  /* 90px */
  
  /* Type Scale */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.333rem;   /* 21px */
  --text-2xl: 1.777rem;  /* 28px */
  --text-3xl: 2.369rem;  /* 38px */
  --text-4xl: 3.157rem;  /* 51px */
  --text-5xl: 4.209rem;  /* 67px */
  
  /* Transitions */
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Typography */
html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* Screen Reader Only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Utilities */
/* Contextual on-media CTA utility: use only over live media (hero/header/menu) */
.u-on-media-cta {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 3px;
  transition: all var(--transition-base);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.u-on-media-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

/* Entrance animation utility (paired with IntersectionObserver in JS) */
@keyframes nb-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animated {
  animation: nb-fade-up 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  .animated { animation: none; }
}

/* Header Top Bar */
.header-top {
  background: var(--navy-pure);
  color: var(--white);
  text-align: center;
  padding: 0.625rem 0;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  max-height: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-notice {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Header Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

/* Mobile frosted header class (used instead of inline styles) */
.header--mobile-glass {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
}

.header.scrolled .header-top {
  max-height: 0;
  opacity: 0;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled .nav {
  padding: 0.75rem 0;
}

.header.scrolled .logo {
  color: var(--navy-pure);
}

.header.scrolled .menu-btn {
  color: var(--navy-pure);
  background: rgba(0, 31, 63, 0.05);
  border-color: rgba(0, 31, 63, 0.2);
}

.header.scrolled .menu-btn:hover {
  background: rgba(0, 31, 63, 0.1);
  border-color: rgba(0, 31, 63, 0.3);
}

.header.scrolled .nav-cta {
  color: var(--navy-pure);
  background: rgba(0, 31, 63, 0.05);
  border-color: rgba(0, 31, 63, 0.2);
}

.header.scrolled .nav-cta:hover {
  background: rgba(0, 31, 63, 0.1);
  border-color: rgba(0, 31, 63, 0.3);
}

.header.scrolled .menu-icon span {
  background: var(--navy-pure) !important;
}

.nav {
  padding: 1.5rem 0;
  background: transparent;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

/* Menu Button */
.menu-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  padding: 0.625rem 1.25rem;
  color: var(--white);
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.menu-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 20px;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: #FFFFFF !important;
  transition: all var(--transition-base);
}

.menu-text {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* Logo */
.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  transition: all var(--transition-base);
}

.logo:hover {
  transform: translateX(-50%) translateY(-1px);
  opacity: 0.9;
}

.logo-main {
  font-family: 'Bodoni Moda', var(--font-display);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-top: 0.25rem;
}

/* Navigation Links - Hidden by default, shown in menu */
.nav-links {
  display: none;
}

.nav-links a {
  color: rgba(0, 31, 63, 0.85);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-wider);
  text-transform: uppercase;
  transition: all var(--transition-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 0.5px;
  background: rgba(0, 31, 63, 0.6);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--navy-pure);
}

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

/* Navigation CTA */
.nav-cta {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 3px;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-transform: uppercase;
}

.nav-cta:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.cta-subtitle {
  font-size: 0.625rem;
  opacity: 0.8;
  margin-top: 0.125rem;
}

.nav-toggle {
  display: none;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 0; /* Remove any margin so video goes edge to edge */
}

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

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modern hero poster with multiple formats */
.hero-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hide poster when video is playing */
.hero-video[data-loaded="true"] + .hero-poster {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 900px;
  padding: 0 var(--space-xl);
}

.hero-pretitle {
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero-tagline {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero-tagline em {
  font-style: italic;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  text-transform: lowercase;
  opacity: 0.9;
}

.hero-title {
  font-family: 'Cormorant Garamond', var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.hero-btn-primary,
.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.75rem 1.75rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.hero-btn-primary:hover,
.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  text-decoration: none;
}

/* Search Form */
.search-wrapper {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 85%;
  max-width: 1200px;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  border-right: 1px solid rgba(0, 0, 0, 0.1);
}

.search-form {
  display: flex;
  align-items: stretch;
  padding: 0.75rem;
  height: auto;
  gap: 0;
}

.search-group {
  flex: 1;
  position: relative;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-group:last-of-type {
  border-right: none;
}

.search-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--gray-800);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.search-input {
  width: 100%;
  padding: 0;
  border: none;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-800);
  background: transparent;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.search-input::placeholder {
  color: var(--gray-400);
}

.search-submit {
  background: var(--navy-pure);
  color: var(--white);
  border: none;
  padding: 0 3rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  flex-shrink: 0;
  margin: -1px -1px -1px 0;
}

.search-submit:hover {
  background: var(--blue-primary);
}

/* Welcome Section */
.welcome {
  padding: var(--space-5xl) 0 var(--space-2xl) 0;
  background: var(--white);
  text-align: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.welcome-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.welcome-title {
  font-family: 'Cormorant Garamond', var(--font-display);
  font-size: 3rem;
  font-weight: 400;
  color: var(--navy-pure);
  margin-bottom: var(--space-xl);
  letter-spacing: 0.01em;
  font-style: normal;
  transition: all var(--transition-base);
}

.welcome-text {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--gray-600);
  letter-spacing: 0.01em;
}

/* Ionian Archipelago Section */
.archipelago {
  position: relative;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
}

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

.archipelago-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9);
}

.archipelago-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 31, 63, 0.4) 0%,
    rgba(0, 102, 204, 0.5) 100%
  );
  z-index: 1;
}

.archipelago-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 var(--space-xl);
}

.archipelago-title {
  font-family: 'Cormorant Garamond', var(--font-display);
  font-size: 3.5rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-lg);
  font-style: normal;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.archipelago-subtitle {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  font-weight: 200;
  letter-spacing: var(--letter-spacing-widest);
  opacity: 0.95;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Destinations Section */
.destinations {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

/* Picture element for modern image formats */
.destinations-bg-picture {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.destinations-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: none;
  opacity: 1;
}

.destinations-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
  z-index: 1;
}

.destinations-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 1200px;
  width: 100%;
  padding: 0 var(--space-3xl);
}

.destinations-title {
  font-family: 'Cormorant Garamond', var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-4xl);
  opacity: 0.9;
}

.destinations-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  align-items: center;
}

.destination-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  padding: var(--space-xl) var(--space-xxl);
  width: 100%;
  min-height: 120px;
  justify-content: center;
}

.destination-name {
  font-family: 'Cormorant Garamond', var(--font-display);
  font-size: 4rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.destination-item:hover .destination-name {
  font-style: italic;
  transform: scale(1.05);
  letter-spacing: 0.04em;
}

.destination-tagline {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  margin-top: 0.5rem;
}

.destination-tagline em {
  font-style: normal;
  opacity: 0;
  transform: translateX(-5px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0ms;
}

.destination-item:hover .destination-tagline {
  opacity: 0.7;
  transform: translateY(0);
}

.destination-item:hover .destination-tagline em {
  font-style: italic;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 150ms;
}

.destination-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.destination-item:hover::after {
  width: 100px;
}

/* Section Title for other sections */
.section-title {
  font-family: 'Cormorant Garamond', var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  text-align: center;
  color: var(--navy-pure);
  margin-bottom: var(--space-4xl);
  letter-spacing: 0.03em;
  font-style: normal;
}


/* Breathtaking Section */
.breathtaking {
  position: relative;
  height: 100vh;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: 0;
}

.breathtaking-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.breathtaking-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  object-fit: cover;
  object-position: center;
}

.breathtaking-video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.breathtaking-fallback-image,
.breathtaking-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.breathtaking-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 15, 30, 0.85) 0%,
    rgba(0, 20, 40, 0.75) 20%,
    rgba(0, 25, 50, 0.6) 40%,
    rgba(0, 30, 60, 0.35) 60%,
    rgba(0, 35, 70, 0.15) 80%,
    rgba(0, 40, 80, 0) 100%
  );
  z-index: 1;
}

.breathtaking-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
}

.breathtaking-inner {
  max-width: 600px;
  color: var(--white);
}

.breathtaking-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.9;
  display: block;
  margin-bottom: 2rem;
}

.breathtaking-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 1.5rem;
}

.breathtaking-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.7;
  opacity: 0.95;
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.breathtaking-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.breathtaking-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.breathtaking-cta:hover::before {
  left: 0;
}

.breathtaking-cta:hover {
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
}

.breathtaking-cta svg {
  transition: transform 0.3s ease;
}

.breathtaking-cta:hover svg {
  transform: translateX(4px);
}

/* Properties Section */
.properties {
  padding: var(--space-2xl) var(--space-xl) var(--space-5xl);
  background: var(--gray-100);
  position: relative;
}

.properties-header {
  margin-bottom: var(--space-4xl);
  text-align: center;
}

.properties-subtitle {
  margin-top: var(--space-2xl);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--gray-600);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
}

.properties-tabs {
  display: inline-flex;
  gap: 0;
  border: none;
  background: transparent;
  position: relative;
}

.property-tab {
  padding: 0.75rem 2rem;
  background: transparent;
  border: none;
  color: var(--gray-600);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 0.7;
}

.property-tab::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--navy-pure);
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.property-tab:hover {
  opacity: 1;
  color: var(--navy-pure);
}

.property-tab.active {
  color: var(--navy-pure);
  opacity: 1;
}

.property-tab.active::after {
  width: 100%;
}

/* Properties Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3xl);
  max-width: 1280px;
  margin: 0 auto;
}

/* Center the last property card when there's an odd number of visible cards - tablet and desktop only */
@media (min-width: 769px) {
  .properties-grid .property-card.active:nth-child(odd):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - var(--space-3xl) / 2);
    margin: 0 auto;
  }
}

.property-card {
  background: var(--white);
  border: none;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 2px 20px rgba(0, 31, 63, 0.05);
}

.property-card:hover {
  box-shadow: 0 15px 40px rgba(0, 31, 63, 0.12);
  transform: translateY(-4px);
}

/* Property Gallery */
.property-gallery {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--gray-100);
}

.gallery-slider {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.gallery-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}

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

.gallery-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--space-lg);
  pointer-events: none;
}

.gallery-prev,
.gallery-next {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 31, 63, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: all;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--navy-pure);
  font-size: 14px;
  opacity: 0;
}

.property-gallery:hover .gallery-prev,
.property-gallery:hover .gallery-next {
  opacity: 1;
}

.gallery-prev:hover,
.gallery-next:hover {
  background: var(--white);
  box-shadow: 0 4px 12px rgba(0, 31, 63, 0.15);
  transform: scale(1.1);
}

.gallery-dots {
  position: absolute;
  bottom: var(--space-md);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--space-xs);
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--white);
  width: 24px;
  border-radius: 4px;
}

/* Property Badge */
.property-badge {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  background: var(--white);
  color: var(--navy-pure);
  padding: 0.5rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Property Content */
.property-content {
  padding: var(--space-xl) var(--space-2xl);
}

.property-header {
  margin-bottom: var(--space-md);
}

.property-location {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--space-sm);
  opacity: 0.7;
}

.property-name {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 300;
  color: var(--navy-pure);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.property-tagline {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  opacity: 0.9;
}

/* Property Features */
.property-features {
  display: flex;
  gap: var(--space-xl);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: var(--space-md);
}

.property-feature {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-800);
  opacity: 0.9;
}

.property-feature svg {
  width: 20px;
  height: 20px;
  color: var(--navy-pure);
}

/* Property Amenities */
.property-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.amenity-tag {
  padding: 0.4rem 0.9rem;
  background: transparent;
  border: 1px solid var(--gray-200);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.amenity-tag:hover {
  border-color: var(--navy-pure);
  color: var(--navy-pure);
}

/* Property Footer */
.property-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--gray-200);
}

.property-price {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 300;
  color: var(--navy-pure);
  letter-spacing: 0.01em;
}

.property-price span {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.7;
}

.property-action {
  padding: 0.875rem 2rem;
  background: var(--navy-pure);
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--navy-pure);
  position: relative;
  overflow: hidden;
}

.property-action::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left 0.3s ease;
}

.property-action:hover {
  background: transparent;
  color: var(--navy-pure);
  transform: translateX(2px);
}

.property-action:hover::before {
  left: 0;
}

/* Coming Soon button style */
.property-action.property-coming-soon {
  background: #E8E8E8;
  color: #999;
  cursor: not-allowed;
  border: 1px solid #D0D0D0;
  opacity: 0.7;
}

.property-action.property-coming-soon:hover {
  background: #E8E8E8;
  color: #999;
  transform: none;
  border: 1px solid #D0D0D0;
}

.property-action.property-coming-soon::before {
  display: none;
}

/* Hidden property cards */
.property-card[data-location]:not(.active) {
  display: none;
}

.property-card.active {
  display: block;
}

/* Testimonials Section */
.testimonials {
  position: relative;
  padding: 0;
  min-height: 700px;
  background: linear-gradient(90deg, 
    #E6F2FF 0%, 
    #E6F2FF 35%, 
    var(--white) 35%, 
    var(--white) 100%);
  overflow: hidden;
}

.testimonials-bg {
  display: none;
}

.testimonials-overlay {
  display: none;
}

.testimonials-content {
  position: relative;
  z-index: 3;
  padding: var(--space-5xl) 0;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 35% 65%;
  min-height: 700px;
}

.testimonials-header {
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.testimonials-title {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-pure);
  margin-bottom: var(--space-lg);
}

.testimonials-subtitle {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--gray-800);
  max-width: 320px;
}

/* Awards in testimonials section */
.testimonials-header-content {
  flex-grow: 1;
}

.testimonials-awards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-sm);
  align-items: center;
  margin-top: auto;
  padding-top: var(--space-2xl);
  max-width: 260px;
}

.testimonial-award {
  width: 140px;
  height: auto;
  opacity: 0.95;
  filter: saturate(0.9) brightness(1) contrast(1);
  transition: all 0.3s ease;
}

.testimonial-award:hover {
  opacity: 1;
  filter: saturate(1) brightness(1) contrast(1);
  transform: translateY(-2px);
}

/* Testimonial Carousel */
.testimonials-carousel {
  position: relative;
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonials-slider {
  position: relative;
  min-height: 250px;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left;
}

.testimonial-card.active {
  opacity: 1;
  visibility: visible;
}

.testimonial-rating {
  display: none;
}

.testimonial-text {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 300;
  font-style: normal;
  line-height: 1.7;
  color: var(--gray-800);
  margin-bottom: var(--space-2xl);
  letter-spacing: 0.01em;
  max-width: 700px;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.4em;
  margin-right: 0.1em;
  color: var(--navy-pure);
  opacity: 0.3;
}

.testimonial-text::after {
  content: '"';
  font-size: 3rem;
  line-height: 0;
  vertical-align: -0.4em;
  margin-left: 0.05em;
  color: var(--navy-pure);
  opacity: 0.3;
}

.testimonial-author {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  gap: var(--space-md);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-200);
}

.author-name {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy-pure);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.author-location {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.author-property {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--gray-600);
  letter-spacing: 0.05em;
  margin-left: auto;
}

/* Navigation */
.testimonials-nav {
  position: absolute;
  bottom: var(--space-3xl);
  left: var(--space-3xl);
  display: flex;
  gap: var(--space-md);
  z-index: 4;
}

.testimonial-prev,
.testimonial-next {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid #CCCCCC;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--navy-pure);
}

.testimonial-prev:hover,
.testimonial-next:hover {
  background: var(--navy-pure);
  border-color: var(--navy-pure);
  color: var(--white);
}

/* Dots */
.testimonials-dots {
  display: flex;
  gap: var(--space-xs);
  position: absolute;
  bottom: var(--space-3xl);
  right: var(--space-3xl);
}

.testimonial-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #CCCCCC;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background: var(--navy-pure);
  width: 20px;
  border-radius: 3px;
}

.testimonial-dot:hover:not(.active) {
  background: var(--gray-600);
}

/* Responsive */
@media (max-width: 1024px) {
  .testimonials {
    background: var(--white);
  }
  
  .testimonials-content {
    grid-template-columns: 1fr;
    padding: var(--space-4xl) var(--space-xl);
  }
  
  .testimonials-header {
    text-align: center;
    align-items: center;
    margin-bottom: var(--space-3xl);
    padding: 0;
  }
  
  .testimonials-subtitle {
    max-width: 500px;
    text-align: center;
  }
  
  .testimonials-awards {
    grid-template-columns: repeat(3, 1fr);
    max-width: 100%;
    justify-items: center;
    padding-top: var(--space-xl);
  }
  
  .testimonial-award {
    width: 100px;
  }
  
  .testimonials-carousel {
    padding: 0;
  }
  
  .testimonial-text {
    font-size: 1.25rem;
  }
  
  .testimonials-nav {
    position: static;
    justify-content: center;
    margin-top: var(--space-2xl);
  }
  
  .testimonials-dots {
    position: static;
    justify-content: center;
    margin-top: var(--space-xl);
  }
}

@media (max-width: 768px) {
  .testimonials-content {
    padding: var(--space-3xl) var(--space-lg);
  }
  
  .testimonial-text {
    font-size: 1.125rem;
  }
}

/* Map Section */
.map-section {
  padding: 0;
  margin-bottom: 0;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.map-section .section-title {
  padding: var(--space-3xl) var(--space-xl);
  margin: 0;
}

.map-container {
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.map-title-wrapper {
  position: absolute;
  top: 13rem;
  left: 3rem;
  z-index: 10;
  pointer-events: none;
}

.map-title-wrapper .map-overlay-title {
  pointer-events: auto;
}

.map-overlay-title {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(173, 216, 230, 0.3);
  border-radius: 12px;
  padding: 1.5rem 2.5rem;
  margin: 0;
  width: fit-content;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy-pure);
  box-shadow: 0 4px 20px rgba(173, 216, 230, 0.15);
}

.properties-map {
  width: 100%;
  height: 100vh;
  min-height: 600px;
  border-radius: 0;
  overflow: hidden;
  border: none;
  box-shadow: none;
}

/* Mapbox Custom Styling */
.mapboxgl-popup {
  font-family: 'Work Sans', sans-serif;
  max-width: 280px;
}

.mapboxgl-popup-content {
  padding: 1.5rem;
  border-radius: 0;
  box-shadow: 0 10px 40px rgba(0, 31, 63, 0.15);
  border: 1px solid rgba(0, 31, 63, 0.1);
}

.mapboxgl-popup-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy-pure);
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.01em;
}

.mapboxgl-popup-content p {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  color: var(--gray-600);
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}

.mapboxgl-popup-content .popup-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: var(--navy-pure);
  font-weight: 400;
}

.mapboxgl-popup-close-button {
  font-size: 20px;
  padding: 8px;
  color: var(--gray-600);
}

.mapboxgl-popup-close-button:hover {
  color: var(--navy-pure);
  background: transparent;
}

.mapboxgl-ctrl-group {
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 31, 63, 0.1);
  border: 1px solid rgba(0, 31, 63, 0.1);
}

.mapboxgl-ctrl button {
  border-radius: 0;
}

.mapboxgl-ctrl button:hover {
  background-color: var(--gray-100);
}

.mapboxgl-ctrl-attrib {
  font-family: 'Work Sans', sans-serif;
  font-size: 11px;
}

/* Custom Marker Styles */
.property-marker {
  width: 40px;
  height: 40px;
  background: var(--navy-pure);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  box-shadow: 0 2px 10px rgba(0, 31, 63, 0.3);
  cursor: pointer;
  transition: none !important;
  will-change: transform;
}

.property-marker:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(0, 31, 63, 0.4);
}

.property-marker svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* Disable Mapbox marker animations */
.mapboxgl-marker {
  transition: none !important;
}

.mapboxgl-marker > div {
  transition: none !important;
}

/* Villa Matchmaking Service */
.matchmaking {
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg, #C8D8E8 0%, #B8CCE0 100%);
  position: relative;
}

.matchmaking-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5xl);
}

.matchmaking-content {
  flex: 1;
  max-width: 600px;
}

.matchmaking-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--navy-pure);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.01em;
}

.matchmaking-text {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--navy-pure);
  margin-bottom: var(--space-3xl);
  opacity: 0.9;
}

.matchmaking-buttons {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.matchmaking-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  text-decoration: none;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  border: 1px solid var(--navy-pure);
}

.matchmaking-btn svg {
  width: 18px;
  height: 18px;
}

.matchmaking-btn-primary {
  background: transparent;
  color: var(--navy-pure);
}

.matchmaking-btn-primary:hover {
  background: var(--navy-pure);
  color: var(--white);
}

.matchmaking-btn-secondary {
  background: transparent;
  color: var(--navy-pure);
}

.matchmaking-btn-secondary:hover {
  background: var(--navy-pure);
  color: var(--white);
}

.matchmaking-visual {
  flex: 0 0 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.coral-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

.coral-decoration {
  width: 520px;
  height: auto;
  opacity: 0.85;
}

/* Hide coral decoration on mobile to prevent layout issues */
@media (max-width: 768px) {
  .coral-wrapper {
    display: none;
  }
}

.shell-icon {
  width: 480px;
  height: 432px;
  opacity: 0.85;
}

/* Guide Section */
.guide {
  padding: 0;
  background: var(--white);
}

.guide-header {
  text-align: center;
  padding: var(--space-5xl) 0 var(--space-3xl);
  background: #E8E4E0;
}

.guide-label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--navy-pure);
  opacity: 0.7;
  display: block;
  margin-bottom: var(--space-lg);
}

.guide-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  font-weight: 300;
  line-height: 1;
  color: var(--navy-pure);
  letter-spacing: 0.02em;
}

.guide-hero {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.guide-hero img,
.guide-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%; /* Show more of the lower portion */
}

/* Paxos specific video styling */
.guide-hero-paxos {
  height: 550px;
  position: relative;
}

.guide-hero-paxos video {
  object-position: center 40%; /* Show upper-middle section */
}

.guide-hero-text {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 10;
  width: max-content;
}

.guide-hero-label {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: white;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.guide-hero-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 5.5rem;
  font-weight: 200;
  color: white;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.guide-video {
  display: block;
}

.guide-video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.guide-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  z-index: 2;
}

.guide-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5xl);
  max-width: 1400px;
  margin: 0 auto;
  padding: var(--space-5xl) 3rem;
  background: #C8D8E8;
}

.guide-main {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.guide-intro {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.5;
  color: var(--navy-pure);
  max-width: 500px;
}

.guide-link {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-pure);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.3s ease;
}

.guide-link:hover {
  text-decoration-thickness: 2px;
}

.guide-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-4xl);
}

.guide-section h3 {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-pure);
  margin-bottom: var(--space-lg);
}

.guide-section p {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--navy-pure);
  margin-bottom: var(--space-lg);
}

.guide-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.guide-facts li {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--navy-pure);
  padding-left: 1.5rem;
  position: relative;
}

.guide-facts li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--navy-pure);
}

.guide-learn {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-pure);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: all 0.3s ease;
}

.guide-learn:hover {
  text-decoration-thickness: 2px;
}

/* Featured Villas Grid */
/* Featured villas section removed */

/* Featured cards styles removed */

/* Featured CTA removed */

/* Section Divider */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5xl) 0;
  background: var(--white);
  position: relative;
}

.divider-line {
  width: 80px;
  height: 1px;
  background-color: #E5E5E5;
  display: block;
  flex-shrink: 0;
}

.divider-ornament {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 300;
  color: #999999;
  margin: 0 1.5rem;
  line-height: 1;
  display: block;
  flex-shrink: 0;
}

/* Stories Section */
.stories {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.stories-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

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

.stories-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(0, 20, 41, 0.95) 0%,
    rgba(0, 20, 41, 0.7) 40%,
    rgba(0, 20, 41, 0.3) 100%
  );
  display: flex;
  align-items: center;
}

.stories-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-5xl);
  width: 100%;
}

.stories-heading {
  font-family: var(--font-sans);
  font-size: 2.25rem;
  font-weight: 200;
  line-height: 1.4;
  letter-spacing: var(--letter-spacing-luxury);
  text-transform: uppercase;
  color: var(--white);
  max-width: 450px;
}

.stories-nav {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}

.story-prev,
.story-next {
  width: 48px;
  height: 48px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: var(--text-lg);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.story-prev:hover,
.story-next:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Search Divider */
.search-divider {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  display: flex;
  z-index: 3;
}

.divider-line-1 {
  flex: 1;
  background: linear-gradient(90deg, var(--navy-pure) 0%, #1E3A5F 100%);
}

.divider-line-2 {
  flex: 1;
  background: linear-gradient(90deg, #1E3A5F 0%, #2C5282 100%);
}

/* Newsletter Section */
.newsletter {
  padding: var(--space-5xl) 0;
  background: var(--gray-100);
  text-align: center;
}

.newsletter-title {
  font-family: 'Cormorant Garamond', var(--font-display);
  font-size: 2.75rem;
  font-weight: 300;
  color: var(--navy-pure);
  margin-bottom: var(--space-lg);
  letter-spacing: 0.02em;
  font-style: italic;
}

.newsletter-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: var(--text-base);
  color: var(--gray-600);
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
}

.newsletter-form {
  display: inline-flex;
  max-width: 420px;
  width: 100%;
  position: relative;
}

.newsletter-input-group {
  display: flex;
  width: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 2px;
  overflow: hidden;
}

.newsletter-input {
  flex: 1;
  padding: var(--space-md) var(--space-lg);
  border: none;
  font-size: var(--text-sm);
  color: var(--gray-800);
  background: transparent;
  outline: none;
}

.newsletter-input::placeholder {
  color: var(--gray-400);
}

.newsletter-submit {
  background: var(--navy-pure);
  color: var(--white);
  border: none;
  padding: 0 var(--space-xl);
  font-size: var(--text-xl);
  cursor: pointer;
  transition: all var(--transition-base);
}

.newsletter-submit:hover {
  background: var(--blue-primary);
}

/* Footer Animation */
.footer-animation-wrapper {
  position: relative;
  width: 100%;
  height: 85px;
  overflow: hidden;
  background: var(--white);
  margin-top: var(--space-4xl);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.footer-animation-wrapper:hover {
  opacity: 0.8;
}

.footer-animation-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}

.footer-animated-text {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  fill: var(--gray-400);
  transition: fill 0.3s ease;
}

.footer-animation-wrapper:hover .footer-animated-text {
  fill: var(--navy-pure);
}

/* Subtle wave path animation */
@keyframes wavePath {
  0% {
    d: path('M0,40 Q150,15 300,40 T600,40 T900,40 T1200,40');
  }
  50% {
    d: path('M0,40 Q150,65 300,40 T600,40 T900,40 T1200,40');
  }
  100% {
    d: path('M0,40 Q150,15 300,40 T600,40 T900,40 T1200,40');
  }
}

#footer-text-path {
  animation: wavePath 8s ease-in-out infinite;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .footer-animation-wrapper {
    display: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .footer-animation-wrapper {
    height: 70px;
  }
  
  .footer-animated-text {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
  }
}

/* Footer */
.footer {
  background: var(--white);
  padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3xl);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--space-2xl);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-heading {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: var(--letter-spacing-luxury);
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--space-md);
  opacity: 0.7;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: var(--gray-800);
  text-decoration: none;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--blue-primary);
}

.footer-brand {
  text-align: right;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-logo-main {
  font-family: 'Bodoni Moda', var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy-pure);
  letter-spacing: var(--letter-spacing-wider);
}

.footer-logo-sub {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: var(--letter-spacing-luxury);
  text-transform: uppercase;
  color: var(--gray-600);
  opacity: 0.5;
  margin-top: 0.375rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
  /* Placeholder for future responsive styles */
}

@media (max-width: 768px) {
  /* Header adjustments */
  /* Ensure header gets background on scroll on mobile */
  .header {
    transition: all 0.3s ease !important;
  }
  
  .header.scrolled {
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .header.scrolled .header-top {
    max-height: 0;
    padding: 0;
    overflow: hidden;
  }
  
  .header.scrolled .nav-wrapper {
    padding: 0.15rem 0.75rem;
    min-height: 28px;
  }
  
  .header.scrolled .logo {
    color: var(--navy-pure) !important;
  }
  
  .header.scrolled .menu-icon span {
    background: var(--navy-pure) !important;
  }
  
  .header-top {
    padding: 0.15rem 0.5rem;
    max-height: 18px;
  }
  
  .header-notice {
    font-size: 0.5rem;
    text-align: center;
    line-height: 1;
  }
  
  .nav-wrapper {
    padding: 0.2rem 0.75rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
  }
  
  /* Logo mobile styles - remove animations and center align */
  .logo {
    position: static;
    transform: none;
    margin: 0 auto;
    transition: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .logo:hover {
    transform: none !important;
  }
  
  .logo-main {
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    line-height: 0.95;
  }
  
  .logo-sub {
    display: none;
  }
  
  /* Menu button mobile styles - remove animations */
  .menu-btn {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-48%); /* Slightly higher to align with logo text */
    background: transparent;
    border: none;
    padding: 0.2rem;
    z-index: 100;
    transition: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .menu-btn:hover {
    transform: translateY(-48%) !important;
    background: transparent !important;
  }
  
  .menu-text {
    display: none !important;
  }
  
  .menu-icon {
    display: flex;
    flex-direction: column;
    gap: 2.5px;
    width: 16px;
  }
  
  .menu-icon span {
    width: 16px;
    height: 1.5px;
    background: var(--navy-pure);
    transition: all var(--transition-base);
  }
  
  /* Island Concierge Section - 100% width on mobile */
  .matchmaking-container {
    max-width: 100%;
    padding: 0 1rem;
    flex-direction: column;
    gap: var(--space-3xl);
    text-align: center;
  }
  
  .matchmaking-content {
    max-width: 100%;
  }
  
  .matchmaking-visual {
    flex: none;
    display: none; /* Hide coral since it's already hidden by previous rule */
  }
  
  .matchmaking-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
  
  .matchmaking-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .matchmaking-buttons {
    justify-content: center;
    gap: var(--space-md);
  }
  
  .matchmaking-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
  }

  /* Navigation */
  .nav-links,
  .nav-cta {
    display: none;
  }
  
  /* Hero */
  .hero-title {
    font-size: var(--text-3xl);
  }
  
  .hero-subtitle {
    font-size: var(--text-base);
  }
  
  /* Search */
  .search-form {
    flex-direction: column;
    padding: var(--space-lg);
  }
  
  .search-group {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-md);
  }
  
  .search-group:last-of-type {
    border-bottom: none;
  }
  
  .search-submit {
    width: 100%;
    margin-top: var(--space-md);
  }
  
  /* Destinations */
  .destinations {
    height: auto;
    min-height: 100vh;
    padding: var(--space-4xl) 0;
  }
  
  .destination-name {
    font-size: 2.5rem;
  }
  
  .destinations-list {
    gap: var(--space-lg);
  }
  
  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    text-align: center;
  }
  
  .footer-brand {
    text-align: center;
  }
  
  .footer-logo {
    align-items: center;
  }
  
  /* Guide Section Mobile - Change to single column */
  .guide-content {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
    padding: var(--space-3xl) 1rem;
  }
  
  .guide-sidebar {
    gap: var(--space-2xl);
  }
  
  /* Hero buttons mobile - hide but maintain space */
  #hero .hero-buttons,
  .hero-section .hero-buttons,
  .hero-buttons {
    visibility: hidden !important;
    margin-bottom: var(--space-5xl);
    padding: 0 var(--space-md);
    margin-top: var(--space-2xl);
  }
  
  #hero .hero-btn-primary,
  #hero .hero-btn-secondary,
  .hero-btn-primary,
  .hero-btn-secondary {
    visibility: hidden !important;
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
  }
}

/* Hide hero buttons on very small screens (smaller than iPhone Plus) */
@media (max-width: 429px) {
  .hero-buttons {
    visibility: hidden !important;
  }
  
  /* Add bottom padding to hero content to prevent text being hidden by search widget */
  .hero-content {
    padding-bottom: var(--space-5xl);
    margin-bottom: var(--space-4xl);
  }
}

/* Loading States */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-200) 0%,
    var(--gray-100) 50%,
    var(--gray-200) 100%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Smooth Scroll */
html {
  scroll-behavior: smooth;
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 2px;
}

/* Root-level subpages and galleries */
.subpage-header { display:flex; justify-content:space-between; align-items:center; padding:18px 24px; background:#001a2c; color:#fff; }
.subpage-header .logo { color:#fff; font-weight:700; text-decoration:none; }
.subpage-nav a { color:#cfe6ff; margin-left:16px; text-decoration:none; font-weight:500; }
.subpage-nav a:hover{ color:#fff; }
.subpage-main{ padding-bottom:64px; }
.page-hero{ position:relative; min-height:42vh; display:grid; align-content:end; padding:64px 24px 24px; background-size:cover; background-position:center; color:#fff; }
.page-hero::before{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%); }
.page-hero h1,.page-hero p{ position:relative; z-index:1; }
.property-page .property-hero-gallery{ padding:16px 24px; }
.property-hero-gallery .gallery-main img{ width:100%; height:clamp(260px,48vw,520px); object-fit:cover; border-radius:10px; }
.property-hero-gallery .gallery-thumbs{ margin-top:10px; display:grid; grid-template-columns:repeat(8, minmax(80px,1fr)); gap:8px; }
.property-hero-gallery .gallery-thumbs img{ width:100%; height:90px; object-fit:cover; border-radius:6px; cursor:pointer; }
.property-details{ display:grid; grid-template-columns:1.4fr 1fr 0.6fr; gap:32px; padding:24px; }
@media (max-width:900px){ .property-details{ grid-template-columns:1fr; } }
.property-amenities ul{ padding-left:18px; }
.property-cta{ align-self:start; border:1px solid #e6ecf2; padding:16px; border-radius:10px; }
.property-cta .btn{ display:inline-block; margin-top:10px; }
.cards-grid{ display:grid; grid-template-columns:repeat(auto-fill, minmax(260px,1fr)); gap:18px; padding:24px; }
.card-link{ display:block; color:inherit; text-decoration:none; border-radius:10px; overflow:hidden; border:1px solid #e6ecf2; }
.card-media{ height:200px; background-size:cover; background-position:center; }
.card-body{ padding:14px; }
.columns{ display:grid; grid-template-columns:1.3fr 0.7fr; gap:32px; padding:24px; }
@media (max-width:900px){ .columns{ grid-template-columns:1fr; } }
.richtext h2,.richtext h3{ margin-top:16px; }
.masonry-grid{ columns:3 320px; column-gap:12px; padding:24px; }
.masonry-grid img{ width:100%; margin:0 0 12px; border-radius:10px; break-inside:avoid; }
.lightbox-overlay{ position:fixed; inset:0; background:rgba(0,0,0,0.85); display:none; align-items:center; justify-content:center; z-index:1000; }
.lightbox-overlay.active{ display:flex; }
.lightbox-overlay img{ max-width:92vw; max-height:92vh; border-radius:8px; box-shadow:0 10px 40px rgba(0,0,0,0.5); }
.lightbox-nav{ position:absolute; inset:0; display:flex; align-items:center; justify-content:space-between; padding:0 16px; }
.lightbox-btn{ width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,0.15); border:1px solid rgba(255,255,255,0.4); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.lightbox-btn:hover{ background:rgba(255,255,255,0.25); }

/* Full Screen Menu */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0A1628;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              visibility 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Menu Background */
.menu-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.menu-bg-picture {
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.menu-bg-picture.active {
  opacity: 1;
}

.menu-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.menu-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 22, 40, 0.2);
  z-index: 1;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-close {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: none;
  border: none;
  color: white;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity 0.3s ease;
}

.menu-close:hover {
  opacity: 0.7;
}

.menu-close svg {
  width: 24px;
  height: 24px;
}

.menu-cta {
  background: white;
  color: #0A1628;
  border: none;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.menu-cta:hover {
  background: rgba(255, 255, 255, 0.9);
}

.menu-cta-subtitle {
  font-size: 0.625rem;
  font-weight: 400;
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0.02em;
}

.menu-content {
  flex: 1;
  display: flex;
  padding: 4rem 3rem;
  gap: 6rem;
  overflow-y: auto;
}

.menu-nav {
  flex: 1;
}

.menu-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-links li {
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  align-items: baseline;
}

/* Remove bottom margin from last item only */
.menu-links li:last-child {
  margin-bottom: 0;
}

.menu-links > li > a {
  color: white;
  text-decoration: none;
  font-family: 'Work Sans', var(--font-sans);
  font-size: 1.75rem;
  font-weight: 300;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  transition: all 0.3s ease;
}

.menu-links > li > a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.menu-links > li > a:hover {
  opacity: 0.8;
}

.menu-links > li > a:hover::after {
  width: 100%;
}

/* Submenu Styles */
.has-submenu {
  white-space: nowrap;
}

.has-submenu > a {
  display: inline-block;
  flex-shrink: 0;
}

/* Custom underline for submenu items using ::before */
.has-submenu > a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.has-submenu > a:hover::before {
  width: 100%;
}

/* Dash separator after submenu items */
.has-submenu > a::after {
  content: '—';
  display: inline-block;
  margin: 0 2rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.3s ease;
  /* Override the default underline effect */
  position: static;
  bottom: auto;
  width: auto;
  height: auto;
  background: transparent;
}

.has-submenu:hover > a::after,
.has-submenu.active > a::after {
  opacity: 1;
}

.submenu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 2rem;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: all 0.4s ease;
  align-items: baseline;
}

.has-submenu:hover .submenu,
.has-submenu.active .submenu,
.has-submenu:focus-within .submenu {
  opacity: 1;
  max-width: 2000px;
}

/* Hide contact info when any submenu is active */
.menu-nav:has(.has-submenu:hover) ~ .menu-contact,
.menu-nav:has(.has-submenu.active) ~ .menu-contact {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
}

.submenu li {
  display: inline-block;
  margin-right: 2.5rem;
}

.submenu li:last-child {
  margin-right: 0;
}

.submenu a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
}

.submenu a:hover {
  color: white;
}

.submenu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: white;
  transition: width 0.3s ease;
}

.submenu a:hover::after {
  width: 100%;
}

/* Submenu italic animations */
.submenu a em {
  font-style: normal;
  opacity: 0.8;
  transform: translateX(-3px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transition-delay: 0ms;
}

.submenu a:hover em {
  font-style: italic;
  opacity: 1;
  transform: translateX(0);
  transition-delay: 150ms;
}

/* Mobile touch support */
@media (hover: none) and (pointer: coarse) {
  .has-submenu.active .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }
}

.menu-contact {
  width: 300px;
  padding-top: 2rem;
}

.menu-contact-item {
  margin-bottom: 3rem;
}

.menu-label {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.menu-contact-item a {
  color: white;
  text-decoration: none;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  transition: opacity 0.3s ease;
}

.menu-contact-item a:hover {
  opacity: 0.7;
}

.menu-phone {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-phone svg {
  width: 20px;
  height: 20px;
  opacity: 0.6;
}

.menu-social {
  display: flex;
  gap: 2rem;
}

.menu-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

.menu-social svg {
  width: 20px;
  height: 20px;
}

/* Mobile Menu Adjustments */
@media (max-width: 768px) {
  .menu-header {
    padding: 1.5rem;
  }
  
  .menu-content {
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 3rem;
  }
  
  .menu-links > li > a {
    font-size: 1.25rem;
    font-weight: 500;
    padding: 1rem 0;
    display: block;
    width: 100%;
  }
  
  .menu-links > li {
    margin-bottom: 0.5rem;
  }
  
  .menu-contact {
    width: 100%;
  }
  
  /* Mobile submenu - vertical stacked layout */
  .submenu {
    position: static;
    margin-left: 0;
    margin-top: 1rem;
    padding: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: none;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  
  .has-submenu:hover .submenu,
  .has-submenu.active .submenu {
    opacity: 1;
    max-height: 300px;
    visibility: visible;
  }
  
  .submenu li {
    margin-right: 0;
    margin-bottom: 0;
    display: block;
    width: 100%;
  }
  
  .submenu a {
    font-size: 1.125rem;
    padding: 0.75rem 2rem;
    display: block;
    width: 100%;
    color: rgba(255, 255, 255, 0.8);
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
  }
  
  .submenu a:hover,
  .submenu a:focus {
    background: rgba(255, 255, 255, 0.05);
    border-left-color: rgba(255, 255, 255, 0.3);
    color: white;
  }
}

/* Properties Section Responsive */
@media (max-width: 1024px) {
  .properties {
    padding: var(--space-4xl) var(--space-lg);
  }
  
  .properties-grid {
    gap: var(--space-2xl);
  }
  
  .property-content {
    padding: var(--space-2xl);
  }
  
  .property-gallery {
    height: 350px;
  }
}

@media (max-width: 768px) {
  /* Paxos hero text mobile styles */
  .guide-hero-paxos {
    height: 400px;
  }
  
  .guide-hero-paxos video {
    object-position: center center; /* Better crop for mobile */
  }
  
  .guide-hero-text {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    padding: 0 var(--space-md);
    text-align: center;
  }
  
  .guide-hero-label {
    font-size: 0.7rem;
    margin-bottom: var(--space-xs);
  }
  
  .guide-hero-title {
    font-size: 2.4rem;
    letter-spacing: 0.06em;
    line-height: 1.2;
  }
  
  .properties {
    padding: var(--space-3xl) var(--space-md);
  }
  
  .properties-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }
  
  .property-content {
    padding: var(--space-2xl);
  }
  
  .property-tab {
    padding: 0.75rem 1rem;
    font-size: 0.7rem;
  }
  
  .property-gallery {
    height: 300px;
  }
  
  .property-content {
    padding: var(--space-xl);
  }
  
  .property-name {
    font-size: 1.5rem;
  }
  
  .property-features {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .property-footer {
    flex-direction: column;
    gap: var(--space-lg);
    align-items: stretch;
  }
  
  .property-action {
    text-align: center;
    display: block;
  }
}

@media (max-width: 480px) {
  .properties-tabs {
    width: 100%;
    display: flex;
  }
  
  .property-tab {
    flex: 1;
    padding: 0.75rem 0.5rem;
    font-size: 0.65rem;
  }
  
  .property-gallery {
    height: 250px;
  }
  
  .gallery-prev,
  .gallery-next {
    width: 32px;
    height: 32px;
  }
  
  .property-content {
    padding: var(--space-lg);
  }
  
  .property-amenities {
    gap: var(--space-xs);
  }
  
  .amenity-tag {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }
}

/* Date Picker Styles */
.date-picker-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.date-picker-overlay.active {
  display: flex;
}

.date-picker-modal {
  background: white;
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.date-picker-header {
  padding: 1.5rem;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
  text-align: center;
}

.date-picker-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: #333;
  margin: 0;
}

.date-picker-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #666;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.date-picker-close:hover {
  background: #f5f5f5;
  color: #333;
}

.date-picker-body {
  padding: 2rem;
  overflow-y: auto;
  flex: 1;
}

.date-picker-months {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2rem;
}

.date-picker-month {
  min-height: 320px;
}

.month-header {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
  position: relative;
  min-height: 36px;
}

.month-title {
  font-family: 'Work Sans', sans-serif;
  font-size: 1.125rem;
  font-weight: 500;
  color: #333;
  margin: 0;
  text-align: center;
  flex: 1;
}

.month-nav {
  position: absolute;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s;
}

.month-nav:hover {
  background: #f5f5f5;
  color: #333;
}

.month-nav.prev {
  left: 0;
}

.month-nav.next {
  right: 0;
}

.weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  margin-bottom: 0.5rem;
}

.weekdays span {
  text-align: center;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  padding: 0.5rem;
  text-transform: uppercase;
}

.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}

.day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  cursor: pointer;
  color: #333;
  background: white;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.day:hover:not(.disabled):not(.empty) {
  background: #f5f5f5;
  border-radius: 4px;
}

.day.disabled {
  color: #ccc;
  cursor: not-allowed;
}

.day.empty {
  cursor: default;
}

.day.today {
  font-weight: 600;
  color: #0066CC;
}

.day.selected,
.day.start-date,
.day.end-date {
  background: #333 !important;
  color: white !important;
  border-radius: 4px;
  font-weight: 600;
}

.day.in-range {
  background: #f0f0f0;
  color: #333;
}

.date-picker-footer {
  border-top: 1px solid #e0e0e0;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.selected-dates {
  display: flex;
  gap: 2rem;
}

.selected-date {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.selected-date label {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.selected-date span {
  font-family: 'Work Sans', sans-serif;
  font-size: 1rem;
  color: #333;
}

.date-picker-actions {
  display: flex;
  gap: 1rem;
}

.date-picker-clear {
  padding: 0.625rem 1.25rem;
  background: transparent;
  color: #666;
  border: 1px solid #e0e0e0;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 4px;
}

.date-picker-clear:hover {
  border-color: #999;
  background: white;
}

.date-picker-apply {
  padding: 0.625rem 1.5rem;
  background: #333;
  color: white;
  border: none;
  border-radius: 4px;
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.date-picker-apply:hover {
  background: #000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.date-picker-apply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Search Widget Styles */
.search-widget {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 850px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.5);
  overflow: visible;
  z-index: 10;
}

.search-form {
  display: flex;
  align-items: stretch;
  padding: 0.75rem;
  height: auto;
  gap: 0;
}

.search-field {
  flex: 1;
  position: relative;
  border-right: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  overflow: visible;
}

.search-field label {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  display: block;
  opacity: 0.8;
}

.search-field:last-of-type {
  border-right: none;
}

.dates-field {
  flex: 1.5;
}

.search-input {
  width: 100%;
  padding: 0.25rem 0;
  border: none;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--navy-pure);
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.search-input::placeholder {
  color: var(--gray-400);
}

/* Custom Select Styles */
.custom-select {
  position: relative;
  width: 100%;
  font-family: var(--font-body);
}

.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 0.25rem 0;
  background: transparent;
  border: none;
  font-size: 0.9375rem;
  color: var(--navy-pure);
  font-weight: 400;
  transition: all 0.2s ease;
  outline: none;
}

.select-trigger:hover {
  color: var(--black);
}

.select-trigger:focus {
  color: var(--black);
}

.select-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  stroke: currentColor;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.custom-select.active .select-arrow {
  transform: rotate(180deg);
}

.select-value {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.select-options {
  position: absolute;
  bottom: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.custom-select.active .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.select-option {
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.875rem;
  color: var(--navy-pure);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.select-option:last-child {
  border-bottom: none;
}

.select-option:hover {
  background: rgba(0, 31, 63, 0.04);
  color: var(--black);
}

.select-option[data-selected="true"] {
  background: rgba(0, 31, 63, 0.08);
  font-weight: 500;
  color: var(--navy-pure);
}

.select-option:first-child {
  border-radius: 8px 8px 0 0;
}

.select-option:last-child {
  border-radius: 0 0 8px 8px;
}

/* Custom scrollbar for select options */
.select-options::-webkit-scrollbar {
  width: 6px;
}

.select-options::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 3px;
}

.select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.search-button {
  background: var(--navy-pure);
  color: var(--white);
  border: none;
  padding: 0 2.5rem;
  font-size: 0.8125rem;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: all var(--transition-base);
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.search-button:hover {
  background: #002a4d;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 31, 63, 0.25);
}

/* Date Picker Mobile Styles */
@media (max-width: 768px) {
  .date-picker-months {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .date-picker-footer {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .selected-dates {
    width: 100%;
    justify-content: space-between;
  }
  
  .date-picker-actions {
    width: 100%;
    justify-content: center;
  }
  
  .date-picker-clear,
  .date-picker-apply {
    flex: 1;
  }
  
  /* Search Widget Mobile */
  .search-widget {
    bottom: 1.5rem;
    width: 95%;
    max-width: none;
    border-radius: 10px;
  }
  
  .search-form {
    flex-direction: column;
    padding: 1rem;
    height: auto;
  }
  
  .search-field {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.75rem 1rem;
  }
  
  .search-field:last-of-type {
    border-bottom: none;
  }
  
  .search-button {
    width: 100%;
    margin-top: 0.75rem;
    padding: 1rem;
    border-radius: 8px;
  }
}

/* Island Showcase Gallery */
.island-showcase {
  padding: 0;
  background: var(--white);
  border: none;
  margin: 0;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  height: 500px;
  border: none;
  margin: 0;
}

.showcase-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  margin: 0;
  padding: 0;
}

.showcase-item:hover {
  z-index: 10;
}

.showcase-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border: none;
  margin: 0;
  padding: 0;
  display: block;
  transform: scale(1.05);
}

.showcase-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center; /* Shifted right to show the subject */
  z-index: 0;
  display: block;
}

/* Ensure video maintains aspect ratio while covering the area */
.showcase-item.showcase-video {
  background: #000;
  position: relative;
  overflow: hidden;
}

/* Category video styles for travel guide pages */
.category-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center; /* Same position as showcase video */
  display: block;
}

.category-visual-video {
  position: relative;
  overflow: hidden;
  background: #000;
}

/* Fallback images for videos */
.showcase-video-fallback img,
.category-video-fallback img,
.showcase-fallback-image,
.category-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center; /* Match video position */
  display: block;
}

/* Portrait video in info box */
.info-video-box {
  padding: 0;
  overflow: hidden;
  background: #000;
  position: relative;
  border-radius: 8px;
}

.info-portrait-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.info-video-fallback {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.info-video-fallback img,
.info-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.showcase-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.4));
  padding: 3rem 2rem 2rem;
  color: white;
  opacity: 1;
  transition: background 0.3s ease;
}

.showcase-item:hover .showcase-overlay {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.showcase-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.showcase-subtitle {
  font-family: 'Work Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}

/* Paxos Guide Section - Different color scheme */
.guide-paxos {
  background: var(--white);
}

.guide-paxos .guide-header {
  background: #E6F2F5; /* Softer blue-green */
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-3xl);
}

.guide-paxos .guide-content {
  background: #D4E6EA; /* Softer, more muted blue */
}

.guide-paxos .guide-label {
  color: #2A5F6F; /* Deeper teal */
}

.guide-paxos .guide-title {
  color: #2A5F6F; /* Deeper teal */
}

.guide-paxos .guide-intro {
  color: #2A5F6F; /* Deeper teal */
}

.guide-paxos .guide-section h3 {
  color: #2A5F6F; /* Deeper teal */
}

.guide-paxos .guide-section p {
  color: #2A5F6F; /* Deeper teal */
}

.guide-paxos .guide-facts li {
  color: #2A5F6F; /* Deeper teal */
}

.guide-paxos .guide-facts li::before {
  color: #2A5F6F; /* Deeper teal */
}

.guide-paxos .guide-link {
  color: #2A5F6F; /* Deeper teal */
}

.guide-paxos .guide-learn {
  color: #2A5F6F; /* Deeper teal */
}

/* Responsive Design for Showcase */
@media (max-width: 768px) {
  .showcase-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  
  .showcase-item {
    height: 300px;
  }
  
  .showcase-overlay {
    transform: translateY(0);
    background: linear-gradient(transparent, rgba(0, 31, 63, 0.9));
  }
  
  .showcase-title {
    font-size: 2rem;
  }
}

/* Print Styles */
@media print {
  .header,
  .search-widget,
  .search-wrapper,
  .newsletter,
  .footer,
  .date-picker-overlay {
    display: none;
  }
}
