:root {
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-light: #dbeafe;
  --bg-page: #0f172a;
  --bg-hero: linear-gradient(135deg, #0c4a6e 0%, #0f172a 45%, #1e293b 100%);
  --bg-search: #f8fafc;
  --bg-search-dark: #e2e8f0;
  --card: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-on-dark: #f8fafc;
  --gold: #fbbf24;
  --success: #16a34a;
  --radius: 12px;
  --shadow: 0 10px 40px rgba(15, 23, 42, 0.12);
  --font: "Assistant", "Heebo", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #f1f5f9;
  min-height: 100vh;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(8px);
  color: var(--text-on-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
}

.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), #38bdf8);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}

.header-actions a {
  color: #cbd5e1;
  text-decoration: none;
}

.header-actions a:hover {
  color: #fff;
}

.header-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s, background 0.15s;
}

.header-wa:hover {
  background: #1ebe57;
  transform: scale(1.05);
  text-decoration: none !important;
}

/* Hero */
.hero {
  background: var(--bg-hero);
  color: var(--text-on-dark);
  padding: 48px 20px 80px;
  position: relative;
  overflow: visible;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(56, 189, 248, 0.18), transparent 45%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero p {
  margin: 0 0 28px;
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 620px;
}

/* Search widget */
.search-shell {
  background: var(--bg-search);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 8px 8px 36px;
  position: relative;
  overflow: visible;
  color: var(--text);
}

.search-shell .search-trigger,
.search-shell .dest-input {
  color: var(--text);
}

.search-shell .date-day,
.search-shell .guest-num {
  color: var(--text);
}

.search-shell .date-label,
.search-shell .guest-label,
.search-shell .nights-count {
  color: var(--text-muted);
}

.search-shell .nights-arrow {
  color: var(--brand);
}

.search-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.search-cell {
  width: 100%;
  padding: 4px;
  min-width: 0;
  position: relative;
}

@media (min-width: 640px) {
  .search-cell.dates,
  .search-cell.guests {
    width: 50%;
  }
}

@media (min-width: 1100px) {
  .search-cell.destination,
  .search-cell.dates,
  .search-cell.guests {
    width: 33.333%;
  }
}

.search-trigger {
  width: 100%;
  min-height: 72px;
  border: none;
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
  padding: 0;
  transition: box-shadow 0.15s, background 0.15s;
  overflow: visible;
}

.search-trigger:hover,
.search-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand-light);
  background: #fff;
}

.search-trigger.open {
  box-shadow: 0 0 0 2px var(--brand);
}

/* Destination */
.dest-wrap {
  position: relative;
}

.dest-input {
  width: 100%;
  height: 64px;
  border: 0;
  background: transparent;
  font-size: 1.15rem;
  padding: 12px 48px 12px 48px;
  outline: none;
}

.dest-icon {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 48px;
  display: grid;
  place-items: center;
  color: var(--brand);
  pointer-events: none;
}

.dest-clear {
  position: absolute;
  top: 50%;
  left: 8px;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}

.dest-clear.visible {
  display: grid;
  place-items: center;
}

.suggestions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-height: 280px;
  overflow: auto;
  z-index: 50;
  display: none;
}

.suggestions.open {
  display: block;
}

.suggestion-item {
  display: block;
  width: 100%;
  border: none;
  background: transparent;
  text-align: right;
  padding: 12px 16px;
  cursor: pointer;
  font: inherit;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: var(--brand-light);
}

/* Dates display */
.dates-display {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 8px 6px;
  gap: 2px;
}

