:root {
  --brand: #0d6b5e;
  --brand-dark: #06483f;
  --brand-light: #2c8b7a;
  --brand-soft: #eaf6f2;
  --accent: #e4ad4a;
  --accent-soft: #fff3d8;

  --ink: #17332d;
  --text: #314b45;
  --muted: #6e817c;

  --line: #dfeae7;
  --soft: #f6faf8;
  --white: #ffffff;

  --shadow-sm: 0 8px 24px rgba(10, 61, 52, 0.07);
  --shadow: 0 18px 48px rgba(10, 61, 52, 0.12);
  --shadow-lg: 0 28px 70px rgba(8, 49, 42, 0.17);

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;

  --font-body: "Prompt", "Noto Sans Thai", sans-serif;
  --font-heading: "Kanit", "Prompt", "Noto Sans Thai", sans-serif;

  --transition: 0.25s ease;
}

/* =========================================================
   Reset and base
========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.8;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand strong,
.btn,
.eyebrow,
.card-link,
.footer-title,
.timeline-time {
  font-family: var(--font-heading);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ink);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.018em;
}

p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

img {
  display: block;
  max-width: 100%;
}

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

::selection {
  color: var(--white);
  background: var(--brand);
}

:focus-visible {
  outline: 3px solid rgba(13, 107, 94, 0.25);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: 0;
  left: -9999px;
  z-index: 9999;
  padding: 0.8rem 1.1rem;
  color: var(--white);
  background: #111111;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.skip-link:focus {
  top: 0;
  left: 1rem;
}

/* =========================================================
   Navbar
========================================================= */

.site-navbar {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(14, 69, 60, 0.07);
  box-shadow: 0 6px 22px rgba(9, 55, 47, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.navbar-brand {
  min-width: 0;
}

.navbar-brand strong {
  display: block;
  color: var(--brand-dark);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.06em;
}

.navbar-brand small {
  display: block;
  margin-top: 0.22rem;
  color: var(--muted);
  font-size: 0.71rem;
  font-weight: 400;
  line-height: 1.25;
}


.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-logo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}
.navbar-toggler {
  padding: 0.55rem 0.7rem;
  border-color: var(--line);
  border-radius: 12px;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(13, 107, 94, 0.12);
}

.nav-link {
  position: relative;
  padding: 0.62rem 0.9rem !important;
  color: #465b56 !important;
  font-size: 0.94rem;
  font-weight: 500;
  border-radius: 12px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand) !important;
  background: var(--brand-soft);
}

/* =========================================================
   Buttons
========================================================= */

.btn {
  padding: 0.72rem 1.1rem;
  font-weight: 500;
  line-height: 1.35;
  border-radius: 14px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition);
}

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

.btn-brand {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 8px 20px rgba(13, 107, 94, 0.16);
}

.btn-brand:hover,
.btn-brand:focus {
  color: var(--white);
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  box-shadow: 0 12px 26px rgba(7, 72, 63, 0.22);
}

.btn-outline-brand {
  color: var(--brand);
  background: var(--white);
  border: 1px solid var(--brand);
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  color: var(--white);
  background: var(--brand);
  border-color: var(--brand);
}

.btn-light-outline {
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-light-outline:hover,
.btn-light-outline:focus {
  color: var(--brand);
  background: var(--white);
  border-color: var(--white);
}

/* =========================================================
   Home Hero
========================================================= */

.hero-section {
  position: relative;
  isolation: isolate;
  min-height: 720px;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-dark);
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -6;

  background-image: var(--hero-image);
  background-repeat: no-repeat;
  background-position: var(--hero-position, center center);
  background-size: cover;

  transform: scale(1.025);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -5;

  background:
    linear-gradient(
      90deg,
      rgba(2, 39, 33, var(--hero-overlay-opacity, 0.72)) 0%,
      rgba(3, 57, 49, 0.69) 38%,
      rgba(5, 81, 70, 0.38) 68%,
      rgba(5, 81, 70, 0.18) 100%
    );
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  z-index: -4;

  background:
    radial-gradient(
      circle at 78% 20%,
      rgba(102, 222, 199, 0.24),
      transparent 30%
    ),
    radial-gradient(
      circle at 7% 95%,
      rgba(235, 178, 74, 0.11),
      transparent 35%
    ),
    linear-gradient(
      135deg,
      rgba(0, 85, 73, 0.17),
      rgba(19, 138, 119, 0.08)
    );
}

