:root {
  --dark: #5B3716; /* Safari Dark Brown */
  --primary: #D79B3B; /* Safari Gold */
  --text: #1F1F1F;
  --black: #000000; /* Keep for pure black elements */
  --white: #ffffff;
  --background: #F7F3EE; /* Safari Sand */
  --line: rgba(91, 55, 22, 0.12);
  --shadow: 0 24px 70px rgba(31, 31, 31, 0.16); /* Adjusted to --text */
  --font-size-base: 16px; /* Default font size for chatbot */
}

* {
  box-sizing: border-box;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  width: 190px;
  height: 64px;
  overflow: hidden;
  flex: 0 0 auto;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  position: absolute;
  left: 0;
  top: -63px;
  width: 190px;
  max-width: none;
  height: 190px;
  object-fit: contain;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px; /* Adjusted to --dark */
  background: var(--dark);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-menu {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 82px;
  display: none;
  flex-direction: column;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.nav-menu.open {
  display: flex;
}

.nav-menu a {
  padding: 12px 4px;
  font-weight: 700;
  color: var(--dark);
}

.nav-menu a.active,
.nav-menu a:hover {
  color: var(--primary);
}

.nav-donate {
  margin-left: 6px;
  padding: 10px 16px !important;
  color: var(--text) !important;
  background: var(--primary) !important;
  border-radius: 999px;
  font-weight: 900;
  border: 0 !important;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.nav-donate:hover {
  transform: translateY(-2px) scale(1.04);
  filter: saturate(1.1);
}

.nav-donate:active {
  transform: translateY(-1px) scale(1.02);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(91, 55, 22, 0.46), rgba(0, 0, 0, 0.2));
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 92px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.1;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3rem, 12vw, 7rem);
  font-weight: 800;
}

.hero-subtitle {
  max-width: 620px;
  margin-bottom: 30px;
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary,
.btn-small {
  color: var(--text);
  background: var(--primary);
}

.btn-primary,
.btn-shine,
.nav-donate {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-shine::before,
.nav-donate::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -85%;
  width: 55%;
  height: 200%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-24deg);
  transition: left 0.7s ease;
  pointer-events: none;
}

.btn-primary:hover::before,
.btn-shine:hover::before,
.nav-donate:hover::before {
  left: 130%;
}

.btn-dark {
  color: var(--white);
  background: var(--black);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}

.btn-small {
  min-height: 42px;
  padding: 0 16px;
  font-size: 0.9rem;
}

.section {
  padding: 82px 0;
}

.split {
  display: grid;
  gap: 36px;
  align-items: center;
}

.reverse .feature-panel {
  order: -1;
}

.section-copy h2,
.section-heading h2,
.story-grid h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 7vw, 3.4rem);
  font-weight: 800;
}

.section-copy p,
.section-intro,
.story-copy p {
  max-width: 680px;
  color: rgba(91, 55, 22, 0.82);
}

.text-link,
.card-link, .blog-card .blog-content a { /* Added blog-card link */
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 800;
}

.image-stack {
  position: relative;
  min-height: 430px;
}

.image-stack img,
.feature-panel img,
.tour-card img,
.blog-card img {
  object-fit: cover;
}

/* Scope tour card styling so it doesn't affect blog/article sections */
/* Ensure tour-card styles do not override the blog layout */
.blog-section .tour-card {
  background: unset;
  border: unset;
  border-radius: unset;
  overflow: unset;
  box-shadow: unset;
}

.blog-section .tour-card img {
  height: unset;
}

.blog-section .tour-card .card-body {
  padding: unset;
}

.blog-section .tour-card .card-kicker {
  margin-bottom: unset;
}

.blog-section .tour-card h2,
.blog-section .tour-card h3 {
  margin-bottom: unset;
  font-size: unset;
}

.image-large {
  height: 390px;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-small {
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(58%, 300px);
  height: 210px;
  border: 8px solid var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.warm-band {
  background: var(--background);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 34px;
}

.card-grid,
.blog-grid,
.values-grid,
.team-grid,
.partners-grid {
  display: grid;
  gap: 22px;
}

.tour-card,
.blog-card,
.team-card,
.partner-card,
.value-card,
.contact-form,
.contact-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(74, 43, 31, 0.08);
}

.tour-card img {
  height: 250px;
}

.card-body,
.blog-card div,
.blog-content,
.value-card {
  padding: 24px;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tour-card h2,
.tour-card h3,
.blog-card h3,
.team-card h3,
.partner-card h3,
.value-card h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.faq-section {
  background: var(--background);
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(74, 43, 31, 0.08);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--dark);
  font-weight: 800;
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}

.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: rgba(91, 55, 22, 0.82);
}

