/* ==========================================================================
   Shanyayi Travel — design system
   Palette sampled from the brand logo (dark forest green + burnt orange).
   ========================================================================== */

:root {
  --brand-green-950: #04160d;
  --brand-green-900: #0a2b18;
  --brand-green-800: #123d24;
  --brand-green-700: #1c5233;
  --brand-green-600: #256b41;
  --brand-orange-700: #8f4212;
  --brand-orange-600: #c1591a;
  --brand-orange-500: #d97b3f;
  --brand-orange-400: #e59a63;
  --brand-orange-100: #fbe6d4;
  --brand-cream: #faf6ef;
  --brand-sand: #f1e4cf;
  --brand-white: #ffffff;
  --brand-text: #1d2b23;
  --brand-text-muted: #5c6d63;
  --shadow-soft: 0 10px 30px rgba(10, 43, 24, 0.08);
  --shadow-lift: 0 18px 40px rgba(10, 43, 24, 0.16);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --transition-fast: 0.2s ease;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", "Segoe UI", system-ui, sans-serif;
  color: var(--brand-text);
  background-color: var(--brand-white);
  -webkit-font-smoothing: antialiased;
  /* Guards fixed-position elements (the WhatsApp button, and third-party
     widgets like OpenWidget's chat bubble) from drifting off-screen —
     without this, any section that overflows horizontally (a wide table,
     an unconstrained image) widens the scrollable area and can push
     viewport-fixed elements past the visible edge on narrower screens. */
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.font-serif {
  font-family: "Fraunces", "Georgia", serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a {
  color: var(--brand-green-800);
}

a:hover {
  color: var(--brand-orange-600);
}

.text-muted {
  color: var(--brand-text-muted) !important;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.6rem 1.5rem;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background-color: var(--brand-orange-600);
  border-color: var(--brand-orange-600);
  color: var(--brand-white);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--brand-orange-700);
  border-color: var(--brand-orange-700);
  box-shadow: 0 10px 24px rgba(193, 89, 26, 0.35);
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--brand-green-900);
  border-color: var(--brand-green-900);
}

.btn-outline-primary:hover {
  background-color: var(--brand-green-900);
  border-color: var(--brand-green-900);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.btn-lg {
  padding: 0.85rem 2rem;
}

/* -------------------------------------------------------------------------
   Navbar
   ------------------------------------------------------------------------- */

.navbar {
  background-color: rgba(250, 246, 239, 0.92) !important;
  backdrop-filter: blur(8px);
  transition: box-shadow var(--transition-fast), padding var(--transition-fast);
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.navbar.is-scrolled {
  box-shadow: var(--shadow-soft);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.navbar-brand img {
  height: 44px;
  width: auto;
  transition: height var(--transition-fast);
}

.navbar.is-scrolled .navbar-brand img {
  height: 36px;
}

/* Scoped to .navbar specifically — .nav-link is also a generic Bootstrap
   class used by unrelated components (e.g. the tour/vehicle toggle pills on
   the booking form), which must NOT inherit the navbar's forced text
   colour or animated underline. */
.navbar .nav-link {
  color: var(--brand-green-900) !important;
  font-weight: 600;
  position: relative;
  margin: 0 0.25rem;
  white-space: nowrap;
}

/* The navbar packs a lot in (nav links, two dropdowns, account menu,
   language switcher, currency toggle, CTA) — on narrower desktop widths
   (~992px-1300px, common laptop viewports) there isn't always room for
   all of it on one line. Rather than letting an item's text wrap and
   collapse into a squashed shape, let the row itself wrap onto a second
   line and keep every item's own text intact. */
@media (min-width: 992px) {
  .navbar-nav {
    flex-wrap: wrap;
    row-gap: 0.4rem;
    justify-content: flex-end;
  }

  .navbar-nav > .nav-item {
    flex-shrink: 0;
  }
}

.navbar .btn,
.currency-toggle button,
.language-menu .dropdown-item {
  white-space: nowrap;
}

/* The animated underline uses ::after — but Bootstrap's dropdown caret ALSO
   uses ::after on .dropdown-toggle, and an element can only have one. So
   plain nav links get the underline via ::after, and dropdown toggles get
   an equivalent underline via ::before instead, leaving their ::after
   caret untouched. */
.navbar .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--brand-orange-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.navbar .nav-link:not(.dropdown-toggle):hover::after,
.navbar .nav-link:not(.dropdown-toggle).active::after {
  transform: scaleX(1);
}

.navbar .nav-link.dropdown-toggle::before {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 1.4rem;
  bottom: 0.15rem;
  height: 2px;
  background: var(--brand-orange-600);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-fast);
}

.navbar .nav-link.dropdown-toggle:hover::before,
.navbar .nav-link.dropdown-toggle.active::before {
  transform: scaleX(1);
}

/* Dropdown menus (Plan a Trip, Company, My Account) */
.navbar .dropdown-menu {
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  padding: 0.5rem;
  margin-top: 0.5rem;
  animation: dropdown-in 0.16s ease;
}

@keyframes dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.navbar .dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  color: var(--brand-green-900);
  padding: 0.55rem 0.85rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: var(--brand-cream);
  color: var(--brand-orange-600);
}

.navbar .dropdown-item.active,
.navbar .dropdown-item:active {
  background-color: var(--brand-green-900);
  color: var(--brand-white) !important;
}

/* Don't let the underline animation clip the Bootstrap caret on toggles */
.navbar .dropdown-toggle::after {
  vertical-align: 0.15em;
}

@media (min-width: 992px) {
  /* Open on hover on desktop, not just click — feels faster/more "world class" */
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
  }
}