.hero-decoration {
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.hero-orb-one {
  top: -180px;
  right: -100px;
  width: 460px;
  height: 460px;

  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-orb-two {
  right: -120px;
  bottom: -190px;
  width: 500px;
  height: 500px;

  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.045);
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  right: 0;

  width: 46%;
  height: 100%;

  opacity: 0.1;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.08) 1px,
      transparent 1px
    );

  background-size: 52px 52px;

  mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 38%,
      #000
    );

  -webkit-mask-image:
    linear-gradient(
      90deg,
      transparent,
      #000 38%,
      #000
    );
}

.hero-topography {
  position: absolute;
  bottom: -80px;
  left: -100px;

  width: 580px;
  height: 500px;

  opacity: 0.12;

  background:
    repeating-radial-gradient(
      ellipse at center,
      transparent 0,
      transparent 16px,
      rgba(255, 255, 255, 0.28) 17px,
      transparent 18px
    );

  transform: rotate(-8deg);
}

.hero-bottom-fade {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;

  height: 120px;

  background:
    linear-gradient(
      180deg,
      transparent,
      rgba(2, 35, 30, 0.19)
    );

  pointer-events: none;
}

.min-vh-75 {
  min-height: 75vh;
}

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

/* =========================================================
   Hero Typography
========================================================= */

