:root {
  --color-primary-50: #eff8ff;
  --color-primary-100: #dbefff;
  --color-primary-200: #bfe3ff;
  --color-primary-300: #93d2ff;
  --color-primary-400: #60b8fa;
  --color-primary-500: #2f9de8;
  --color-primary-600: #1681cc;
  --color-primary-700: #1267a6;
  --color-primary-800: #155789;
  --color-primary-900: #174970;
  --color-accent-50: #fff4ed;
  --color-accent-100: #ffe6d4;
  --color-accent-300: #ffa370;
  --color-accent-500: #f45420;
  --color-accent-600: #df3912;
  --color-success: #16a34a;
  --color-warning: #f59e0b;
  --color-danger: #dc2626;
  --color-background: #ffffff;
  --color-background-soft: #f6f9fc;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-text-primary: #172033;
  --color-text-secondary: #5d6678;
  --color-text-muted: #8a94a6;
  --color-border: #e4e9f0;
  --color-border-strong: #d2d9e4;
  --radius-sm: 2px;
  --radius-md: 2px;
  --radius-lg: 2px;
  --radius-xl: 4px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.09);
  --shadow-lg: 0 18px 45px rgba(15, 23, 42, 0.12);
  --font-heading: "Be Vietnam Pro", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-body-text, var(--color-text-primary));
  background: var(--color-background-soft);
  font-size: 13px;
  line-height: 1.45;
  font-weight: var(--font-weight-base, 400);
}

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

h1,
h2,
h3,
h4,
h5 {
  color: var(--color-heading, var(--color-text-primary));
  font-family: var(--font-heading);
}

h1 {
  font-size: var(--h1-font-size, 38px);
  font-weight: var(--h1-font-weight, 800);
  color: var(--h1-color, var(--color-heading));
}

h2 {
  font-size: var(--h2-font-size, 27px);
  font-weight: var(--h2-font-weight, 800);
  color: var(--h2-color, var(--color-heading));
}

h3 {
  font-size: var(--h3-font-size, 18px);
  font-weight: var(--h3-font-weight, 750);
  color: var(--h3-color, var(--color-heading));
}

h4 {
  font-size: var(--h4-font-size, 16px);
  font-weight: var(--h4-font-weight, 700);
  color: var(--h4-color, var(--color-heading));
}

h5 {
  font-size: var(--h5-font-size, 14px);
  font-weight: var(--h5-font-weight, 700);
  color: var(--h5-color, var(--color-heading));
}

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

button {
  cursor: pointer;
}

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

.svg-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: -3px;
  color: currentColor;
}

.heroicon {
  stroke-width: 1.65;
}

.site-container {
  width: min(100% - 64px, 1188px);
  margin-inline: auto;
}

.app-loading {
  min-height: 100vh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 16px;
  color: var(--color-primary-700);
}

.brand-mark {
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: 0;
  font-size: 28px;
  color: var(--color-primary-600);
}

.brand-mark span {
  color: var(--color-accent-500);
}

.skip-link {
  position: fixed;
  left: 8px;
  top: 8px;
  background: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  transform: translateY(-120%);
  z-index: 80;
}

.skip-link:focus {
  transform: translateY(0);
}

.utility-bar {
  background: var(--color-primary-600);
  color: #fff;
  font-size: 0;
}

.utility-inner {
  min-height: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.main-header {
  min-height: 64px;
  display: grid;
  grid-template-columns: 170px minmax(260px, 420px) auto;
  gap: 24px;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  color: var(--color-primary-600);
}

.logo-image {
  width: auto;
  max-width: 172px;
  max-height: 52px;
  object-fit: contain;
}

.footer-logo {
  width: auto;
  max-width: 180px;
  max-height: 64px;
  object-fit: contain;
  margin-bottom: 12px;
}

.logo .plane {
  color: var(--color-accent-500);
}

.search-mini {
  position: relative;
}

.search-mini input {
  width: 100%;
  height: 30px;
  border: 1px solid var(--color-primary-300);
  border-radius: 18px;
  padding: 0 38px 0 16px;
  outline: none;
  background: #fff;
  font-size: 12px;
}

.search-mini button {
  position: absolute;
  right: 3px;
  top: 3px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--color-primary-600);
  font-size: 12px;
}

