:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --accent: #f97316;
  --accent-dark: #ea580c;
  --danger: #dc2626;
  --success: #16a34a;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 4px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -10px rgba(15, 23, 42, 0.14);
  --max-w: 1200px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body:has(dialog[open]) {
  overflow: hidden;
}

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

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

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

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

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 82px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  color: var(--text);
}

.brand span {
  background: linear-gradient(135deg, #0d9488 0%, #0284c7 48%, #f97316 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary-dark);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
}

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

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

.btn-primary:hover {
  background: var(--primary-dark);
}

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

.btn-accent:hover {
  background: var(--accent-dark);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.875rem;
}

/* Hero */
.hero {
  position: relative;
  padding: 72px 0 64px;
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.78), rgba(13, 148, 136, 0.65)),
    url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  color: #fff;
}

.hero-content {
  max-width: 760px;
}

.hero-eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 600px;
}

.hero-search {
  background: var(--surface);
  color: var(--text);
  padding: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr auto;
  gap: 12px;
  align-items: end;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.field select,
.field input,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background-color: var(--surface);
  color: var(--text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d9488' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}

.field select:hover,
.field input:hover,
.field textarea:hover {
  border-color: #94a3b8;
}

.field select:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.section-header h2 {
  margin: 0 0 6px;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  letter-spacing: -0.015em;
}

.section-header p {
  margin: 0;
  color: var(--text-muted);
}

/* Theme cards */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.theme-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 210px;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

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

.theme-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.15));
  z-index: 1;
}

.theme-card-body {
  position: relative;
  z-index: 2;
}

.theme-card-body h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
}

.theme-card-body span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Package Grid & Cards */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
  gap: 22px;
}

.package-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.package-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-alt);
}

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

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 600;
}

.duration-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 700;
}

.package-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.package-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--primary-dark);
  font-weight: 600;
}

.package-title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
}

.package-cities {
  font-size: 0.86rem;
  color: var(--text-muted);
}

.package-highlights {
  list-style: none;
  padding: 0;
  margin: 4px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.package-highlights li {
  font-size: 0.78rem;
  background: var(--surface-alt);
  color: var(--text-muted);
  padding: 4px 9px;
  border-radius: 6px;
}

.package-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.price-block .price-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.price-block .price-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
}

.price-block .price-old {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 4px;
}

.card-actions {
  display: flex;
  gap: 8px;
}

/* Listing Page Layout */
.page-banner {
  background: linear-gradient(135deg, #0f172a, #134e4a);
  color: #fff;
  padding: 36px 0;
}

.page-banner h1 {
  margin: 0 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.page-banner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.listing-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  padding: 32px 0 64px;
  align-items: start;
}

.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.filter-group h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}

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

.mobile-filter-btn {
  display: none;
}

/* Package Detail Page */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  padding: 32px 0 64px;
  align-items: start;
}

.detail-hero-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 22px;
}

.detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
}

.detail-card h2 {
  margin: 0 0 14px;
  font-size: 1.2rem;
}

.itinerary-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 12px 14px;
}

.itinerary-item summary {
  font-weight: 600;
  cursor: pointer;
}

.itinerary-item p {
  margin: 10px 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.two-col-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.sticky-booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  position: sticky;
  top: 88px;
  box-shadow: var(--shadow-md);
}

/* Trust / Features */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.trust-card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.trust-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* Native Dialog Modal */
dialog.enquiry-dialog {
  border: none;
  border-radius: var(--radius);
  padding: 0;
  width: min(520px, calc(100vw - 24px));
  max-height: 90dvh;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  color: var(--text);
}

dialog.enquiry-dialog::backdrop {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(3px);
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.dialog-header h2 {
  margin: 0;
  font-size: 1.15rem;
}

.dialog-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
}

.dialog-body {
  padding: 20px 22px 24px;
  overflow-y: auto;
}

.enquiry-form {
  display: grid;
  gap: 14px;
}

.enquiry-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.enquiry-form input:user-invalid,
.enquiry-form select:user-invalid,
.enquiry-form textarea:user-invalid {
  border-color: var(--danger);
}

.enquiry-form input:user-valid,
.enquiry-form select:user-valid {
  border-color: var(--success);
}

.form-status {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.form-status.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 48px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 32px;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 1rem;
}

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

.footer-grid a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  font-size: 0.86rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive: Tablet & Mobile */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 82px;
    left: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 12px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    max-height: calc(100dvh - 96px);
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 11px 14px;
    border-radius: 10px;
    font-weight: 600;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: var(--primary-light);
    color: var(--primary-dark);
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

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

  .listing-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .sticky-booking-card {
    position: static;
  }

  .filter-panel {
    position: static;
    display: none;
  }

  .filter-panel.open {
    display: flex;
  }

  .mobile-filter-btn {
    display: inline-flex;
  }

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

@media (max-width: 680px) {
  .hero {
    padding: 48px 0 44px;
  }

  .section {
    padding: 40px 0;
  }

  .hero-search,
  .enquiry-form-row,
  .two-col-list,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 44px;
  }

  .btn-sm {
    min-height: 38px;
  }
}

@media (max-width: 420px) {
  .brand-logo {
    width: 52px;
    height: 52px;
  }

  .brand span {
    font-size: 1.15rem;
  }

  .package-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .card-actions {
    width: 100%;
  }

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