/* ==========================================================================
   Tales of Travel - Sri Lanka Tourism Website
   Master Responsive Stylesheet
   Color Scheme: Sri Lankan Emerald Green, Royal Gold, and Warm Cream/Ivory
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Color Palette */
  --color-primary: #0f4c3a;         /* Deep Sri Lankan Emerald / Forest Green */
  --color-primary-dark: #083226;    /* Dark Jungle Green */
  --color-primary-light: #186f56;   /* Rich Palm Green */
  --color-primary-subtle: #e8f3ef;  /* Light Green Tint */

  --color-gold: #c89d35;            /* Royal Sri Lankan Gold */
  --color-gold-light: #e5bf5d;      /* Warm Saffron Gold */
  --color-gold-dark: #9d771e;       /* Deep Antique Gold */
  --color-gold-subtle: #fbf6ea;     /* Delicate Gold Cream */

  --color-accent: #b85d34;          /* Ceylon Cinnamon / Terracotta */
  --color-accent-light: #f5ebe6;

  /* Neutrals & Backgrounds */
  --color-bg: #fcfaf6;              /* Warm Cream / Ivory Body Background */
  --color-surface: #ffffff;         /* Pure Card White */
  --color-surface-alt: #f4efe6;     /* Secondary Cream / Sand */
  --color-border: #e6decb;          /* Soft Gold/Beige Border */
  --color-border-subtle: #eee9dc;

  /* Typography Colors */
  --color-text-main: #1c2b22;       /* Deep Charcoal with green undertone */
  --color-text-muted: #536459;      /* Muted Slate / Forest */
  --color-text-light: #7c8e83;      /* Subdued Text */
  --color-text-on-primary: #ffffff; /* White on Dark Green */
  --color-text-on-gold: #1c2b22;    /* Dark on Gold */

  /* UI Feedback */
  --color-success: #1f824c;
  --color-warning: #d97706;
  --color-error: #c53030;
  --color-error-bg: #fff5f5;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Spacing Scale */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4.5rem;

  /* Layout Container */
  --container-max-width: 1200px;
  --container-padding: 1.25rem;

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 76, 58, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 76, 58, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 76, 58, 0.12);
  --shadow-hover: 0 14px 30px rgba(15, 76, 58, 0.16);

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover, a:focus-visible {
  color: var(--color-gold-dark);
}

/* Accessibility Skip Link */
.skip-link {
  position: absolute;
  top: -60px;
  left: 20px;
  background: var(--color-gold);
  color: var(--color-primary-dark);
  padding: 10px 18px;
  font-weight: 700;
  z-index: 9999;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 15px;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.2rem, 4vw + 1rem, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw + 0.25rem, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: var(--spacing-md);
  color: var(--color-text-muted);
}

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

.text-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-main);
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold-dark); }
.text-primary { color: var(--color-primary); }

.section-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-gold-dark);
  background-color: var(--color-gold-subtle);
  border: 1px solid var(--color-border);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--spacing-sm);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--spacing-2xl);
}

.section-header h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
  border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------
   4. Layout Containers & Grid System
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.site-main {
  flex: 1;
}

.section-padding {
  padding-top: var(--spacing-3xl);
  padding-bottom: var(--spacing-3xl);
}

.section-alt {
  background-color: var(--color-surface-alt);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

/* CSS Grid Utilities */
.grid {
  display: grid;
  gap: var(--spacing-xl);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* --------------------------------------------------------------------------
   5. Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-topbar {
  background-color: var(--color-primary-dark);
  color: var(--color-gold-light);
  font-size: 0.82rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(200, 157, 53, 0.3);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.topbar-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.topbar-meta {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.topbar-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem var(--container-padding);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-symbol {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-gold-dark));
  color: #fff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gold);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-subtitle {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--color-gold-dark);
  font-weight: 700;
}

/* Nav Links */
.nav-menu {
  display: flex;
  list-style: none;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  display: inline-block;
  padding: 0.6rem 0.95rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-main);
  border-radius: var(--radius-sm);
  position: relative;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-subtle);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0.95rem;
  right: 0.95rem;
  height: 2.5px;
  background-color: var(--color-gold);
  border-radius: var(--radius-full);
}

/* Mobile Hamburger Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.3rem;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-gold);
}

/* --------------------------------------------------------------------------
   6. Hero & Page Header Banners
   -------------------------------------------------------------------------- */