h1,
h2,
h3,
h4,
h5 {
  color: var(--color-heading, var(--color-text-primary));
  font-family: var(--font-heading);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-action {
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  font-size: 14px;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 34px;
  border: 1px solid var(--color-border);
  padding: 0 10px;
  border-radius: 8px;
  cursor: pointer;
  background: #fff;
  color: var(--color-text-primary);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  border-color: var(--color-primary-400);
  background: var(--color-primary-50);
  transform: translateY(-1px);
}

.badge-count {
  position: absolute;
  top: -4px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--color-accent-500);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.nav {
  border-top: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 34px;
}

.nav a,
.nav button {
  border: 0;
  background: transparent;
  padding: 10px 16px;
  font-family: var(--font-nav);
  font-size: var(--nav-font-size, 12px);
  font-weight: var(--font-weight-nav, 700);
  color: var(--color-nav-text, var(--color-text-secondary));
  text-transform: var(--nav-text-transform, uppercase);
}

.nav a.active,
.nav a:hover,
.nav button:hover {
  color: var(--color-accent-500, var(--color-primary-600));
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  height: var(--hero-height, 420px);
  color: #fff;
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8, 35, 61, .7), rgba(8, 35, 61, .25), rgba(8, 35, 61, .08));
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 76px 0 42px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 2.35rem);
  line-height: 1.12;
  margin: 0 0 6px;
  max-width: 560px;
  font-weight: 800;
}

.hero p {
  font-size: 14px;
  margin: 0 0 18px;
  max-width: 560px;
}

.hero h1,
.hero h2,
.hero h3,
.hero p,
.hero .hero-rich,
.hero .hero-rich * {
  color: #fff !important;
}

.hero-rich {
  max-width: 560px;
  font-size: 14px;
  margin-bottom: 16px;
}

.hero-rich p {
  margin: 0 0 12px;
}

.hero-cta {
  margin-bottom: 22px;
}

.search-panel {
  background: rgba(0, 0, 0, .34);
  border-radius: 4px;
  box-shadow: none;
  color: var(--color-text-primary);
  padding: 12px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr auto;
  gap: 8px;
  max-width: 620px;
}

.search-panel .field:first-child {
  grid-column: 1 / -1;
}

.search-panel .field:nth-child(4) {
  display: none;
}

.search-panel button {
  align-self: end;
  min-height: 40px;
}

.field label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--color-border-strong);
  border-radius: 3px;
  padding: 0 12px;
  background: #fff;
  outline: none;
  font-size: 13px;
}

.field textarea {
  padding: 12px;
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px var(--color-primary-100);
}

.btn {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04);
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary-200);
  outline-offset: 2px;
}

.btn-primary {
  color: #fff;
  background: var(--color-primary-600);
}

.btn-accent {
  color: #fff;
  background: var(--color-accent-500);
}

.btn-outline {
  color: var(--color-primary-700);
  background: #fff;
  border-color: var(--color-primary-300);
}

.btn-ghost {
  color: var(--color-text-secondary);
  background: transparent;
  border-color: transparent;
}

.btn-danger {
  color: #fff;
  background: var(--color-danger);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  filter: saturate(1.05);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-xs);
}

.btn[disabled] {
  opacity: .6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.section {
  padding: 34px 0;
}

.section.compact {
  padding: 24px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head.center {
  display: block;
  text-align: center;
}

.section-head.center p {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  color: var(--color-accent-500);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 5px;
}

.section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.45rem, 3vw, var(--heading-font-size, 1.7rem));
  line-height: 1.2;
  margin: 0;
  font-weight: 800;
}

.section-head p {
  color: var(--color-text-secondary);
  margin: 6px 0 0;
  max-width: 640px;
  font-size: 12px;
}

.benefits {
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.benefit-grid {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
}

.benefit {
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  border-right: 1px solid var(--color-border);
  align-items: center;
  min-height: 106px;
}

.benefit:last-child {
  border-right: 0;
}

.benefit-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary-600);
  color: #fff;
  font-size: 20px;
  overflow: hidden;
}

.benefit-icon img,
.benefit-icon svg {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.benefit-icon .svg-icon {
  stroke-width: 1.75;
}

.benefit h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 700;
}

.benefit p {
  margin: 0;
  color: var(--color-muted-text, var(--color-text-secondary));
  font-size: 12px;
  line-height: 1.42;
}

.tour-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.tour-card {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.tour-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.11);
  border-color: var(--color-primary-300);
}

.tour-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-surface-muted);
  flex: 0 0 auto;
}

.tour-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .22s ease;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--label-background-color, var(--color-accent-500));
  color: var(--label-color, #fff);
  font-family: var(--label-font-family);
  font-size: var(--label-font-size, 12px);
  font-weight: var(--label-font-weight, 800);
}

.tour-badges {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
}

.tour-media .pill {
  box-shadow: 0 4px 12px rgba(244, 84, 32, .24);
}

.favorite {
  display: none;
}

