/*
Theme Name: Nakarath Theme
Text Domain: nakaratheme
Author: Cavalier
Author URI:
Description: Nakarath Theme
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

*,
*::before,
*::after {
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* Reset & Base */

body, html {
  height: 100%;
  background: #fff;
  font-family: "Inter", sans-serif;
  color: #333;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif;
}
input, textarea, button, select {
  font-family: inherit;
}
a {
  text-decoration: none;
  color: #333;
}

html {
  scroll-padding-top: 80px;
}

.fade-in-title {
  position: relative;
  transition: color 2s ease;
  display: inline-block;
}

.fade-in-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 0;
  background-color: grey;
  transition: width 1.2s ease;
}

.fade-in-title.visible {
  color: #7d8f3c;
}

.fade-in-title.visible::after {
  width: 80px;
}

/* === Navbar === */
.navbar {
  padding: 16px 24px;
  background: white;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  opacity: 0.9;
}

.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.menu-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.top-links {
  display: flex;
  gap: 15px;
  margin-right: 50px;
}
.top-links a {
  font-weight: bold;
  text-decoration: none;
  font-size: 16px;
  color: #000;
  transition: color 0.25s ease;
}
.top-links a:hover {
  color: #7d8f3c;
}

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
}
.lang-switch a {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.07em;
  color: #333 !important;
  text-transform: uppercase;
  opacity: 0.55;
  transition: opacity 0.2s ease, color 0.2s ease;
}
.lang-switch a:hover {
  color: #7d8f3c !important;
  opacity: 1;
}
.lang-switch a.lang-active {
  color: #7d8f3c !important;
  font-weight: 700 !important;
  opacity: 1;
}
.lang-switch a::after {
  display: none !important;
}
.lang-divider {
  font-size: 0.6rem;
  color: #999;
  line-height: 1;
  opacity: 0.6;
}

.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1101;
  transition: width 0.3s ease, height 0.3s ease;
}

@media (max-width: 768px) {
  .top-links {
    display: none;
  }
  .burger {
    width: 22px;
    height: 16px;
  }
}

/* === Logo === */
.logo {
  height: 60px;
  flex-shrink: 0;
  transition: height 0.3s ease;
}

/* === Burger Icon === */
.bar {
  height: 3px;
  background: #000;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.burger.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open .bar:nth-child(2) {
  opacity: 0;
}
.burger.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Slideout Mobile Menu === */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -250px;
  width: 250px;
  height: 100%;
  background: white;
  padding: 60px 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  z-index: 1100;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu a {
  position: relative;
  display: inline-block;
  padding: 15px 0;
  font-size: 18px;
  font-weight: bold;
  color: grey;
  text-decoration: none;
  transition: color 0.3s ease, letter-spacing 0.3s ease;
}

.mobile-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #000;
  transition: width 0.3s ease;
}

.mobile-menu a:hover {
  color: #7d8f3c;
  letter-spacing: 0.5px;
}

.mobile-menu a:hover::after {
  width: 60px;
}

.mobile-menu-items .sub-menu a {
    font-size: 14px;
}

.menu-heading > a {
    pointer-events: none;
    cursor: default;
}

/* === Overlay === */
.overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1000;
}
.overlay.show {
  display: block;
}

/* === Responsive (≤768px) === */
@media (max-width: 768px) {
  .logo {
    height: 36px;
    flex-shrink: 0;
  }
  .navbar {
    padding: 12px 16px;
  }
  .container {
    padding: 0 10px;
  }
  .menu-actions {
    gap: 12px;
  }
  .burger {
    width: 22px;
    height: 16px;
    flex-shrink: 0;
  }
  .bar {
    height: 2px;
  }
  .top-links {
    display: none;
  }

  /* Sections */
  .signature-tours-section,
  .laos-in-focus,
  .responsible-travel-section,
  .contact {
    padding: 48px 16px;
  }
  .about-section {
    padding: 40px 16px;
  }
  .gallery-text {
    padding: 40px 16px 24px;
  }
  .tour-overview {
    padding: 40px 16px;
  }
  .tour-itinerary {
    padding: 40px 16px;
  }

  /* Hero — avoid address-bar overflow on mobile */
  .hero,
  .tour-hero {
    height: 100svh;
    min-height: 480px;
  }
}