.hero-section .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  margin-bottom: 1rem;
  padding: 0.48rem 0.78rem;

  color: #e8fcf7;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;

  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-section h1 {
  max-width: 900px;
  margin-bottom: 1.45rem;

  color: var(--white);
  font-size: clamp(3rem, 6.5vw, 6rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;

  text-shadow:
    0 6px 28px rgba(0, 24, 20, 0.18);
}

.hero-section h1 span {
  color: #ffdda0;
}

.hero-section p {
  max-width: 760px;
  margin-bottom: 0;

  color: rgba(255, 255, 255, 0.87);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
  font-weight: 300;
  line-height: 1.95;

  text-shadow:
    0 2px 12px rgba(0, 25, 21, 0.16);
}

/* =========================================================
   Hero Search
========================================================= */

.hero-search {
  display: flex;
  align-items: center;

  width: 100%;
  max-width: 690px;
  margin-top: 1.8rem;
  padding: 0.45rem;

  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;

  box-shadow:
    0 22px 48px rgba(0, 30, 25, 0.2);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-search i {
  flex: 0 0 auto;

  margin-left: 0.9rem;

  color: var(--brand);
  font-size: 1.15rem;
}

.hero-search input {
  flex: 1;
  min-width: 0;

  padding: 0.9rem;

  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.hero-search input::placeholder {
  color: #82948f;
}

.hero-search button {
  flex: 0 0 auto;

  padding: 0.86rem 1.45rem;

  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 500;

  background: var(--brand);
  border: 0;
  border-radius: 13px;

  transition:
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.hero-search button:hover {
  background: var(--brand-dark);

  box-shadow:
    0 8px 20px rgba(7, 72, 63, 0.2);

  transform: translateY(-1px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;

  margin-top: 1.2rem;
}

/* =========================================================
   Glass Feature Panel
========================================================= */

.hero-feature-panel {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;

  min-height: 520px;
  padding: 1.3rem 0;
}

.hero-feature-panel::before {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;

  width: 430px;
  height: 520px;

  content: "";

  background:
    radial-gradient(
      circle,
      rgba(111, 222, 201, 0.21),
      transparent 68%
    );

  filter: blur(42px);

  transform: translate(-50%, -50%);
}

/* =========================================================
   Glass Cards
========================================================= */

.visual-card {
  position: relative;

  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 1rem;

  width: 100%;
  max-width: 470px;
  min-height: 132px;
  padding: 1.15rem 1.1rem;

  color: var(--white);

  /* โปร่งขึ้นอย่างเห็นได้ชัด */
  background:
    linear-gradient(
      135deg,
      rgba(4, 65, 56, 0.34),
      rgba(12, 108, 93, 0.16)
    );

  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 26px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 18px 42px rgba(0, 35, 29, 0.16);

  /* ลด blur และเอา brightness ออก */
  backdrop-filter:
    blur(14px)
    saturate(115%);

  -webkit-backdrop-filter:
    blur(14px)
    saturate(115%);

  overflow: hidden;

  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}
.visual-card::before {
  position: absolute;
  top: -60%;
  left: -25%;

  width: 70%;
  height: 170%;

  content: "";

  background:
    linear-gradient(
      115deg,
      transparent,
      rgba(255, 255, 255, 0.07),
      transparent
    );

  transform: rotate(12deg);
  transition: left 0.6s ease;
}
.visual-card::after {
  position: absolute;
  inset: 0;

  pointer-events: none;
  content: "";

  border-radius: inherit;

  background:
    linear-gradient(
      90deg,
      rgba(0, 44, 38, 0.10) 0%,
      rgba(0, 44, 38, 0.04) 52%,
      transparent 100%
    );
}
.visual-card:hover {
  color: var(--white);

  background:
    linear-gradient(
      135deg,
      rgba(4, 65, 56, 0.42),
      rgba(12, 108, 93, 0.22)
    );

  border-color: rgba(255, 255, 255, 0.38);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 24px 52px rgba(0, 35, 29, 0.22);

  transform: translateY(-5px);
}
.visual-card:hover::before {
  left: 90%;
}
.visual-content,
.visual-content small,
.visual-content strong,
.visual-description {
  transform: none;
  filter: none;

  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
}
.visual-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.visual-content small {
  margin-bottom: 0.14rem;

  color: rgba(255, 255, 255, 0.94);
  font-size: 0.74rem;
  font-weight: 400;
  line-height: 1.4;

  text-shadow:
    0 1px 5px rgba(0, 30, 25, 0.34);
}

.visual-content strong {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.17rem;
  font-weight: 600;
  line-height: 1.35;

  text-shadow:
    0 2px 10px rgba(0, 28, 24, 0.42);
}

.visual-description {
  display: block;
  margin-top: 0.42rem;

  color: rgba(255, 255, 255, 0.93);
  font-size: 0.80rem;
  font-weight: 300;
  line-height: 1.62;

  text-shadow:
    0 1px 6px rgba(0, 28, 24, 0.32);
}
/* ตำแหน่งเหลื่อมเล็กน้อยให้ดูมีจังหวะ */

.visual-one {
  align-self: flex-start;
  margin-left: 0;
}

.visual-two {
  align-self: flex-end;
  margin-right: -0.8rem;
}

.visual-three {
  align-self: flex-start;
  margin-left: 1.2rem;
}

/* =========================================================
   Glass Card Icon
========================================================= */

.visual-icon {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 58px;
  height: 58px;

  color: #ffffff;
  font-size: 1.55rem;

  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.34),
      rgba(255, 255, 255, 0.18)
    );

  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 18px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 10px 24px rgba(0, 42, 35, 0.18);

  backdrop-filter:
    blur(14px)
    saturate(115%);
  -webkit-backdrop-filter: blur(14px);
}
/* =========================================================
   Glass Card Content
========================================================= */

.visual-content {
  position: relative;
  z-index: 2;

  display: flex;
  flex-direction: column;

  min-width: 0;
}

.visual-content small {
  margin-bottom: 0.12rem;

  color: rgba(235, 255, 250, 0.76);
  font-size: 0.69rem;
  font-weight: 400;
  line-height: 1.4;
}

.visual-content strong {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.35;

  text-shadow:
    0 2px 10px rgba(0, 31, 26, 0.18);
}

.visual-description {
  display: block;

  margin-top: 0.42rem;

  color: rgba(241, 255, 251, 0.78);
  font-size: 0.77rem;
  font-weight: 300;
  line-height: 1.62;
}

/* =========================================================
   Glass Card Arrow
========================================================= */

.visual-arrow {
  position: relative;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 42px;
  height: 42px;

  color: #ffffff;

  background: rgba(2, 62, 53, 0.62);

  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;

  box-shadow:
    0 6px 18px rgba(0, 36, 30, 0.16);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  transition:
    transform 0.3s ease,
    background-color 0.3s ease;
}

.visual-card:hover .visual-arrow {
  background: rgba(2, 62, 53, 0.82);
  transform: translateX(4px);
}
/* Generic eyebrow outside the home hero */
.eyebrow {
  display: inline-block;
  margin-bottom: 0.95rem;
  color: #dff8f2;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.065em;
}

.eyebrow.dark {
  color: var(--brand);
}

.hero-section h1,
.page-hero h1,
.place-hero-copy h1 {
  color: var(--white);
  font-weight: 700;
  letter-spacing: -0.035em;
}

/* =========================================================
   Sections and headings
========================================================= */

.section-space {
  padding: 5.5rem 0;
}

.bg-soft {
  background: var(--soft);
}

.section-heading {
  margin-bottom: 2.2rem;
}

.section-heading h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

.section-heading p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.85;
}

/* =========================================================
   Category cards
========================================================= */

.category-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  min-height: 190px;
  padding: 1.3rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background-color var(--transition);
}

.category-card:hover {
  background: #fcfffe;
  border-color: rgba(13, 107, 94, 0.12);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.category-card i {
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 2rem;
}

.category-card strong {
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: 1.06rem;
  font-weight: 600;
  line-height: 1.4;
}

.category-card span {
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.65;
}

/* =========================================================
   Attraction and route cards
========================================================= */

.attraction-card,
.route-card {
  height: 100%;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 2px 0 rgba(10, 61, 52, 0.015);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.attraction-card:hover,
.route-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.card-image-wrap,
.route-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #dce9e5;
}

.card-image-wrap::after,
.route-image-wrap::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(
      135deg,
      rgba(4, 65, 56, 0.26),
      rgba(12, 108, 93, 0.10)
    );}

.card-image-wrap img,
.route-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.attraction-card:hover img,
.route-card:hover img {
  transform: scale(1.045);
}

.card-badge,
.route-duration {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.72rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  box-shadow: 0 5px 15px rgba(7, 53, 45, 0.09);
  backdrop-filter: blur(10px);
}

.card-body-custom {
  padding: 1.4rem;
}

.card-body-custom h3 {
  margin-bottom: 0.65rem;
  font-size: 1.28rem;
  font-weight: 600;
  line-height: 1.42;
}

.card-body-custom h3 a:hover {
  color: var(--brand);
}

.card-body-custom p {
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.78;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--brand);
  font-size: 0.92rem;
  font-weight: 500;
}

