@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700;800&display=swap');

/* ===== Design Tokens (CSS Custom Properties) ===== */
:root {
  /* Color Palette - Morocco Travel Brand */
  --color-primary: #1B4D3E;
  --color-primary-light: #2A7A5F;
  --color-secondary: #8B4513;
  --color-secondary-light: #A0522D;
  --color-accent: #C8860A;
  --color-accent-light: #DAA520;
  --color-neutral-900: #1A1A2E;
  --color-neutral-700: #3D3D5C;
  --color-neutral-500: #6B7280;
  --color-neutral-200: #E5E7EB;
  --color-neutral-100: #F3F4F6;
  --color-neutral-50: #F9FAFB;
  --color-white: #FFFFFF;

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-h1: 2.5rem;
  --font-size-h2: 2rem;
  --font-size-h3: 1.5rem;
  --font-size-h4: 1.25rem;
  --font-size-body: 1rem;
  --font-size-sm: 0.875rem;
  --line-height-body: 1.75;
  --line-height-heading: 1.2;
  --letter-spacing-wide: 0.08em;

  /* Spacing Scale - 8px base */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 5rem;

  /* Borders & Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-card: 0 3px 12px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
  --shadow-dropdown: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-header: 0 2px 4px rgba(0, 0, 0, 0.06);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 350ms ease;
  --transition-entrance: 600ms ease-out;
}

/* ===== Base Typography & Body Styles ===== */

body,
html {
  font-family: var(--font-body);
  color: var(--color-neutral-700);
  line-height: var(--line-height-body);
  font-size: var(--font-size-body);
}

h1 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h1);
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-neutral-900);
}

h2 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h2);
  font-weight: 700;
  line-height: var(--line-height-heading);
  color: var(--color-neutral-900);
}

h3 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--color-neutral-900);
}

h4 {
  font-family: var(--font-heading);
  font-size: var(--font-size-h4);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-neutral-900);
}

p,
li {
  line-height: var(--line-height-body);
}

a {
  color: var(--color-primary);
  transition: color var(--transition-base);
}

.main-heading {
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-neutral-900);
}

.main-subtitle {
  font-weight: 300;
  font-size: 20px;
  line-height: 1.4;
  color: var(--color-neutral-500);
}

/* ===== Header & Navigation ===== */

#header {
  background: var(--color-white);
  box-shadow: var(--shadow-header);
}

#header.fixed-position {
  background: rgba(255, 255, 255, 0.97);
}

.navbar-default .navbar-nav > li > a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-neutral-700);
  transition: color var(--transition-base);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--color-primary);
}

.navbar-default .navbar-nav > li.active > a,
.navbar-default .navbar-nav > li.open > a {
  color: var(--color-primary);
}

.dropdown-menu {
  background: var(--color-white);
  box-shadow: var(--shadow-dropdown);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid var(--color-neutral-200);
}

.dropdown-menu a {
  color: var(--color-neutral-700);
  padding: 8px 12px;
  border-radius: 4px;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.dropdown-menu a:hover {
  color: var(--color-primary);
  background-color: var(--color-neutral-50);
}

/* ===== Hero / Banner Sections ===== */

.banner .bg-stretch::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}

.banner .banner-text,
.banner .banner-caption-s1 {
  position: relative;
  z-index: 2;
}

.banner .banner-text h1,
.banner .banner-caption-s1 h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  margin-bottom: 15px;
}

.banner .banner-subtitle,
.banner .subtitle {
  font-weight: 300;
  font-size: 20px;
  color: var(--color-neutral-100);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.banner .center-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: inherit;
}

/* ===== Gallery Grid ===== */

.gallery-list li {
  margin-bottom: 12px;
}

.gallery-list .thumbnail {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  display: block;
}

.gallery-list .thumbnail img {
  border-radius: var(--radius-md);
  transition: transform var(--transition-slow);
}

.gallery-list .thumbnail:hover img {
  transform: scale(1.05);
}

.gallery-list .hover {
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  transition: opacity var(--transition-base);
}

.gallery-list .info {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.6);
  color: var(--color-white);
  border-radius: 4px;
}

/* ===== Tour Cards & Articles ===== */

.article.has-hover-s3 {
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-white);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.article.has-hover-s3:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.article.has-hover-s3 .img-wrap {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}

.article.has-hover-s3 .img-wrap img {
  transition: transform var(--transition-slow);
}

.article.has-hover-s3:hover .img-wrap img {
  transform: scale(1.03);
}

