:root {
  --navy: #183068;
  --red: #A81828;
  --teal: #107070;
  --teal-deep: #0C5555;
  --gray: #686868;
  --ink: #1C2430;
  --muted: #5C656C;
  --paper: #F3F6F6;
  --line: #D5E0E0;
  --white: #fff;
  --shadow: 0 16px 40px rgba(24, 48, 104, 0.08);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.5;
}
button, input, select, textarea { font-family: inherit; }
a { color: var(--teal-deep); }
img { max-width: 100%; display: block; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 84px;
}
.cayman { height: 68px; width: auto; }
.words {
  font-family: Outfit, "Segoe UI", sans-serif;
  color: var(--navy);
  font-size: 15px;
  line-height: 1.2;
}
.words span {
  display: block;
  color: var(--red);
  font-family: Outfit, sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.zimple { height: 44px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-nav a, .header-nav button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: none;
  border: 0;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: white !important;
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn.navy { background: var(--navy); }
.hero {
  position: relative;
  z-index: 1;
  height: auto;
  margin-top: 0;
  background: none;
  color: var(--navy);
  overflow: hidden;
}
.hero-photo {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
}
.hero-copy {
  position: absolute;
  top: 16%;
  bottom: auto;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: auto;
  margin: auto;
  padding: 0;
}
.hero .kicker { color: var(--teal); }
.kicker {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
  color: #F3C3C8;
}
.hero h1, .page h1, .section h2 {
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 600;
}
.hero h1 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); max-width: 16em; line-height: 1.1; color: var(--navy); }
.hero-lead { margin: 10px 0 0; max-width: 28em; color: var(--navy); font-size: clamp(16px, 1.6vw, 20px); font-weight: 500; line-height: 1.35; }
.search-card {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 0 16px 16px;
}
.tabs {
  display: flex;
  gap: 4px;
  margin: 0 -16px 16px;
  padding: 0 8px;
  border-bottom: 1px solid var(--line);
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--muted);
  border-radius: 0;
  margin-bottom: -1px;
  padding: 14px 18px 11px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.tabs button.on {
  background: transparent;
  color: var(--teal);
  border-bottom-color: var(--teal);
}
.search-card.flat { margin-top: 0; }
.fields { display: grid; gap: 10px; }
.loc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.when {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 10px;
}
.fields:has(.loc-pair:not([hidden])) .when { margin-top: 2px; }
.field, label.field { position: relative; flex: 1 1 150px; min-width: 140px; font-size: 12px; color: var(--muted); font-weight: 600; }
.when > .field { flex: 0 1 156px; min-width: 0; }
.field.grow { flex: 1 1 240px; min-width: 200px; }
.field.count { flex: 0 0 84px; min-width: 84px; }
.field.count input { padding: 0 8px; }
.when .btn { flex: 0 0 auto; }
.loc-head { display: flex; align-items: center; gap: 10px; min-height: 22px; }
.loc-head label { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; cursor: pointer; }
.field input[type="radio"] { width: auto; height: auto; margin: 0; }
.field input:not([type="radio"]), label.field input, label.field select, .stack input, .stack select {
  display: block;
  width: 100%;
  height: 46px;
  margin-top: 4px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  font-weight: 600;
}
.when .btn {
  flex: 0 0 auto;
  height: 46px;
  padding: 0 28px;
  border-radius: 12px;
}
.suggest-label {
  padding: 6px 10px 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.suggest {
  position: absolute;
  z-index: 6;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 4px;
  list-style: none;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-height: 260px;
  overflow: auto;
}
.suggest button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.suggest button:hover, .suggest button:focus { background: var(--paper); }
#search-error { margin: 10px 0 0; }
.section { padding: 36px 0; }
.section h2 { color: var(--navy); font-size: 32px; margin: 6px 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rate-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1454 / 742;
  border-radius: 18px;
  box-shadow: var(--shadow);
  background: white;
}
.rate-card img {
  position: absolute;
  display: block;
  max-width: none;
  height: auto;
}
.rate-card.cars img { width: 105.24%; left: -2.65%; top: -14.56%; }
.rate-card.hotels img { width: 105.64%; left: -3.03%; top: -19.14%; }
.rate-card.esims img { width: 100%; left: 0; top: -5.14%; }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.page { padding: 28px 0 48px; }
.page h1 { color: var(--navy); font-size: 40px; margin: 6px 0; }
.muted { color: var(--muted); }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.result {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
}
.mark {
  height: 88px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #E7F3F3;
  color: var(--teal-deep);
  font-weight: 700;
}
.price { text-align: right; }
.price strong { display: block; font-size: 24px; color: var(--navy); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.filters a {
  text-decoration: none;
  background: white;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
  font-size: 14px;
}
.filters a.on { background: var(--navy); color: white; }
.rail {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  position: sticky;
  top: 96px;
}
.rail .total { font-size: 36px; color: var(--navy); margin: 8px 0; }
.stack { display: grid; gap: 12px; }
.stack.two { grid-template-columns: 1fr 1fr; }
.error { color: var(--red); font-size: 14px; }
.search-wait {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  align-items: center;
  justify-content: center;
  background: rgba(24, 48, 104, 0.55);
  padding: 24px;
}
.search-wait.on { display: flex; }
.search-wait-card {
  width: min(420px, 100%);
  background: white;
  border-radius: 18px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.search-wait-card img { width: 96px; height: 96px; margin: 0 auto 12px; }
.search-wait-card p {
  margin: 0;
  color: var(--navy);
  font-family: Outfit, "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 22px;
  line-height: 1.35;
}
.nx { background: var(--paper); padding-bottom: 40px; }
.nx-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.nx-bar { background: var(--teal); color: white; }
.nx-bar-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 16px; align-items: center; min-height: 78px; }
.nx-bar span { display: block; font-size: 12px; opacity: 0.85; }
.nx-bar strong { font-size: 14px; }
.nx-bar button, .nx-select {
  background: var(--teal);
  color: white;
  border: 1px solid var(--teal);
  border-radius: 8px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
}
.nx-bar button { background: var(--teal-deep); border-color: var(--teal-deep); }
.nx-layout { display: grid; grid-template-columns: 230px 1fr; gap: 18px; padding-top: 18px; }
.nx-filters { background: white; border: 1px solid var(--line); border-radius: 12px; padding: 14px; height: fit-content; }
.nx-filter-head, .nx-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.nx-filter-head button { background: none; border: 0; color: var(--teal-deep); font: inherit; font-weight: 700; cursor: pointer; }
.nx-filters section { border-top: 1px solid var(--line); padding: 12px 0; }
.nx-filters h2 { margin: 0 0 8px; font-size: 14px; color: var(--teal-deep); }
.nx-filters label { display: flex; gap: 8px; align-items: center; font-size: 14px; margin: 6px 0; }
.nx-filters input[type="range"] { accent-color: var(--teal); width: 100%; }
.nx-range { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.nx-head h1 { margin: 0; font-size: 22px; font-family: Outfit, sans-serif; color: var(--teal-deep); }
.nx-head p, .nx-count { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.nx-head select { margin-left: 6px; height: 36px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.nx-card {
  display: grid;
  grid-template-columns: 180px 1fr 230px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 12px;
  overflow: hidden;
}
.nx-photo { padding: 12px; text-align: center; background: var(--paper); }
.nx-photo img { width: 100%; height: 110px; object-fit: contain; }
.nx-photo b { display: block; margin-top: 6px; font-size: 12px; letter-spacing: 0.04em; color: var(--teal-deep); }
.nx-logo { height: 28px !important; width: auto !important; margin: 8px auto 0; }
.nx-body { padding: 16px; }
.nx-body h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: 0.02em; color: var(--ink); }
.nx-specs { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.nx-plan { display: inline-block; margin: 0 0 8px; background: #E4F2F2; color: var(--teal-deep); border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 700; }
.nx-tags, .nx-policies { display: flex; flex-wrap: wrap; gap: 6px; }
.nx-tags span { background: #E4F2F2; color: var(--teal-deep); border-radius: 6px; padding: 3px 7px; font-size: 12px; }
.nx-policies { margin-top: 12px; }
.nx-policies span { background: var(--paper); color: var(--gray); border-radius: 999px; padding: 3px 8px; font-size: 12px; }
.nx-price { background: var(--paper); padding: 16px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.nx-for, .nx-day, .nx-note { color: var(--muted); font-size: 12px; }
.nx-amount { font-size: 28px; color: var(--teal); margin: 4px 0; }
.nx-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0; }
.nx-pay button { border: 1px solid var(--line); background: white; color: var(--teal-deep); border-radius: 8px; padding: 6px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.nx-pay button.on { background: var(--teal); color: white; border-color: var(--teal); }
.nx-select { display: block; margin-top: 8px; background: white; color: var(--teal-deep); border: 1px solid var(--line); }
.hx-card { grid-template-columns: 220px 1fr 210px; }
.hx-photo { padding: 0; }
.hx-photo img { height: 180px; object-fit: cover; }
.hx-stars { color: #b8860b; letter-spacing: 1px; margin: 0 0 8px; }
.hx-left { color: var(--teal-deep); font-weight: 700; font-size: 13px; }
.hx-pages { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.hx-pages button { border: 1px solid var(--line); background: white; color: var(--teal-deep); border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.hx-pages button.on { background: var(--teal); color: white; border-color: var(--teal); }
.nx-count { text-align: center; margin-top: 14px; }
.site-footer { padding: 28px 0 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); background: white; }
.site-footer .wrap { display: flex; align-items: center; gap: 16px; }
.site-footer p { margin: 0; }
.stars { color: var(--teal); letter-spacing: 2px; }
@media (max-width: 860px) {
  .loc-pair, .when { display: flex; flex-direction: column; align-items: stretch; }
  .when .btn { width: 100%; }
  .grid-3, .layout, .result, .stack.two { grid-template-columns: 1fr; }
  .words { display: none; }
  .site-footer .wrap { align-items: flex-start; }
  .price { text-align: left; }
  .nx-bar-row, .nx-layout, .nx-card, .hx-card { grid-template-columns: 1fr; }
  .nx-price { border-left: 0; border-top: 1px solid #e5e7eb; }
  .hero { height: 340px; }
  .hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }
}