/* -------------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------------- */

.hero {
  position: relative;
  color: var(--brand-white);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 22, 13, 0.55), rgba(4, 22, 13, 0.75));
  z-index: 0;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  /* Keep photographic banners pixel-sharp; scaling background layers makes
     even high-resolution source files visibly soft on large displays. */
  animation: none;
  z-index: -1;
}

@keyframes hero-zoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.12);
  }
}

.badge-accent {
  background: var(--brand-orange-600);
  color: var(--brand-white);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

/* Status pills used across the portals (client/guide/management dashboards) */
.status-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: var(--brand-cream);
  color: var(--brand-green-800);
}

.status-badge-pending {
  background: #fdf0e3;
  color: #a15c14;
}

.status-badge-success {
  background: #e4f3e8;
  color: #1c5233;
}

.status-badge-cancelled {
  background: #f1f1ef;
  color: #6b6b64;
}

/* -------------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------------- */

.card {
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

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

/* Opt out of the marketing-card hover lift above — for functional UI
   surfaces (form panels, stat tiles, MFA/account settings cards, portal
   list/form cards) where a "clickable" lift animation reads as a bug
   rather than an affordance, since the card itself isn't a link. */
.card-flat,
.card-flat:hover {
  transform: none;
  box-shadow: var(--shadow-soft);
}

.card-img-top {
  height: 190px;
  object-fit: cover;
}

.vehicle-card-image {
  background: #f4f1e9;
  object-position: center;
}

.vehicle-image-pending {
  height: 190px;
  display: grid;
  place-content: center;
  gap: 0.5rem;
  text-align: center;
  color: var(--brand-green-700);
  background:
    radial-gradient(circle at 78% 20%, rgb(205 91 14 / 12%), transparent 30%),
    linear-gradient(145deg, #f7f4ec, #e8eee9);
}

.vehicle-image-pending i {
  color: var(--brand-orange-600);
  font-size: 2rem;
}

.vehicle-image-pending span {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* The curated tour graphics are authored at 16:9. Preserve the full design,
   including its title treatment and Shanyayi mark, instead of cropping it to
   the generic card-image height. Natural fallback photographs also benefit
   from the consistent cinematic ratio. */
.tour-card-art {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.section-eyebrow {
  color: var(--brand-orange-600);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.bg-cream {
  background-color: var(--brand-cream);
}

.bg-brand-green {
  background-color: var(--brand-green-900) !important;
}

.text-brand-green {
  color: var(--brand-green-900) !important;
}

.text-brand-orange {
  color: var(--brand-orange-600) !important;
}

/* -------------------------------------------------------------------------
   Scroll reveal animation
   ------------------------------------------------------------------------- */

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

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

/* -------------------------------------------------------------------------
   Hero carousel (homepage)
   ------------------------------------------------------------------------- */

.hero-carousel {
  color: var(--brand-white);
}

.hero-carousel .carousel-item {
  position: relative;
  overflow: hidden;
}

.hero-carousel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  animation: none;
}

.hero-carousel-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(4, 22, 13, 0.55), rgba(4, 22, 13, 0.78));
}

.hero-carousel .container {
  position: relative;
  z-index: 2;
}

.hero-carousel .carousel-indicators,
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  z-index: 3;
}

.hero-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--brand-white);
}

/* Headline/subheading/CTA fade-slide-up, replayed on each slide change via
   the .hero-text-anim-play class toggle in project.js. */
.hero-text-anim {
  opacity: 0;
}

.hero-text-anim-play {
  animation: hero-text-in 0.7s ease both;
}

.hero-text-anim-delay-1.hero-text-anim-play {
  animation-delay: 0.12s;
}

.hero-text-anim-delay-2.hero-text-anim-play {
  animation-delay: 0.22s;
}

.hero-text-anim-delay-3.hero-text-anim-play {
  animation-delay: 0.32s;
}

@keyframes hero-text-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-bg {
    animation: none;
  }
  .hero-text-anim,
  .hero-text-anim-play {
    opacity: 1;
    animation: none;
    transform: none;
  }
}

/* -------------------------------------------------------------------------
   Homepage gallery + lightbox
   ------------------------------------------------------------------------- */

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

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  background: var(--brand-cream);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-item-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-white);
  background: linear-gradient(0deg, rgba(4, 22, 13, 0.75), transparent);
  text-align: left;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.gallery-item:hover .gallery-item-caption,
