/* =========================================
   RESET & BASIC SETUP
   ========================================= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Prevent any accidental horizontal scrolling on mobile.
     `clip` is preferred over `hidden` because it does not break the
     `position: sticky` main header. */
  overflow-x: clip;
  max-width: 100%;
  width: 100%;
}

/* Fallback for browsers without `overflow: clip` support. */
@supports not (overflow: clip) {
  body {
    overflow-x: hidden;
  }
}

/* Defensive: no block-level section should ever exceed the viewport
   width, even if something inside it miscalculates its own width.
   (Hero is excluded — it contains the carousel; clipping there can crop
   the carousel on some mobile browsers.) */
.main-header,
.tour-packages-section,
.pre-footer,
.why-us-section,
.testimonials-section,
footer {
  max-width: 100vw;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  .main-header,
  .tour-packages-section,
  .pre-footer,
  .why-us-section,
  .testimonials-section,
  footer {
    overflow-x: hidden;
  }
}

/* =========================================
   SCROLL REVEAL (fade + slide up)
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================
   HEADER
   ========================================= */
.main-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid #eef2f7;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* --- Primary Nav --- */
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.nav-link:hover {
  color: #1565c0;
  background-color: rgba(21, 101, 192, 0.08);
}

.nav-link.active {
  color: #1565c0;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1565c0, #22c55e);
}

.nav-cta {
  background: linear-gradient(135deg, #1565c0, #1d4ed8);
  color: #ffffff !important;
  margin-left: 8px;
  box-shadow: 0 6px 14px -6px rgba(21, 101, 192, 0.55);
}

.nav-cta:hover {
  filter: brightness(1.05);
  background: linear-gradient(135deg, #1565c0, #1d4ed8);
  color: #ffffff !important;
}

/* --- Mobile toggle button --- */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid #e2e8f0;
  color: #1f2937;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.05rem;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: rgba(21, 101, 192, 0.08);
  border-color: rgba(21, 101, 192, 0.25);
  color: #1565c0;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid #eef2f7;
    padding: 12px 20px 18px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
    box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.2);
  }

  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-link {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    margin-top: 6px;
  }
}

html {
  scroll-behavior: smooth;
  /* Hard-stop horizontal page scroll at the viewport root.
     Using `clip` instead of `hidden` so `position: sticky` still works. */
  overflow-x: clip;
  max-width: 100%;
}

@supports not (overflow: clip) {
  html {
    overflow-x: hidden;
  }
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  width: 45px;
  height: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 18px;
  color: #2c3e50;
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 64px 0 56px;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(59, 130, 246, 0.1), transparent 60%),
    radial-gradient(900px 400px at -10% 30%, rgba(34, 197, 94, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% Image, 50% Text */
  gap: 60px;
  align-items: center;
}

/* Allow columns to shrink to the viewport; default grid min-width:auto
   would let the wide carousel track force horizontal overflow on mobile. */
.hero-grid > * {
  min-width: 0;
}

/* LEFT SIDE (Image / Carousel) */
.hero-image-side {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.feature-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* RIGHT SIDE (Text) */
.hero-text-side {
  text-align: left;
  padding-left: 20px;
}

.tagline {
  display: inline-block;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe);
  color: #0f172a;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

h1 {
  font-size: 3rem;
  color: #1a202c;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #1565c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 40px;
  max-width: 90%;
}

/* =========================================
   BUTTONS / ACTION CARDS
   ========================================= */
.card-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
}

.action-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.action-card:hover {
  border-color: #cbd5e0;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.icon-box {
  width: 45px;
  height: 45px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.icon-box.blue {
  background-color: #eff6ff;
  color: #3b82f6;
}
.icon-box.green {
  background-color: #f0fdf4;
  color: #22c55e;
}

.card-details {
  flex: 1;
}

.card-details h3 {
  font-size: 16px;
  color: #1f2937;
  margin: 0;
  font-weight: 600;
}

.card-details span {
  font-size: 13px;
  color: #6b7280;
}

.arrow-icon {
  color: #9ca3af;
}
.action-card:hover .arrow-icon {
  color: #333;
}

/* =========================================
   CAROUSEL STYLES
   ========================================= */
.carousel-container {
  width: 100%;
  max-width: 600px;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.25);
  background-color: #eee;
  /* Let the page scroll vertically, but keep horizontal gestures
     inside the carousel so swiping here doesn't pan the whole page. */
  touch-action: pan-y;
  -ms-touch-action: pan-y;
  cursor: grab;
}

.carousel-container:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.carousel-nav {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 0;
  transition: background-color 0.3s;
}

.carousel-dot.active {
  background-color: #fff;
  transform: scale(1.2);
}

/* =========================================
   NEW: TOUR PACKAGES SECTION
   ========================================= */
.tour-packages-section {
  position: relative;
  padding: 60px 0;
  width: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.55)), url("../logo/bg.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Disable fixed backgrounds on touch/mobile devices — they cause jank and
   visual glitches (especially on iOS Safari). */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
  .tour-packages-section {
    background-attachment: scroll;
  }
}

