/* ═══════════════════════════════════════════════════
   SEARCH.CSS — Hotel search homepage
   Horizon Travel System
   ═══════════════════════════════════════════════════ */

/* ── Navigation ───────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 300;
  background: var(--color-primary);
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.nav__inner { display: flex; align-items: center; height: 72px; gap: 8px; }
.nav__logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-right: 16px; }
.nav__logo-img { height: 52px; width: auto; display: block; object-fit: contain; border-radius: 10px; }
.nav__links { display: flex; gap: 2px; flex: 1; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.72); transition: color 0.15s, background 0.15s; }
.nav__icon { font-size: 15px; line-height: 1; flex-shrink: 0; }
.nav__link:hover { color: white; background: rgba(255,255,255,0.1); }
.nav__link--active { color: white; background: rgba(255,255,255,0.14); font-weight: 600; }
.nav__auth { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.nav__hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; }

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(140deg, var(--color-primary) 0%, var(--color-primary-container) 100%);
  padding: 72px 0 132px; overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 75% 45%, rgba(0,176,253,0.09) 0%, transparent 65%);
  pointer-events: none;
}
.hero__content { position: relative; z-index: 1; }
.hero__eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-secondary-container); margin-bottom: 14px; }
.hero__headline { color: white; max-width: 580px; }
.hero__subline { color: rgba(255,255,255,0.66); margin-top: 18px; max-width: 440px; }

/* ── Search widget ────────────────────────────────── */
.search-widget-wrap { margin-top: -80px; position: relative; z-index: 20; padding-bottom: 8px; }
.search-widget {
  background: var(--color-surface-lowest);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 28px 32px 22px;
}

/* Search row — 5 columns: destination | check-in | check-out | guests | search btn */
.search-row {
  display: grid;
  grid-template-columns: 1.6fr 160px 160px 200px auto;
  align-items: end;
  gap: 0 14px;
  margin-bottom: 0;
}


/* Search submit */
.btn--search {
  background: var(--color-secondary-container);
  color: var(--color-on-secondary-container);
  border-radius: var(--radius); padding: 11px 28px;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
  align-self: end; white-space: nowrap;
  transition: background 0.15s, box-shadow 0.15s;
}
.btn--search:hover { background: #00a1e8; box-shadow: 0 4px 16px rgba(0,176,253,0.38); }

/* Guests dropdown */
.guests-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  width: 320px; background: white;
  border: 1px solid var(--color-outline-variant);
  border-radius: var(--radius-md); box-shadow: var(--shadow-high);
  padding: 16px; z-index: 400;
}

/* Scrollable rooms list */
.gd-rooms {
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--color-outline-variant) transparent;
  margin-bottom: 4px;
}

/* Individual room card */
.gd-room {
  background: var(--color-surface-low);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 10px;
}
.gd-room:last-child { margin-bottom: 0; }

.gd-room__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.gd-room__title {
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--color-on-surface-variant);
  display: flex; align-items: center; gap: 6px;
}
.gd-room__title svg { color: var(--color-secondary-container); }
.gd-room__remove {
  background: none; border: none; cursor: pointer; padding: 2px;
  color: var(--color-on-surface-variant); border-radius: 4px;
  display: flex; align-items: center;
  transition: color 0.15s, background 0.15s;
}
.gd-room__remove:hover { color: var(--color-error); background: #fef2f2; }

/* Row inside a room (adults / children) */
.gd-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0;
  border-top: 1px solid var(--color-outline-variant);
}
.gd-row:first-of-type { border-top: none; }
.gd-row__info  { display: flex; flex-direction: column; gap: 2px; }
.gd-row__type  { font-size: 13px; font-weight: 600; color: var(--color-on-surface); }
.gd-row__note  { font-size: 11px; color: var(--color-on-surface-variant); }

/* Counter inside a row */
.gd-counter {
  display: flex; align-items: center; gap: 10px;
}
.gd-counter-btn {
  width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--color-outline-variant);
  background: white; cursor: pointer;
  font-size: 18px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-on-surface);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.gd-counter-btn:hover:not(:disabled) {
  border-color: var(--color-secondary-container);
  color: var(--color-secondary-container);
  background: #e3f7ff;
}
.gd-counter-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.gd-counter-val {
  font-size: 15px; font-weight: 700; min-width: 18px; text-align: center;
  color: var(--color-on-surface);
}