.gallery-item:focus-visible .gallery-item-caption {
  opacity: 1;
}

.gallery-item-album {
  display: block;
  text-decoration: none;
  color: inherit;
}

.gallery-item-album-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  background: rgba(4, 22, 13, 0.72);
  color: var(--brand-white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

/* -------------------------------------------------------------------------
   Full gallery page — filter tabs, trip-experience album stacks, video
   cards, testimonial carousel, and the multi-photo lightbox chrome.
   ------------------------------------------------------------------------- */

.gallery-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.gallery-filter-btn {
  border: 1px solid var(--brand-sand);
  background: var(--brand-white);
  color: var(--brand-text-muted);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.gallery-filter-btn:hover {
  border-color: var(--brand-orange-400);
  color: var(--brand-orange-600);
}

.gallery-filter-btn.active {
  background: var(--brand-green-800);
  border-color: var(--brand-green-800);
  color: var(--brand-white);
}

/* ---- Trip-experience album stacks ---- */

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

.gallery-album-card {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  padding-bottom: 0.75rem;
}

.gallery-album-stack {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}

.gallery-album-card:hover .gallery-album-stack {
  transform: translateY(-4px);
}

.gallery-album-stack img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 3;
  border-radius: var(--radius-md);
  transition: transform 0.5s ease;
}

.gallery-album-card:hover .gallery-album-stack img {
  transform: scale(1.05);
}

.gallery-album-stack-behind {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  background: var(--brand-sand);
  border: 1px solid rgba(4, 22, 13, 0.08);
}

.gallery-album-stack-behind-1 {
  z-index: 2;
  transform: rotate(-3deg) translate(4px, 3px);
}

.gallery-album-stack-behind-2 {
  z-index: 1;
  transform: rotate(4deg) translate(-4px, 5px);
  background: var(--brand-cream);
}

.gallery-album-count {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 4;
  background: rgba(4, 22, 13, 0.72);
  color: var(--brand-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  backdrop-filter: blur(2px);
}

.gallery-album-info {
  display: block;
  margin-top: 0.6rem;
}

.gallery-album-title {
  display: block;
  font-weight: 700;
  color: var(--brand-text);
}

.gallery-album-subtitle {
  display: block;
  font-size: 0.8rem;
  color: var(--brand-text-muted);
}

/* ---- Videos ---- */

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

.gallery-video-card {
  position: relative;
  border: 0;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  background: var(--brand-green-950);
}

.gallery-video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-video-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--brand-green-900), var(--brand-green-700));
  color: rgba(255, 255, 255, 0.5);
  font-size: 2rem;
}

.gallery-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-white);
  font-size: 1.6rem;
  background: rgba(4, 22, 13, 0.15);
  transition: background var(--transition-fast);
}

.gallery-video-play i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-orange-600);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast);
}

.gallery-video-card:hover .gallery-video-play {
  background: rgba(4, 22, 13, 0.35);
}

.gallery-video-card:hover .gallery-video-play i {
  transform: scale(1.1);
}

.gallery-video-title {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.5rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-white);
  background: linear-gradient(0deg, rgba(4, 22, 13, 0.85), transparent);
  text-align: left;
}

/* ---- Lightbox: prev/next chrome for the multi-photo case ---- */

.gallery-lightbox-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-stage img {
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(4, 22, 13, 0.55);
  color: var(--brand-white);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  z-index: 5;
}

.gallery-lightbox-nav:hover {
  background: rgba(4, 22, 13, 0.85);
}

.gallery-lightbox-prev {
  left: 0.5rem;
}

.gallery-lightbox-next {
  right: 0.5rem;
}

/* ---- Testimonial carousel ---- */

.testimonial-carousel {
  padding-bottom: 2.5rem;
}

.testimonial-card {
  max-width: 640px;
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.25rem 2rem;
  text-align: center;
}

.testimonial-stars {
  color: var(--brand-orange-500);
  font-size: 0.95rem;
  letter-spacing: 0.15em;
}

.testimonial-quote {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  color: var(--brand-text);
  line-height: 1.5;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-green-800);
  color: var(--brand-white);
  font-weight: 700;
}

.testimonial-author-name {
  display: block;
  font-weight: 700;
  text-align: left;
}

.testimonial-author-location {
  display: block;
  font-size: 0.8rem;
  color: var(--brand-text-muted);
  text-align: left;
}

.testimonial-carousel-indicators {
  position: static;
  margin-top: 1rem;
}

.testimonial-carousel-indicators button {
  background-color: var(--brand-green-700) !important;
}

/* -------------------------------------------------------------------------
   Management Portal — bulk photo upload dropzone
   ------------------------------------------------------------------------- */

.bulk-dropzone {
  position: relative;
  border: 2px dashed var(--brand-sand);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  background: var(--brand-cream);
  transition: all var(--transition-fast);
}

.bulk-dropzone.is-dragover {
  border-color: var(--brand-orange-500);
  background: var(--brand-orange-100);
}

