/* ==========================================================================
   BookingHotelsMykonos.com — Jakarta Luxury Hotel Booking Platform
   Modern CSS Architecture (View Transitions, :user-invalid, text-wrap, Dialogs)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root) {
    animation: 0.28s cubic-bezier(0.4, 0, 1, 1) both fade-out-page;
  }

  ::view-transition-new(root) {
    animation: 0.36s cubic-bezier(0, 0, 0.2, 1) both fade-in-page;
  }
}

@keyframes fade-out-page {
  to {
    opacity: 0;
    transform: translateY(-6px);
  }
}

@keyframes fade-in-page {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

:root {
  color-scheme: light dark;

  /* Brand Palette: Mykonos Aegean Blue + Sunlit Gold + Jakarta Alabaster */
  --aegean-950: #061527;
  --aegean-900: #0b2545;
  --aegean-800: #134074;
  --aegean-700: #1d5b9e;
  --aegean-600: #1d63b8;
  --aegean-500: #2563eb;
  --aegean-100: #dbeafe;
  --aegean-50: #eff6ff;

  --gold-700: #926c0c;
  --gold-600: #b48618;
  --gold-500: #d4af37;
  --gold-400: #f3c65f;
  --gold-100: #fef3c7;
  --gold-50: #fffbeb;

  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-subtle: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.88);

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;

  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  --success-color: #15803d;
  --success-bg: #dcfce7;
  --error-color: #d93025;
  --error-bg: #fce8e6;

  --shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.05);
  --shadow-md: 0 10px 30px -5px rgba(11, 37, 69, 0.09), 0 4px 12px -2px rgba(11, 37, 69, 0.04);
  --shadow-lg: 0 20px 45px -10px rgba(11, 37, 69, 0.16), 0 8px 20px -4px rgba(11, 37, 69, 0.06);
  --shadow-gold: 0 8px 24px -4px rgba(212, 175, 55, 0.32);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  --container-max: 1280px;
  --font-serif: Georgia, 'Times New Roman', Times, serif;
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html[data-theme="dark"] {
  --bg-body: #071120;
  --bg-surface: #0f1e34;
  --bg-subtle: #162944;
  --bg-glass: rgba(15, 30, 52, 0.88);

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;

  --border-color: #1e3a5f;
  --border-strong: #2d4f7c;

  --aegean-50: #132847;
  --aegean-100: #1e3a66;
  --gold-50: #29210c;
  --gold-100: #3d3010;
  --error-bg: #3b1412;
  --success-bg: #0f2e1c;
}

/* Base Reset & Typography */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

/* Modern Web Guidance: improve-text-layout-and-legibility */
h1, h2, h3, h4, h5, h6, .balanced-heading {
  font-family: var(--font-serif);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text-main);
  text-wrap: balance;
}

p, blockquote, li, .pretty-text {
  text-wrap: pretty;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 2.25rem);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Top Announcement Bar */
.top-bar {
  background: linear-gradient(90deg, var(--aegean-950) 0%, var(--aegean-800) 50%, var(--aegean-950) 100%);
  color: #f8fafc;
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.top-bar-promo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #061527;
  font-weight: 700;
  font-size: 0.72rem;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.top-bar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-weight: 500;
}

.top-bar-links span,
.top-bar-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  opacity: 0.9;
}

.top-bar-links a:hover {
  opacity: 1;
  color: var(--gold-400);
}