.article.has-hover-s3 h3,
.article.has-hover-s3 p {
  padding-left: 24px;
  padding-right: 24px;
}

.article.has-hover-s3 h3 {
  padding-top: 20px;
}

.article.has-hover-s3 p {
  padding-bottom: 24px;
}

.star-rating span {
  color: var(--color-accent);
}

.article .link-more,
.article .info-footer .link-more {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-neutral-900);
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--font-size-sm);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.article .link-more:hover,
.article .info-footer .link-more:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

/* ===== Buttons & CTAs ===== */

.btn,
.btn-info-sub,
input[type="submit"] {
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--transition-fast);
}

.btn-info-sub,
.btn-info-sub.btn-md {
  background: var(--color-accent);
  color: var(--color-neutral-900);
  border-color: var(--color-accent);
}

.btn-info-sub:hover,
.btn-info-sub.btn-md:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: var(--color-neutral-900);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 134, 10, 0.3);
}

aside.special-block {
  background: var(--color-primary);
  padding: 40px 20px;
}

aside.special-block .special-text {
  color: var(--color-white);
}

aside.special-block .special-text a {
  color: var(--color-accent-light);
}

aside.special-block .special-text a:hover {
  color: var(--color-accent);
}

/* Focus indicator for accessibility */
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

/* ===== Footer ===== */

#footer {
  background: var(--color-primary);
  padding: 48px 0;
}

#footer h3,
#footer .footer-nav h3 {
  color: var(--color-white);
  font-size: 20px;
  font-family: var(--font-heading);
  margin-bottom: 20px;
}

#footer .footer-nav a,
#footer .footer-nav ul a {
  color: var(--color-neutral-200);
  transition: color var(--transition-base);
}

#footer .footer-nav a:hover,
#footer .footer-nav ul a:hover {
  color: var(--color-accent-light);
}

#footer .address-block a {
  color: var(--color-neutral-200);
}

#footer .address-block a:hover {
  color: var(--color-accent-light);
}

#footer address {
  color: var(--color-neutral-200);
}

.social-wrap li a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.social-wrap li a:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

#footer .footer-holder {
  margin-bottom: 24px;
}

/* ===== Layout & Spacing ===== */

.content-block {
  padding: 70px 0;
}

.services-block {
  padding: 70px 0;
}

.content-heading {
  margin-bottom: 36px;
  text-align: center;
}

.content-heading .seperator {
  margin: 16px auto 0;
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border: none;
}

.container .description p,
.container .text-block p,
.container .guide-info p {
  max-width: 750px;
}

.ico-article {
  text-align: center;
  padding: 20px 15px;
}

.ico-article .ico-holder {
  margin-bottom: 24px;
  color: var(--color-primary);
  font-size: 44px;
}

.ico-article .content-title {
  color: var(--color-neutral-900);
  font-family: var(--font-heading);
}

/* ===== Animations & Transitions ===== */

a,
.btn,
.thumbnail,
.article,
.social-wrap a {
  transition: color var(--transition-base),
              background-color var(--transition-base),
              box-shadow var(--transition-base),
              transform var(--transition-base),
              opacity var(--transition-base),
              border-color var(--transition-base);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Responsive Breakpoints ===== */

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
  .banner,
  .banner-inner {
    min-height: 400px;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .banner,
  .banner-inner {
    min-height: 300px;
  }

  .banner .banner-text h1,
  .banner .banner-caption-s1 h1 {
    font-size: 34px;
  }

  .banner .banner-subtitle,
  .banner .subtitle {
    font-size: 16px;
  }

  .content-block {
    padding: 50px 0;
  }

  .services-block {
    padding: 50px 0;
  }
}

/* Mobile (<768px) */
@media (max-width: 767px) {
  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .banner,
  .banner-inner {
    min-height: 250px;
  }

  .banner .banner-text h1,
  .banner .banner-caption-s1 h1 {
    font-size: 28px;
  }

  .banner .banner-subtitle,
  .banner .subtitle {
    font-size: 14px;
  }

  .content-block {
    padding: 36px 0;
  }

  .services-block {
    padding: 36px 0;
  }

  .article.has-hover-s3 {
    margin-bottom: 12px;
  }

  .btn,
  .btn-info-sub {
    min-height: 44px;
    min-width: 44px;
  }

  .navbar-default .navbar-nav > li > a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ===== Cross-Page Consistency Overrides ===== */

/* Override inline .style1 color declarations */
body .style1 {
  color: var(--color-white);
}

/* Ensure header consistency across pages */
.default-page #header,
#header.default-white-header {
  background: var(--color-white);
  box-shadow: var(--shadow-header);
}

/* Ensure navigation link colors are consistent */
.default-page #header .navbar-default .navbar-nav > li > a,
#header.default-white-header .navbar-default .navbar-nav > li > a {
  color: var(--color-neutral-700);
}