.bulk-dropzone-icon {
  font-size: 2.25rem;
  color: var(--brand-orange-500);
  display: block;
  margin-bottom: 0.5rem;
}

.bulk-dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.bulk-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.5rem;
}

.bulk-preview-card {
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.bulk-preview-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------------
   Tour card "what's included" quick view
   ------------------------------------------------------------------------- */

.whats-included-toggle {
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-green-800);
  text-align: left;
}

.whats-included-toggle:hover {
  color: var(--brand-orange-600);
}

.whats-included-chevron {
  display: inline-block;
  transition: transform var(--transition-fast);
  font-size: 0.7rem;
}

.whats-included-toggle[aria-expanded="true"] .whats-included-chevron {
  transform: rotate(180deg);
}

.whats-included-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.4rem;
}

.whats-included-list li {
  margin-bottom: 0.2rem;
}

.whats-included-excluded {
  font-style: italic;
}

/* -------------------------------------------------------------------------
   Itinerary timeline
   ------------------------------------------------------------------------- */

.itinerary-timeline {
  position: relative;
  padding-left: 2.5rem;
}

.itinerary-timeline::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: var(--brand-sand);
}

.itinerary-stop {
  position: relative;
  padding-bottom: 1.75rem;
}

.itinerary-stop:last-child {
  padding-bottom: 0;
}

.itinerary-stop-marker {
  position: absolute;
  left: -2.5rem;
  top: 0;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--brand-green-900);
  color: var(--brand-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: 0 0 0 4px var(--brand-white);
}

.itinerary-stop.is-optional .itinerary-stop-marker {
  background: var(--brand-orange-600);
}

.itinerary-time {
  font-weight: 700;
  color: var(--brand-orange-600);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------------------
   Map
   ------------------------------------------------------------------------- */

.tour-map,
.explore-map {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  z-index: 0;
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-sm);
}

/* -------------------------------------------------------------------------
   Booking form
   ------------------------------------------------------------------------- */

#booking-type-tabs .nav-link {
  color: var(--brand-green-900);
  border: 1px solid var(--brand-sand);
  border-radius: 999px;
  margin: 0 0.25rem;
  font-weight: 600;
  background: var(--brand-white);
}

#booking-type-tabs .nav-link.active {
  background-color: var(--brand-green-900);
  color: var(--brand-white);
  border-color: var(--brand-green-900);
}

.payment-radio:checked + div {
  color: var(--brand-orange-600);
}

/* -------------------------------------------------------------------------
   Rate calculator
   ------------------------------------------------------------------------- */

.rate-calculator {
  background: var(--brand-cream);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.rate-calculator .result-price {
  font-family: "Fraunces", serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--brand-green-900);
}

/* -------------------------------------------------------------------------
   Currency toggle
   ------------------------------------------------------------------------- */

.currency-toggle {
  display: inline-flex;
  background: var(--brand-sand);
  border-radius: 999px;
  padding: 0.2rem;
  gap: 0.15rem;
}

.currency-toggle button {
  border: none;
  background: transparent;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--brand-green-900);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.currency-toggle button.active {
  background: var(--brand-green-900);
  color: var(--brand-white);
}

/* -------------------------------------------------------------------------
   Language selector (navbar dropdown)
   ------------------------------------------------------------------------- */

.language-menu {
  min-width: 200px;
  max-height: 60vh;
  overflow-y: auto;
}

.language-menu .dropdown-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
}

.language-menu .dropdown-item.active,
.language-menu .dropdown-item:active {
  background: var(--brand-green-900);
  color: var(--brand-white);
}

/* -------------------------------------------------------------------------
   Toast notifications (success / error / warning / info)
   ------------------------------------------------------------------------- */

.toast-stack {
  z-index: 1090;
  margin-top: 96px;
}

.toast-stack .toast {
  min-width: 300px;
  max-width: 380px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: none;
  color: var(--brand-white);
  overflow: hidden;
  animation: toast-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast-stack .toast-body {
  padding: 0.9rem 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.toast-stack .toast .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.85;
}

.toast-stack .toast-success {
  background: var(--brand-green-800);
}

.toast-stack .toast-error,
.toast-stack .toast-danger {
  background: #7a1f1f;
}

.toast-stack .toast-warning {
  background: var(--brand-orange-700);
}

.toast-stack .toast-info,
.toast-stack .toast-debug {
  background: var(--brand-green-600);
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* -------------------------------------------------------------------------
   FAQ accordion (Plan Your Trip, etc.) — restyled to brand colours instead
   of Bootstrap's default blue focus/active state.
   ------------------------------------------------------------------------- */

.accordion-item {
  border-color: rgba(10, 43, 24, 0.12);
}

.accordion-button {
  font-weight: 600;
  color: var(--brand-green-900);
}

.accordion-button:not(.collapsed) {
  background-color: var(--brand-orange-100);
  color: var(--brand-orange-700);
  box-shadow: inset 0 -1px 0 rgba(10, 43, 24, 0.1);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.2rem rgba(193, 89, 26, 0.25);
}

.accordion-button::after {
  transition: transform var(--transition-fast);
}

/* -------------------------------------------------------------------------
   WhatsApp floating button
   ------------------------------------------------------------------------- */

.whatsapp-float {
  /* Left side, since OpenWidget's chat bubble docks bottom-right —
     keeps the two floating buttons from overlapping. */
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  width: 58px;
  height: 58px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.8rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1050;
  transition: transform var(--transition-fast);
  animation: whatsapp-pulse 2.4s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: white;
}

@keyframes whatsapp-pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 0 rgba(37, 211, 102, 0.5);
  }
  50% {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), 0 0 0 10px rgba(37, 211, 102, 0);
  }
}