.feature-panel {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-panel img {
  min-height: 360px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.pill-list span {
  padding: 10px 14px; /* Adjusted to --dark */
  color: var(--dark);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
}

.testimonial-slider {
  position: relative;
  padding: 28px;
  color: var(--white);
  background: var(--dark);
  border-radius: 8px;
  overflow: hidden;
}

.testimonial-track {
  display: grid;
}

.testimonial-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateX(20px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.testimonial-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.testimonial-slide p {
  max-width: 850px;
  font-size: clamp(1.25rem, 4vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
}

.testimonial-slide h3 {
  margin-bottom: 4px;
  color: var(--primary);
}

.slider-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.slider-btn,
.dot {
  border: 0;
  cursor: pointer;
}

.slider-btn {
  width: 42px;
  height: 42px;
  color: var(--text);
  background: var(--primary);
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 50%;
}

.dot.active {
  background: var(--primary);
}

.blog-card img {
  height: 210px;
}

.latest-articles {
  background: var(--white);
}

.for-you-hero {
  position: relative;
  min-height: 58vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.for-you-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(30, 19, 10, 0.86));
}

.for-you-hero-content {
  position: relative;
  z-index: 1;
  padding: 110px 0 62px;
  color: var(--white);
}

.for-you-hero h1 {
  max-width: 940px;
  font-size: clamp(2.4rem, 7vw, 5.4rem);
}

.for-you-hero p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.for-you-hub {
  background:
    linear-gradient(180deg, var(--background) 0%, var(--white) 42%),
    var(--background);
}

.for-you-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.feed-column,
.for-you-sidebar {
  min-width: 0;
}

.social-feed-list,
.for-you-sidebar,
.sidebar-list {
  display: grid;
  gap: 18px;
}

.feed-card,
.sidebar-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 42px rgba(74, 43, 31, 0.08);
  overflow: hidden;
}

.feed-card {
  display: grid;
  grid-template-columns: 1fr;
}

.feed-card.pinned {
  border-color: rgba(215, 155, 59, 0.68);
  box-shadow: 0 20px 56px rgba(215, 155, 59, 0.16);
}

.feed-media {
  min-height: 230px;
  background: var(--background);
}

.feed-media img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.feed-body {
  display: grid;
  gap: 14px;
  padding: 24px;
}

.feed-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: rgba(91, 55, 22, 0.7);
  font-size: 0.86rem;
  font-weight: 800;
}

.platform-chip,
.feed-pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.platform-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.feed-body h3 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.feed-body p {
  color: rgba(91, 55, 22, 0.82);
}

.feed-link {
  width: fit-content;
}

.sidebar-panel {
  padding: 22px;
}

.sidebar-heading h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}

.sidebar-item {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.sidebar-item:first-child {
  border-top: 0;
}

.sidebar-item a,
.sidebar-item strong {
  font-weight: 800;
}

.sidebar-item span,
.sidebar-item p {
  margin: 0;
  color: rgba(91, 55, 22, 0.72);
  font-size: 0.92rem;
}

.follow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.follow-grid a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.follow-grid img,
.follow-badge {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.follow-badge {
  display: inline-grid;
  place-items: center;
  color: var(--white);
  background: #c4302b;
  border-radius: 50%;
  font-size: 0.62rem;
  font-weight: 900;
}

.feed-loading {
  padding: 24px;
  gap: 14px;
}

.feed-loading-bar,
.feed-loading-block,
.feed-loading-line {
  min-height: 18px;
  background: linear-gradient(90deg, rgba(91, 55, 22, 0.08), rgba(215, 155, 59, 0.18), rgba(91, 55, 22, 0.08));
  border-radius: 8px;
  animation: feed-pulse 1.4s ease-in-out infinite;
}

.feed-loading-block {
  min-height: 240px;
}

.feed-loading-line.short {
  width: 62%;
}

@keyframes feed-pulse {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 1; }
}

.section-header {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.section-header .section-intro {
  margin-left: auto;
  margin-right: auto;
}

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

.blog-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.post-hero {
  padding: 86px 0 68px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(74, 43, 31, 0.7)),
    url("https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1200&q=75") center/cover;
}

.post-hero h1 {
  max-width: 880px;
  margin-bottom: 16px;
  font-size: clamp(2.5rem, 9vw, 5.2rem);
}

.post-meta {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.back-link {
  margin-bottom: 24px;
}

.post-layout {
  max-width: 900px;
}

.post-featured-image {
  margin-bottom: 32px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-featured-image:empty {
  display: none;
}

.post-featured-image img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.post-content {
  color: rgba(91, 55, 22, 0.88);
  font-size: 1.05rem;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  margin-top: 34px; /* Adjusted to --dark */
  color: var(--dark);
}

.post-content p,
.post-content ul,
.post-content ol {
  margin-bottom: 20px;
}

.post-content a {
  color: var(--primary);
  font-weight: 800;
}

.post-content img {
  margin: 28px 0;
  border-radius: 8px;
}

.tour-detail-hero {
  padding: 94px 0 76px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(74, 43, 31, 0.62)),
    url("https://images.unsplash.com/photo-1516026672322-bc52d61a55d5?auto=format&fit=crop&w=1200&q=75") center/cover;
}

.tour-detail-hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 9vw, 5.5rem);
}

