/* ==========================================================================
   EXPLORE ELLA - Sri Lanka Nature Tourism Website Stylesheet
   University Tourism Website Development Assignment
   Color Palette: Forest Green, Warm Gold, Cream, and Dark Text
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette: Forest Green */
  --color-forest-dark: #0f2b1d;
  --color-forest-primary: #1b4332;
  --color-forest-medium: #2d6a4f;
  --color-forest-light: #40916c;
  --color-forest-subtle: #d8f3dc;

  /* Color Palette: Warm Gold */
  --color-gold-dark: #a4711b;
  --color-gold-primary: #c99738;
  --color-gold-light: #e7bf6d;
  --color-gold-subtle: #fcf4e3;

  /* Color Palette: Cream & Neutrals */
  --color-cream-bg: #faf7f0;
  --color-cream-surface: #f4efe4;
  --color-cream-card: #ffffff;
  --color-cream-border: #e2dbcc;

  /* Color Palette: Dark Text & Contrast */
  --color-text-title: #14211a;
  --color-text-main: #2b3a32;
  --color-text-muted: #596b60;
  --color-text-inverse: #ffffff;

  /* Typography */
  --font-family-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-serif: "Georgia", "Times New Roman", serif;
  
  /* Elevation & Shadows */
  --shadow-sm: 0 2px 4px rgba(15, 43, 29, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 43, 29, 0.08);
  --shadow-lg: 0 8px 24px rgba(15, 43, 29, 0.12);
  --shadow-hover: 0 12px 28px rgba(15, 43, 29, 0.16);

  /* Spacing */
  --container-max-width: 1200px;
  --header-height: 80px;
  --border-radius-sm: 6px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;

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

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

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

body {
  font-family: var(--font-family-base);
  background-color: var(--color-cream-bg);
  color: var(--color-text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Focus visibility for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-gold-primary);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Layout Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.main-content {
  flex: 1 0 auto;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background-color: var(--color-cream-surface);
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text-title);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.35rem;
}

p {
  margin-bottom: 1rem;
}

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

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

.section-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-forest-primary);
  background-color: var(--color-gold-subtle);
  border: 1px solid var(--color-gold-light);
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  margin-bottom: 0.85rem;
}

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--color-forest-dark);
  color: var(--color-text-inverse);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

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

.brand-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-gold-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: var(--color-forest-subtle);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.main-navigation {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-link {
  color: #e5ede8;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--color-gold-light);
  background-color: rgba(255, 255, 255, 0.07);
}

.nav-link.active {
  color: var(--color-forest-dark);
  background-color: var(--color-gold-light);
  font-weight: 600;
}

/* Mobile Hamburger Toggle */
.mobile-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  padding: 0;
  z-index: 1010;
}

.hamburger-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-gold-light);
  border-radius: 3px;
  transition: transform var(--transition-normal), opacity var(--transition-normal);
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, rgba(15, 43, 29, 0.92) 0%, rgba(27, 67, 50, 0.85) 100%),
              url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="0,100 50,20 100,100" fill="%231b4332" opacity="0.15"/></svg>');
  background-size: cover, 80px 80px;
  background-position: center;
  color: var(--color-text-inverse);
  padding: 5.5rem 0 6rem 0;
  border-bottom: 4px solid var(--color-gold-primary);
}

.hero-content {
  max-width: 780px;
}

.hero-tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-gold-light);
  background: rgba(201, 151, 56, 0.15);
  border: 1px solid rgba(231, 191, 109, 0.35);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero-title {
  color: var(--color-text-inverse);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span {
  color: var(--color-gold-light);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #e5ede8;
  margin-bottom: 2rem;
  max-width: 680px;
}

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

/* Page Header (for sub-pages) */
.page-hero {
  background: linear-gradient(135deg, var(--color-forest-dark) 0%, var(--color-forest-primary) 100%);
  color: var(--color-text-inverse);
  padding: 3.5rem 0;
  border-bottom: 3px solid var(--color-gold-primary);
}

.page-hero h1 {
  color: var(--color-text-inverse);
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--color-forest-subtle);
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--border-radius-sm);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--color-gold-primary);
  color: var(--color-forest-dark);
  box-shadow: 0 4px 10px rgba(201, 151, 56, 0.3);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-color: var(--color-gold-light);
  color: var(--color-forest-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(201, 151, 56, 0.4);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text-inverse);
  border: 2px solid var(--color-forest-subtle);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-gold-light);
  border-color: var(--color-gold-light);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-forest-primary);
  border: 2px solid var(--color-forest-primary);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  background-color: var(--color-forest-primary);
  color: var(--color-text-inverse);
}