/* -------------------------------------------------------------------------
   Review cards
   ------------------------------------------------------------------------- */

.review-platform-card {
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition);
}

.review-platform-card:hover {
  transform: translateY(-6px);
}

.star-rating {
  color: var(--brand-orange-600);
  font-size: 1.25rem;
  letter-spacing: 0.1em;
}

/* -------------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------------- */

footer.site-footer {
  background: var(--brand-green-950);
}

footer.site-footer a {
  color: rgba(255, 255, 255, 0.75);
}

footer.site-footer a:hover {
  color: var(--brand-orange-500);
}

/* -------------------------------------------------------------------------
   Misc
   ------------------------------------------------------------------------- */

.divider-accent {
  width: 64px;
  height: 4px;
  background: var(--brand-orange-600);
  border-radius: 999px;
  margin: 0.75rem auto 1.5rem;
}

.step-number {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--brand-orange-100);
  color: var(--brand-orange-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.alert-debug {
  color: black;
  background-color: white;
  border-color: #d6e9c6;
}

.alert-error {
  color: #b94a48;
  background-color: #f2dede;
  border-color: #eed3d7;
}

/* ---------------------------------------------------------------------- *
 * Management Portal application shell (portal/base_management.html)
 * ---------------------------------------------------------------------- */
body.management-portal {
  background: #f4f6f5;
  min-height: 100vh;
}

.management-layout {
  display: flex;
  min-height: 100vh;
}

.portal-sidenav {
  flex: 0 0 260px;
  width: 260px;
  background: #082f1d;
  color: var(--brand-white);
  min-height: 100vh;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow: hidden;
}

.portal-sidenav-header {
  min-height: 72px;
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.portal-brand:hover { color: #fff; }

.portal-brand img {
  width: 82px;
  height: 40px;
  object-fit: contain;
  background: #fff;
  border-radius: 0.55rem;
  padding: 0.2rem;
}

.portal-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.portal-brand-copy strong { font-size: 0.95rem; }

.portal-brand-copy small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.67rem;
  margin-top: 0.2rem;
}

.portal-nav-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.portal-sidenav-body {
  display: block;
  height: calc(100vh - 72px);
  padding: 1rem;
  overflow-y: auto;
}

.portal-sidenav-heading {
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 1rem;
}

.portal-sidenav-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255, 255, 255, 0.78);
  padding: 0.62rem 0.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.portal-sidenav-link i {
  width: 1.1rem;
  text-align: center;
}

.portal-sidenav-link:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--brand-white);
}

.portal-sidenav-link.active {
  background-color: var(--brand-orange-600);
  color: var(--brand-white);
  box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.18);
}

.portal-main {
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
}

.portal-workspace {
  flex: 1 1 auto;
  min-width: 0;
}

.portal-topbar {
  min-height: 72px;
  padding: 0.75rem clamp(1rem, 3vw, 2.5rem);
  background: #fff;
  border-bottom: 1px solid rgba(16, 52, 36, 0.12);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 1010;
}

.portal-topbar-eyebrow {
  display: block;
  color: var(--brand-text-muted);
  font-size: 0.7rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portal-mobile-nav-button {
  position: fixed;
  left: 1rem;
  bottom: calc(1rem + env(safe-area-inset-bottom));
  z-index: 1035;
  min-height: 50px;
  padding: 0.65rem 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand-orange-600);
  color: #fff;
  box-shadow: 0 0.6rem 1.5rem rgba(16, 52, 36, 0.28);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
}

.portal-mobile-nav-button i { font-size: 1.35rem; }

.portal-nav-backdrop { display: none; }

.managed-table-controls,
.managed-table-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.85rem 0;
}

.managed-table-tools,
.managed-table-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.managed-table-search {
  position: relative;
  min-width: min(260px, 100%);
}

.managed-table-search i {
  position: absolute;
  left: 0.7rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-text-muted);
  pointer-events: none;
}

.managed-table-search input { padding-left: 2rem; }
.managed-table-filter-column { width: auto; max-width: 190px; }
.managed-table-filter-value { width: 170px; }

.managed-table-page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand-text-muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.managed-table-page-size { width: auto; }
.managed-table-result-count { color: var(--brand-text-muted); font-size: 0.84rem; }
.managed-table-page-label { pointer-events: none; min-width: 92px; }