.tour-body {
  padding: 14px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.tour-title {
  font-family: var(--tour-title-font-family);
  font-size: var(--tour-title-font-size, 14px);
  font-weight: var(--tour-title-font-weight, 750);
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
  color: var(--tour-title-color, #091a3b);
}

.tour-title a {
  color: inherit;
}

.card-price {
  display: grid;
  gap: 1px;
}

.tour-meta {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 9px;
  color: #58657b;
  font-size: 12px;
  padding: 2px 0 4px;
}

.tour-meta .meta-item {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
  min-width: 0;
  line-height: 1.35;
}

.tour-meta .meta-wide {
  grid-column: 1 / -1;
}

.tour-meta .svg-icon {
  margin-top: 1px;
  color: #6b778c;
}

.tour-meta .meta-text {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.tour-meta em {
  color: #667085;
  font-style: normal;
  font-size: 11px;
  line-height: 1.2;
}

.tour-meta strong {
  color: #1f2a44;
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.tour-meta .rating-star .svg-icon {
  color: #f6b51e;
  fill: #f6b51e;
  stroke: #f6b51e;
}

.tour-meta .rating-meta strong {
  color: #1f2a44;
}

.price-row {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  border-top: 1px solid #edf1f6;
}

.price-row .btn {
  width: 100%;
}

.old-price {
  color: var(--color-text-muted);
  text-decoration: line-through;
  font-size: 10px;
}

.price {
  color: var(--color-accent-600);
  font-weight: 800;
  font-size: 17px;
}

.promo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.promo-banner {
  min-height: 140px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  color: #fff;
  padding: 20px;
  display: grid;
  align-content: end;
  background: var(--color-primary-700);
  box-shadow: var(--shadow-sm);
}

.promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .82;
}

.promo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
}

.promo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity .22s ease, background-color .22s ease;
  z-index: 0;
}

.promo-banner>* {
  position: relative;
  z-index: 1;
}

.promo-banner h3 {
  margin: 0 0 4px;
  font-size: 19px;
}

.promo-banner h3,
.promo-banner p {
  color: #fff !important;
}

.destination-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.destination-card {
  position: relative;
  min-height: 210px;
  border-radius: 2px;
  overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.destination-card.small {
  min-height: 108px;
}

.destination-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.destination-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72));
}

.destination-card .content {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1;
}

.destination-card h3 {
  margin: 0;
  font-size: 14px;
}

.destination-card p {
  margin: 3px 0 0;
  font-size: 11px;
}

.destination-card h3,
.destination-card p {
  color: #fff !important;
}

.managed-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--gallery-columns, 4), minmax(0, 1fr));
  gap: 16px;
}

.managed-gallery-card {
  position: relative;
  min-height: 210px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  box-shadow: var(--shadow-sm);
  isolation: isolate;
  transition: transform .22s ease, box-shadow .22s ease;
}

.managed-gallery-image {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100%;
  height: 100%;
  min-height: 210px;
  display: block;
  cursor: zoom-in;
}

.managed-gallery-image img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform .28s ease, opacity .22s ease;
}

.managed-gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .72));
  pointer-events: none;
  z-index: 1;
}

.managed-gallery-content {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  gap: 5px;
  color: #fff;
  pointer-events: none;
}

.managed-gallery-content h3 {
  color: #fff !important;
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.managed-gallery-content p {
  color: rgba(255, 255, 255, .9);
  margin: 0;
  font-size: 12px;
}

.managed-gallery-content a {
  pointer-events: auto;
  width: max-content;
  margin-top: 4px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, .75);
}

.managed-gallery-grid.hover-zoom .managed-gallery-card:hover img {
  transform: scale(1.07);
}

.managed-gallery-grid.hover-lift .managed-gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.managed-gallery-grid.hover-fade .managed-gallery-card:hover img {
  opacity: .68;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.blog-home-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.blog-page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.post-card {
  background: #fff;
  border: 1px solid #dfe6ef;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary-300);
  box-shadow: 0 10px 24px rgba(15, 23, 42, .11);
}

.post-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .22s ease;
}

.post-card:hover img {
  transform: scale(1.035);
}

.post-card.featured {
  grid-row: auto;
}

.post-card .content {
  padding: 13px 14px 15px;
  display: grid;
  gap: 7px;
  flex: 1;
}