.tour-packages-section > .container {
  position: relative;
  z-index: 1;
}

.tour-packages-section .section-title {
  text-align: center;
  font-size: 2.2rem;
  color: #1a202c;
  margin-bottom: 5px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tour-packages-section .section-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 40px;
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  width: 100%;
}

@media (max-width: 360px) {
  .packages-grid {
    grid-template-columns: 1fr;
  }
}

.package-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  border: 1px solid #eef2f7;
  display: flex;
  flex-direction: column;
}

.package-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px -10px rgba(15, 23, 42, 0.18);
}

.package-img-box {
  position: relative;
  height: 200px;
  width: 100%;
}

.package-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.package-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.package-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.package-info h3 {
  font-size: 1.25rem;
  color: #1f2937;
  margin-bottom: 10px !important;
}

.package-info p {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 20px !important; /* Overrides hero p tag */
  max-width: 100% !important;
}

.package-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  padding-top: 15px;
  margin-top: auto;
}

.package-price {
  font-weight: 700;
  color: #22c55e;
  font-size: 1.2rem;
}

.btn-select-package {
  background: linear-gradient(135deg, #1565c0, #1d4ed8);
  color: #fff;
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
  text-decoration: none;
  display: inline-block;
}

.btn-select-package:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(21, 101, 192, 0.35);
}

/* =========================================
   NEW: FLOATING AI CHATBOT
   ========================================= */
.chatbot-wrapper {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
}

.chatbot-toggler {
  width: 60px;
  height: 60px;
  background-color: #1565c0;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.chatbot-toggler:hover {
  transform: scale(1.1);
}

.chatbot-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 450px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;

  /* Hidden state by default */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition:
    opacity 0.3s,
    transform 0.3s;
}