.card-link i {
  transition: transform var(--transition);
}

.card-link:hover i {
  transform: translateX(4px);
}

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

.route-place-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.route-place-list span {
  padding: 0.32rem 0.58rem;
  color: var(--brand-dark);
  font-size: 0.74rem;
  font-weight: 500;
  line-height: 1.35;
  background: var(--brand-soft);
  border-radius: 999px;
}

/* =========================================================
   Planner
========================================================= */

.planner-section {
  padding: 1rem 0 5rem;
}

.planner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.6rem;
  color: var(--white);
  background:
    radial-gradient(circle at 90% 0, rgba(255, 255, 255, 0.12), transparent 32%),
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.planner-box h2 {
  margin-bottom: 0.55rem;
  color: var(--white);
  font-weight: 600;
}

.planner-box p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 300;
}

/* =========================================================
   Page hero
========================================================= */

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  color: #fff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
      rgba(3, 57, 49, 0.69) 38%,
      rgba(5, 81, 70, 0.38) 68%,
      rgba(5, 81, 70, 0.18) 100%
  );
  z-index: 1;
}

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

.page-hero .eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #f3c96b;
}

.page-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.28);
}

.page-hero p {
  max-width: 620px;
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   Filter and forms
========================================================= */

.filter-panel {
  padding: 1.35rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-sm);
}

.form-label {
  margin-bottom: 0.45rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 500;
}

.form-control,
.form-select {
  min-height: 50px;
  color: var(--text);
  background-color: var(--white);
  border-color: var(--line);
  border-radius: 14px;
}

.form-control::placeholder {
  color: #9aa7a4;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 0.22rem rgba(13, 107, 94, 0.11);
}

.result-summary {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}

.result-summary h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
}

.result-summary p {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

/* =========================================================
   Empty state
========================================================= */

.empty-state {
  padding: 5rem 1rem;
  text-align: center;
  background: var(--soft);
  border: 1px dashed #bed0ca;
  border-radius: 24px;
}

.empty-state i {
  display: inline-block;
  margin-bottom: 0.7rem;
  color: var(--brand);
  font-size: 3rem;
}

.empty-state h2 {
  font-size: 1.55rem;
  font-weight: 600;
}

.empty-state p {
  color: var(--muted);
}

/* =========================================================
   Place and route hero detail
========================================================= */

.place-hero-detail,
.route-hero-detail {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  overflow: hidden;
  color: var(--white);
}

.place-hero-detail > img,
.route-hero-detail > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.place-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 20, 17, 0.08), rgba(2, 20, 17, 0.86)),
    linear-gradient(90deg, rgba(2, 20, 17, 0.25), transparent 70%);
}