.hero-home {
  position: relative;
  background: linear-gradient(rgba(8, 50, 38, 0.78), rgba(15, 76, 58, 0.72)),
              url('https://images.unsplash.com/photo-1546708973-b339540b5162?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 5rem 0 6rem;
  text-align: center;
}

.hero-home .hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.hero-home h1 {
  color: #ffffff;
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.hero-home .hero-subtitle {
  font-size: 1.25rem;
  color: #f7f3e8;
  margin-bottom: var(--spacing-xl);
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Inner Page Banners */
.page-hero {
  background: linear-gradient(rgba(8, 50, 38, 0.85), rgba(15, 76, 58, 0.8)),
              url('https://images.unsplash.com/photo-1586861635167-e5223aadc9fe?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  color: #ffffff;
  padding: 3.5rem 0;
  text-align: center;
  border-bottom: 3px solid var(--color-gold);
}

.page-hero h1 {
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: #e5ede9;
  font-size: 1.1rem;
  max-width: 680px;
  margin: 0 auto;
}

.breadcrumb-nav {
  margin-top: 1rem;
  font-size: 0.88rem;
  color: var(--color-gold-light);
}

.breadcrumb-nav a {
  color: #ffffff;
  opacity: 0.85;
}

.breadcrumb-nav a:hover {
  opacity: 1;
  color: var(--color-gold-light);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   7. Quick Stats Counter Bar
   -------------------------------------------------------------------------- */
.stats-strip {
  background-color: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
}

.stat-item {
  border-right: 1px solid var(--color-border-subtle);
  padding: 0.5rem 1rem;
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   8. Buttons & Interactive Links
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-gold);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover, .btn-primary:focus-visible {
  background-color: var(--color-gold-light);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.btn-secondary:hover, .btn-secondary:focus-visible {
  background-color: var(--color-primary-light);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline:hover, .btn-outline:focus-visible {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.btn-outline-dark {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-dark:hover {
  background-color: var(--color-primary);
  color: #ffffff;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* --------------------------------------------------------------------------
   9. Cards (Attractions, Experiences, Testimonials)
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-gold);
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: #e5ede8;
}

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

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  z-index: 2;
}

.badge-unesco {
  background-color: #1d4ed8;
  color: #ffffff;
}

.badge-wildlife {
  background-color: #0f766e;
  color: #ffffff;
}

.badge-hillcountry {
  background-color: #15803d;
  color: #ffffff;
}

.badge-beach {
  background-color: #0284c7;
  color: #ffffff;
}

.badge-heritage {
  background-color: #b45309;
  color: #ffffff;
}

.card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-body h3 {
  margin-bottom: 0.4rem;
  font-size: 1.35rem;
}

.card-location {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold-dark);
  margin-bottom: 0.75rem;
}

.card-body p {
  font-size: 0.94rem;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-meta-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
  border-top: 1px dashed var(--color-border);
  border-bottom: 1px dashed var(--color-border);
  padding: 0.6rem 0;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.card-meta-list li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.3rem;
}

.card-meta-list li:last-child {
  margin-bottom: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

/* Feature Box / Icon Box */
.feature-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.feature-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-gold);
}

.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  background-color: var(--color-primary-subtle);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--color-primary);
}

/* Testimonial Card */
.testimonial-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-style: italic;
  color: var(--color-text-main);
  margin-bottom: 1.25rem;
  position: relative;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: auto;
}

.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
  border: 2px solid var(--color-gold);
}

.author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}

.author-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   10. Tables (Itinerary & Seasonal Guides)
   -------------------------------------------------------------------------- */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.75rem 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.data-table caption {
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
  text-align: left;
  background-color: var(--color-surface-alt);
  border-bottom: 2px solid var(--color-gold);
}

.data-table th, .data-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
  vertical-align: middle;
}

.data-table thead th {
  background-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.75px;
}

.data-table tbody tr:nth-child(even) {
  background-color: var(--color-gold-subtle);
}

.data-table tbody tr:hover {
  background-color: rgba(200, 157, 53, 0.12);
}

.status-pill {
  display: inline-block;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
}

.pill-peak {
  background-color: #e8f5e9;
  color: #1b5e20;
  border: 1px solid #c8e6c9;
}

.pill-good {
  background-color: #fff9c4;
  color: #f57f17;
  border: 1px solid #fff59d;
}