/* === Hero === */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  background: #111;
  display: flex;
  align-items: flex-end;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.05) 40%,
    rgba(0,0,0,0.55) 100%
  );
  z-index: 0;
  pointer-events: none;
}

.hero-overlay {
  position: relative;
  z-index: 1;
  padding: 3rem 3rem 4rem;
  color: #fff;
  max-width: 760px;
}

.hero-overlay h1,
.hero-title {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
  line-height: 1.4;
  color: rgba(255,255,255,0.72);
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-overlay .quote,
.hero-subtitle {
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0;
  color: rgba(255,255,255,0.45);
  text-shadow: none;
}

.hero .btn {
  display: inline-block;
  margin-top: 1.75rem;
  background: #b36a4c;
  color: #fff;
  padding: 0.8rem 2rem;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  position: static;
}

.hero .btn:hover {
  background: #9a553f;
  color: #fff;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .hero-overlay {
    padding: 2rem 1.25rem 3rem;
    max-width: 100%;
  }
  .hero-overlay h1,
  .hero-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem);
  }
  .hero-overlay .quote,
  .hero-subtitle {
    font-size: 0.75rem;
  }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease-in-out;
    z-index: 0;
}

.hero-bg.visible {
    opacity: 1;
}

/* === Responsive nav menu === */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    right: 30px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }
  .nav-menu.active {
    display: block;
  }
  .nav-menu ul {
    flex-direction: column;
    gap: 10px;
  }
}

/* === About === */
.about-section {
  padding: 72px 20px;
  background-color: #ffffff;
}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 2rem;
}

/* Default: single centered card */
.about-text {
  flex: 0 0 1000px;
  max-width: 1000px;
  width: 100%;
  border: 1px solid rgba(125,143,60,0.3);
  padding: 2.5rem 3rem;
  border-radius: 12px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  text-align: center;
}
.about-text p,
.about-subheading {
  text-align: left;
}

/* Two-column layout only when an image is present */
.about-container.about-has-image {
  justify-content: flex-start;
}
.about-container.about-has-image .about-image,
.about-container.about-has-image .about-text {
  flex: 1 1 calc(50% - 2rem);
  max-width: none;
  width: auto;
  margin: 0;
  padding: 2rem;
  text-align: left;
}

.about-image img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

.centered-logo {
  display: block;
  margin: 0 auto 1rem auto;
  max-width: 120px;
}

.about-logo {
  display: block;
  width: auto;
  max-width: 260px;
  height: auto;
  margin: 0 auto 1.25rem auto;
}

.about-subheading {
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin: 0 0 1rem;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .about-image,
  .about-text {
    flex: 1 1 100%;
  }
}

.fade-in-title {
  margin: 0;
  font-size: 2rem;
  color: #28a745;
  opacity: 0;
  transition: opacity .6s, color .6s;
}
.title-bar {
  width: 0;
  height: 4px;
  background: #28a745;
  margin-bottom: 1rem;
  transition: width .8s ease;
}
.fade-in-title.visible { opacity: 1; }
.fade-in-title.visible + .title-bar { width: 50px; }

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.about-text p {
  font-size: 1rem;
  line-height: 1.6;
}

.text-highlight {
  color: #7d8f3c;
  font-weight: 600;
}

.about-text strong,
.about-text b {
  color: #7d8f3c;
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
  }
  .about-image,
  .about-text {
    flex: 1 1 100%;
    width: 100%;
  }
}


/* === Gallery === */
.gallery-container {
  padding: 0;
  margin: 0 auto;
  max-width: 100%;
}