.place-hero-copy {
  position: relative;
  z-index: 2;
  padding-bottom: 3.7rem;
}

.place-hero-copy h1 {
  max-width: 950px;
  margin-bottom: 0.9rem;
  font-size: clamp(2.7rem, 6vw, 5.5rem);
}

.place-hero-copy p {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.87);
  font-size: 1.12rem;
  font-weight: 300;
  line-height: 1.85;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: var(--white);
  font-size: 0.94rem;
  font-weight: 500;
}

.breadcrumb-link:hover {
  color: #ffe3a8;
}

/* =========================================================
   Content blocks
========================================================= */

.content-block {
  padding: 2rem;
  margin-bottom: 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.content-block h2,
.info-panel h2 {
  margin-bottom: 1.2rem;
  font-size: 1.52rem;
  font-weight: 600;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.quick-facts > div {
  padding: 1.05rem;
  background: var(--soft);
  border: 1px solid rgba(13, 107, 94, 0.05);
  border-radius: 18px;
}

.quick-facts i {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--brand);
  font-size: 1.4rem;
}

.quick-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
}

.quick-facts strong {
  display: block;
  margin-top: 0.16rem;
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 500;
}

.rich-text {
  color: #455955;
}

.rich-text p {
  color: #455955;
  font-size: 1rem;
  line-height: 1.95;
}

.rich-text h3 {
  margin-top: 1.8rem;
  font-size: 1.28rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  overflow: hidden;
  padding: 0;
  background: #e4eeeb;
  border: 0;
  border-radius: 18px;
  aspect-ratio: 16 / 10;
  cursor: zoom-in;
}

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

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

.check-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 0.65rem;
  margin: 0.7rem 0;
  color: #43544f;
}

.check-list i {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--brand);
}

.warning-block {
  background: #fffaf0;
  border-color: #f1d7a3;
}

.warning-block h2 i {
  color: #c6871d;
}

.warning-block ul {
  margin-bottom: 0;
}

/* =========================================================
   Information panel
========================================================= */

.info-panel {
  top: 100px;
  padding: 1.55rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-row {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.info-row span {
  display: block;
  color: var(--muted);
  font-size: 0.81rem;
}

.info-row strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 500;
  line-height: 1.65;
}

.info-panel .btn {
  margin-top: 1.2rem;
}

/* =========================================================
   Gallery modal
========================================================= */

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.9);
}

.gallery-modal.show {
  display: flex;
}

.gallery-modal img {
  max-width: 95vw;
  max-height: 88vh;
  border-radius: 14px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

.gallery-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--ink);
  font-size: 1.2rem;
  background: var(--white);
  border: 0;
  border-radius: 50%;
}

.modal-open-custom {
  overflow: hidden;
}

/* =========================================================
   Route detail
========================================================= */

.route-intro {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.35rem;
  margin-bottom: 2rem;
  background: var(--brand-soft);
  border: 1px solid rgba(13, 107, 94, 0.08);
  border-radius: 20px;
}

.route-intro i {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 2rem;
}

.route-intro h2 {
  margin-bottom: 0.35rem;
  font-size: 1.18rem;
  font-weight: 600;
}