.post-card h3 {
  margin: 0;
  font-size: 14px;
  line-height: 1.38;
  min-height: 39px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card p {
  font-size: 12px;
}

.post-card p {
  margin: 0;
  color: var(--color-muted-text, var(--color-text-secondary));
}

.post-card .content>p:last-child {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.footer-newsletter {
  background: #252a31;
  color: #fff;
  padding: 18px 0;
}

.newsletter-form {
  display: grid;
  grid-template-columns: 1fr 280px auto;
  gap: 12px;
  align-items: center;
}

.newsletter-form input {
  height: 46px;
  border-radius: var(--radius-sm);
  border: 0;
  padding: 0 14px;
}

.footer {
  background: #1f2329;
  color: #d7dbe3;
  padding: 28px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 24px;
}

.footer h4 {
  color: #fff;
  margin: 0 0 12px;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer p,
.footer li {
  font-size: 12px;
  color: #c1c7d0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  margin-top: 28px;
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.floating-call {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--color-primary-600);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  z-index: 30;
}

.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, .5);
  background: rgba(0, 0, 0, .65);
  color: #fff;
  z-index: 30;
}

.mobile-footer-menu {
  display: none;
}

.mobile-booking-modal {
  width: min(100% - 24px, 560px);
  padding: 18px;
}

.mobile-booking-modal h2 {
  margin-top: 0;
}

.mobile-booking-picker {
  display: grid;
  gap: 14px;
}

.mobile-booking-picker .booking-form {
  box-shadow: none;
  border-radius: var(--radius-md);
  padding: 16px;
}

.page-hero {
  background: linear-gradient(135deg, var(--color-primary-800), var(--color-primary-500));
  color: #fff;
  padding: 58px 0;
}

.page-hero h1,
.page-hero h2,
.page-hero p,
.page-hero .eyebrow {
  color: #fff !important;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.layout .tour-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.filter-panel,
.detail-panel,
.cms-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--admin-box-radius, var(--radius-lg));
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.filter-panel {
  position: sticky;
  top: 140px;
  display: grid;
  gap: 14px;
}

.tour-detail-page {
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
}

.detail-heading {
  margin-bottom: 18px;
}

.detail-heading .breadcrumb {
  margin: 0 0 8px;
  color: #5d6678;
  font-size: 13px;
}

.detail-heading h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.22;
  color: #071937;
  max-width: 860px;
}

.detail-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #34415a;
}

.detail-meta .rating-star .svg-icon {
  color: #f6b51e;
  fill: #f6b51e;
  stroke: #f6b51e;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

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

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.gallery-button:first-child {
  grid-row: span 2;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
  aspect-ratio: 16/10;
  transition: transform .22s ease;
}

.gallery-button:first-child img {
  aspect-ratio: 16 / 11;
}

.gallery-button {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: zoom-in;
}

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

.detail-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.detail-facts div {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 3px;
  padding: 12px;
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 8px;
  row-gap: 2px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .035);
}

.detail-facts span {
  grid-row: span 2;
  color: var(--color-primary-600);
}

.detail-facts .svg-icon {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.detail-facts small {
  color: var(--color-text-secondary);
  font-size: 11px;
}

.detail-facts strong {
  color: #0f2346;
  font-size: 12px;
  line-height: 1.3;
}

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

.video-grid iframe,
.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-md);
  background: #020617;
}

.booking-sidebar {
  position: sticky;
  top: 112px;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .09);
  border-top: 3px solid var(--color-accent-500);
}

.booking-sidebar h2 {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.35;
}

.booking-price {
  background: var(--color-accent-50);
  border: 1px solid var(--color-accent-100);
  border-radius: 3px;
  padding: 12px;
  margin-bottom: 14px;
}

.booking-price span {
  color: var(--color-text-secondary);
  font-weight: 700;
}

.booking-price .price {
  font-size: 28px;
  line-height: 1.1;
}

.booking-info-list {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.booking-info-list p {
  margin: 0;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 7px;
  color: var(--color-text-secondary);
}

.booking-info-list strong {
  grid-column: 2;
  color: #172033;
}

.booking-main-cta,
.booking-sub-cta {
  width: 100%;
}

.booking-sub-cta {
  margin-top: 10px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  padding-bottom: 16px;
  border-bottom: 1px solid #e7edf5;
}

.tab {
  padding: 9px 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e5f4;
  font-weight: 700;
  color: #42526b;
  transition: .18s ease;
}

.tab:hover {
  color: var(--color-primary-600);
  border-color: var(--color-primary-300);
  background: var(--color-primary-50);
}

.content-section {
  background: #fff;
  border-radius: 4px;
  padding: 22px 24px;
  border: 1px solid #e2e8f0;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, .035);
}

.content-section[id],
.custom-section[id] {
  scroll-margin-top: 112px;
}

.content-section h2 {
  margin-top: 0;
  margin-bottom: 12px;
  color: #071937;
}

.content-section p {
  color: #3f4a5f;
}

.content-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #3f4a5f;
}

.content-section li+li {
  margin-top: 6px;
}

.related-tour-section {
  background: #fff;
  padding-top: 32px;
}

.related-tour-section .site-container {
  width: min(100% - 64px, 1188px);
}

.related-tour-section .tour-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  border-left: 3px solid var(--color-primary-300);
  padding: 4px 0 4px 16px;
}

.timeline-item h3 {
  margin: 0 0 6px;
  font-size: 15px;
  color: #0f2346;
}

.timeline-item p {
  margin: 0 0 6px;
}

.timeline-item small {
  color: var(--color-text-secondary);
}