.gallery-text .signature-tours-section h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.gallery-text p {
  font-size: 1rem;
  line-height: 1.6;
}

.gallery-section {
  padding: 0;
  margin: 0;
}

.gallery-text {
  margin: 0 auto;
  padding: 64px 20px 40px;
  max-width: 1200px;
  text-align: left;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  padding: 0 12px 12px;
  margin: 0;
  width: 100%;
  box-sizing: border-box;
}

.gallery-item {
  padding: 0;
  margin: 0;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  transition: transform 0.4s ease;
}

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

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 1fr);
  }
  .gallery-item {
    aspect-ratio: 16 / 9;
  }
}

/* === Animation === */
[data-aos] {
  opacity: 0;
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
[data-aos="fade-right"] {
  transform: translateX(-40px);
}
[data-aos="fade-left"] {
  transform: translateX(40px);
}
.aos-animate {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

/* === Section Styling === */
.signature-tours-section,
.laos-in-focus,
.responsible-travel-section,
.contact {
  margin: 0 auto;
  padding: 64px 20px;
  max-width: 1000px;
  text-align: left;
}

.section-heading {
  text-align: center;
  color: #7d8f3c;
}
.section-subheading {
  text-align: center;
  color: #7d8f3c;
}
.section-divider {
  width: 80%;
  margin: 30px auto;
  border: none;
  border-top: 1px solid #7d8f3c;
}

/* === Tour Blocks === */
.signature-tours-section > p {
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

.tour-block {
  margin: 0 0 24px 0;
}
.tour-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(125,143,60,0.25);
  border-radius: 16px;
  padding: 28px;
  gap: 28px;
  flex-wrap: wrap;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.tour-content:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}
.tour-content.reverse {
  flex-direction: row-reverse;
}
.tour-content::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.88);
  z-index: 1;
  border-radius: 16px;
}
.tour-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.tour-image img {
  max-width: 150px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
}
.tour-text {
  flex: 1;
}
.tour-text h3 {
  color: #7d8f3c;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}
.tour-text h3 a {
  color: inherit;
  transition: color 0.25s ease;
}
.tour-text h3 a:hover,
a:hover .tour-text h3 {
  color: #5a7a1e;
}
.tour-text p {
  color: #444;
  line-height: 1.7;
  font-size: 0.95rem;
}
.tour-title-link {
  color: #333;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.tour-title-link:hover {
  color: #7d8f3c;
  border-bottom-color: #7d8f3c;
}

/* === Carousel === */
.carousel-wrapper {
  width: 85%;
  margin: 0 auto;
  padding: 3rem 0;
  position: relative;
  overflow: hidden;
}

@media (max-width: 900px) {
  .carousel-wrapper {
    width: 95%;
  }
}

.carousel-container {
  display: flex;
  gap: 1.5rem;
  margin: 0 auto;
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 2rem 0;
  -webkit-overflow-scrolling: touch;
  touch-action: auto;
  overscroll-behavior-x: contain;
  overscroll-behavior-y: auto;
  max-height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel-container::-webkit-scrollbar {
  display: none;
}
/* ============================================================
   REPLACEMENT for the flip-card block in your theme CSS
   (originally: .card, .card-inner, .card-front, .card-back, etc.
   under "=== Carousel ===")

   What changed and why:
   - .card-inner is now `display: grid; grid-template-areas: "stack";`
     instead of relying on .card-back being `position: absolute`.
   - .card-front and .card-back both get `grid-area: stack`, so they
     occupy the same cell and overlap (needed for the flip effect),
     but — unlike position:absolute — BOTH still contribute to the
     cell's height. The cell (and therefore .card-inner) grows to
     fit whichever face has more text.
   - The fixed `min-height: 420px` and `overflow-y: auto` scroll
     hack are no longer needed, since the card now sizes itself to
     its real content instead of a guessed fixed height.
   - No changes needed to .carousel-container or .destinations-grid:
     flex/grid containers already use `align-items: stretch` by
     default, so once each card reports its true height, every card
     in the same row automatically stretches to match the tallest
     one in that row.
   ============================================================ */

.card {
  flex: 0 0 auto;
  max-width: 350px;
  width: 30%;
  margin: 0 auto;
  scroll-snap-align: center;
  perspective: 1000px;
  /* flex so .card-inner stretches to the full carousel-row height */
  display: flex;
}

.card-inner {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  display: grid;
  grid-template-areas: "stack";
  transition: transform 0.45s;
  transform-style: preserve-3d;
  cursor: pointer;
}
.card:hover .card-inner {
  transform: rotateY(180deg);
}

/* Front and back share the same grid cell (real overlap, not
   position:absolute), so both contribute to the cell's height.
   align-items/justify-items default to "stretch" on a grid, so
   each face still fills the full width/height of that cell. */
.card-front, .card-back {
  grid-area: stack;
  width: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1rem;
  box-sizing: border-box;
  /* keep long titles/words inside the card instead of spilling out */
  overflow-wrap: break-word;
  word-break: break-word;
  hyphens: auto;
}

.card-front {
  display: flex;
  flex-direction: column;
}
.card-front img {
  width: 100%;
  height: 160px;
  flex: 0 0 160px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.card-front h3 {
  margin: 0;
  color: #7d8f3c;
  font-size: 1.25rem;
}
.card-subtitle {
  margin: 0.25rem 0;
  color: #444;
  font-size: 1rem;
}
.card-desc {
  margin-top: 0.5rem;
  margin-bottom: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.card-back {
  transform: rotateY(180deg);
  background: #ffffff;
  border: 1px solid rgba(125,143,60,0.15);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* kept as a safety net only — with grid stacking the cell already
     sizes to fit this content, so scrolling shouldn't normally kick in */
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* centre the back content only while it fits; margin auto (not justify-content:
   center) so overflow scrolls from the top instead of clipping unreachably */
.card-back > :first-child { margin-top: auto; }
.card-back > :last-child  { margin-bottom: auto; }
.card-back h4 {
  margin-top: 0;
  color: #7d8f3c;
  font-size: 1rem;
}
/* back face packs 6 skill bars into the same 420px — keep headings compact */
.card-back h3 {
  margin: 0;
  color: #7d8f3c;
  font-size: 1.15rem;
}
.card-back .year {
  margin: 0.5rem 0 0.4rem;
  font-size: 1rem;
  color: #444;
}

.best-for__item {
  margin: 0.5rem 0;
}
.best-for__label {
  display: block;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #444;
}
.best-for__bar {
  position: relative;
  height: 6px;
  background: #eee;
  border-radius: 4px;
}
.best-for__fill {
  height: 100%;
  background: #666;
}
.best-for__marker {
  position: absolute;
  top: -5px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 8px solid #d33;
  transform: translateX(-50%);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #7d8f3c;
  outline: none;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}
.carousel-btn.prev { left: 1rem; }
.carousel-btn.next { right: 1rem; }
.carousel-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
.carousel-btn:hover {
  background: #6a7a32;
}

.skillbar {
  margin-bottom: 0.75rem;
}
.title.head-sm {
  font-size: 0.9rem;
  font-weight: bold;
  color: #444;
  margin-bottom: 0.25rem;
}
.count-bar {
  height: 6px;
  background: #eee;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.count-bar .count {
  background: #7d8f3c;
  height: 100%;
  width: 0;
  transition: width 1s ease-out;
}
.count span {
  font-size: 0.75rem;
  color: #444;
  position: absolute;
  right: 0;
  top: -1.5rem;
}

/* === Responsible Travel === */
.responsible-travel {
  padding: 3rem 1rem;
}
.responsible-travel-header {
  background: #fdfcfc;
  padding: 1.5rem;
  border: 1px solid rgba(125,143,60,0.35);
  border-radius: 12px;
  box-sizing: border-box;
  margin-bottom: 24px;
}

.columns-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
}

.column-item {
  flex: 1 1 calc(33.333% - 1.5rem);
  background: #fdfcfc;
  padding: 1.5rem;
  border-radius: 12px;
  border: 1px solid rgba(125,143,60,0.2);
  box-sizing: border-box;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.column-item img {
  width: 100%;
  height: auto;
  margin-bottom: 1.25rem;
  border-radius: 10px;
  box-sizing: border-box;
}

@media screen and (max-width: 768px) {
  .column-item {
    flex: 1 1 100%;
  }
}

.left {
  text-align: left;
}

/* === Footer === */
.footer-bottom {
  background: #2f2f2f;
  padding: 30px 0;
  color: #bbb;
}

.footer-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-logo {
  max-width: 200px;
  height: auto;
}

.footer-text {
  font-size: 14px;
  color: #bbb;
}

@media (max-width: 768px) {
  .footer-bottom {
    padding: 15px 0;
  }
  .footer-logo {
    max-width: 120px;
  }
  .footer-text {
    font-size: 12px;
  }
}

/* === Mobile carousel override === */
@media (max-width: 600px) {
  .carousel-wrapper {
    max-width: 100vw;
    overflow: hidden;
    padding: 0;
  }
  .carousel-container {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    overflow-x: hidden;
  }
  .card {
    flex: 0 0 100%;
    max-width: 100%;
    min-width: 100%;
    box-sizing: border-box;
  }
}

/* === Contact Form === */
.contact-container {
  max-width: 720px;
  width: 100%;
  margin: 3rem auto;
  padding: 2.3rem 2rem 1rem 2rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 6px 24px rgba(44,62,80,0.08);
}
.form-row {
  display: flex;
  gap: 1.2em;
}
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0.3em;
  }
}
.floating-label {
  position: relative;
  margin-bottom: 1.8rem;
  flex: 1 1 0px;
}

.floating-label input,
.floating-label textarea {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid rgba(0,0,0,0.25);
  border-radius: 0;
  font-size: 1.13rem;
  background: transparent;
  padding: 1.25em 0em 0.5em 0em;
  outline: none;
  color: #222;
  transition: border 0.25s;
  box-sizing: border-box;
  resize: none;
}
.floating-label input:focus,
.floating-label textarea:focus {
  border-bottom: 2px solid #7d8f3c;
}

.floating-label label {
  position: absolute;
  left: 0;
  top: 1.3em;
  color: #888;
  font-weight: 500;
  pointer-events: none;
  font-size: 1.09rem;
  background: transparent;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  padding: 0 0.2em;
  z-index: 2;
  width: auto;
  text-align: left;
}

.floating-label input:focus + label,
.floating-label input:not(:placeholder-shown) + label,
.floating-label textarea:focus + label,
.floating-label textarea:not(:placeholder-shown) + label {
  top: -1.3em;
  left: 0;
  color: #7d8f3c;
  font-size: 0.93rem;
  font-weight: 600;
  background: #fff;
  padding: 0 0.25em;
}

button[type="submit"] {
  width: 100%;
  padding: 1.1em 0;
  font-weight: bold;
  background: #7d8f3c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1.09rem;
  letter-spacing: 0.05em;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  margin-top: 1.1em;
  margin-bottom: 0.2em;
  box-shadow: none;
  cursor: pointer;
}
button[type="submit"]:hover,
button[type="submit"]:focus {
  background: #6a7a32;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(125,143,60,0.25);
}
#formMsg {
  margin-top: 1.1em;
  min-height: 1.5em;
  font-size: 1.02em;
}

.floating-label textarea {
  min-height: 6em;
}

/* ============================================================
   TOUR DETAIL PAGES
   ============================================================ */

.tour-hero {
  position: relative;
  height: 100vh;
  background: center / cover no-repeat #111;
  display: flex;
  align-items: flex-end;
}

.tour-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.55) 100%
  );
}