.route-intro p {
  margin: 0;
  color: var(--muted);
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.route-meta span {
  padding: 0.45rem 0.75rem;
  color: var(--white);
  font-size: 0.84rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 84px;
  width: 2px;
  content: "";
  background: var(--line);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 60px 20px 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.timeline-time {
  color: var(--brand);
  font-weight: 600;
}

.timeline-dot {
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 0.4rem;
  background: var(--brand);
  border: 3px solid var(--brand-soft);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(13, 107, 94, 0.12);
}

.timeline-content h3 {
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
  font-weight: 600;
}

.timeline-content p {
  margin: 0;
  color: var(--muted);
}

/* =========================================================
   About
========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.about-grid > div,
.phase-card {
  height: 100%;
  padding: 1.45rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.about-grid > div:hover,
.phase-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-sm);
  transform: translateY(-4px);
}

.about-grid i {
  color: var(--brand);
  font-size: 1.8rem;
}

.about-grid h3,
.phase-card h3 {
  margin-top: 0.8rem;
  font-size: 1.14rem;
  font-weight: 600;
}

.about-grid p,
.phase-card p {
  margin: 0;
  color: var(--muted);
}

.phase-card span {
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 500;
}

/* =========================================================
   Not found
========================================================= */

.not-found {
  padding: 8rem 0;
}

.not-found-code {
  color: var(--brand-soft);
  font-family: var(--font-heading);
  font-size: clamp(6rem, 18vw, 13rem);
  font-weight: 700;
  line-height: 1;
  text-shadow: 0 0 0 var(--brand);
}

.not-found h1 {
  font-weight: 600;
}

/* =========================================================
   Footer
========================================================= */

.site-footer {
  color: var(--white);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.05), transparent 25%),
    #082f29;
}

.site-footer a {
  display: block;
  margin: 0.4rem 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: var(--white);
  transform: translateX(2px);
}

.footer-title {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
}

.footer-bottom {
  padding: 1rem 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.83rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: clamp(3rem, 6vw, 5.2rem);
  }

  .visual-card {
    max-width: 420px;
  }

  .visual-two {
    margin-right: 0;
  }

  .visual-three {
    margin-left: 0.5rem;
  }
}

@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 76px;
  }

  .section-space {
    padding: 4.2rem 0;
  }

  .navbar-collapse {
    padding: 1rem 0 0.35rem;
  }

  .navbar-nav {
    align-items: stretch !important;
  }

  .nav-link {
    padding: 0.72rem 0.85rem !important;
  }

  .hero-section {
    min-height: auto;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(2, 39, 33, 0.84) 0%,
      rgba(3, 57, 49, 0.75) 58%,
      rgba(5, 81, 70, 0.48) 100%
    );
  }

  .hero-grid-pattern {
    width: 65%;
  }

  .planner-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .quick-facts {
    grid-template-columns: 1fr;
  }

  .info-panel {
    position: static !important;
  }

  .place-hero-detail,
  .route-hero-detail {
    min-height: 450px;
  }
}

@media (max-width: 767.98px) {
  .site-navbar {
    padding: 0.62rem 0;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }

  .navbar-brand strong {
    font-size: 1rem;
  }

  .hero-background {
    background-image: var(--hero-image-mobile, var(--hero-image));
    background-position: var(--hero-position-mobile, center center);
  }

  .hero-overlay {
    background: linear-gradient(
      180deg,
      rgba(2, 39, 33, 0.75) 0%,
      rgba(3, 55, 47, 0.83) 62%,
      rgba(3, 48, 41, 0.92) 100%
    );
  }

  .hero-atmosphere {
    background: radial-gradient(
      circle at 85% 15%,
      rgba(89, 202, 181, 0.2),
      transparent 30%
    );
  }

  .hero-grid-pattern {
    display: none;
  }

  .hero-topography {
    width: 380px;
    height: 340px;
    opacity: 0.08;
  }

  .hero-section .eyebrow {
    font-size: 0.72rem;
  }

  .hero-section h1 {
    font-size: clamp(2.65rem, 13vw, 3.7rem);
    line-height: 1.05;
  }

  .hero-section p {
    font-size: 1rem;
  }

  .hero-search {
    flex-wrap: wrap;
  }

  .hero-search input {
    width: calc(100% - 45px);
  }

  .hero-search button {
    width: 100%;
    margin-top: 0.35rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section-space {
    padding: 3.6rem 0;
  }

  .section-heading {
    margin-bottom: 1.8rem;
  }

  .category-card {
    min-height: 172px;
    padding: 1.1rem;
  }

  .category-card i {
    font-size: 1.75rem;
  }

  .planner-section {
    padding-bottom: 3.5rem;
  }

  .planner-box {
    padding: 1.65rem;
    border-radius: 22px;
  }

  .page-hero {
    padding: 4rem 0;
  }

  .place-hero-detail,
  .route-hero-detail {
    min-height: 430px;
  }

  .place-hero-copy {
    padding-bottom: 2.5rem;
  }

  .place-hero-copy h1 {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }

  .place-hero-copy p {
    font-size: 1rem;
  }

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

  .content-block {
    padding: 1.3rem;
    border-radius: 20px;
  }

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

  .timeline::before {
    left: 71px;
  }

  .timeline-item {
    grid-template-columns: 48px 18px 1fr;
    gap: 0.7rem;
  }

  .result-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .filter-panel {
    padding: 1rem;
  }

  .empty-state {
    padding: 3.5rem 1rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    --bs-gutter-x: 1.3rem;
  }

  .hero-section h1 {
    font-size: clamp(2.55rem, 13vw, 3.3rem);
  }

  .section-heading h2 {
    font-size: 1.9rem;
  }

  .page-hero h1 {
    font-size: 2.65rem;
  }

  .category-card {
    min-height: 165px;
  }

  .card-body-custom {
    padding: 1.2rem;
  }

  .planner-box .btn {
    width: 100%;
  }

  .gallery-modal {
    padding: 1rem;
  }
}

/* =========================================================
   Reduced motion
========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* =========================================================
   PLACE PHOTO GALLERY
========================================================= */

.place-gallery-section {
  margin-top: 1.5rem;
  padding: 1.8rem 2rem 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.place-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.place-gallery-eyebrow {
  margin: 0 0 0.25rem;
  color: var(--brand);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.14em;
}

.place-gallery-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  line-height: 1.25;
}

.place-gallery-view-all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.5rem 0.9rem;
  color: var(--brand);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.3;
  background: var(--soft);
  border: 1px solid #cfe0dc;
  border-radius: 12px;
  cursor: pointer;
  transition:
    color var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.place-gallery-view-all span {
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.79rem;
  font-weight: 400;
}

.place-gallery-view-all:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: #9dc7bf;
  transform: translateY(-1px);
}