/* --------------------------------------------------------------------------
   Overview / Intro Section
   -------------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.intro-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background-color: var(--color-cream-card);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-cream-border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition-fast);
}

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

.stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  color: var(--color-forest-primary);
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-forest-dark);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   Cards & Grid Layouts (Attractions & Activities)
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 2rem;
}

.card {
  background-color: var(--color-cream-card);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-cream-border);
  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(-6px);
  box-shadow: var(--shadow-hover);
}

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

.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  background-color: var(--color-gold-subtle);
  color: var(--color-gold-dark);
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--color-text-title);
}

.card-text {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--color-cream-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.card-link {
  font-weight: 600;
  color: var(--color-forest-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.card-link:hover {
  color: var(--color-gold-dark);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   Image Display & Card Media
   -------------------------------------------------------------------------- */
.card-media {
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
  background-color: var(--color-forest-dark);
}

.card-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform var(--transition-normal);
}

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

.content-media {
  width: 100%;
  height: 320px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  position: relative;
  border: 1px solid var(--color-cream-border);
}

.content-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.feature-media {
  height: 320px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 2px solid rgba(231, 191, 109, 0.3);
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* --------------------------------------------------------------------------
   Image Placeholders (SVG Styled / Semantic Figure)
   -------------------------------------------------------------------------- */
.placeholder-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #40916c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 1rem;
}

.placeholder-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201, 151, 56, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.placeholder-icon {
  font-size: 2.2rem;
  margin-bottom: 0.4rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.placeholder-label {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-gold-light);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.placeholder-sub {
  font-size: 0.75rem;
  color: #d8f3dc;
  margin-top: 0.15rem;
}

/* --------------------------------------------------------------------------
   Feature / Highlights Section
   -------------------------------------------------------------------------- */
.feature-box {
  background-color: var(--color-forest-dark);
  color: var(--color-text-inverse);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.feature-box h2 {
  color: var(--color-text-inverse);
}

.feature-box p {
  color: #d8f3dc;
}

.feature-list {
  list-style: none;
  margin: 1.5rem 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  color: #e5ede8;
  font-size: 0.95rem;
}

.feature-list-bullet {
  color: var(--color-gold-light);
  font-weight: bold;
  font-size: 1.1rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   Assignment Notice / Educational Banner
   -------------------------------------------------------------------------- */
.academic-notice {
  background-color: #f7f1e1;
  border-left: 5px solid var(--color-gold-primary);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0 0 0;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.academic-notice-icon {
  font-size: 1.4rem;
  color: var(--color-gold-dark);
  line-height: 1.2;
}

.academic-notice-text h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  color: var(--color-forest-dark);
}

.academic-notice-text p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Starter / Milestone Notice (for skeleton pages)
   -------------------------------------------------------------------------- */
.milestone-card {
  background-color: var(--color-cream-card);
  border: 2px dashed var(--color-cream-border);
  border-radius: var(--border-radius-md);
  padding: 3rem 2rem;
  text-align: center;
  margin: 2rem 0;
}

.milestone-card h2 {
  color: var(--color-forest-primary);
  margin-bottom: 0.75rem;
}

.milestone-card p {
  max-width: 600px;
  margin: 0 auto 1.5rem auto;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   Semantic Tables (Factual Quick Facts)
   -------------------------------------------------------------------------- */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-cream-border);
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  background-color: var(--color-cream-card);
  font-size: 0.95rem;
}

.styled-table thead tr {
  background-color: var(--color-forest-dark);
  color: var(--color-gold-light);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.styled-table th,
.styled-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-cream-border);
  vertical-align: top;
}

.styled-table th {
  font-weight: 700;
}

.styled-table tbody tr:nth-of-type(even) {
  background-color: var(--color-cream-surface);
}

.styled-table tbody tr:hover {
  background-color: var(--color-gold-subtle);
}

.styled-table td:first-child {
  font-weight: 600;
  color: var(--color-forest-dark);
  width: 28%;
}

/* --------------------------------------------------------------------------
   Content Split Layout & Narrative Sections
   -------------------------------------------------------------------------- */
.content-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.content-split.reverse {
  grid-template-columns: 1fr 1.2fr;
}

.climate-callout {
  background-color: var(--color-cream-surface);
  border-left: 4px solid var(--color-forest-medium);
  border-radius: var(--border-radius-sm);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.climate-callout h4 {
  font-size: 1.05rem;
  color: var(--color-forest-dark);
  margin-bottom: 0.4rem;
}

.climate-callout p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Transit / Getting to Ella Cards
   -------------------------------------------------------------------------- */
.transit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.transit-card {
  background-color: var(--color-cream-card);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--border-radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

.transit-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.transit-icon {
  font-size: 2rem;
  color: var(--color-forest-primary);
  line-height: 1;
}

.transit-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
  color: var(--color-forest-dark);
}

.transit-subtitle {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold-dark);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   Responsible Tourism List
   -------------------------------------------------------------------------- */
.guidelines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.guideline-card {
  background-color: var(--color-cream-card);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.guideline-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.guideline-card h4 {
  font-size: 1.05rem;
  color: var(--color-forest-dark);
  margin-bottom: 0.5rem;
}

.guideline-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.55;
}

.guidelines-list {
  list-style: none;
  margin: 1.5rem 0;
}

.guidelines-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  color: var(--color-text-main);
}

.guidelines-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-forest-medium);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   Suggested Itinerary (Ordered List)
   -------------------------------------------------------------------------- */