.tour-hero__overlay {
  position: relative;
  z-index: 1;
  padding: 3rem 3rem 4rem;
  max-width: 760px;
  color: #fff;
}

.tour-hero__duration {
  display: inline-block;
  background: #7d8f3c;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.tour-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  color: #fff;
}

.tour-hero__tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 400;
  margin: 0 0 1.75rem;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

.tour-hero__btn {
  display: inline-block;
  background: #b36a4c;
  color: #fff;
  padding: 0.8rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 6px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.tour-hero__btn:hover {
  background: #9a553f;
  color: #fff;
  transform: translateY(-2px);
}

/* Overview */
.tour-overview {
  background: #fff;
  padding: 72px 20px;
}

.tour-overview__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.tour-overview__text {
  flex: 2 1 400px;
}

.tour-overview__text p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin-top: 1.5rem;
}

.tour-overview__highlights {
  flex: 1 1 240px;
  background: #f9f9f9;
  border: 2px solid #7d8f3c;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
}

.tour-overview__highlights h3 {
  color: #7d8f3c;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}

.tour-overview__highlights ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tour-overview__highlights li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(125,143,60,0.2);
  font-size: 0.95rem;
  color: #333;
  padding-left: 1.25rem;
  position: relative;
}

.tour-overview__highlights li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #7d8f3c;
  font-weight: 700;
  font-size: 0.85rem;
}