/* Sticky Header & Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 1rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-logo img {
  height: 50px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-link {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.93rem;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--aegean-600);
  background: var(--aegean-50);
}

.nav-link.active {
  color: var(--aegean-600);
  background: var(--aegean-50);
  font-weight: 700;
}

html[data-theme="dark"] .nav-link.active,
html[data-theme="dark"] .nav-link:hover {
  color: var(--gold-400);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  padding: 0 0.85rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  border-color: var(--aegean-600);
  color: var(--aegean-600);
  transform: translateY(-1px);
}

.wishlist-count {
  background: var(--gold-500);
  color: #061527;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.08rem 0.42rem;
  border-radius: var(--radius-pill);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.22s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--aegean-800) 0%, var(--aegean-600) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(19, 64, 116, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--aegean-900) 0%, var(--aegean-700) 100%);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(19, 64, 116, 0.36);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400) 0%, var(--gold-500) 55%, var(--gold-600) 100%);
  color: #061527;
  font-weight: 700;
  box-shadow: var(--shadow-gold);
}

.btn-gold:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn-outline {
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--aegean-600);
  color: var(--aegean-600);
  background: var(--aegean-50);
}

.btn-sm {
  padding: 0.48rem 0.95rem;
  font-size: 0.84rem;
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1rem;
}

.mobile-menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 4.5rem 0 6rem;
  overflow: hidden;
  background-color: var(--aegean-950);
  color: #ffffff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.62) contrast(1.06);
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 21, 39, 0.72) 0%,
    rgba(11, 37, 69, 0.52) 45%,
    rgba(6, 21, 39, 0.90) 100%
  );
  z-index: 1;
}

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

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(11, 37, 69, 0.75);
  border: 1px solid rgba(243, 198, 95, 0.5);
  color: var(--gold-400);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(2.15rem, 4.5vw, 3.65rem);
  max-width: 820px;
  margin-bottom: 1.1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero h1 .text-gold {
  color: var(--gold-400);
  font-style: italic;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  color: #e2e8f0;
  max-width: 680px;
  margin-bottom: 2.25rem;
}

/* Search Box Widget */
.search-panel {
  background: var(--bg-surface);
  color: var(--text-main);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(212, 175, 55, 0.35);
}

.search-form-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.1fr auto;
  gap: 0.9rem;
  align-items: end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.search-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.search-input,
.search-select {
  width: 100%;
  height: 48px;
  padding: 0 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.93rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.search-input:focus,
.search-select:focus {
  outline: none;
  border-color: var(--aegean-600);
  background: var(--bg-surface);
}

.search-quick-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.82rem;
}

.quick-tag-label {
  color: var(--text-muted);
  font-weight: 600;
}

.quick-tag {
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-weight: 600;
  border: 1px solid var(--border-color);
  transition: all 0.18s ease;
}

.quick-tag:hover {
  background: var(--aegean-50);
  color: var(--aegean-600);
  border-color: var(--aegean-600);
}

/* Hero Trust Metrics */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.stat-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.65rem;
  color: var(--gold-400);
}

.stat-item span {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* Section Headers */
.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.section-alt {
  background-color: var(--bg-subtle);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.25rem;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--aegean-600);
  margin-bottom: 0.45rem;
}

html[data-theme="dark"] .section-eyebrow {
  color: var(--gold-400);
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.section-desc {
  color: var(--text-secondary);
  max-width: 620px;
  margin-top: 0.45rem;
}

/* Jakarta District Cards Grid */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.35rem;
}

.district-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: #ffffff;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.district-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.45s ease;
}

.district-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 21, 39, 0.12) 0%, rgba(6, 21, 39, 0.88) 100%);
  z-index: -1;
}

.district-card:hover img {
  transform: scale(1.06);
}

.district-badge {
  align-self: flex-start;
  background: rgba(11, 37, 69, 0.82);
  border: 1px solid rgba(243, 198, 95, 0.55);
  color: var(--gold-400);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  margin-bottom: auto;
}

.district-card h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
}

.district-card p {
  font-size: 0.86rem;
  color: #e2e8f0;
  margin-bottom: 0.65rem;
}

.district-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold-400);
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

/* Hotel Cards */
.hotel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.65rem;
}

.hotel-grid.list-view {
  grid-template-columns: 1fr;
}

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

.hotel-grid.list-view .hotel-card {
  flex-direction: row;
}

.hotel-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.55);
}

.hotel-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--aegean-900);
}

.hotel-grid.list-view .hotel-media {
  width: 340px;
  flex-shrink: 0;
  aspect-ratio: auto;
}

.hotel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.hotel-card:hover .hotel-media img {
  transform: scale(1.05);
}

.hotel-top-badges {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.hotel-tag {
  background: rgba(11, 37, 69, 0.86);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.28rem 0.7rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.hotel-tag.tag-featured {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  color: #061527;
  border: none;
}

.wishlist-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.wishlist-btn.saved {
  background: #fee2e2;
  color: #dc2626;
}

.wishlist-btn:hover {
  transform: scale(1.1);
}

.hotel-body {
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.hotel-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.hotel-stars {
  color: var(--gold-500);
  font-size: 0.86rem;
  letter-spacing: 1px;
}

.hotel-rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
}

.rating-score {
  background: var(--aegean-800);
  color: #ffffff;
  padding: 0.15rem 0.48rem;
  border-radius: 6px;
}

.hotel-title {
  font-size: 1.22rem;
  margin-bottom: 0.3rem;
}

.hotel-title a:hover {
  color: var(--aegean-600);
}

.hotel-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.hotel-desc {
  font-size: 0.89rem;
  color: var(--text-secondary);
  margin-bottom: 0.95rem;
}

.hotel-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.15rem;
}

.amenity-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  color: var(--text-secondary);
}

