:root {
  --ink: #17222b;
  --muted: #63717b;
  --paper: #f7f8f6;
  --white: #ffffff;
  --teal: #0d766e;
  --teal-dark: #075b56;
  --amber: #f1b63d;
  --coral: #d8664c;
  --line: #dce1df;
  --shadow: 0 16px 45px rgba(20, 34, 41, 0.12);
  --radius: 6px;
  --container: 1180px;
}

* { box-sizing: border-box; }
*[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--white);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 max(24px, calc((100vw - var(--container)) / 2));
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.22);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  color: var(--ink);
  background: rgba(255,255,255,.97);
  border-bottom-color: transparent;
  box-shadow: 0 4px 24px rgba(22,35,42,.09);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: Manrope, sans-serif;
  font-size: 20px;
  font-weight: 800;
}
.brand img {
  width: 50px;
  height: 38px;
  object-fit: contain;
  background: var(--white);
  border-radius: 4px;
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav > a:not(.button) {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-nav > a:not(.button):hover { color: var(--amber); }
.icon-button.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  background: var(--teal);
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}
.button:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.button-small { min-height: 40px; padding-inline: 16px; }
.site-header:not(.scrolled) .button-small { color: var(--ink); background: var(--white); border-color: var(--white); }
.button-accent { color: var(--ink); background: var(--amber); border-color: var(--amber); }
.button-accent:hover { background: #ffd16d; border-color: #ffd16d; }
.button svg { width: 18px; height: 18px; }

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.icon-button:hover { color: var(--white); background: var(--teal); border-color: var(--teal); }
.icon-button svg { width: 19px; height: 19px; }

.hero {
  position: relative;
  min-height: min(720px, 80vh);
  display: grid;
  align-content: center;
  padding: 116px max(24px, calc((100vw - var(--container)) / 2)) 150px;
  color: var(--white);
  background: url("/data/frontFiles/tours/tours_image/Gili-Nanggu-Bali-Indonesia.jpg") center 58% / cover no-repeat;
}
.hero-shade { position: absolute; inset: 0; background: rgba(8, 25, 29, .56); }
.hero-content { position: relative; z-index: 1; width: min(720px, 100%); }
.eyebrow {
  margin: 0 0 14px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}
.eyebrow.dark { color: var(--teal); }
h1, h2, h3 { margin-top: 0; font-family: Manrope, sans-serif; line-height: 1.08; letter-spacing: 0; }
h1 { margin-bottom: 18px; font-size: clamp(52px, 8vw, 104px); font-weight: 800; }
h2 { margin-bottom: 0; font-size: clamp(34px, 4vw, 54px); }
h3 { font-size: 22px; }
.hero-copy { max-width: 620px; margin: 0 0 30px; font-size: clamp(17px, 2vw, 21px); color: rgba(255,255,255,.88); }

.search-bar {
  position: absolute;
  z-index: 2;
  right: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 0;
  left: max(24px, calc((100vw - var(--container)) / 2));
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr .85fr auto;
  gap: 0;
  padding: 14px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(50%);
}
.field { min-width: 0; padding: 4px 18px; border-right: 1px solid var(--line); }
.field label { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.field-control { display: flex; align-items: center; gap: 8px; min-width: 0; }
.field-control svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--coral); }
.field select, .field input {
  width: 100%;
  min-width: 0;
  height: 32px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-weight: 600;
}
.field select:focus, .field input:focus { box-shadow: 0 2px 0 var(--teal); }
.search-button { align-self: stretch; min-width: 128px; }

.section { padding: 118px max(24px, calc((100vw - var(--container)) / 2)); }
.section-heading { display: grid; grid-template-columns: 1.25fr .75fr; gap: 60px; align-items: end; margin-bottom: 42px; }
.section-heading > p { max-width: 460px; margin: 0 0 4px; color: var(--muted); }
.section-heading-actions { display: grid; gap: 14px; align-content: end; }
.section-heading-actions p { max-width: 460px; margin: 0; color: var(--muted); }
.section-heading-actions a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: var(--teal-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
}
.section-heading-actions a:hover { color: var(--coral); }
.section-heading-actions svg { width: 17px; }
.section-heading-light .section-heading-actions p { color: rgba(255,255,255,.72); }
.section-heading-light .section-heading-actions a { color: var(--amber); }
.results-message { min-height: 24px; margin-bottom: 12px; color: var(--teal-dark); font-weight: 700; }
.results-message-light { color: var(--amber); }
.hotel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hotel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.hotel-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(23,34,43,.11); }
.hotel-card:focus-visible,
.tour-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.hotel-card[hidden] { display: none; }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.hotel-card:hover .card-media img { transform: scale(1.035); }
.card-tag { position: absolute; top: 12px; left: 12px; padding: 6px 9px; color: var(--ink); background: var(--amber); border-radius: 3px; font-size: 11px; font-weight: 800; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: var(--coral); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.card-body h3 { margin-bottom: 10px; font-size: 19px; }
.card-body > p {
  display: -webkit-box;
  min-height: 84px;
  margin: 0 0 20px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.card-footer span { display: grid; }
.card-footer strong { font-size: 14px; }
.card-footer small { color: var(--muted); }
.card-arrow { pointer-events: none; }
.rentals-section { background: var(--white); }
.rentals-section .hotel-card { background: var(--paper); }
.rental-card .card-tag { background: #b9ded6; }

.flights-section { background: #e7eff0; }
.flights-section .eyebrow { color: var(--teal); }
.flights-section .section-heading-light > p { color: var(--muted); }
.flights-section .results-message-light { color: var(--teal-dark); }
.flight-search {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(23, 34, 43, .07);
}
.flight-field { display: grid; gap: 5px; min-width: 0; }
.flight-field span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.flight-field select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  font-weight: 600;
}
.flight-field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 118, 110, .13); }
.flight-search-button { align-self: end; min-height: 46px; }
.flight-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.flight-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
.flight-card:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(23, 34, 43, .12); }
.flight-card:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
.flight-card[hidden] { display: none; }
.flight-card-head {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 16px;
  align-items: center;
  min-height: 116px;
  padding: 20px;
  background: #f9fbfa;
  border-bottom: 1px solid var(--line);
}
.flight-card-head img { width: 72px; height: 56px; object-fit: contain; }
.flight-card-head p { margin: 0 0 5px; color: var(--teal); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.flight-card-head strong { display: block; overflow-wrap: anywhere; font: 700 17px/1.25 Manrope, sans-serif; }
.flight-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.flight-route { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--coral); font-size: 16px; font-weight: 800; }
.flight-route svg { width: 17px; height: 17px; }
.flight-card-body h3 { margin-bottom: 10px; font-size: 20px; }
.flight-card-body > p { min-height: 44px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.flight-card-footer { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.flight-card-footer span:first-child { display: grid; }
.flight-card-footer small { color: var(--muted); }

.tours-section { color: var(--white); background: #17383b; }
.section-heading-light > p { color: rgba(255,255,255,.67); }
.tour-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 280px; gap: 18px; }
.tour-card { position: relative; min-height: 0; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.tour-card-large { grid-column: span 2; grid-row: span 2; }
.tour-card::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(8,18,20,.86)); }
.tour-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tour-card:hover img { transform: scale(1.035); }
.tour-copy { position: absolute; z-index: 1; right: 0; bottom: 0; left: 0; padding: 28px; }
.tour-copy p { margin: 0 0 6px; color: var(--amber); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.tour-copy h3 { margin-bottom: 14px; font-size: clamp(22px, 3vw, 34px); }
.tour-link { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-weight: 700; }
.tour-card:hover .tour-link { color: var(--amber); }
.tour-copy svg { width: 18px; }

.detail-dialog {
  width: min(1040px, calc(100% - 40px));
  max-height: min(760px, calc(100dvh - 40px));
  padding: 0;
  color: var(--ink);
  background: var(--white);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 28px 80px rgba(6, 20, 24, .35);
}
.detail-dialog[open] { display: grid; grid-template-columns: minmax(280px, .9fr) minmax(360px, 1.1fr); }
.detail-dialog::backdrop { background: rgba(8, 25, 29, .74); backdrop-filter: blur(3px); }
.detail-close { position: absolute; z-index: 2; top: 14px; right: 14px; }
.detail-media { min-height: 520px; background: var(--paper); }
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-content { align-self: center; max-height: min(700px, calc(100dvh - 80px)); overflow-y: auto; padding: 54px 48px 48px; }
.detail-content h2 { margin-bottom: 10px; font-size: clamp(30px, 4vw, 46px); overflow-wrap: anywhere; }
.detail-meta { margin: 0 0 24px; color: var(--coral); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.detail-description { margin: 0 0 30px; color: var(--muted); white-space: pre-line; }
.detail-enquiry { width: fit-content; }
.booking-form { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.booking-heading h3 { margin-bottom: 22px; font-size: 23px; }
.booking-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.booking-field { display: grid; gap: 6px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.booking-field input,
.booking-field textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  outline: 0;
  font: 500 15px/1.4 "DM Sans", sans-serif;
  text-transform: none;
}
.booking-field input { min-height: 44px; }
.booking-field textarea { resize: vertical; }
.booking-field input:focus,
.booking-field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13, 118, 110, .13); }
.booking-field-wide { grid-column: 1 / -1; }
.booking-status { min-height: 22px; margin: 14px 0 8px; color: var(--coral); font-size: 14px; font-weight: 700; }
.booking-submit { width: 100%; }
.booking-submit[disabled] { cursor: wait; opacity: .66; transform: none; }
.booking-success { margin-top: 30px; padding: 28px; text-align: center; background: #edf7f4; border: 1px solid #b9ded6; border-radius: var(--radius); }
.booking-success svg { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--teal); }
.booking-success h3 { margin-bottom: 8px; }
.booking-success p { margin: 0; color: var(--muted); }

.promise-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; background: var(--white); }
.promise-intro > p:last-child { max-width: 480px; color: var(--muted); font-size: 18px; }
.promise-list { border-top: 1px solid var(--line); }
.promise-list article { display: grid; grid-template-columns: 42px 1fr; gap: 20px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.promise-list svg { width: 28px; height: 28px; color: var(--coral); }
.promise-list h3 { margin-bottom: 6px; font-size: 19px; }
.promise-list p { margin: 0; color: var(--muted); }

.contact-band {
  display: grid;
  grid-template-columns: 1.1fr .9fr auto;
  gap: 54px;
  align-items: center;
  padding: 62px max(24px, calc((100vw - var(--container)) / 2));
  background: var(--amber);
}
.contact-band h2 { font-size: clamp(30px, 4vw, 48px); }
.contact-band > p { margin: 0; color: #4e4330; }
.contact-band .button { background: var(--ink); border-color: var(--ink); white-space: nowrap; }
.contact-band .button:hover { background: var(--teal-dark); border-color: var(--teal-dark); }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 42px;
  align-items: center;
  padding: 32px max(24px, calc((100vw - var(--container)) / 2));
  color: rgba(255,255,255,.72);
  background: var(--ink);
  font-size: 13px;
}
.site-footer p { margin: 0; }
.brand-footer { color: var(--white); font-size: 17px; }
.brand-footer img { width: 42px; height: 32px; }

@media (max-width: 980px) {
  .site-header { padding-inline: 22px; }
  .icon-button.nav-toggle { display: inline-grid; color: var(--ink); }
  .site-nav {
    position: absolute;
    top: 68px;
    right: 16px;
    left: 16px;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .site-nav.open { display: grid; }
  .site-nav > a:not(.button) { padding: 13px 10px; }
  .site-nav .button { margin-top: 6px; }
  .search-bar { grid-template-columns: repeat(2, 1fr); }
  .field { border-bottom: 1px solid var(--line); }
  .field:nth-child(2), .field:nth-child(4) { border-right: 0; }
  .search-button { min-height: 54px; grid-column: 1 / -1; margin-top: 8px; }
  .hero { min-height: 880px; padding-bottom: 320px; }
  .hotel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-search { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flight-search-button { grid-column: 1 / -1; }
  .flight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tour-card-large { grid-column: span 2; }
  .promise-section { grid-template-columns: 1fr; gap: 48px; }
  .contact-band { grid-template-columns: 1fr 1fr; }
  .contact-band .button { grid-column: 1 / -1; justify-self: start; }
}

@media (max-width: 680px) {
  .site-header { height: 68px; }
  .brand { font-size: 18px; }
  .brand img { width: 44px; height: 33px; }
  .hero { min-height: 760px; align-content: start; padding: 108px 20px 360px; background-position: 58% center; }
  h1 { font-size: 52px; }
  .hero-content .eyebrow { margin-bottom: 10px; }
  .hero-content h1 { margin-bottom: 12px; }
  .hero-copy { margin-bottom: 20px; font-size: 16px; }
  .search-bar { right: 16px; bottom: 16px; left: 16px; grid-template-columns: 1fr; padding: 10px; transform: none; }
  .field { padding: 4px 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .field-guests { border-bottom: 0; }
  .section { padding: 60px 20px 76px; }
  .section-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .hotel-grid { grid-template-columns: 1fr; }
  .flight-search { grid-template-columns: 1fr; padding: 12px; }
  .flight-search-button { grid-column: auto; width: 100%; }
  .flight-grid { grid-template-columns: 1fr; }
  .card-body > p { min-height: 0; }
  .tour-grid { grid-template-columns: 1fr; grid-auto-rows: 320px; }
  .tour-card-large { grid-column: auto; grid-row: auto; }
  .tour-copy { padding: 22px; }
  .detail-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .detail-dialog[open] { display: block; overflow-y: auto; }
  .detail-media { height: 245px; min-height: 0; }
  .detail-content { max-height: none; overflow: visible; padding: 30px 24px 28px; }
  .detail-content h2 { padding-right: 32px; font-size: 30px; }
  .detail-enquiry { width: 100%; }
  .booking-fields { grid-template-columns: 1fr; }
  .booking-field-wide { grid-column: auto; }
  .promise-section { gap: 34px; }
  .contact-band { grid-template-columns: 1fr; gap: 22px; padding: 50px 20px; }
  .contact-band .button { grid-column: auto; width: 100%; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; padding: 30px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