.tour-overview__highlights li:last-child {
  border-bottom: none;
}

/* Itinerary */
.tour-itinerary {
  background: #f9f9f9;
  padding: 72px 20px;
}

.tour-itinerary__inner {
  max-width: 900px;
  margin: 0 auto;
}

.tour-itinerary__inner > .fade-in-title {
  margin-bottom: 2.5rem;
}

.itinerary-list {
  position: relative;
  padding-left: 2px;
}

.itinerary-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0;
  position: relative;
}

.itinerary-item::before {
  content: '';
  position: absolute;
  left: 110px;
  top: 24px;
  bottom: -24px;
  width: 2px;
  background: rgba(125,143,60,0.2);
}

.itinerary-item:last-child::before {
  display: none;
}

.itinerary-item__marker {
  flex: 0 0 110px;
  text-align: right;
  padding-top: 0.15rem;
  padding-right: 1.25rem;
  position: relative;
}

.itinerary-item__marker::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7d8f3c;
  border: 2px solid #f9f9f9;
  box-shadow: 0 0 0 2px #7d8f3c;
}

.itinerary-item__marker span {
  font-size: 0.78rem;
  font-weight: 700;
  color: #7d8f3c;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.itinerary-item__body {
  flex: 1;
  background: #fff;
  border: 1px solid rgba(125,143,60,0.2);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.acc-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 1rem;
  user-select: none;
}