.booking-hero {
  padding: 44px 0;
}

.detail-booking-section {
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.booking-form {
  padding: 24px;
}

.booking-form-inline {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.booking-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.booking-steps span {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.booking-steps .active {
  background: var(--color-primary-600);
  color: #fff;
}

.booking-step-panel h2 {
  margin-top: 0;
  font-size: 22px;
}

.booking-next {
  margin-top: 14px;
  min-width: 180px;
}

.booking-total-box {
  margin-top: 14px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.booking-total-box p {
  margin: 0;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.booking-total-box p:last-child {
  border-bottom: 0;
}

.booking-total-box strong {
  color: #172033;
}

.booking-total-box .total {
  background: var(--color-accent-50);
  font-size: 15px;
  font-weight: 800;
}

.booking-total-box .total strong {
  color: var(--color-accent-600);
  font-size: 18px;
}

.terms-box {
  display: block;
  margin: 16px 0;
  padding: 12px;
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  border-radius: 3px;
  color: #334155;
}

.booking-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.booking-summary {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 112px;
  display: grid;
  gap: 12px;
}

.booking-summary img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 3px;
}

.booking-summary h3 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.booking-summary p {
  margin: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--color-text-secondary);
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
}

.booking-summary strong {
  color: #172033;
  text-align: right;
}

.booking-success {
  text-align: center;
  padding: 48px 18px;
  display: grid;
  place-items: center;
  gap: 10px;
}

.success-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-success);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 32px;
  font-weight: 900;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.cms-group-title {
  padding: 14px 16px;
  background: #f8fbff;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-top: 8px;
}

.cms-group-title h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.cms-group-title p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  background: #eef3f8;
}

.admin-sidebar {
  background: #162333;
  color: #dce7f5;
  padding: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.admin-sidebar .logo {
  color: #fff;
  margin-bottom: 20px;
}

.admin-nav {
  display: grid;
  gap: 3px;
}

.admin-nav button {
  min-height: 38px;
  text-align: left;
  border: 0;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  color: #dce7f5;
  background: transparent;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.admin-nav button.active,
.admin-nav button:hover {
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

.admin-nav button .svg-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.admin-nav-header {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(220, 231, 245, 0.4);
  padding: 14px 12px 4px;
  font-weight: 700;
  user-select: none;
}

.admin-nav-sub {
  padding-left: 28px !important;
  font-weight: 500 !important;
  color: #b4c9e4 !important;
  font-size: 13px !important;
}

.admin-nav-sub.active,
.admin-nav-sub:hover {
  color: #fff !important;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  min-height: 64px;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-content {
  padding: 24px;
}

.wp-screen {
  display: grid;
  gap: 14px;
}

.wp-page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.wp-page-title h1 {
  margin: 0;
  font-size: 24px;
}

.wp-status-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
}

.wp-status-tabs button {
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  padding: 8px 10px;
  font-weight: 700;
}

.wp-status-tabs button.active,
.wp-status-tabs button:hover {
  color: var(--color-primary-700);
  box-shadow: inset 0 -2px 0 var(--color-primary-600);
}

.wp-status-tabs span {
  color: var(--color-text-muted);
  font-weight: 600;
}

.wp-list-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.wp-bulk,
.wp-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wp-list-controls select,
.wp-list-controls input {
  min-height: 36px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 10px;
}

.wp-list-table tr:hover td {
  background: #f8fbff;
}

.check-column {
  width: 42px;
}

.row-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  opacity: .72;
  flex-wrap: wrap;
}

.wp-list-table tr:hover .row-actions {
  opacity: 1;
}

.link-button,
.row-actions a {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--color-primary-700);
  font-weight: 700;
  cursor: pointer;
  font-size: 12px;
}

.link-button.danger {
  color: var(--color-danger);
}

.wp-pagination {
  display: flex;
  justify-content: space-between;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.wp-thumb {
  width: 58px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  border: 1px solid var(--color-border);
  margin-right: 10px;
  display: inline-block;
  vertical-align: middle;
}

.wp-edit-modal {
  width: min(96vw, 1120px);
}

.wp-edit-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
  margin-bottom: 18px;
}

.wp-edit-heading h2 {
  margin: 0;
}

.wp-edit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  align-items: start;
}

.wp-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.wp-side {
  display: grid;
  gap: 14px;
}

.meta-box {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-xs);
}

.meta-box h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.meta-box .description,
.description {
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.publish-box {
  border-color: var(--color-primary-200);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-xs);
}

.stat-card strong {
  display: block;
  font-size: 30px;
  color: var(--color-primary-700);
}

.toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}

.data-table th {
  background: var(--color-surface-muted);
  color: var(--color-text-secondary);
  font-size: 13px;
}

.status {
  display: inline-flex;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 800;
  background: var(--color-primary-100);
  color: var(--color-primary-800);
}