.place-gallery-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.place-gallery-item {
  position: relative;
  display: block;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #e7efed;
  border: 0;
  border-radius: 13px;
  cursor: zoom-in;
}

.place-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

.place-gallery-item-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      transparent 42%,
      rgba(3, 45, 39, 0.34) 100%
    );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.place-gallery-item:hover img {
  filter: brightness(0.88);
  transform: scale(1.045);
}

.place-gallery-item:hover .place-gallery-item-shade {
  opacity: 1;
}

.place-gallery-zoom-icon {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  font-size: 0.95rem;
  background: rgba(3, 58, 50, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(5px);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

.place-gallery-item:hover .place-gallery-zoom-icon {
  opacity: 1;
  transform: translateY(0);
}

.place-gallery-more {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.18rem;
  color: var(--white);
  background: rgba(4, 52, 45, 0.7);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.place-gallery-more strong {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.place-gallery-more small {
  font-size: 0.72rem;
  font-weight: 400;
}

.place-gallery-item:focus-visible,
.place-gallery-view-all:focus-visible {
  outline: 3px solid rgba(19, 129, 112, 0.3);
  outline-offset: 3px;
}


/* =========================================================
   THAMACHAN LIGHTBOX
========================================================= */

body.lightbox-open {
  overflow: hidden;
}

.thamachan-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  width: 100%;
  height: 100%;
  min-width: 0;
  color: var(--white);
}

.thamachan-lightbox.is-open {
  display: block;
}

.thamachan-lightbox-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 24, 21, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.thamachan-lightbox-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 0.8rem 1rem 1rem;
  overflow: hidden;
}

.thamachan-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-width: 0;
  min-height: 52px;
}

.thamachan-lightbox-title {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
}

.thamachan-lightbox-title strong {
  overflow: hidden;
  max-width: min(65vw, 760px);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.thamachan-lightbox-title span {
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.83rem;
}

.thamachan-lightbox-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color var(--transition),
    transform var(--transition);
}

.thamachan-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: rotate(5deg);
}

.thamachan-lightbox-stage {
  position: relative;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  padding: 0.4rem 0;
  overflow: hidden;
}

.thamachan-lightbox-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  overflow: hidden;
}

.thamachan-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  object-fit: contain;
  border-radius: 8px;
  opacity: 0;
  transform: scale(0.985);
  user-select: none;
  -webkit-user-drag: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.thamachan-lightbox-image.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.thamachan-lightbox-nav {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  padding: 0;
  color: var(--white);
  font-size: 1.35rem;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  cursor: pointer;
  transition:
    background-color var(--transition),
    transform var(--transition);
}