.acc-title h3 {
  flex: 1;
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #333;
}

.acc-title:hover h3 {
  color: #7d8f3c;
}

.acc-arrow {
  font-size: 1rem;
  color: #7d8f3c;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.itinerary-item__body.is-open .acc-arrow {
  transform: rotate(180deg);
}

.acc-body {
  display: none !important;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(125,143,60,0.15);
  margin-top: 0.75rem;
}

.itinerary-item__body.is-open .acc-body {
  display: block !important;
}

.acc-body p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.8;
  color: #555;
}

.tour-gallery-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  grid-template-rows: unset;
}

@media (max-width: 768px) {
  .tour-hero__overlay {
    padding: 2rem 1.25rem 3rem;
  }
  .tour-overview__inner {
    flex-direction: column;
  }
  .tour-overview__highlights {
    width: 100%;
  }
  .itinerary-item__marker {
    flex: 0 0 70px;
    padding-right: 1rem;
  }
  .itinerary-item::before {
    left: 70px;
  }
  .itinerary-item__marker span {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .itinerary-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  .itinerary-item__marker {
    text-align: left;
    padding-right: 0;
    padding-left: 0;
    flex: unset;
  }
  .itinerary-item__marker::after {
    display: none;
  }
  .itinerary-item::before {
    display: none;
  }
}

/* Newsletter */


.newsletter-grid {

    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(300px, 340px)
    );

    gap: 2rem;

    justify-content: center;

    align-items: start;

    padding: 2rem;
    padding-top: 30;
}