.tour-detail-hero p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 600;
}

.tour-quick-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.tour-quick-facts span {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.13); /* Keep white for contrast on dark hero */
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  font-weight: 800;
}

.tour-detail-layout {
  display: grid;
  gap: 28px;
  align-items: start;
}

.tour-detail-main,
.booking-panel {
  min-width: 0;
}

.tour-detail-image {
  margin-bottom: 28px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tour-detail-image img {
  height: 420px;
  object-fit: cover;
}

.detail-block {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.detail-block h2 {
  margin-bottom: 14px;
  font-size: clamp(1.7rem, 5vw, 2.5rem);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
  color: rgba(74, 43, 31, 0.82);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 13px;
  background: var(--primary);
  border-radius: 50%;
}

.itinerary-list {
  display: grid;
  gap: 14px;
}

.itinerary-item {
  padding: 18px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.itinerary-item span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 800;
  text-transform: uppercase;
}

.itinerary-item p {
  margin: 0;
}

.booking-panel {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.booking-panel h2 {
  margin-bottom: 12px;
}

.booking-panel .btn {
  width: 100%;
  margin-top: 12px;
}

.price-box {
  display: grid;
  gap: 4px;
  margin: 22px 0;
  padding: 18px;
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.price-box span {
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(74, 43, 31, 0.68);
}

.price-box strong {
  font-size: 1.5rem;
}

.booking-note {
  margin: 16px 0 0;
  color: rgba(75, 46, 31, 0.68); /* Adjusted to --dark */
  font-size: 0.9rem;
}

.payment-methods {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.payment-methods h3 {
  margin-bottom: 12px;
  font-size: 1rem;
}

.payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.payment-option {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: var(--dark);
  background: var(--background);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.payment-logo {
  width: 92px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--white);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.mpesa-logo {
  background: #00a651;
}

.paypal-logo {
  color: #003087;
  background: #ffffff;
  border: 1px solid #d7e5f5;
  font-family: Arial, sans-serif;
  font-style: italic;
}

.pesapal-logo {
  background: linear-gradient(135deg, #f58220 0%, #154c8b 100%);
}

.stripe-logo {
  background: #635bff;
  font-family: Arial, sans-serif;
  font-style: italic;
  font-size: 0.86rem;
}

.payment-option:hover {
  transform: translateY(-2px);
  background: var(--white);
  border-color: var(--primary);
}

.payment-option.loading {
  pointer-events: none;
  opacity: 0.72;
}

.payment-status-section {
  min-height: 68vh;
  display: grid;
  align-items: center;
  background: var(--background);
}

.payment-status-card {
  max-width: 820px;
  padding: 34px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.payment-status-card h1 {
  margin-bottom: 18px;
  font-size: clamp(2.4rem, 8vw, 4.8rem);
}

.payment-status-card p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(91, 55, 22, 0.78);
}

.mpesa-form {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.mpesa-form .btn:disabled {
  cursor: wait;
  opacity: 0.7;
}

.inner-hero {
  padding: 96px 0 72px;
  color: var(--white);
  background: /* Adjusted to --dark */
    linear-gradient(90deg, rgba(0, 0, 0, 0.78), rgba(74, 43, 31, 0.78)),
    url("https://images.unsplash.com/photo-1500530855697-b586d89ba3ee?auto=format&fit=crop&w=1200&q=75") center/cover;
}

.inner-hero h1 {
  font-size: clamp(2.6rem, 9vw, 5.4rem);
}

.inner-hero p {
  max-width: 760px;
  font-weight: 600;
}

.story-grid {
  display: grid;
  gap: 30px;
}

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

.value-card {
  min-height: 190px;
}

.leadership-section {
  background: var(--white); /* Keep white */
}

.support-tourism-section {
  background: linear-gradient(180deg, var(--background) 0%, var(--white) 100%);
}

.support-tourism-card {
  display: grid;
  gap: 28px;
  padding: 26px;
  color: var(--white); /* Keep white */
  background: var(--dark);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.support-tourism-copy {
  position: relative;
  z-index: 1;
}

.support-tourism-copy h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
}

.support-tourism-copy p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 26px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.02rem;
}

.support-tourism-card .btn-primary:hover {
  background: #ffad42;
}

.support-tourism-media {
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.support-tourism-media img {
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.support-tourism-card:hover .support-tourism-media img {
  transform: scale(1.04);
}

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

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

.team-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
}

.partner-card {
  display: flex;
  height: 100%;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.12);
}

.team-card > img {
  flex: 0 0 340px;
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center;
}

.partner-logo {
  display: grid;
  box-sizing: border-box;
  height: 230px;
  place-items: center;
  padding: 30px;
  background: #faf8f5;
  border-bottom: 1px solid var(--line);
}

.partner-logo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.team-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.partner-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.team-content p:not(.card-kicker) {
  color: rgba(91, 55, 22, 0.78);
}

.partner-content p:not(.card-kicker) {
  color: rgba(91, 55, 22, 0.78);
}

.card-description {
  min-height: 4.65em;
}

.clamp-text {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.partner-since {
  margin-top: 12px;
  font-weight: 800;
}

.card-read-more {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  margin-top: 12px;
  color: #f19021;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.card-read-more:hover {
  color: #cf7414;
  text-decoration: underline;
}

.card-read-more:focus-visible {
  outline: 2px solid #f19021;
  outline-offset: 3px;
  border-radius: 2px;
}

.partner-website {
  width: fit-content;
  margin-top: 18px;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.profile-modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.profile-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 17, 14, 0.62);
}

.profile-modal-dialog {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24);
  transform: scale(0.96) translateY(10px);
  transition: transform 0.25s ease;
}

.profile-modal[aria-hidden="false"] .profile-modal-dialog {
  transform: scale(1) translateY(0);
}

.profile-modal-dialog:focus {
  outline: none;
}

.profile-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--black);
  background: var(--primary);
  border-radius: 50%;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.25s ease, background 0.25s ease;
}

.profile-modal-close:hover,
.profile-modal-close:focus-visible {
  transform: translateY(-2px);
  background: #ffad42;
}

.profile-modal-content {
  display: grid;
  gap: 26px;
  padding: 24px;
}

.profile-modal-media {
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  background: var(--background);
  border-radius: 8px;
}

.profile-modal-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-modal-media-logo {
  padding: 34px;
}

.profile-modal-media-logo img {
  max-width: 260px;
  max-height: 180px;
  object-fit: contain;
}

.profile-modal-copy {
  min-width: 0;
}

.profile-modal-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

.profile-modal-copy p:not(.card-kicker) {
  color: rgba(91, 55, 22, 0.82);
}

.profile-modal-email {
  display: inline-block;
  margin-top: 16px;
  color: var(--primary);
  font-weight: 800;
}

body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.social-links {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.social-links a {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  color: var(--black);
  background: var(--primary);
  border-radius: 50%;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  background: #ffad42;
}

.contact-layout {
  display: grid;
  gap: 26px;
  align-items: start;
}

.contact-form,
.contact-card {
  padding: 24px;
}

.form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

label {
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  color: var(--dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

input:focus,
textarea:focus,
select:focus, .chat-input:focus { /* Added chat-input */
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(215, 155, 59, 0.16);
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 24px;
  margin: 16px 0 0;
  color: var(--primary);
  font-weight: 700;
}

.contact-card {
  background: var(--dark);
  color: var(--white); /* Keep white */
}

.contact-card h2 {
  font-size: 2rem;
}

.contact-detail {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-detail span {
  color: var(--primary);
  font-weight: 800;
}

.whatsapp-btn {
  width: 100%;
  margin-top: 18px;
  color: var(--black);
  background: var(--primary);
}

.site-footer {
  color: var(--white);
  background: var(--black);
}

.footer-grid {
  display: grid;
  gap: 30px;
  padding: 54px 0 34px;
}

.footer-brand {
  width: 220px;
  height: 82px;
  margin-bottom: 16px;
}

.footer-brand img {
  top: -73px;
  width: 220px;
  height: 220px;
}

.site-footer h3 {
  color: var(--primary);
}

.site-footer a {
  display: block;
  margin-bottom: 8px;
}

.site-footer p {
  color: rgba(255, 255, 255, 0.76);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  border-color: var(--orange);
  background: rgba(199, 125, 40, 0.18);
  transform: translateY(-2px);
}

.footer-social img {
  width: 19px;
  height: 19px;
  object-fit: contain;
  display: block;
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-bottom p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 680px) {
  .card-grid,
  .blog-grid,
  .values-grid,
  .team-grid,
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .profile-modal-content {
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
    align-items: start;
    padding: 34px;
  }

  .profile-modal-media {
    min-height: 360px;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 26px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-menu a {
    padding: 0;
  }

  .split,
  .story-grid,
  .contact-layout,
  .support-tourism-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-detail-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .for-you-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
  }

  .for-you-sidebar {
    position: sticky;
    top: 96px;
  }

  .feed-card {
    grid-template-columns: minmax(240px, 0.48fr) minmax(0, 0.52fr);
  }

  .booking-panel {
    position: sticky;
    top: 96px;
  }

  .support-tourism-card {
    align-items: center;
    padding: 42px;
  }

  .reverse .feature-panel {
    order: 0;
  }

  .card-grid,
  .blog-grid,
  .team-grid,
  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tours-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .contact-form,
  .contact-card {
    padding: 34px;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 1120px);
  }

  .hero-content {
    padding: 70px 0;
  }

  .btn {
    width: 100%;
  }

  .brand {
    width: 156px;
    height: 54px;
  }

  .brand img {
    top: -52px;
    width: 156px;
    height: 156px;
  }

  .footer-brand {
    width: 190px;
    height: 70px;
  }

  .footer-brand img {
    top: -63px;
    width: 190px;
    height: 190px;
  }

  .image-stack {
    min-height: 360px;
  }

  .image-large {
    height: 310px;
  }

  .image-small {
    height: 170px;
  }
}
.team-card .social-links img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  transition: 0.3s ease;
}

.team-card .social-links img:hover {
  transform: scale(1.1);
}

/* --- High Contrast Theme Overrides --- */
body.high-contrast {
  --dark: #000000; 
  --primary: #ffff00; /* Stark yellow for visibility */
  --background: #ffffff;
  --white: #ffffff;
  --line: #000000;
  --shadow: 0 0 0 2px #000;
}

/* --- Chatbot Interface Styles --- */
.chatbot-toggle-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px; /* Keep size */
  border-radius: 50%;
  background-color: var(--primary);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% {
    box-shadow: 0 0 0 0 rgba(215, 155, 59, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(215, 155, 59, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(215, 155, 59, 0);
  }
}

.chatbot-toggle-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chatbot-toggle-button:hover {
  transform: scale(1.1);
} /* Keep hover effect */

.chatbot-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: min(400px, calc(100vw - 60px));
  height: 640px;
  max-height: 80vh;
  background-color: var(--white);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  z-index: 2000;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.chatbot-container.hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.95);
  pointer-events: none;
}

.chatbot-header-text {
  display: flex;
  flex-direction: column;
}

.chatbot-header-subtitle {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.02em;
}

.chatbot-header {
  padding: 14px 20px;
  background-color: var(--dark);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.chatbot-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.chatbot-close-button {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.chatbot-close-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-close-button svg {
  width: 18px;
  height: 18px;
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: var(--background);
}

.chat-input-form {
  padding: 16px;
  background: var(--background);
  border-top: none;
}

.input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  padding: 8px 12px;
  border-radius: 24px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--line);
}

.chat-input {
  flex: 1;
  border: none;
  padding: 8px 4px;
  font-size: 0.9rem;
  outline: none;
  background: transparent;
  color: var(--text);
}

.chat-input-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.icon-btn {
  background: transparent;
  border: none;
  padding: 6px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.2s;
}

.icon-btn:hover {
  background: #eee;
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.send-button {
  background: var(--primary);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

.send-button:hover {
  background: var(--dark);
  transform: scale(1.05);
}

.send-button svg {
  width: 18px;
  height: 18px;
}

/* --- Message Bubbles Refinement --- */
.message-content {
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.92rem;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.user-message .message-content {
  background-color: var(--primary);
  color: var(--white);
  border-bottom-right-radius: 4px;
}

.bot-message .message-content {
  background-color: var(--white);
  color: var(--dark);
  border-bottom-left-radius: 4px;
}

.bot-message .message-content pre {
  background: #2d2d2d;
  color: #f8f8f2;
  padding: 12px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  margin: 10px 0;
}

.bot-message .message-content code {
  font-family: monospace;
  background: rgba(0,0,0,0.05);
  padding: 2px 4px;
  border-radius: 4px;
}

/* --- Chips --- */
.quick-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.quick-suggestion-chip {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-suggestion-chip:hover {
  border-color: var(--primary);
  background: var(--background);
  transform: translateY(-1px);
}

/* Hide old accessibility controls */
.chat-controls { display: none; }

/* --- Typing & Mic States --- */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 4px 0;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background-color: var(--dark);
  border-radius: 50%;
  opacity: 0.4;
  animation: typing 1s infinite;
}

@keyframes typing {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); opacity: 1; }
}

#micButton {
  transition: all 0.3s ease;
  color: var(--dark);
  background: rgba(91, 55, 22, 0.05);
}

#micButton:hover {
  background: rgba(215, 155, 59, 0.15);
  color: var(--primary);
}

#micButton.listening {
  background-color: #ff4b2b; /* Error/Alert Red for recording */
  color: white;
  animation: mic-pulse 1.5s infinite;
  border-radius: 50%;
}

@keyframes mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0.7); }
  70% { box-shadow: 0 0 0 12px rgba(255, 75, 43, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 75, 43, 0); }
}