.hotel-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}

.price-block .price-old {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-block .price-current {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--aegean-700);
  line-height: 1.2;
}

html[data-theme="dark"] .price-block .price-current {
  color: var(--gold-400);
}

.price-block .price-unit {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.hotel-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Promo Deals Banner Grid */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}

.promo-card {
  background: linear-gradient(135deg, var(--aegean-900) 0%, var(--aegean-800) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.65rem;
  border: 1px solid rgba(243, 198, 95, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.promo-card h3 {
  color: #ffffff;
  font-size: 1.28rem;
  margin-top: 0.4rem;
}

.promo-card p {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.promo-code-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(6, 21, 39, 0.65);
  border: 1px dashed var(--gold-400);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
}

.promo-code-box code {
  font-weight: 800;
  color: var(--gold-400);
  letter-spacing: 0.08em;
}

/* Directory Layout (hotels.html) */
.directory-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
  align-items: start;
}

.filter-sidebar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-sm);
}

.filter-group {
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.filter-group:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.filter-group h3 {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.checkbox-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.checkbox-item input[type="checkbox"],
.checkbox-item input[type="radio"] {
  accent-color: var(--aegean-600);
  width: 16px;
  height: 16px;
  margin-right: 0.55rem;
}

.range-slider {
  width: 100%;
  accent-color: var(--aegean-600);
}

.toolbar-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Interactive Jakarta Map Box */
.jakarta-map-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

/* Hotel Detail Page */
.detail-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.detail-main-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 420px;
}

.detail-main-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: 420px;
}

.detail-side-grid .side-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.detail-side-grid .side-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.room-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: grid;
  grid-template-columns: 260px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 1.15rem;
  box-shadow: var(--shadow-sm);
}

.room-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* Booking Layout & Form Validation (:user-invalid per modern-web-guidance) */
.booking-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 2rem;
  align-items: start;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.15rem;
}

.field label {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

/* MANDATORY per validate-input-after-interaction: hints placed ABOVE input */
.hint {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}

.form-control {
  width: 100%;
  padding: 0.72rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--aegean-600);
}

.error-msg {
  display: none;
  color: var(--error-color);
  font-size: 0.84rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

/* Modern Web Guidance: validate-input-after-interaction (:user-invalid + fallback) */
input:user-invalid,
textarea:user-invalid,
select:user-invalid,
input.user-invalid-fallback,
textarea.user-invalid-fallback,
select.user-invalid-fallback {
  border-color: var(--error-color);
  background-color: var(--error-bg);
}

input:user-invalid + .error-msg,
textarea:user-invalid + .error-msg,
select:user-invalid + .error-msg,
input.user-invalid-fallback + .error-msg,
textarea.user-invalid-fallback + .error-msg,
select.user-invalid-fallback + .error-msg {
  display: block;
}

input:user-valid,
textarea:user-valid,
input.user-valid-fallback {
  border-color: var(--success-color);
}

.field:has(input:user-invalid) .hint {
  color: var(--error-color);
  font-weight: 600;
}

/* Modern Web Guidance: light-dismiss-a-dialog */
dialog {
  margin: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 0;
  max-width: 680px;
  width: calc(100% - 2rem);
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-lg);
}

dialog::backdrop {
  background-color: rgba(6, 21, 39, 0.65);
  backdrop-filter: blur(4px);
}

.dialog-inner {
  padding: 1.75rem;
}

.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

/* Footer */
.site-footer {
  margin-top: auto;
  background: var(--aegean-950);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  border-top: 3px solid var(--gold-500);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: 2.25rem;
  padding-bottom: 2.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-col h4 {
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.84rem;
  color: #94a3b8;
}

.payment-badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pay-pill {
  padding: 0.22rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .search-form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .directory-layout,
  .booking-layout,
  .detail-gallery {
    grid-template-columns: 1fr;
  }
  .filter-sidebar {
    position: static;
  }
  .room-card {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: inline-flex;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
  }
  .nav-menu.open {
    display: flex;
  }
  .search-form-grid,
  .form-grid-2,
  .hero-stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hotel-grid.list-view .hotel-card {
    flex-direction: column;
  }
  .hotel-grid.list-view .hotel-media {
    width: 100%;
  }
}