.date-block {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.date-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.date-main {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px;
}

.date-day {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1;
  font-weight: 600;
}

.date-meta {
  font-size: 0.85rem;
  line-height: 1.2;
}

.nights-block {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  color: var(--brand);
  min-width: 52px;
}

.nights-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.nights-arrow {
  font-size: 1.4rem;
  line-height: 1;
}

/* Guests display */
.guests-display {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 8px 4px;
}

.guest-col {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.guest-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.guest-num {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  line-height: 1.1;
  font-weight: 600;
}

/* Popover panels */
.popover-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  z-index: 200;
  display: none;
}

.popover-backdrop.open {
  display: block;
}

.popover-panel {
  position: fixed;
  inset: 0;
  z-index: 210;
  display: none;
  overflow: auto;
  padding: 0;
}

.popover-panel.open {
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

@media (min-width: 640px) {
  .popover-panel {
    position: absolute;
    inset: auto;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    max-height: 420px;
    overflow: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #fff;
    padding: 16px;
  }
}

.popover-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

@media (min-width: 640px) {
  .popover-mobile-header {
    display: none;
  }
}

.popover-body {
  background: #fff;
  padding: 16px;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 640px) {
  .popover-body {
    flex: none;
    overflow: visible;
    padding: 0;
  }
}

.popover-footer {
  flex: 0 0 auto;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

@media (min-width: 640px) {
  .popover-footer {
    display: none;
  }
}

.btn-primary {
  display: block;
  width: 100%;
  border: none;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 12px 16px;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-search-main {
  display: block;
  width: 260px;
  max-width: calc(100% - 32px);
  margin: 12px auto 4px;
  position: relative;
  z-index: 5;
  border: none;
  border-radius: 12px;
  background: var(--brand);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.btn-search-main:hover {
  background: var(--brand-hover);
}

/* Calendar */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cal-nav button {
  border: none;
  background: var(--bg-search-dark);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.1rem;
}

.cal-month-title {
  font-weight: 700;
}

.cal-weekdays,
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-weekdays span {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 4px 0;
}

.cal-day {
  border: none;
  background: transparent;
  border-radius: 8px;
  padding: 8px 0;
  cursor: pointer;
  font: inherit;
}

.cal-day:hover:not(:disabled) {
  background: var(--brand-light);
}

.cal-day.disabled {
  color: #cbd5e1;
  cursor: not-allowed;
}

.cal-day.today {
  border: 1px solid var(--brand);
}

.cal-day.in-range {
  background: #eff6ff;
}

.cal-day.range-start,
.cal-day.range-end {
  background: var(--brand);
  color: #fff;
}

.cal-day.empty {
  visibility: hidden;
  pointer-events: none;
}

/* Rooms panel */
.room-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
}

.room-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 600;
}

.room-remove {
  border: none;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  font: inherit;
}

.counter-row {
  display: flex;
  gap: 8px;
}

.counter-box {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-search);
  border-radius: 8px;
  padding: 4px;
}

.counter-box button {
  width: 36px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  font-size: 1.1rem;
}

.counter-box button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.counter-box span {
  color: var(--text);
  font-weight: 600;
  min-width: 88px;
  text-align: center;
  font-size: 0.95rem;
}

.popover-panel,
.popover-body {
  color: var(--text);
}

body.sw-modal-open {
  overflow: hidden;
  touch-action: none;
}

.btn-add-room {
  width: 100%;
  border: 1px dashed #94a3b8;
  background: transparent;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  font: inherit;
  margin-bottom: 12px;
}

/* Quick destinations */
.quick-dest {
  margin-top: 28px;
}

.quick-dest h2 {
  font-size: 1rem;
  color: #cbd5e1;
  margin: 0 0 12px;
  font-weight: 500;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* Results page */
.results-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}

.results-top {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.results-top h1 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.results-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.results-search-mini .search-shell {
  margin-top: 0;
}

.results-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  margin: 20px 0;
  box-shadow: var(--shadow);
}

.filters-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 140px;
}

.filter-field select {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  color: var(--text);
  background: #fff;
}

.btn-map {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #fff !important;
  text-decoration: none !important;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.btn-map:hover {
  background: #1e293b;
}

.status-box {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--brand);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hotel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 700px) {
  .hotel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hotel-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hotel-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.hotel-card-img {
  height: 180px;
  background: linear-gradient(135deg, #bae6fd, #dbeafe);
  display: grid;
  place-items: center;
  color: #0369a1;
  font-size: 2.4rem;
  overflow: hidden;
}

.hotel-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hotel-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hotel-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.hotel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.hotel-meta .rating {
  background: #0f766e;
  color: #fff;
  border-radius: 6px;
  padding: 2px 8px;
  font-weight: 600;
}

.hotel-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.price-value {
  color: var(--success);
  font-size: 1.35rem;
  font-weight: 700;
}

.btn-book {
  display: inline-block;
  background: var(--brand);
  color: #fff !important;
  text-decoration: none !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}

.btn-book:hover {
  background: var(--brand-hover);
}

.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 28px 20px;
  margin-top: 40px;
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}

.hidden {
  display: none !important;
}