.default-page #header .navbar-default .navbar-nav > li > a:hover,
#header.default-white-header .navbar-default .navbar-nav > li > a:hover {
  color: var(--color-primary);
}

/* Ensure consistent link colors in content */
#main a {
  color: var(--color-primary);
}

#main a:hover {
  color: var(--color-primary-light);
}

/* ===== Homepage-Specific Professional Enhancements ===== */

/* Hero banner - full viewport height on homepage for immersive first impression */
.banner-home {
  min-height: 85vh;
  position: relative;
}

.banner-home .banner-image {
  min-height: 85vh;
}

.banner-home .bg-stretch img {
  object-fit: cover;
  object-position: center;
}

.banner-home .banner-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.banner-home .banner-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.95;
}

/* Hero CTA button for homepage */
.banner-home .center-text::after {
  content: 'Explore Our Tours ↓';
  display: inline-block;
  margin-top: 30px;
  padding: 14px 36px;
  background: var(--color-accent);
  color: var(--color-neutral-900);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.banner-home .center-text:hover::after {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 134, 10, 0.4);
}

/* Alternating section backgrounds for visual depth */
.content-block.bg-white {
  background: var(--color-white);
}

.content-block.content-spacing {
  background: var(--color-neutral-100);
}

/* Enhanced section headings with decorative accent */
.content-heading .main-heading {
  position: relative;
  font-size: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: 16px;
}

.content-heading .main-subtitle {
  font-style: italic;
  margin-top: 8px;
  display: block;
}

/* Gallery section - professional grid with modern gaps */
.gallery-home-holder {
  padding: 20px 0;
}

.gallery-home-holder .gallery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-home-holder .gallery-list li {
  flex: 1 1 calc(33.333% - 12px);
  min-width: 140px;
}

/* About section (right column) styling */
.gallery-home-holder .text-block .centered {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.gallery-home-holder .text-block .intro-heading {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  color: var(--color-neutral-900);
  margin-bottom: 20px;
  line-height: 1.3;
}

.gallery-home-holder .text-block .intro {
  color: var(--color-neutral-700);
  line-height: 1.8;
  margin-bottom: 30px;
  max-width: 500px;
}

/* Enhanced special discount block */
aside.special-block {
  position: relative;
  overflow: hidden;
}

aside.special-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  width: 120%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(200, 134, 10, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

aside.special-block .special-text {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  position: relative;
  z-index: 1;
}

/* Tour cards - enhanced professional look */
.db-3-col .article.has-hover-s3 {
  margin-bottom: 30px;
  border: 1px solid var(--color-neutral-200);
}

.db-3-col .article.has-hover-s3:hover {
  border-color: transparent;
}

/* Image caption badge (duration) styling */
.article .img-caption {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-accent);
  color: var(--color-neutral-900);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 3;
}

/* Star rating hover area enhancement */
.article .hover-article {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

/* Card heading links */
.article.has-hover-s3 h3 a {
  color: var(--color-neutral-900);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  transition: color var(--transition-base);
}

.article.has-hover-s3 h3 a:hover {
  color: var(--color-primary);
}

/* Card paragraph text */
.article.has-hover-s3 > p {
  color: var(--color-neutral-500);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

/* Trust signals section */
.services-block .ico-article {
  padding: 30px 20px;
  border-radius: var(--radius-lg);
  transition: background-color var(--transition-base), transform var(--transition-base);
}

.services-block .ico-article:hover {
  background: var(--color-neutral-50);
  transform: translateY(-2px);
}

.services-block .ico-article .ico-holder {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  background: var(--color-neutral-100);
  border-radius: 50%;
  color: var(--color-primary);
  font-size: 32px;
  transition: background-color var(--transition-base), color var(--transition-base);
}

.services-block .ico-article:hover .ico-holder {
  background: var(--color-primary);
  color: var(--color-white);
}

.services-block .content-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-neutral-900);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* WhatsApp floating contact button (modern travel best practice) */
.page-wrapper::after {
  content: '\f232';
  font-family: 'FontAwesome';
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.page-wrapper:hover::after {
  transform: scale(1.05);
}

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Logo size refinement */
.logo a {
  width: auto;
  max-width: 180px;
}

.logo img {
  max-height: 60px;
  width: auto;
}

/* Section separator - subtle divider between major sections */
.content-block + .content-block {
  border-top: 1px solid var(--color-neutral-200);
}

.content-block + aside.special-block,
aside.special-block + .content-block {
  border-top: none;
}

/* Mega dropdown enhancement for Mountain Treks */
.has-mega-dropdown .dropdown-menu {
  padding: 24px;
}

.has-mega-dropdown .dropdown-menu .des {
  padding: 12px;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-base);
}

.has-mega-dropdown .dropdown-menu .des:hover {
  background: var(--color-neutral-50);
}

.has-mega-dropdown .dropdown-menu .title a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-neutral-900);
}