.thamachan-lightbox-prev {
  justify-self: start;
}

.thamachan-lightbox-next {
  justify-self: end;
}

.thamachan-lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.04);
}

.thamachan-lightbox-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: thamachanGallerySpin 0.8s linear infinite;
}

.thamachan-lightbox-loader.is-hidden {
  display: none;
}

@keyframes thamachanGallerySpin {
  to {
    transform: rotate(360deg);
  }
}


/* =========================================================
   LIGHTBOX THUMBNAILS
========================================================= */

.thamachan-lightbox-thumbnails-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding-top: 0.45rem;
}

.thamachan-lightbox-thumbnails {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: max-content;
  min-width: 0;
  max-width: min(1120px, 100%);
  margin-inline: auto;
  padding: 0.35rem 0.2rem 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.thamachan-lightbox-thumbnails::-webkit-scrollbar {
  height: 6px;
}

.thamachan-lightbox-thumbnails::-webkit-scrollbar-track {
  background: transparent;
}

.thamachan-lightbox-thumbnails::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border-radius: 999px;
}

.thamachan-lightbox-thumbnail {
  flex: 0 0 70px;
  overflow: hidden;
  width: 70px;
  height: 50px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid transparent;
  border-radius: 8px;
  opacity: 0.58;
  cursor: pointer;
  transition:
    opacity var(--transition),
    border-color var(--transition),
    transform var(--transition);
}

.thamachan-lightbox-thumbnail img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thamachan-lightbox-thumbnail:hover {
  opacity: 0.9;
}

.thamachan-lightbox-thumbnail.is-active {
  border-color: #63d7c3;
  opacity: 1;
  transform: translateY(-2px);
}


/* =========================================================
   RESPONSIVE PLACE GALLERY
========================================================= */

@media (max-width: 1199.98px) {
  .place-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .place-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .thamachan-lightbox-stage {
    grid-template-columns: 54px minmax(0, 1fr) 54px;
  }

  .thamachan-lightbox-nav {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 767.98px) {
  .place-gallery-section {
    padding: 1.4rem 1.2rem 1.55rem;
    border-radius: 20px;
  }

  .place-gallery-header {
    align-items: center;
    margin-bottom: 1rem;
  }

  .place-gallery-view-all {
    padding: 0.48rem 0.7rem;
  }

  .place-gallery-view-all span {
    display: none;
  }

  .place-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .place-gallery-item {
    border-radius: 11px;
  }

  .place-gallery-zoom-icon {
    display: none;
  }

  .thamachan-lightbox-dialog {
    padding: 0.45rem 0.5rem 0.65rem;
  }

  .thamachan-lightbox-toolbar {
    padding-inline: 0.25rem;
  }

  .thamachan-lightbox-title {
    gap: 0.5rem;
  }

  .thamachan-lightbox-title strong {
    max-width: 55vw;
    font-size: 0.87rem;
  }

  .thamachan-lightbox-title span {
    font-size: 0.76rem;
  }

  .thamachan-lightbox-close {
    width: 40px;
    height: 40px;
  }

  .thamachan-lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0;
  }

  .thamachan-lightbox-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 42px;
    height: 42px;
    background: rgba(2, 28, 24, 0.66);
    transform: translateY(-50%);
  }

  .thamachan-lightbox-nav:hover {
    transform: translateY(-50%);
  }

  .thamachan-lightbox-prev {
    left: 0.25rem;
  }

  .thamachan-lightbox-next {
    right: 0.25rem;
  }

  .thamachan-lightbox-thumbnail {
    flex-basis: 58px;
    width: 58px;
    height: 43px;
  }
}

@media (max-width: 420px) {
  .place-gallery-section {
    padding-inline: 1rem;
  }

  .place-gallery-header h2 {
    font-size: 1.35rem;
  }

  .place-gallery-view-all {
    font-size: 0.8rem;
  }
}


/* =========================================================
   REDUCED MOTION FOR GALLERY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  .place-gallery-item img,
  .place-gallery-view-all,
  .place-gallery-zoom-icon,
  .thamachan-lightbox-image,
  .thamachan-lightbox-nav,
  .thamachan-lightbox-close,
  .thamachan-lightbox-thumbnail {
    transition: none;
  }

  .thamachan-lightbox-loader {
    animation: none;
  }
}