.status.new {
  background: var(--color-accent-100);
  color: var(--color-accent-600);
}

.status-select {
  min-width: 140px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--color-text-primary);
  font-weight: 700;
  padding: 9px 12px;
}

.booking-detail-modal {
  width: min(100% - 32px, 760px);
}

.compact-table th {
  width: 220px;
  color: var(--color-text-secondary);
  font-weight: 800;
}

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

.builder-item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow-xs);
}

.drag-handle {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  display: grid;
  place-items: center;
  color: var(--color-text-muted);
}

.builder-item p {
  margin: 4px 0;
  color: var(--color-text-secondary);
}

.builder-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.media-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}

.media-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--color-surface-muted);
  border-radius: 0;
}

.media-card .content {
  padding: 14px;
  display: grid;
  gap: 8px;
}

.menu-editor {
  display: grid;
  gap: 14px;
  margin: 16px 0;
}

.menu-item-form {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--color-background-soft);
}

.settings-form h2 {
  margin-top: 28px;
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.theme-grid .full {
  grid-column: 1 / -1;
}

.theme-text-editor {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: var(--color-background-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.theme-text-row {
  display: grid;
  grid-template-columns: 80px minmax(220px, 1fr) 96px 110px 64px 64px;
  gap: 8px;
  align-items: center;
}

.theme-text-row input,
.theme-text-row select {
  min-height: 36px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0 8px;
}

.theme-text-row select {
  min-width: 0;
}

.admin-benefit-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--color-primary-600);
  color: #fff;
  overflow: hidden;
}

.admin-benefit-icon img,
.admin-benefit-icon svg {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.floating-call .svg-icon,
.back-top .svg-icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.75;
}

.rich-editor {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: #fff;
  overflow: hidden;
}

.tinymce-editor {
  min-height: 320px;
}

.rich-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 8px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.rich-toolbar button {
  min-height: 34px;
  border: 1px solid var(--color-border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 0 10px;
  font-weight: 800;
}

.rich-surface {
  min-height: 220px;
  padding: 14px;
  outline: none;
  line-height: 1.7;
}

.rich-surface:focus {
  box-shadow: inset 0 0 0 3px var(--color-primary-100);
}

.rich-surface blockquote,
.content-section blockquote {
  margin: 14px 0;
  padding: 12px 16px;
  border-left: 4px solid var(--color-primary-500);
  background: var(--color-primary-50);
  color: #26364f;
}

.rich-surface img,
.content-section img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 10px 0;
}

.rich-surface hr,
.content-section hr {
  border: 0;
  border-top: 1px solid var(--color-border);
  margin: 18px 0;
}

.rich-surface table,
.content-section table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
}

.rich-surface th,
.rich-surface td,
.content-section th,
.content-section td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  background: var(--color-background-soft);
  border-radius: var(--radius-md);
}

.code-editor {
  min-height: 220px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.55;
  color: #dbeafe;
  background: #101827;
  border-color: #253349;
  tab-size: 2;
}

.preload-box {
  min-width: 260px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  display: grid;
  place-items: center;
  gap: 14px;
  box-shadow: var(--shadow-lg);
}

.spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--color-primary-100);
  border-top-color: var(--color-primary-600);
  animation: spin .8s linear infinite;
}

.image-lightbox {
  width: min(96vw, 1120px);
  max-height: 92vh;
  background: #0f172a;
  border-radius: var(--radius-xl);
  padding: 14px;
  position: relative;
  box-shadow: var(--shadow-lg);
  color: #fff;
  display: grid;
  gap: 10px;
}

.image-lightbox img {
  max-height: 78vh;
  width: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  background: #020617;
}

.image-lightbox p {
  margin: 0;
  color: #dbeafe;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .54);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal {
  width: min(100%, 760px);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.lang-tabs-nav {
  position: sticky;
  top: -22px;
  background: #fff;
  z-index: 100;
  padding: 12px 0;
  margin-top: -22px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  gap: 8px;
}

.lang-tabs-nav .tab-btn {
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  transition: all 0.2s ease;
}

.lang-tabs-nav .tab-btn:hover {
  background: var(--color-background-soft);
}

.lang-tabs-nav .tab-btn.active {
  background: var(--color-primary-50);
  color: var(--color-primary-600);
}

/* Visual Image Picker & Editor styles */
.image-input-wrapper {
  display: flex;
  gap: 10px;
  align-items: center;
}

.image-input-wrapper input {
  flex: 1;
}

.gallery-grid-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px;
  background: var(--color-background-soft);
}

.gallery-item-editor {
  position: relative;
  width: 80px;
  height: 80px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.gallery-item-editor img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item-editor .btn-remove-img {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 11px;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
}

/* Interactive List Editors */
.visual-editor-block {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-background-soft);
  padding: 16px;
  margin-top: 8px;
}