.has-mega-dropdown .dropdown-menu .title a:hover {
  color: var(--color-primary);
}

.has-mega-dropdown .dropdown-menu p {
  font-size: 12px;
  color: var(--color-neutral-500);
  margin: 4px 0 0;
  line-height: 1.4;
}

/* Footer enhancement - copyright area */
#footer .social-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
  margin-top: 24px;
}

/* Fluid typography for homepage hero */
@media (min-width: 1024px) {
  .banner-home {
    min-height: 90vh;
  }
  
  .banner-home .banner-image {
    min-height: 90vh;
  }
}

@media (max-width: 767px) {
  .banner-home {
    min-height: 60vh;
  }
  
  .banner-home .banner-image {
    min-height: 60vh;
  }
  
  .banner-home .center-text::after {
    padding: 10px 24px;
    font-size: 12px;
    margin-top: 20px;
  }
  
  .gallery-home-holder .gallery-list li {
    flex: 1 1 calc(50% - 8px);
  }
  
  .gallery-home-holder .text-block .centered {
    padding: 30px 15px;
  }
  
  .page-wrapper::after {
    width: 48px;
    height: 48px;
    font-size: 24px;
    bottom: 16px;
    right: 16px;
  }
}

/* ===== Inner Pages — Tour Detail Pages ===== */

/* Tour info section - split layout */
.trip-info {
  padding: 0;
}

.trip-info .two-columns {
  min-height: 500px;
}

.trip-info .text-col .holder {
  padding: 40px 30px;
}

.trip-info .text-col h1 {
  font-family: var(--font-heading);
  color: var(--color-neutral-900);
  margin-bottom: 8px;
}

.trip-info .text-col .price {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 20px;
  line-height: 1.3;
}

.trip-info .text-col .description {
  margin-bottom: 24px;
}

.trip-info .text-col .description p {
  color: var(--color-neutral-700);
  line-height: 1.8;
  font-size: var(--font-size-body);
}

/* Book Now button - prominent CTA */
.trip-info .btn-holder {
  margin: 24px 0;
}

.trip-info .btn-holder .btn-info,
.trip-info .btn-holder .btn-lg {
  background: var(--color-accent);
  color: var(--color-neutral-900);
  border-color: var(--color-accent);
  padding: 14px 40px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.trip-info .btn-holder .btn-info:hover,
.trip-info .btn-holder .btn-lg:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 134, 10, 0.35);
}

/* Social share links */
.social-networks.social-share {
  margin-top: 20px;
  display: flex;
  gap: 12px;
}

.social-networks.social-share li a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--color-neutral-200);
  color: var(--color-neutral-700);
  transition: all var(--transition-base);
}

.social-networks.social-share li a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-neutral-50);
}

/* Tab navigation */
.tab-container .nav-wrap {
  background: var(--color-white);
  border-bottom: 2px solid var(--color-neutral-200);
  position: sticky;
  top: 0;
  z-index: 9;
}

.tab-container .nav-tabs {
  border: none;
}

.tab-container .nav-tabs > li > a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-neutral-500);
  padding: 16px 20px;
  border: none;
  border-bottom: 3px solid transparent;
  margin: 0;
  border-radius: 0;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.tab-container .nav-tabs > li > a:hover {
  color: var(--color-primary);
  background: transparent;
  border-bottom-color: var(--color-primary-light);
}

.tab-container .nav-tabs > li.active > a,
.tab-container .nav-tabs > li.active > a:hover,
.tab-container .nav-tabs > li.active > a:focus {
  color: var(--color-primary);
  background: transparent;
  border: none;
  border-bottom: 3px solid var(--color-accent);
}