.itinerary-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin: 2.5rem 0;
}

.itinerary-card {
  background-color: var(--color-cream-card);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.itinerary-card-header {
  border-bottom: 2px solid var(--color-gold-subtle);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
}

.itinerary-card-header h3 {
  color: var(--color-forest-dark);
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.itinerary-card-header span {
  font-size: 0.85rem;
  color: var(--color-gold-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.itinerary-list {
  list-style: none;
  counter-reset: itinerary-counter;
  padding-left: 0;
}

.itinerary-item {
  position: relative;
  counter-increment: itinerary-counter;
  padding-left: 3rem;
  margin-bottom: 1.75rem;
}

.itinerary-item:last-child {
  margin-bottom: 0;
}

.itinerary-item::before {
  content: counter(itinerary-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  background-color: var(--color-forest-primary);
  color: var(--color-gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.itinerary-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.itinerary-item h4 {
  font-size: 1.05rem;
  color: var(--color-text-title);
  margin-bottom: 0.35rem;
}

.itinerary-item p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   Difficulty & Characteristic Badges
   -------------------------------------------------------------------------- */
.badge-pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pill-easy {
  background-color: #d8f3dc;
  color: #1b4332;
  border: 1px solid #b7e4c7;
}

.pill-moderate {
  background-color: #fefae0;
  color: #a4711b;
  border: 1px solid #e9c46a;
}

.pill-demanding {
  background-color: #fde2e4;
  color: #9d0208;
  border: 1px solid #f8bbd0;
}

.pill-leisure {
  background-color: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* --------------------------------------------------------------------------
   Gallery Filter & Grid
   -------------------------------------------------------------------------- */
.filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

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

.filter-btn:hover {
  background-color: var(--color-gold-subtle);
  border-color: var(--color-gold-light);
  color: var(--color-forest-dark);
}

.filter-btn.active {
  background-color: var(--color-forest-primary);
  color: var(--color-text-inverse);
  border-color: var(--color-forest-primary);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-card {
  background-color: var(--color-cream-card);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), opacity var(--transition-fast);
  display: flex;
  flex-direction: column;
}

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

.gallery-card.is-hidden {
  display: none;
}

.gallery-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-image-box {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 60%, #40916c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  position: relative;
  text-align: center;
  padding: 1.25rem;
  overflow: hidden;
}

.gallery-image-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 75% 25%, rgba(201, 151, 56, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

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

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.gallery-category-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  background-color: var(--color-gold-subtle);
  color: var(--color-gold-dark);
}

.gallery-title {
  font-size: 1.15rem;
  color: var(--color-forest-dark);
  margin-bottom: 0.35rem;
}

.gallery-description {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Acknowledgement & Credit Structure
   -------------------------------------------------------------------------- */
.acknowledgement-box {
  background-color: #f7f3e8;
  border: 1px solid var(--color-gold-light);
  border-left: 5px solid var(--color-gold-primary);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin: 2rem 0;
}

.acknowledgement-box h3 {
  color: var(--color-forest-dark);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.acknowledgement-box p {
  color: var(--color-text-main);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Inquiry Form Styles
   -------------------------------------------------------------------------- */
.form-card {
  background-color: var(--color-cream-card);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  max-width: 860px;
  margin: 0 auto;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

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

.form-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-title);
  margin-bottom: 0.4rem;
}

.required-mark {
  color: #c92a2a;
  font-weight: bold;
  margin-left: 0.2rem;
}

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

.form-control:focus {
  border-color: var(--color-forest-primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(27, 67, 50, 0.15);
}

.form-control.is-invalid {
  border-color: #c92a2a;
  background-color: #fff8f8;
}

.form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(201, 42, 42, 0.2);
}

.form-error-text {
  font-size: 0.82rem;
  color: #c92a2a;
  margin-top: 0.35rem;
  display: none;
  font-weight: 500;
}

.form-error-text.is-visible {
  display: block;
}

.form-checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem 0;
  grid-column: 1 / -1;
}

.form-checkbox {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  accent-color: var(--color-forest-primary);
  cursor: pointer;
}

.form-checkbox-label {
  font-size: 0.88rem;
  color: var(--color-text-main);
  line-height: 1.5;
  cursor: pointer;
}

.form-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  grid-column: 1 / -1;
}

/* Success Confirmation Banner */
.form-success-box {
  display: none;
  background-color: #e8f5e9;
  border: 1px solid #c8e6c9;
  border-left: 5px solid var(--color-forest-primary);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  margin: 1.5rem auto 0 auto;
  max-width: 860px;
}

.form-success-box.is-active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.form-success-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.form-success-icon {
  font-size: 1.75rem;
  color: var(--color-forest-primary);
}

.form-success-box h3 {
  color: var(--color-forest-dark);
  font-size: 1.3rem;
  margin-bottom: 0;
}

.form-success-box p {
  color: var(--color-text-main);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-success-meta {
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: var(--border-radius-sm);
  padding: 1rem;
  margin: 1rem 0;
  font-size: 0.88rem;
  color: var(--color-forest-dark);
}

/* --------------------------------------------------------------------------
   Frequently Asked Questions (FAQ Accordion)
   -------------------------------------------------------------------------- */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--color-cream-card);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast);
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-summary {
  padding: 1.25rem 1.5rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-forest-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-size: 1.25rem;
  color: var(--color-gold-primary);
  font-weight: 700;
  transition: transform var(--transition-fast);
  line-height: 1;
}

details[open] .faq-icon {
  transform: rotate(45deg);
}

details[open] .faq-summary {
  border-bottom: 1px solid var(--color-cream-surface);
  color: var(--color-forest-primary);
}

.faq-body {
  padding: 1.25rem 1.5rem;
  color: var(--color-text-muted);
  line-height: 1.65;
  font-size: 0.95rem;
  background-color: #ffffff;
}

.faq-body p:last-child {
  margin-bottom: 0;
}

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

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-card {
    padding: 1.5rem;
  }
}

/* --------------------------------------------------------------------------
   Call to Action (CTA) Banner
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--color-forest-dark) 0%, var(--color-forest-primary) 100%);
  color: var(--color-text-inverse);
  border-radius: var(--border-radius-lg);
  padding: 3.5rem 2rem;
  text-align: center;
  border: 2px solid var(--color-gold-primary);
  box-shadow: var(--shadow-lg);
}

.cta-banner h2 {
  color: var(--color-text-inverse);
  font-size: clamp(1.8rem, 3.5vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--color-forest-subtle);
  max-width: 620px;
  margin: 0 auto 2rem auto;
  font-size: 1.05rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
}

/* Responsive adjustment for content-split */
@media (max-width: 992px) {
  .content-split,
  .content-split.reverse {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --------------------------------------------------------------------------
   Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--color-forest-dark);
  color: #e5ede8;
  padding: 4rem 0 1.5rem 0;
  border-top: 4px solid var(--color-gold-primary);
  font-size: 0.92rem;
}

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

.footer-brand h3 {
  color: var(--color-gold-light);
  font-size: 1.35rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #b7cbbf;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-gold-light);
  font-size: 1rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

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

.footer-links a {
  color: #c7d8ce;
  transition: color var(--transition-fast), padding-left var(--transition-fast);
  display: inline-block;
}

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

.footer-badge {
  display: inline-block;
  background-color: rgba(201, 151, 56, 0.2);
  color: var(--color-gold-light);
  border: 1px solid rgba(231, 191, 109, 0.4);
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #9cb1a4;
}

.footer-bottom p {
  margin-bottom: 0.25rem;
}

/* --------------------------------------------------------------------------
   Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Tablet (max-width: 992px) */
@media (max-width: 992px) {
  .intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .feature-box {
    grid-template-columns: 1fr;
    padding: 2rem;
  }

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

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .section {
    padding: 3rem 0;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .main-navigation {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--color-forest-dark);
    border-bottom: 3px solid var(--color-gold-primary);
    box-shadow: var(--shadow-lg);
    padding: 1.5rem 1rem;
    transform: translateY(-150%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
  }

  .main-navigation.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 1rem;
    text-align: center;
    font-size: 1.05rem;
  }

  /* Hamburger transform when open */
  .mobile-nav-toggle.is-active .hamburger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }

  .mobile-nav-toggle.is-active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-toggle.is-active .hamburger-line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
  }

  .hero {
    padding: 3.5rem 0 4rem 0;
  }

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

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

  .intro-stats-grid {
    grid-template-columns: 1fr;
  }

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

/* ==========================================================================
   FINAL MOBILE RESPONSIVE FIX
   ========================================================================== */

   @media (max-width: 768px) {

    /* Prevent horizontal page overflow */
    html,
    body {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }
  
    /* Keep all elements inside the viewport */
    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }
  
    /* Mobile container */
    .container {
      width: 100%;
      max-width: 100%;
      padding-left: 1rem;
      padding-right: 1rem;
    }
  
    /* Prevent long text/words from pushing the page wider */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    li,
    a,
    span {
      overflow-wrap: break-word;
      word-wrap: break-word;
    }
  
    /* ----------------------------------------------------------
       Images
       ---------------------------------------------------------- */
  
    img,
    svg,
    video {
      max-width: 100%;
      height: auto;
    }
  
    .card-media {
      width: 100%;
      height: 190px;
    }
  
    .card-media-img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  
    .content-media {
      width: 100%;
      height: 240px;
    }
  
    .content-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  
    .feature-media {
      width: 100%;
      height: 240px;
    }
  
    .feature-media img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  
    /* ----------------------------------------------------------
       Cards
       ---------------------------------------------------------- */
  
    .cards-grid {
      grid-template-columns: 1fr;
      width: 100%;
      gap: 1.5rem;
    }
  
    .transit-grid {
      grid-template-columns: 1fr;
      width: 100%;
    }
  
    .guidelines-grid {
      grid-template-columns: 1fr;
      width: 100%;
    }
  
    .itinerary-container {
      grid-template-columns: 1fr;
      width: 100%;
    }
  
    /* ----------------------------------------------------------
       Gallery
       ---------------------------------------------------------- */
  
    .gallery-grid {
      grid-template-columns: 1fr;
      width: 100%;
      gap: 1.5rem;
    }
  
    .gallery-image-box {
      width: 100%;
      height: 200px;
    }
  
    .gallery-content {
      padding: 1.1rem;
    }
  
    /* Gallery filter buttons */
    .filter-nav {
      width: 100%;
      gap: 0.5rem;
    }
  
    .filter-btn {
      font-size: 0.85rem;
      padding: 0.5rem 0.9rem;
    }
  
    /* ----------------------------------------------------------
       Hero sections
       ---------------------------------------------------------- */
  
    .hero {
      padding: 3rem 0 3.5rem 0;
    }
  
    .hero-content {
      width: 100%;
      max-width: 100%;
    }
  
    .hero-title {
      font-size: clamp(2rem, 10vw, 2.8rem);
    }
  
    .hero-description {
      font-size: 1rem;
      max-width: 100%;
    }
  
    .hero-tagline {
      max-width: 100%;
      white-space: normal;
      text-align: center;
    }
  
    /* ----------------------------------------------------------
       Feature box
       ---------------------------------------------------------- */
  
    .feature-box {
      width: 100%;
      padding: 1.5rem;
      gap: 1.5rem;
    }
  
    .feature-list li {
      font-size: 0.9rem;
    }
  
    /* ----------------------------------------------------------
       Buttons
       ---------------------------------------------------------- */
  
    .btn {
      max-width: 100%;
      white-space: normal;
      text-align: center;
    }
  
    .hero-actions,
    .cta-buttons,
    .form-actions {
      width: 100%;
    }
  
    .hero-actions .btn,
    .cta-buttons .btn {
      width: 100%;
    }
  
    /* ----------------------------------------------------------
       Forms
       ---------------------------------------------------------- */
  
    .form-card {
      width: 100%;
      max-width: 100%;
      padding: 1.25rem;
    }
  
    .form-grid {
      grid-template-columns: 1fr;
      width: 100%;
    }
  
    .form-group,
    .form-control {
      width: 100%;
      max-width: 100%;
    }
  
    .form-checkbox-container {
      width: 100%;
    }
  
    .form-actions .btn {
      width: 100%;
    }
  
    /* ----------------------------------------------------------
       Tables
       ---------------------------------------------------------- */
  
    .table-responsive {
      width: 100%;
      max-width: 100%;
      overflow-x: auto;
    }
  
    .styled-table {
      min-width: 600px;
    }
  
    /* Tables can scroll horizontally instead of breaking page */
    .table-responsive {
      -webkit-overflow-scrolling: touch;
    }
  
    /* ----------------------------------------------------------
       Content sections
       ---------------------------------------------------------- */
  
    .content-split,
    .content-split.reverse,
    .intro-grid {
      width: 100%;
      max-width: 100%;
    }
  
    .intro-stats-grid {
      width: 100%;
    }
  
    /* ----------------------------------------------------------
       CTA
       ---------------------------------------------------------- */
  
    .cta-banner {
      width: 100%;
      padding: 2.5rem 1.25rem;
    }
  
    .cta-banner p {
      max-width: 100%;
    }
  
    /* ----------------------------------------------------------
       FAQ
       ---------------------------------------------------------- */
  
    .faq-container {
      width: 100%;
      max-width: 100%;
    }
  
    .faq-summary {
      padding: 1rem;
      font-size: 0.95rem;
    }
  
    .faq-body {
      padding: 1rem;
    }
  
    /* ----------------------------------------------------------
       Footer
       ---------------------------------------------------------- */
  
    .footer-grid {
      width: 100%;
    }
  
    .footer-brand,
    .footer-col {
      max-width: 100%;
    }
  }
  
  /* Extra-small phones */
  @media (max-width: 380px) {
  
    .container {
      padding-left: 0.75rem;
      padding-right: 0.75rem;
    }
  
    .hero-title {
      font-size: 2rem;
    }
  
    .section {
      padding: 2.5rem 0;
    }
  
    .feature-box {
      padding: 1.25rem;
    }
  
    .form-card {
      padding: 1rem;
    }
  
    .card-body {
      padding: 1.15rem;
    }
  
    .gallery-content {
      padding: 1rem;
    }
  
    .filter-btn {
      font-size: 0.8rem;
      padding: 0.45rem 0.75rem;
    }
  }

  /* ==========================================================================
   Ella Location Map
   ========================================================================== */

.map-section {
  margin-top: 3rem;
  padding: 2rem;
  background-color: var(--color-cream-card);
  border: 1px solid var(--color-cream-border);
  border-radius: var(--border-radius-md);
}

.map-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.map-header h3 {
  margin-top: 0.75rem;
  color: var(--color-forest-dark);
}

.map-header p {
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

.map-container {
  width: 100%;
  height: 380px;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--color-cream-border);
  box-shadow: var(--shadow-sm);
}

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

.map-caption {
  text-align: center;
  margin-top: 0.8rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.map-caption a {
  color: var(--color-green-primary);
  font-weight: 600;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .map-section {
    margin-top: 2rem;
    padding: 1.25rem;
  }

  .map-container {
    height: 280px;
  }

  .map-caption {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}