.visual-editor-list {
  display: grid;
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

.visual-editor-row {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.visual-editor-row .drag-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 16px;
  user-select: none;
}

.visual-editor-row input,
.visual-editor-row select,
.visual-editor-row textarea {
  margin: 0 !important;
}

/* Specific Grid Alignments */
.schedule-grid-row {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 0.8fr auto;
  gap: 8px;
  width: 100%;
  align-items: center;
}

.itinerary-card-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* Visual Media Picker overlay */
.media-select-card {
  position: relative;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
  background: var(--color-border);
  transition: all 0.2s ease;
}

.media-select-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.media-select-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-select-card .checkmark-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(14, 165, 233, 0.5);
  color: white;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
}

.toast-zone {
  position: fixed;
  right: 16px;
  top: 16px;
  z-index: 100;
  display: grid;
  gap: 10px;
}

.toast {
  background: #111827;
  color: #fff;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  max-width: 360px;
}

.empty {
  text-align: center;
  padding: 42px;
  color: var(--color-text-secondary);
  background: #fff;
  border-radius: var(--radius-lg);
}

.skeleton {
  min-height: 160px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, #edf2f7, #f8fafc, #edf2f7);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
  to {
    background-position-x: -200%;
  }
}

@media (max-width: 1199px) {
  .tour-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .layout .tour-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .related-tour-section .tour-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .media-grid,
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 899px) {
  body {
    padding-bottom: calc(86px + env(safe-area-inset-bottom));
    font-size: var(--font-size-mobile, 13px);
  }

  h1 {
    font-size: var(--h1-font-size-mobile, var(--h1-font-size, 38px));
  }

  h2 {
    font-size: var(--h2-font-size-mobile, var(--h2-font-size, 27px));
  }

  h3 {
    font-size: var(--h3-font-size-mobile, var(--h3-font-size, 18px));
  }

  h4 {
    font-size: var(--h4-font-size-mobile, var(--h4-font-size, 16px));
  }

  h5 {
    font-size: var(--h5-font-size-mobile, var(--h5-font-size, 14px));
  }

  .utility-bar,
  .search-mini,
  .nav {
    display: none;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 11;
  }

  .header-actions .icon-action:not(.lang-switch-btn) {
    display: none;
  }

  .main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: relative;
    padding-inline: 16px;
    width: 100%;
  }

  .logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    margin: 0 !important;
    z-index: 10;
    min-width: 0;
  }

  .logo small {
    display: none;
  }

  .brand-mark {
    font-size: 20px;
  }

  .menu-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--color-primary-50);
    color: var(--color-primary-700);
    z-index: 11;
  }

  .mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 80;
    background: rgba(15, 23, 42, 0);
    backdrop-filter: blur(0px);
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    pointer-events: none;
  }

  .mobile-drawer.active {
    background: rgba(15, 23, 42, .5);
    backdrop-filter: blur(4px);
    pointer-events: auto;
  }

  .mobile-panel {
    width: min(85vw, 320px);
    height: 100%;
    background: #fff;
    padding: 24px 20px;
    display: grid;
    align-content: start;
    gap: 16px;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.15);
  }

  .mobile-drawer.active .mobile-panel {
    transform: translateX(0);
  }

  .mobile-panel a {
    padding: 12px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    color: var(--color-text-primary);
  }

  .hero {
    height: var(--hero-height, 520px);
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

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

  .benefit {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .tour-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .layout .tour-grid,
  .related-tour-section .tour-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-grid,
  .blog-grid,
  .layout,
  .detail-grid,
  .gallery,
  .booking-layout,
  .footer-grid,
  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .gallery-button:first-child {
    grid-row: auto;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tour-detail-main {
    padding: 14px;
  }

  .detail-heading h1 {
    font-size: 22px;
  }

  .detail-heading .breadcrumb {
    font-size: 12px;
    line-height: 1.45;
  }

  .booking-sidebar {
    margin-top: 4px;
  }

  .destination-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .managed-gallery-grid {
    display: flex;
    grid-template-columns: none !important;
    gap: 12px;
    margin-inline: -14px;
    padding: 0 14px 10px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .managed-gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .managed-gallery-card {
    flex: 0 0 min(82vw, 340px);
    min-height: 235px;
    scroll-snap-align: center;
  }

  .managed-gallery-image,
  .managed-gallery-image img {
    min-height: 235px;
  }

  .filter-panel,
  .booking-sidebar,
  .booking-summary {
    position: static;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 280px;
    transform: translateX(-105%);
    transition: .24s ease;
    z-index: 70;
  }

  .admin-shell.nav-open .admin-sidebar {
    transform: translateX(0);
  }

  .admin-content {
    padding: 16px;
  }

  .wp-edit-layout {
    grid-template-columns: 1fr;
  }

  .wp-list-controls {
    align-items: stretch;
  }

  .wp-bulk,
  .wp-filters {
    width: 100%;
  }

  .wp-list-controls input,
  .wp-list-controls select {
    flex: 1;
    min-width: 160px;
  }

  .data-table,
  .data-table thead,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
  }

  .data-table thead {
    display: none;
  }

  .data-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .data-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
  }

  .data-table td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--color-text-secondary);
  }

  .mobile-footer-menu {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 75;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    min-height: 72px;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -14px 34px rgba(15, 23, 42, .14);
    backdrop-filter: blur(14px);
  }

  .mobile-footer-menu a,
  .mobile-footer-menu button {
    min-width: 0;
    min-height: 54px;
    border: 0;
    background: transparent;
    color: #172033;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 1px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.05;
    padding: 4px 2px;
  }

  .mobile-footer-menu span {
    display: block;
    overflow-wrap: anywhere;
  }

  .mobile-footer-menu .mobile-book-tour {
    width: 72px;
    height: 72px;
    min-height: 72px;
    justify-self: center;
    margin-top: -30px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--color-accent-500), var(--color-primary-600));
    border: 3px solid #fff;
    box-shadow: 0 0 0 3px rgba(22, 129, 204, .18), 0 12px 30px rgba(244, 84, 32, .38), 0 0 24px rgba(22, 129, 204, .34);
    font-size: 12px;
    text-transform: uppercase;
  }
}