/* Tab content area */
.trip-detail {
  padding: 40px 0 60px;
}

.trip-detail .text-box {
  background: var(--color-white);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-lg);
  padding: 0;
  margin-bottom: 24px;
  overflow: hidden;
}

.trip-detail .text-box .holder {
  padding: 24px;
}

.trip-detail .text-box .title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-neutral-900);
  display: block;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-neutral-100);
}

/* Tick list and cross list styling */
.content-list.tick-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-neutral-700);
  line-height: 1.6;
}

.content-list.tick-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 14px;
}

.content-list.cross-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--color-neutral-500);
  line-height: 1.6;
}

.content-list.cross-list li::before {
  content: '✕';
  position: absolute;
  left: 0;
  top: 0;
  color: #dc3545;
  font-weight: 700;
  font-size: 14px;
}

/* Not included box - subtle red/gray tint */
.trip-detail .text-box.not-included {
  border-color: var(--color-neutral-200);
  background: var(--color-neutral-50);
}

/* Itinerary accordion */
.detail-accordion {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: day-counter;
}

.detail-accordion > li {
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.detail-accordion > li:hover,
.detail-accordion > li.active {
  box-shadow: var(--shadow-card);
}

.detail-accordion > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: var(--color-white);
  color: var(--color-neutral-900);
  text-decoration: none;
  transition: background-color var(--transition-base);
}

.detail-accordion > li > a:hover {
  background: var(--color-neutral-50);
}

.detail-accordion > li > a .title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-primary);
}

.detail-accordion > li.active > a {
  background: var(--color-neutral-50);
  border-bottom: 1px solid var(--color-neutral-200);
}

/* ===== Inner Pages — Banner (parallax inner pages) ===== */

.banner-inner {
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-inner .banner-text {
  text-align: center;
  position: relative;
  z-index: 2;
}

.banner-inner .banner-text h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  margin-bottom: 8px;
}

.banner-inner .banner-text .subtitle {
  font-size: clamp(0.9rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Breadcrumb styling */
.breadcrumbs {
  margin-top: 16px;
}

.breadcrumbs ul {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.breadcrumbs ul li a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  transition: color var(--transition-base);
}

.breadcrumbs ul li a:hover {
  color: var(--color-accent-light);
}

/* ===== Category / Listing Pages ===== */

/* Grid view enhancements */
.content-holder .row .article {
  margin-bottom: 30px;
}

/* List view styling */
.list-view .article {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 24px;
  transition: box-shadow var(--transition-base);
}

.list-view .article:hover {
  box-shadow: var(--shadow-card-hover);
}

/* ===== Static Pages (About, FAQ, Contact, Gallery, Accommodations) ===== */

/* Guide/About content section */
.guide-sub .content-heading .main-heading {
  color: var(--color-primary);
}

.guide-sub .description p {
  color: var(--color-neutral-700);
  line-height: 1.85;
  font-size: 1.05rem;
  margin-bottom: 20px;
}

/* FAQ accordion styling */
.panel-group .panel {
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  border: 1px solid var(--color-neutral-200);
  box-shadow: none;
}

.panel-group .panel-heading a {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-neutral-900);
  padding: 16px 24px;
  display: block;
  text-decoration: none;
  background: var(--color-white);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: color var(--transition-base), background-color var(--transition-base);
}

.panel-group .panel-heading a:hover {
  color: var(--color-primary);
  background: var(--color-neutral-50);
}

.panel-group .panel-body {
  padding: 20px 24px;
  color: var(--color-neutral-700);
  line-height: 1.75;
  border-top: 1px solid var(--color-neutral-200);
}

/* Contact page form */
.contact-form .form-control {
  border: 2px solid var(--color-neutral-200);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: var(--font-size-body);
  color: var(--color-neutral-700);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.contact-form .form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(27, 77, 62, 0.1);
  outline: none;
}

.contact-form textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.contact-form .btn {
  background: var(--color-accent);
  color: var(--color-neutral-900);
  border: none;
  padding: 14px 36px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.contact-form .btn:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 134, 10, 0.3);
}

/* Gallery page grid */
.gallery-page .gallery-list {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-page .gallery-list li {
  flex: 1 1 calc(25% - 16px);
  min-width: 200px;
}

/* Sidebar styling */
.sidebar .sidebar-holder,
.sidebar .side-block {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-neutral-200);
  box-shadow: none;
}

.sidebar .heading {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 16px 24px;
}