/* Add another room */
.gd-add-room {
  width: 100%; margin-top: 10px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px;
  border: 1.5px dashed var(--color-secondary-container);
  border-radius: var(--radius);
  background: transparent; cursor: pointer;
  font-size: 13px; font-weight: 600;
  color: var(--color-secondary-container);
  transition: background 0.15s;
}
.gd-add-room:hover { background: #e3f7ff; }
.gd-add-room[hidden] { display: none; }

/* Done button */
.gd-done {
  width: 100%; margin-top: 10px;
  background: var(--color-primary);
  color: white; border: none;
  border-radius: var(--radius); padding: 10px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; transition: background 0.15s;
}
.gd-done:hover { background: #0a2a6e; }

/* ── Trust bar ────────────────────────────────────── */
.trust-bar { background: white; border-top: 1px solid var(--color-outline-variant); border-bottom: 1px solid var(--color-outline-variant); padding: 30px 0; margin-top: 40px; }
.trust-bar__inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.trust-item { display: flex; align-items: flex-start; gap: 14px; }
.trust-icon-wrap { width: 40px; height: 40px; border-radius: var(--radius); background: #e3f7ff; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.trust-icon-wrap svg { width: 20px; height: 20px; stroke: var(--color-secondary-container); }

/* ── Popular destinations ─────────────────────────── */
.popular-section { padding: var(--sp-8) 0; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.dest-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.dest-card {
  border-radius: var(--radius-lg); overflow: hidden;
  background: white; box-shadow: var(--shadow-low);
  cursor: pointer; text-align: left;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s;
}
.dest-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-high); border-color: var(--color-primary-fixed-dim); }
.dest-card__visual {
  height: 110px; display: flex; align-items: flex-end;
  justify-content: flex-start; padding: 14px 16px; position: relative;
}
.dest-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,21,55,0.65) 0%, transparent 60%);
}
.dest-card__city {
  font-family: var(--font-display); font-size: 18px; font-weight: 700;
  color: white; position: relative; z-index: 1; letter-spacing: -0.01em;
}
.dest-card__info { padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; }
.dest-card__country { font-size: 13px; color: var(--color-on-surface-variant); }
.dest-card__price { text-align: right; }
.dest-card__from { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-on-surface-variant); display: block; }
.dest-card__fare { font-family: var(--font-display); font-size: 16px; font-weight: 700; color: var(--color-primary-container); display: block; margin-top: 2px; }