.pill-off {
  background-color: #ede7f6;
  color: #4527a0;
  border: 1px solid #d1c4e9;
}

/* --------------------------------------------------------------------------
   11. Lists (Ordered & Unordered Styling)
   -------------------------------------------------------------------------- */
.styled-list {
  margin: 1rem 0 1.5rem 1.25rem;
  color: var(--color-text-muted);
}

.styled-list li {
  margin-bottom: 0.6rem;
  padding-left: 0.4rem;
}

.check-list {
  list-style: none;
  margin-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.85rem;
  margin-bottom: 0.75rem;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 1.1rem;
}

.step-list {
  counter-reset: custom-counter;
  list-style: none;
  margin-left: 0;
}

.step-list li {
  position: relative;
  counter-increment: custom-counter;
  padding-left: 2.75rem;
  margin-bottom: 1.25rem;
}

.step-list li::before {
  content: counter(custom-counter);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  background-color: var(--color-gold);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
}

/* --------------------------------------------------------------------------
   12. Gallery Grid & Lightbox
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.filter-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-main);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--color-gold);
}

.gallery-item figure {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 3;
}

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

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 50, 38, 0.92) 0%, rgba(8, 50, 38, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
  color: #ffffff;
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-within .gallery-overlay {
  opacity: 1;
}

.gallery-overlay h4 {
  color: #ffffff;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.gallery-overlay p {
  color: #e2ede7;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.gallery-credit {
  font-size: 0.75rem;
  color: var(--color-gold-light);
  font-style: italic;
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 32, 24, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  max-width: 900px;
  width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gold);
}

.lightbox-media {
  max-height: 65vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media img {
  max-height: 65vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-info {
  padding: 1.25rem 1.5rem;
  background: var(--color-surface);
}

.lightbox-info h3 {
  margin-bottom: 0.3rem;
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast);
}

.lightbox-close:hover {
  background: var(--color-gold);
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   13. Form & Booking System
   -------------------------------------------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.info-icon {
  width: 44px;
  height: 44px;
  background-color: var(--color-primary-subtle);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 1.2rem;
  flex-shrink: 0;
  border: 1px solid var(--color-primary-light);
}

.booking-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-gold);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-main);
  margin-bottom: 0.4rem;
}

label .required {
  color: var(--color-error);
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-main);
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 76, 58, 0.15);
}

.form-control.is-invalid {
  border-color: var(--color-error);
  background-color: var(--color-error-bg);
}

.error-message {
  display: none;
  color: var(--color-error);
  font-size: 0.8rem;
  margin-top: 0.35rem;
  font-weight: 500;
}

.is-invalid + .error-message {
  display: block;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
  cursor: pointer;
}

/* Modal Popup for Booking Confirmation */
.modal {
  position: fixed;
  inset: 0;
  background-color: rgba(8, 32, 24, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  max-width: 580px;
  width: 100%;
  padding: 2.25rem;
  border: 2px solid var(--color-gold);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  background: var(--color-primary-subtle);
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.25rem;
}

.modal-summary {
  text-align: left;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.modal-summary p {
  margin-bottom: 0.4rem;
}

/* --------------------------------------------------------------------------
   14. Map & Media Section
   -------------------------------------------------------------------------- */
.map-container {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 400px;
  background: #e2ede7;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* --------------------------------------------------------------------------
   15. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-primary-dark);
  color: #d1ded7;
  border-top: 4px solid var(--color-gold);
  padding-top: var(--spacing-3xl);
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: var(--color-gold-light);
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 35px;
  height: 2px;
  background-color: var(--color-gold);
}

.footer-col p {
  color: #b7cbbf;
  margin-bottom: 1rem;
}

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

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #c9dbd1;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
}

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

.footer-bottom {
  background-color: #052018;
  border-top: 1px solid rgba(200, 157, 53, 0.2);
  padding: 1.25rem 0;
  font-size: 0.82rem;
  color: #92a89c;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

/* --------------------------------------------------------------------------
   16. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right var(--transition-normal);
    z-index: 1050;
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid var(--color-border-subtle);
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    background-color: var(--color-primary-subtle);
    border-left: 4px solid var(--color-gold);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .topbar-meta {
    display: none;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-symbol {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }

  .booking-card {
    padding: 1.25rem;
  }
}