.newsletter-card {

    display: flex;
    flex-direction: column;

    height: 100%;

    border: 1px solid #ddd;
    border-radius: 14px;

    overflow: hidden;

    background: #fff;

    box-shadow: 0 4px 14px rgba(0,0,0,0.06);

}

.newsletter-card a:first-child {

    display: block;

    background: #f5f5f5;

    text-align: center;

    padding: 1rem;

}

.newsletter-card img {

    max-height: 420px;

    width: auto;

    max-width: 100%;

    object-fit: contain;

    display: block;

    margin: 0 auto;

}

.newsletter-content {

    display: flex;
    flex-direction: column;

    flex-grow: 1;

    padding: 1.25rem;

    text-align: center;

}

.newsletter-content h2 {

    margin-bottom: 0.5rem;

    font-size: 1.3rem;

}

.newsletter-date {

    color: #777;

    margin-bottom: 1rem;

}

.newsletter-excerpt {

    flex-grow: 1;

}

.newsletter-button {

    display: inline-block;

    margin-top: 1.5rem;

    padding: 12px 18px;

    border-radius: 8px;

    background: #111;

    color: #fff;

    text-decoration: none;

    transition: opacity 0.2s ease;

}

.newsletter-button:hover {

    opacity: 0.85;

}

/* dropdown menu */

/* parent menu item */
.menu-item-has-children {
    position: relative;
}

/* submenu base */
.sub-menu {
    position: absolute;
    top: 100%;
    left: 0;

    min-width: 260px;
    padding: 10px 0;
    margin: 0;

    background: #fff;
    list-style: none;

    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 8px;

    /* animation setup */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        visibility 0.25s ease;

    z-index: 9999;
}

/* show dropdown */
.menu-item-has-children:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* submenu items */
.sub-menu li {
    width: 100%;
}

/* submenu links */
.sub-menu a {
    display: block;
    padding: 12px 8px;
    color: #222;
    text-decoration: none;
    white-space: nowrap;

    transition: background 0.2s ease;
}

/* hover effect */
.sub-menu a:hover {
    background: #f5f5f5;
}

/* parent menu item */
.menu-item-has-children > a {
    display: flex;
    align-items: center;
    gap: 8px;
}
/* website credit */
.footer-content {
  position: relative;
}

.website-credit {
  bottom: 0;
  font-size: 10px;
  color: #999;
}

.website-credit a {
  color: #999;
  text-decoration: none;
}

.website-credit a:hover {
  color: #ccc;
}

/* ============================================================
   Homepage layout adjustments
   ============================================================ */

/* Reduce whitespace between homepage sections */
.about-section {
  padding: 40px 20px;
}
.signature-tours-section,
.laos-in-focus,
.responsible-travel-section,
.contact {
  padding: 40px 20px;
}

/* About Us title: left-aligned within the centered card */
.about-section .about-text h2 {
  text-align: left;
}

/* Destinations: 6 cards, 2 rows x 3 columns on desktop, reflows on smaller screens, no horizontal scroll */
.destinations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 1.5rem auto 0;
  padding: 0 20px;
}
.destinations-grid .card {
  width: 100%;
  max-width: none;
  margin: 0;
}
@media (max-width: 900px) {
  .destinations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .destinations-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer partner/credibility logos */
.partner-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.partner-logos img {
  max-height: 50px;
  width: auto;
}