.sidebar .heading h3 {
  color: var(--color-white);
  margin: 0;
  font-size: 1rem;
}

.sidebar .panel-heading a {
  color: var(--color-neutral-900);
  font-size: 0.9rem;
  padding: 12px 24px;
}

.sidebar .panel-heading a:hover {
  color: var(--color-primary);
}

/* ===== Global Page Content Enhancements ===== */

/* Improved paragraph readability on all pages */
#main .description p,
#main .text-box p,
#main .detail p,
.trip-detail .detail p {
  color: var(--color-neutral-700);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* All page headings consistency */
#main h2 {
  font-family: var(--font-heading);
  color: var(--color-neutral-900);
  margin-bottom: 20px;
}

#main h3 {
  font-family: var(--font-heading);
  color: var(--color-neutral-900);
  margin-bottom: 16px;
}

/* Image styling across all pages */
#main img {
  border-radius: var(--radius-sm);
}

.trip-info img,
.bg-stretch img {
  border-radius: 0;
}

/* Tour slide images */
#tour-slide .slide {
  border-radius: 0;
  overflow: hidden;
}

#tour-slide .bg-stretch img {
  object-fit: cover;
}

/* Partner/testimonial section */
.testimonial-holder {
  background: var(--color-primary);
  border-radius: 0;
}

.testimonial-holder blockquote {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Section dividers for inner pages */
.guide-sub + .special-block,
.content-block + .services-block {
  border-top: none;
}

/* Consistent link styling in content */
.trip-detail a,
.guide-info a,
.description a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: rgba(27, 77, 62, 0.3);
  text-underline-offset: 2px;
  transition: color var(--transition-base), text-decoration-color var(--transition-base);
}

.trip-detail a:hover,
.guide-info a:hover,
.description a:hover {
  color: var(--color-primary-light);
  text-decoration-color: var(--color-primary-light);
}

/* Table styling (for itineraries, comparisons) */
#main table,
.trip-detail table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
}

#main table th,
.trip-detail table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  font-size: var(--font-size-sm);
  letter-spacing: 0.5px;
}

#main table td,
.trip-detail table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--color-neutral-200);
  color: var(--color-neutral-700);
  font-size: var(--font-size-body);
}

#main table tr:nth-child(even) td,
.trip-detail table tr:nth-child(even) td {
  background: var(--color-neutral-50);
}

#main table tr:hover td,
.trip-detail table tr:hover td {
  background: var(--color-neutral-100);
}

/* ===== SEO-Friendly Enhancements ===== */

/* Ensure heading hierarchy is visually clear */
#main h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

#main h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
}

#main h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
}

/* Strong/bold text emphasis */
#main strong,
#main b {
  color: var(--color-neutral-900);
  font-weight: 700;
}

/* Unordered and ordered list styling */
#main ul:not(.nav):not(.dropdown-menu):not(.gallery-list):not(.social-wrap):not(.footer-nav):not(.content-list):not(.social-networks):not(.breadcrumbs):not(.star-rating):not(.navbar-nav),
#main ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

#main ul:not(.nav):not(.dropdown-menu):not(.gallery-list):not(.social-wrap):not(.footer-nav):not(.content-list):not(.social-networks):not(.breadcrumbs):not(.star-rating):not(.navbar-nav) li,
#main ol li {
  margin-bottom: 8px;
  line-height: 1.7;
  color: var(--color-neutral-700);
}

/* ===== Additional Responsive Rules for Inner Pages ===== */

@media (max-width: 767px) {
  .trip-info .text-col .holder {
    padding: 24px 16px;
  }

  .trip-info .text-col .price {
    font-size: 1.25rem;
  }

  .tab-container .nav-tabs > li > a {
    padding: 12px 10px;
    font-size: 11px;
  }

  .trip-detail .text-box .holder {
    padding: 16px;
  }

  .detail-accordion > li > a {
    padding: 12px 16px;
  }

  .social-networks.social-share {
    flex-wrap: wrap;
  }

  .social-networks.social-share li a {
    padding: 6px 12px;
    font-size: 12px;
  }

  .guide-sub .description p {
    font-size: 1rem;
  }

  .gallery-page .gallery-list li {
    flex: 1 1 calc(50% - 12px);
    min-width: 140px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .trip-info .text-col .holder {
    padding: 30px 24px;
  }

  .gallery-page .gallery-list li {
    flex: 1 1 calc(33.333% - 16px);
  }
}