.management-portal table thead th[data-sort] {
  cursor: pointer;
  user-select: none;
}

@media (max-width: 991.98px) {
  .portal-sidenav {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1050;
    width: min(86vw, 300px);
    min-height: 100vh;
    transform: translateX(-102%);
    transition: transform 0.22s ease;
    box-shadow: 1rem 0 2.5rem rgba(0, 0, 0, 0.22);
  }

  body.portal-nav-open { overflow: hidden; }

  body.portal-nav-open .portal-sidenav { transform: translateX(0); }

  .portal-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1040;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(3, 20, 12, 0.52);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  body.portal-nav-open .portal-nav-backdrop {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .portal-main {
    padding-bottom: 5.5rem;
  }
}

@media (max-width: 575.98px) {
  .portal-topbar { min-height: 64px; }
  .portal-topbar-eyebrow { display: none; }
  .portal-topbar > div:first-child strong { font-size: 0.9rem; }
  .portal-topbar .dropdown-toggle {
    max-width: 38vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .managed-table-controls,
  .managed-table-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .managed-table-tools,
  .managed-table-actions { width: 100%; }
  .managed-table-search { flex: 1 1 100%; }
  .managed-table-filter-column,
  .managed-table-filter-value { flex: 1 1 calc(50% - 0.25rem); width: auto; max-width: none; }
  .managed-table-actions { justify-content: space-between; }
  .managed-table-pagination .btn-group { align-self: flex-end; }
}

/* Traveler portal and shared booking calendars */
.traveler-portal { background: #f7f5ef; }
.traveler-hero { position: relative; overflow: hidden; color: #fff; background: var(--brand-green-900); }
.traveler-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.traveler-hero h1 { max-width: 850px; margin: .8rem 0 .5rem; color: #fff; font-size: clamp(2.2rem, 5vw, 4rem); }
.traveler-hero p { margin: 0; color: rgb(255 255 255 / 78%); font-size: 1.05rem; }
.traveler-kicker { display: inline-flex; gap: .5rem; align-items: center; color: #ffd1ad; font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.traveler-kicker.dark { color: var(--brand-orange-600); }
.traveler-role-switcher { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; font-size: .82rem; }
.traveler-role-switcher > span { color: var(--brand-text-muted); }
.traveler-role-switcher a { display: inline-flex; gap: .35rem; padding: .45rem .7rem; border: 1px solid #dce4de; border-radius: 999px; }
.traveler-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.traveler-stat-card { display: flex; gap: 1rem; align-items: center; padding: 1.25rem; border: 1px solid #e5e8e4; border-radius: 18px; background: #fff; box-shadow: 0 10px 35px rgb(22 53 40 / 6%); }
.traveler-stat-card > span { display: grid; width: 45px; height: 45px; place-items: center; border-radius: 14px; color: var(--brand-orange-600); background: #fff1e6; font-size: 1.25rem; }
.traveler-stat-card strong, .traveler-stat-card small { display: block; }
.traveler-stat-card strong { color: var(--brand-green-900); font-size: 1.45rem; }
.traveler-stat-card small { color: var(--brand-text-muted); }
.traveler-next-trip, .traveler-empty-feature { display: grid; grid-template-columns: 1.15fr 1fr auto; gap: 2rem; align-items: center; padding: clamp(1.5rem, 4vw, 2.5rem); overflow: hidden; border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.traveler-next-trip { border-left: 5px solid var(--brand-orange-600); }
.traveler-next-trip h2, .traveler-empty-feature h2 { margin: .45rem 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.traveler-next-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.traveler-next-meta small, .traveler-next-meta strong { display: block; }
.traveler-next-meta small { margin-bottom: .25rem; color: var(--brand-text-muted); font-size: .72rem; text-transform: uppercase; }
.traveler-next-actions { display: flex; flex-direction: column; gap: .5rem; }
.traveler-empty-feature > span { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-orange-600); font-size: 1.5rem; }
.traveler-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.traveler-section-heading > div > span { color: var(--brand-orange-600); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.traveler-section-heading h2 { margin: .2rem 0 0; font-size: 1.7rem; }
.traveler-section-heading > a { display: flex; gap: .45rem; align-items: center; font-weight: 700; }
.traveler-booking-card { height: 100%; padding: 1.5rem; border: 1px solid #e5e8e4; border-radius: 20px; background: #fff; box-shadow: 0 12px 35px rgb(22 53 40 / 6%); }
.traveler-booking-card header, .traveler-booking-card footer { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.traveler-booking-card h3 { margin: 1.2rem 0; font-size: 1.35rem; }
.traveler-booking-type { display: inline-flex; gap: .4rem; color: var(--brand-orange-600); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.traveler-booking-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; padding: 1rem 0; border-block: 1px solid #edf0ed; }
.traveler-booking-details > span { display: flex; gap: .55rem; color: var(--brand-green-900); font-size: .85rem; }
.traveler-booking-details small { display: block; color: var(--brand-text-muted); font-size: .68rem; text-transform: uppercase; }
.traveler-guide { margin: 1rem 0; color: var(--brand-text-muted); font-size: .85rem; }
.traveler-progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 1.2rem; }
.traveler-progress span { height: 5px; border-radius: 99px; background: #dfe5e1; }
.traveler-progress span.complete { background: var(--brand-orange-600); }
.traveler-progress-labels { display: flex; justify-content: space-between; margin: .4rem 0 1.25rem; color: var(--brand-text-muted); font-size: .65rem; }
.traveler-history { padding: 1.5rem; border-radius: 20px; background: #fff; box-shadow: var(--shadow-soft); }
.traveler-history td small { display: block; color: var(--brand-text-muted); }
.traveler-history-search { display: flex; gap: .5rem; align-items: center; padding: .55rem .8rem; border: 1px solid #dce4de; border-radius: 999px; background: #fff; }
.traveler-history-search input { width: 170px; border: 0; outline: 0; }

.trip-calendar-card { padding: clamp(1rem, 3vw, 2rem); border: 1px solid #e2e8e3; border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.trip-calendar-header, .trip-calendar-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.trip-calendar-header h2 { margin: .2rem 0; }
.trip-calendar-header p { margin: .25rem 0 0; color: var(--brand-text-muted); }
.trip-calendar-nav { display: flex; overflow: hidden; border: 1px solid #d8e1da; border-radius: 12px; }
.trip-calendar-nav button { min-height: 40px; padding: .5rem .8rem; border: 0; border-right: 1px solid #d8e1da; color: var(--brand-green-900); background: #fff; font-weight: 700; }
.trip-calendar-nav button:last-child { border-right: 0; }
.trip-calendar-toolbar { margin: 1.5rem 0 .75rem; }
.trip-calendar-toolbar > strong { font-family: "Fraunces", Georgia, serif; font-size: 1.25rem; }
.trip-calendar-legend { display: flex; gap: .8rem; font-size: .75rem; }
.trip-calendar-legend span { display: flex; gap: .3rem; align-items: center; }
.trip-calendar-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--brand-orange-600); }
.trip-calendar-legend i.vehicle { background: var(--brand-green-700); }
.trip-calendar-weekdays, .trip-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.trip-calendar-weekdays span { padding: .55rem; color: var(--brand-text-muted); font-size: .68rem; font-weight: 800; text-align: center; text-transform: uppercase; }
.trip-calendar-day { min-height: 112px; padding: .5rem; border-top: 1px solid #e4e9e5; border-left: 1px solid #e4e9e5; background: #fff; }
.trip-calendar-day:nth-child(7n) { border-right: 1px solid #e4e9e5; }
.trip-calendar-day:nth-last-child(-n+7) { border-bottom: 1px solid #e4e9e5; }
.trip-calendar-day.is-outside { color: #a6afa9; background: #fafbf9; }
.trip-calendar-day.is-today .trip-calendar-number { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: #fff; background: var(--brand-orange-600); }
.trip-calendar-number { display: block; margin-bottom: .35rem; font-size: .75rem; font-weight: 800; }
.trip-calendar-event { display: block; width: 100%; margin: .2rem 0; padding: .28rem .4rem; overflow: hidden; border: 0; border-radius: 6px; color: #fff; background: var(--brand-orange-600); font-size: .66rem; font-weight: 700; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.trip-calendar-event.vehicle { background: var(--brand-green-700); }
.trip-calendar-detail { min-height: 58px; margin-top: 1rem; padding: 1rem; border-radius: 12px; background: #f5f7f4; }
.trip-calendar-detail strong, .trip-calendar-detail small { display: block; }
.trip-calendar-detail small { color: var(--brand-text-muted); }
.trip-calendar-detail a { font-weight: 800; }
.operations-calendar-filters { display: flex; gap: 1rem; margin-top: 1.25rem; }
.operations-calendar-filters label span { display: block; margin-bottom: .3rem; color: var(--brand-text-muted); font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.operations-calendar-filters select { min-width: 180px; padding: .55rem .7rem; border: 1px solid #d8e1da; border-radius: 9px; background: #fff; }

@media (max-width: 991.98px) {
  .traveler-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .traveler-next-trip, .traveler-empty-feature { grid-template-columns: 1fr; }
  .traveler-next-actions { flex-direction: row; }
}
@media (max-width: 575.98px) {
  .traveler-stat-grid { grid-template-columns: 1fr; }
  .traveler-booking-details { grid-template-columns: 1fr; }
  .traveler-booking-card footer, .traveler-section-heading, .trip-calendar-header { align-items: stretch; flex-direction: column; }
  .trip-calendar-day { min-height: 72px; padding: .25rem; }
  .trip-calendar-event { padding: .2rem; font-size: 0; }
  .trip-calendar-event::before { content: ""; display: block; width: 7px; height: 7px; margin: auto; border-radius: 50%; background: #fff; }
  .operations-calendar-filters { flex-direction: column; }
}

/* ---------------------------------------------------------------------- *
 * Account settings page (users/user_detail.html)
 * ---------------------------------------------------------------------- */
.settings-tabs .nav-link {
  color: var(--brand-text);
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
}

.settings-tabs .nav-link.active {
  background-color: var(--brand-green-900);
  color: var(--brand-white) !important;
}

.settings-tabs .nav-link i {
  margin-right: 0.4rem;
}

/* ---------------------------------------------------------------------- *
 * Auth pages (allauth/layouts/entrance.html) — split panel: a branded
 * visual on the left (desktop only), the form on the right. Every auth
 * flow (login, signup, password reset/change, email verification, MFA
 * setup) shares this one layout, so styling it once themes all of them.
 * ---------------------------------------------------------------------- */
.auth-shell {
  min-height: 100vh;
  display: flex;
}

.auth-visual {
  flex: 0 0 44%;
  max-width: 620px;
  position: relative;
  overflow: hidden;
  color: var(--brand-white);
  flex-direction: column;
  justify-content: center;
}

.auth-visual-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(4, 22, 13, 0.92), rgba(10, 43, 24, 0.78));
}

.auth-visual-content {
  position: relative;
  z-index: 1;
  padding: 4rem 3.5rem;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-visual-content > a {
  align-self: center;
}

.auth-logo {
  height: 48px;
  width: auto;
  background: var(--brand-white);
  border-radius: 10px;
  padding: 6px 10px;
}

/* Search + filter bar on the Tours / Vehicle Rentals listing pages. */
.filter-bar {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 1.25rem 1.5rem;
}

/* Give a real page shell to allauth's "manage" layout (logout, account
   email, MFA, etc) so content isn't flush against the fixed navbar —
   mirrors .auth-card's card treatment on the entrance/login layout. */
.manage-shell {
  max-width: 720px;
  margin: 3.5rem auto;
  padding: 0 1.5rem 3rem;
}

.manage-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
}

.manage-card h1,
.manage-card h2 {
  color: var(--brand-green-900);
}

.auth-form-panel {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  background: var(--brand-cream);
}

.auth-form-panel-inner {
  width: 100%;
  max-width: 440px;
}

.auth-mobile-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.auth-mobile-brand img {
  height: 40px;
}

.auth-card {
  background: var(--brand-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 2rem;
}

.auth-card h1 {
  color: var(--brand-green-900);
}

.auth-details summary {
  cursor: pointer;
  color: var(--brand-green-900);
}

.auth-details summary::marker {
  color: var(--brand-orange-600);
}

/* A brand-coloured focus ring for text inputs/selects site-wide — auth
   forms, the booking form, contact form, and every Management Portal
   CRUD form all share Bootstrap's .form-control/.form-select, so one
   rule unifies the focus state everywhere. */
.form-control:focus,
.form-select:focus {
  border-color: var(--brand-orange-500);
  box-shadow: 0 0 0 0.2rem rgba(193, 89, 26, 0.18);
}

/* Homepage fleet and pricing — image-led cards keep rates scannable without
   recreating a dense comparison table on small screens. */
.fleet-pricing-section {
  background:
    radial-gradient(circle at 92% 8%, rgba(193, 89, 26, 0.13), transparent 24rem),
    linear-gradient(180deg, #fbf8f1 0%, #f4efe5 100%);
}

.fleet-pricing-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.fleet-pricing-heading .text-muted {
  max-width: 680px;
}

.fleet-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.fleet-price-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(4, 45, 27, 0.08);
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(4, 45, 27, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.fleet-price-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 50px rgba(4, 45, 27, 0.14);
}

.fleet-price-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 8.8;
  overflow: hidden;
  background: var(--brand-green-900);
}

.fleet-price-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.fleet-price-card:hover .fleet-price-image img {
  transform: scale(1.035);
}

.fleet-price-capacity {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  color: #fff;
  background: rgba(3, 37, 22, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.fleet-price-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem;
}

.fleet-price-kicker {
  margin: 0 0 0.2rem;
  color: var(--brand-orange-600);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fleet-price-body h3 {
  margin: 0;
  color: var(--brand-green-900);
  font-size: 1.2rem;
}

.fleet-price-value {
  min-width: 100px;
  text-align: right;
}

.fleet-price-value span,
.fleet-price-value small {
  display: block;
  color: #68756d;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fleet-price-value strong {
  display: block;
  color: var(--brand-green-900);
  font-size: 1.35rem;
  line-height: 1.1;
}

.fleet-price-link {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  padding-top: 0.9rem;
  color: var(--brand-green-900);
  border-top: 1px solid rgba(4, 45, 27, 0.1);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.fleet-price-link:hover {
  color: var(--brand-orange-600);
}

@media (max-width: 991.98px) {
  .fleet-pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .fleet-pricing-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .fleet-pricing-grid {
    grid-template-columns: 1fr;
  }

  .fleet-price-card {
    border-radius: 20px;
  }
}