@media (max-width: 599px) {
  .site-container {
    width: min(100% - 28px, 1188px);
  }

  .section {
    padding: 34px 0;
  }

  .hero-content {
    padding: 52px 0 30px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .search-panel {
    padding: 10px;
  }

  .benefit {
    grid-template-columns: 46px 1fr;
    padding: 16px;
  }

  .benefit-icon {
    width: 46px;
    height: 46px;
  }

  .tour-body {
    padding: 12px;
  }

  .gallery {
    gap: 8px;
  }

  .booking-form {
    padding: 16px;
  }

  .booking-actions .btn {
    flex: 1;
  }

  .section-head {
    display: block;
  }

  .tour-grid,
  .layout .tour-grid,
  .related-tour-section .tour-grid,
  .destination-grid,
  .form-grid,
  .booking-steps,
  .detail-facts {
    grid-template-columns: 1fr;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .managed-gallery-grid {
    grid-template-columns: none !important;
  }

  .blog-grid,
  .blog-home-grid,
  .blog-page-grid {
    grid-template-columns: 1fr;
  }

  .theme-text-row {
    grid-template-columns: 1fr 1fr;
  }

  .tour-meta {
    grid-template-columns: 1fr;
  }

  .tour-detail-main {
    padding: 12px;
  }

  .content-section {
    padding: 18px 16px;
  }

  .related-tour-section .site-container {
    width: min(100% - 28px, 1080px);
  }

  .video-grid,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .builder-item {
    grid-template-columns: 1fr;
  }

  .media-grid,
  .theme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .builder-actions {
    justify-content: flex-start;
  }

  .price-row {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-bottom {
    display: block;
  }

  .sticky-mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, .12);
    z-index: 50;
  }
}

@media (prefers-reduced-motion: reduce) {

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

/* Hero Slideshow & Video styles */
.hero-slideshow,
.hero-video-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slide-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  width: 100%;
  height: 100%;
}

.hero-slide-item.active {
  opacity: 1;
}

.hero-video-wrapper {
  overflow: hidden;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.85;
}

@media (min-aspect-ratio: 16/9) {
  .hero-video-bg {
    height: 56.25vw;
  }
}

@media (max-aspect-ratio: 16/9) {
  .hero-video-bg {
    width: 177.78vh;
  }
}

.template-editor-container {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  margin-top: 16px;
  align-items: start;
}

.template-preview-card {
  position: sticky;
  top: 24px;
}

@media (max-width: 1024px) {
  .template-editor-container {
    grid-template-columns: 1fr;
  }

  .template-preview-card {
    position: static;
  }
}

.editor-mode-toggle .btn.active {
  background: var(--color-primary-600) !important;
  color: #fff !important;
  border-color: var(--color-primary-600) !important;
}

.tox-tinymce {
  width: 100% !important;
  max-width: 100% !important;
}

.tox-notifications-container,
.tox-notification--warning,
.tox-notification--error,
.tox-notification {
  display: none !important;
}

@media (max-width: 599px) {
  .data-table td {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 4px !important;
    padding: 10px 14px !important;
  }

  .data-table td::before {
    margin-bottom: 2px !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
  }

  .wp-list-controls input,
  .wp-list-controls select {
    min-width: 100% !important;
  }
}