.voice-status {
  font-size: 0.75rem;
  color: var(--primary);
  text-align: center;
  padding: 5px 0;
  font-weight: 700;
  min-height: 20px;
}

/* Welcome Card Specific Styles */
.welcome-card {
  margin-bottom: 15px;
}

.welcome-card .message-content {
  background-color: var(--white);
  color: var(--dark);
  border: 1px solid var(--line);
  border-radius: 12px;
  border-bottom-left-radius: 2px;
}

.welcome-card-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  font-size: 0.95em;
}

.welcome-card-list li {
  margin-bottom: 5px;
}

/* Quick Suggestion Chips */
.quick-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-suggestion-chip {
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--dark);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.quick-suggestion-chip:hover {
  background: var(--background);
  border-color: var(--primary);
  color: var(--primary);
}

@media (max-width: 600px) {
  .chatbot-container {
    width: 100%;
    height: 100%;
    max-height: 100vh;
    bottom: 0;
    right: 0;
    border-radius: 0; /* Full screen on mobile */
    /* Override desktop hidden state */
    transform: translateY(100%); /* Start hidden at the bottom */
    opacity: 0; /* Still hidden */
    visibility: hidden; /* Still hidden */
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, visibility 0.4s ease;
  }

  .chatbot-container:not(.hidden) {
    transform: translateY(0); /* Slide up to be visible */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .chatbot-header {
    padding: 12px 15px;
  }

  .chatbot-header h3 {
    font-size: 1rem;
  }

  .chatbot-header-subtitle {
    font-size: 0.65rem;
  }

  .chat-messages {
    padding: 15px;
    gap: 10px;
  }

  .message-content {
    font-size: 0.88rem;
    padding: 8px 12px;
  }

  .chat-input-form {
    padding: 10px 15px;
  }

  .input-wrapper {
    padding: 6px 10px;
    border-radius: 20px;
  }

  .chat-input {
    font-size: 0.85rem;
  }

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

  .send-button {
    width: 32px;
    height: 32px;
  }

  .send-button svg {
    width: 16px;
    height: 16px;
  }

  .quick-suggestion-chip {
    padding: 6px 12px;
    font-size: 0.8rem;
  }

  .chatbot-toggle-button {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
}