.chatbot-panel.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chatbot-header {
  background: #1565c0;
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot-header h3 {
  font-size: 1rem;
  margin: 0 !important;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

.chatbox {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f8f9fa;
  margin: 0 !important;
}

.chat {
  display: flex;
  margin: 0 !important;
}

.chat.incoming {
  justify-content: flex-start;
}

.chat.outgoing {
  justify-content: flex-end;
}

.chat p {
  max-width: 80% !important;
  padding: 12px 16px !important;
  margin: 0 !important; /* Overrides hero p tag */
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: pre-wrap; /* keep line breaks for longer replies */
}

.chat.incoming p {
  background: #e2e8f0;
  color: #333;
  border-radius: 10px 10px 10px 0;
}

.chat.outgoing p {
  background: #1565c0;
  color: white;
  border-radius: 10px 10px 0 10px;
}

/* Chatbot FAQ quick buttons */
.faq-quick-container {
  max-width: 80%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px;
}

.faq-quick-title {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.faq-quick-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  margin-bottom: 8px;
}

.faq-quick-btn:hover {
  background: #e2e8f0;
}

.faq-quick-btn:last-child {
  margin-bottom: 0;
}

.chat-input-area {
  padding: 15px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  background: white;
}

.chat-input-area textarea {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  resize: none;
  height: 45px;
  font-family: inherit;
}

.chat-input-area textarea:focus {
  outline: none;
  border-color: #1565c0;
}

.chat-input-area button {
  background: #1565c0;
  color: white;
  border: none;
  width: 45px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chat-input-area button:hover {
  background: #0d47a1;
}

/* =========================================
   PACKAGE DETAILS PAGE (tourist/package_details.html)
   ========================================= */
.package-details-page {
  background:
    radial-gradient(900px 320px at 90% -10%, rgba(59, 130, 246, 0.08), transparent 60%),
    radial-gradient(700px 320px at -10% 30%, rgba(34, 197, 94, 0.06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.package-details-page .back-link {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(21, 101, 192, 0.08);
  border: 1px solid rgba(21, 101, 192, 0.18);
  color: #1565c0 !important;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.package-details-page .back-link:hover {
  background: rgba(21, 101, 192, 0.14);
  transform: translateX(-2px);
}

.package-details-page .package-header h1 {
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f172a 0%, #1565c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.package-details-page .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #e0f2fe, #ede9fe) !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.package-details-page #pkg-image {
  border-radius: 18px !important;
  box-shadow: 0 20px 40px -16px rgba(15, 23, 42, 0.25) !important;
  transition: transform 0.4s ease;
}

.package-details-page #pkg-image:hover {
  transform: scale(1.01);
}

.package-details-page .package-main-info h2 {
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-left: 14px;
}

.package-details-page .package-main-info h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #1565c0, #22c55e);
}

.package-details-page .inclusions-list li {
  position: relative;
  padding: 10px 14px 10px 38px;
  margin-bottom: 8px;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  color: #334155;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.package-details-page .inclusions-list li:hover {
  transform: translateX(2px);
  box-shadow: 0 6px 12px -8px rgba(15, 23, 42, 0.18);
}

.package-details-page .inclusions-list li::before {
  content: "\f00c"; /* Font Awesome check */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #22c55e, #1565c0);
}

.package-details-page .booking-card {
  border-radius: 18px !important;
  border: 1px solid #eef2f7 !important;
  box-shadow: 0 16px 32px -16px rgba(15, 23, 42, 0.18) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%) !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.package-details-page .booking-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 36px -16px rgba(15, 23, 42, 0.24) !important;
}

.package-details-page #reserve-btn {
  background: linear-gradient(135deg, #1565c0, #1d4ed8) !important;
  box-shadow: 0 10px 22px -8px rgba(21, 101, 192, 0.5) !important;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
}

.package-details-page #reserve-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* =========================================
   PRE-FOOTER (Homepage – "A Seamless Island Escape")
   ========================================= */
.pre-footer {
  position: relative;
  padding: 80px 0 90px;
  background:
    radial-gradient(900px 380px at 90% 10%, rgba(59, 130, 246, 0.1), transparent 60%),
    radial-gradient(800px 380px at 0% 90%, rgba(34, 197, 94, 0.1), transparent 60%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #e5e7eb;
}

.pre-footer .container {
  position: relative;
  z-index: 1;
}

.pre-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.pre-footer .tagline {
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pre-footer-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 8px 0 18px;
  background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pre-footer-lead {
  font-size: 1.05rem;
  color: #f1f5f9;
  max-width: 100%;
  margin-bottom: 16px;
}

.pre-footer-body {
  font-size: 0.98rem;
  color: #cbd5e1;
  max-width: 100%;
  margin-bottom: 14px;
}

.pre-footer-body strong,
.pre-footer-lead strong {
  color: #ffffff;
}

.pre-footer-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.5);
}

.pre-footer-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pre-footer-list {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.pre-footer-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 10px 0;
  color: #e5e7eb;
  font-size: 0.97rem;
  line-height: 1.5;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.pre-footer-list li:last-child {
  border-bottom: none;
}

.pre-footer-list i {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #ffffff;
  background: linear-gradient(135deg, #1565c0, #22c55e);
  border-radius: 8px;
  box-shadow: 0 6px 14px -6px rgba(34, 197, 94, 0.45);
}

.pre-footer-quote {
  margin: 0;
  padding: 14px 16px;
  border-left: 3px solid #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: #e2e8f0;
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .pre-footer {
    padding: 60px 0 70px;
  }
  .pre-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .pre-footer-title {
    font-size: 1.9rem;
  }
}

/* =========================================
   WHY TRAVEL WITH US
   ========================================= */
.why-us-section {
  padding: 80px 0 90px;
  background:
    radial-gradient(900px 320px at 90% 0%, rgba(34, 197, 94, 0.08), transparent 60%),
    radial-gradient(700px 320px at 0% 100%, rgba(59, 130, 246, 0.08), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6faff 100%);
}

.why-us-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.why-us-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 10px 0 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1565c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.why-us-lead {
  color: #475569;
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 680px;
}

.why-us-lead strong {
  color: #0f172a;
}

.why-us-subtitle {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.02em;
  margin: 0 0 26px;
  position: relative;
}

.why-us-subtitle::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  margin: 10px auto 0;
  background: linear-gradient(90deg, #1565c0, #22c55e);
}

.why-us-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.why-us-card {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

.why-us-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 101, 192, 0.25);
  box-shadow: 0 16px 28px -12px rgba(15, 23, 42, 0.18);
}

.why-us-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  color: #ffffff;
  background: linear-gradient(135deg, #1565c0, #22c55e);
  box-shadow: 0 10px 22px -10px rgba(34, 197, 94, 0.55);
}

.why-us-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.why-us-card p {
  margin: 0 !important;
  color: #64748b;
  font-size: 0.93rem;
  line-height: 1.55;
  max-width: 100% !important;
}

.why-us-closing {
  text-align: center;
  font-size: 1.05rem;
  color: #334155;
  max-width: 760px !important;
  margin: 0 auto !important;
  padding: 16px 22px;
  background: rgba(34, 197, 94, 0.08);
  border-left: 3px solid #22c55e;
  border-radius: 0 12px 12px 0;
}

.why-us-closing strong {
  color: #0f172a;
}

@media (max-width: 900px) {
  .why-us-section {
    padding: 60px 0 70px;
  }
  .why-us-title {
    font-size: 1.8rem;
  }
}

/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials-section {
  padding: 80px 0 90px;
  background:
    radial-gradient(700px 320px at 100% 0%, rgba(34, 197, 94, 0.08), transparent 60%),
    radial-gradient(700px 320px at 0% 100%, rgba(59, 130, 246, 0.08), transparent 60%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.testimonials-intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 44px;
}

.testimonials-title {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 10px 0 14px;
  background: linear-gradient(135deg, #0f172a 0%, #1565c0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.testimonials-lead {
  color: #475569;
  font-size: 1.05rem;
  margin: 0 auto;
  max-width: 620px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.testimonial-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 30px 26px 24px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(21, 101, 192, 0.22);
  box-shadow: 0 18px 32px -14px rgba(15, 23, 42, 0.18);
}

.testimonial-quote-icon {
  font-size: 1.4rem;
  color: transparent;
  background: linear-gradient(135deg, #1565c0, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  margin-bottom: 12px;
}

.testimonial-headline {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.testimonial-body {
  margin: 0 0 22px !important;
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 100% !important;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #eef2f7;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  font-size: 0.95rem;
  background: linear-gradient(135deg, #1565c0, #22c55e);
  box-shadow: 0 6px 14px -6px rgba(34, 197, 94, 0.5);
  flex-shrink: 0;
}

.testimonial-author-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
}

.testimonial-location {
  font-size: 0.82rem;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.testimonial-location i {
  color: #1565c0;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .testimonials-section {
    padding: 60px 0 70px;
  }
  .testimonials-title {
    font-size: 1.8rem;
  }
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  text-align: center;
  padding: 20px;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #eee;
  background-color: #fff;
  margin-top: auto;
}

/* =========================================
   MOBILE RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .hero-section {
    padding: 48px 0 44px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-text-side {
    padding-left: 0;
    text-align: center;
  }

  p {
    margin-left: auto;
    margin-right: auto;
  }

  .card-container {
    margin: 0 auto;
    width: 100%;
  }

  h1 {
    font-size: 2.2rem;
  }

  /* Taller, width-based carousel on small screens; full slide visible */
  .carousel-container {
    height: auto;
    aspect-ratio: 4 / 3;
    min-height: 260px;
    max-height: min(72vh, 420px);
  }

  .carousel-slide {
    object-fit: contain;
  }

  .tour-packages-section .section-title {
    font-size: 1.85rem;
  }
}

/* Small phones (e.g. iPhone SE, Galaxy S8) */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-section {
    padding: 32px 0 36px;
  }

  .hero-grid {
    gap: 28px;
  }

  h1 {
    font-size: 1.75rem;
    margin-bottom: 16px;
  }

  p {
    font-size: 1rem;
    max-width: 100%;
    margin-bottom: 28px;
  }

  .tagline {
    font-size: 11px;
    margin-bottom: 14px;
  }

  .logo-img {
    width: 38px;
  }

  .logo-text {
    font-size: 15px;
  }

  .logo-area {
    gap: 10px;
  }

  .carousel-container {
    border-radius: 14px;
    min-height: 240px;
    max-height: min(68vh, 380px);
  }

  .action-card {
    padding: 16px;
    gap: 14px;
  }

  .icon-box {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .tour-packages-section,
  .why-us-section,
  .testimonials-section {
    padding: 44px 0 50px;
  }

  .tour-packages-section .section-title,
  .why-us-title,
  .testimonials-title,
  .pre-footer-title {
    font-size: 1.6rem;
  }

  .tour-packages-section .section-subtitle {
    font-size: 0.95rem;
    margin-bottom: 28px;
  }

  .packages-grid {
    gap: 20px;
  }

  .package-info {
    padding: 16px;
  }

  .package-info h3 {
    font-size: 1.1rem;
  }

  .package-img-box {
    height: 180px;
  }

  .pre-footer {
    padding: 48px 0 56px;
  }

  .pre-footer-card {
    padding: 22px 18px;
  }

  .why-us-card {
    padding: 22px 18px;
  }

  .testimonial-card {
    padding: 24px 20px 20px;
  }

  .why-us-closing {
    font-size: 0.98rem;
    padding: 14px 18px;
  }

  footer {
    padding: 18px 14px;
    font-size: 12px;
  }
}

/* Extra-narrow phones (≤ 360px) */
@media (max-width: 360px) {
  .logo-text {
    font-size: 14px;
  }

  h1 {
    font-size: 1.55rem;
  }

  .carousel-container {
    min-height: 220px;
    max-height: min(65vh, 360px);
  }

  .package-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .btn-select-package {
    text-align: center;
  }
}

/* =========================================
   TOURIST PAGES MOBILE FIXES
   ========================================= */
@media (max-width: 768px) {
  /* Package details page uses inline grid styles; override them for mobile */
  .package-layout {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .package-sidebar {
    position: static !important;
    top: auto !important;
  }

  #pkg-image {
    height: 260px !important;
  }
}

@media (max-width: 480px) {
  /* Chatbot: fit small screens */
  .chatbot-wrapper {
    bottom: 16px;
    right: 16px;
  }

  .chatbot-panel {
    width: min(92vw, 360px);
    height: 70vh;
    bottom: 74px;
    right: 0;
  }

  .chatbox {
    padding: 14px;
  }

  .chat p {
    max-width: 92% !important;
  }
}

@media (max-width: 500px) {
  .chatbot-panel {
    width: min(92vw, 360px);
    right: 0;
  }
}