/* ── Footer ───────────────────────────────────────── */
.site-footer { background: var(--color-inverse-surface); padding: 56px 0 0; margin-top: var(--sp-8); }
.site-footer__inner { display: grid; grid-template-columns: 260px 1fr; gap: 64px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-logo { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: white; letter-spacing: -0.02em; }
.footer-links { display: grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.footer-col__heading { font-size: 13px; font-weight: 600; color: white; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer-link { display: block; font-size: 14px; color: rgba(255,255,255,0.52); margin-bottom: 11px; transition: color 0.15s; }
.footer-link:hover { color: white; }
.footer-link--soon { opacity: 0.35; cursor: not-allowed; pointer-events: none; }
.footer-bottom { padding: 20px 0; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .dest-grid { grid-template-columns: repeat(2,1fr); }
  .trust-bar__inner { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .search-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .btn--search { grid-column: 1 / -1; justify-content: center; }
  .guests-dropdown { right: auto; left: 0; }
  .nav__links, .nav__auth { display: none; }
  .nav__hamburger { display: flex; }
  .hero { padding: 48px 0 110px; }
}
@media (max-width: 600px) {
  :root { --margin-x: 16px; }
  .search-row { grid-template-columns: 1fr; }
  .search-widget { padding: 20px 16px 16px; }
  .dest-grid { grid-template-columns: 1fr; }
  .trust-bar__inner { grid-template-columns: 1fr; gap: 20px; }
  .site-footer__inner { grid-template-columns: 1fr; gap: 36px; padding-bottom: 0; }
  .footer-links { grid-template-columns: repeat(2,1fr); }
  .guests-dropdown { left: 0; right: 0; width: auto; }
  .promo-strip__inner { flex-wrap: wrap; }
}

/* ── Promo strip ─────────────────────────────────── */
.promo-strip {
  background: linear-gradient(90deg, #002155 0%, #003580 100%);
  padding: 14px 0;
}
.promo-strip__inner {
  display: flex; align-items: center; gap: 12px;
  overflow-x: auto; scrollbar-width: none;
}
.promo-strip__inner::-webkit-scrollbar { display: none; }
.promo-banner {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  white-space: nowrap; flex-shrink: 0;
}
.promo-banner__badge {
  font-size: 12px; font-weight: 800; padding: 3px 10px;
  border-radius: var(--radius-full);
  background: #facc15; color: #1a1a1a;
  letter-spacing: 0.04em;
}
.promo-banner__body {
  display: flex; flex-direction: column; gap: 1px;
}
.promo-banner__body strong {
  font-size: 13px; font-weight: 700; color: white;
}
.promo-banner__body span {
  font-size: 12px; color: rgba(255,255,255,0.65);
}
.promo-banner__cap {
  font-size: 11px; font-weight: 600;
  color: #86efac;
}

/* ── Offers Section ──────────────────────────────── */
.offers-section {
  padding: 52px 0 64px;
  background: linear-gradient(160deg, #dce6f5 0%, #edf2fb 50%, #d8e4f2 100%);
}
.offers-section > .container {
  background: white;
  border-radius: 20px;
  padding: 36px 40px 40px;
  position: relative;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.07),
    0 16px 40px rgba(0,0,0,0.08),
    0 40px 80px rgba(0,0,0,0.05);
  border: 1px solid rgba(220,230,245,0.7);
}
.offers-section > .container::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 20px;
  right: 20px;
  height: 20px;
  background: rgba(0,40,120,0.12);
  border-radius: 50%;
  filter: blur(14px);
  z-index: -1;
}
.offers-header {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}
.offers-title {
  font-size: 26px;
  font-weight: 800;
  color: #1a1a2e;
  flex-shrink: 0;
  margin-right: 28px;
}
.offers-tabs {
  display: flex;
  flex: 1;
  border-bottom: 2px solid #e8ecf2;
  gap: 0;
}
.offers-tab {
  padding: 6px 20px 8px;
  font-size: 14px;
  font-weight: 500;
  color: #777;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.offers-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}
.offers-tab:hover:not(.offers-tab--active) { color: #333; }
.offers-nav-btns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  margin-left: 20px;
}
.offers-nav-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #d0d8e8;
  background: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}
.offers-nav-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  box-shadow: 0 2px 8px rgba(0,53,128,0.15);
}
.offers-nav-btn:disabled { opacity: 0.3; cursor: default; box-shadow: none; }
.offers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  perspective: 1400px;
}
.offer-card {
  background: white;
  border-radius: 14px;
  border: 1px solid #e4eaf4;
  overflow: visible;
  display: flex;
  cursor: pointer;
  min-height: 152px;
  text-decoration: none;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1), box-shadow 0.35s ease;
  will-change: transform;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 4px 12px rgba(0,0,0,0.06);
}
.offer-card > * { border-radius: inherit; }
.offer-card__img {
  border-radius: 14px 0 0 14px !important;
  overflow: hidden;
}
.offer-card__body { border-radius: 0 14px 14px 0 !important; overflow: hidden; }
.offer-card:hover {
  transform: perspective(1000px) rotateX(-3deg) rotateY(3deg) translateY(-6px) scale(1.01);
  box-shadow:
    0 2px 4px rgba(0,0,0,0.04),
    0 8px 20px rgba(0,0,0,0.09),
    14px 28px 48px rgba(0,40,120,0.10),
    -4px 6px 12px rgba(0,0,0,0.04);
}
.offer-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.05) 45%, rgba(0,0,0,0.12) 100%);
  z-index: 1;
  pointer-events: none;
}
.offer-card--hidden { display: none !important; }
.offer-card__img {
  width: 156px;
  flex-shrink: 0;
  position: relative;
}
.offer-card__img--hotel  { background: linear-gradient(135deg, #e65c00 0%, #f9a825 100%); }
.offer-card__img--flight { background: linear-gradient(135deg, #002155 0%, #1565c0 60%, #42a5f5 100%); }
.offer-card__img--addon  { background: linear-gradient(135deg, #1b5e20 0%, #43a047 70%, #aed581 100%); }
.offer-card__img-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.22;
  z-index: 0;
}
.offer-card__img-icon svg { width: 80px; height: 80px; color: white; }
.offer-card__pct-badge {
  position: absolute;
  bottom: 14px;
  left: 12px;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-size: 17px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: -0.01em;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.offer-card__body {
  flex: 1;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  background: white;
}
.offer-card__tc {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 10px;
  color: #bbb;
  letter-spacing: 0.05em;
  font-weight: 500;
}
.offer-card__label {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a2e;
  margin-top: 2px;
  margin-right: 64px;
  line-height: 1.35;
}
.offer-card__sep {
  width: 30px;
  height: 3px;
  border-radius: 2px;
  margin: 8px 0 6px;
}
.offer-card__sep--hotel  { background: #e65c00; }
.offer-card__sep--flight { background: var(--color-primary); }
.offer-card__sep--addon  { background: #43a047; }
.offer-card__desc {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  flex: 1;
}
.offer-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  gap: 8px;
}
.offer-card__code {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  background: #eef2ff;
  color: var(--color-primary);
  letter-spacing: 0.06em;
  border: 1px dashed var(--color-primary);
  white-space: nowrap;
}
.offer-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.offer-card__cta:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .offers-grid { grid-template-columns: 1fr; perspective: none; }
  .offers-tabs { display: none; }
  .offers-title { font-size: 22px; }
  .offers-section > .container { padding: 28px 24px 32px; }
}
@media (max-width: 600px) {
  .offers-section { padding: 28px 0 36px; }
  .offers-section > .container { border-radius: 14px; padding: 20px 16px 24px; }
  .offer-card__img { width: 110px; }
  .offer-card__pct-badge { font-size: 14px; }
  .offer-card:hover { transform: none; }
}

/* ── Hotels mobile city-search overlay (HCSO) ──────── */
.hcso {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.32, 0.72, 0, 1);
  pointer-events: none;
}
.hcso--open {
  transform: translateY(0);
  pointer-events: auto;
}

.hcso__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.hcso__back {
  background: none; border: none; padding: 6px; border-radius: 50%;
  cursor: pointer; color: #334155; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.hcso__back:active { background: #f1f5f9; }

.hcso__input {
  flex: 1; font-size: 17px; font-weight: 500; color: #0f172a;
  border: none; outline: none; background: transparent; min-width: 0;
  font-family: var(--font-body);
}
.hcso__input::placeholder { color: #94a3b8; font-weight: 400; }

.hcso__list {
  flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
}

.hcso__item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 20px; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hcso__item:active { background: #f8fafc; }
.hcso__item--sub { padding-left: 44px; }

.hcso__city-label {
  display: block; padding: 10px 20px 4px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em;
  color: #64748b; border-top: 1px solid #e2e8f0; margin-top: 2px;
}
.hcso__city-label:first-child { border-top: none; margin-top: 0; }

.hcso__icon { font-size: 16px; line-height: 1; flex-shrink: 0; }
.hcso__sub-icon { font-size: 13px; line-height: 1; opacity: 0.5; padding-left: 4px; flex-shrink: 0; }

.hcso__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.hcso__main { font-size: 15px; font-weight: 500; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hcso__sub  { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.hcso__concept-divider {
  padding: 10px 20px 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em; color: #64748b;
  border-top: 1px solid #e2e8f0; margin-top: 2px;
}
.hcso__item--concept .hcso__main { font-weight: 400; }

.hcso__empty {
  padding: 40px 20px; text-align: center; color: #94a3b8; font-size: 15px;
}
.hcso__spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2.5px solid #e2e8f0; border-top-color: var(--color-primary);
  animation: hcso-spin 0.7s linear infinite; display: block; margin: 40px auto;
}
@keyframes hcso-spin { to { transform: rotate(360deg); } }

@media (min-width: 768px) { .hcso { display: none; } }
