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

:root {
  --sky: #1597c7;
  --sky-dark: #0a6f96;
  --ice: #eaf7fb;
  --glacier: #7fd0df;
  --stone: #2d3740;
  --muted: #65727c;
  --line: #d7e2e8;
  --paper: #ffffff;
  --sun: #f07b2f;
  --sun-dark: #cc5c18;
  --soft: #f4f9fb;
  --shadow: 0 14px 34px rgba(31, 54, 66, .15);
  --radius: 8px;
  --max: 1180px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--stone);
  background:
    linear-gradient(180deg, rgba(127, 208, 223, .2), rgba(255, 255, 255, 0) 430px),
    var(--soft);
  line-height: 1.45;
}

body:has(.button-search) {
  padding-bottom: 112px;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(21, 151, 199, .06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 151, 199, .06) 1px, transparent 1px);
  background-size: 36px 36px;
}

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

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .93);
  border-bottom: 1px solid rgba(215, 226, 232, .92);
  backdrop-filter: blur(12px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--sky-dark);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

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

.lang-links {
  display: flex;
  gap: 6px;
}

.lang-links a {
  display: inline-flex;
  min-width: 38px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--sky-dark);
  font-size: 1.22rem;
  font-weight: 800;
}

.lang-links a[aria-current="page"] {
  border-color: var(--sky);
  background: var(--sky);
  color: #fff;
}

.search-hero {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 22px;
}

.hero-copy {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 430px);
  gap: 28px;
  align-items: end;
  min-height: clamp(330px, 44vw, 520px);
  margin-bottom: 22px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(14, 43, 57, .76), rgba(14, 43, 57, .36) 48%, rgba(14, 43, 57, .08)),
    url("hero-calafate.png") center / cover no-repeat;
  overflow: hidden;
  padding: clamp(22px, 4vw, 42px);
  box-shadow: var(--shadow);
}

.eyebrow,
.form-kicker {
  margin: 0 0 8px;
  color: var(--sun);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.hero-copy .eyebrow,
.hero-copy h1,
.hero-copy p:not(.eyebrow) {
  position: relative;
  z-index: 1;
}

.hero-copy .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -14px;
  color: #ffd0aa;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  grid-column: 1;
  max-width: 820px;
  margin-bottom: 0;
  color: var(--sky-dark);
  font-size: clamp(2.3rem, 6vw, 4.75rem);
  line-height: .98;
  letter-spacing: 0;
}

.hero-copy h1 {
  color: #fff;
  text-shadow: 0 3px 18px rgba(14, 43, 57, .34);
}

.hero-copy p:not(.eyebrow) {
  grid-column: 2;
  margin: 0;
  color: rgba(255, 255, 255, .93);
  font-size: 1.05rem;
  text-shadow: 0 2px 12px rgba(14, 43, 57, .34);
}

.booking-search {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.form-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  background:
    linear-gradient(90deg, rgba(21, 151, 199, .13), rgba(240, 123, 47, .1)),
    #fff;
  border-bottom: 1px solid var(--line);
}

.form-top h2 {
  margin: 0;
  color: var(--stone);
  font-size: 1.45rem;
  line-height: 1;
}

fieldset {
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px;
}

legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  color: var(--sky-dark);
  font-weight: 800;
  font-size: 1rem;
}

.grid {
  clear: both;
  display: grid;
  gap: 14px;
}

.grid-main {
  grid-template-columns: 1.35fr .82fr .82fr;
}

.grid-guests {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.grid-filters {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 6px;
  position: relative;
}

.field span {
  color: var(--stone);
  font-size: .82rem;
  font-weight: 800;
}

.field input,
.field select {
  width: 100%;
  min-height: 45px;
  border: 1px solid #cbd8df;
  border-radius: var(--radius);
  background: #fff;
  color: var(--stone);
  padding: 10px 11px;
  outline: 0;
}

.destination-field input {
  padding-right: 45px;
}

.field input:focus,
.field select:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(21, 151, 199, .16);
}

.destination-clear {
  position: absolute;
  top: 29px;
  right: 8px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(101, 114, 124, .12);
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.destination-clear:hover,
.destination-clear:focus-visible {
  background: rgba(21, 151, 199, .14);
  color: var(--sky-dark);
}

.destination-clear[hidden],
.destination-suggestions[hidden] {
  display: none;
}

.destination-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: 430px;
  overflow: auto;
  border: 1px solid rgba(21, 151, 199, .28);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 34px rgba(31, 54, 66, .18);
  padding: 6px;
}

.destination-option {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--stone);
  padding: 9px 10px;
  text-align: left;
}

.destination-option:hover,
.destination-option[aria-selected="true"] {
  background: rgba(21, 151, 199, .1);
}

.destination-option strong {
  color: var(--sky-dark);
  font-size: .95rem;
}

.destination-option small {
  color: var(--sun);
  font-size: .75rem;
  font-weight: 800;
  white-space: nowrap;
}

.choice-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.choice {
  position: relative;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d2dfe6;
  border-radius: var(--radius);
  background: #fff;
  color: var(--stone);
  padding: 9px 10px;
  text-align: center;
  font-size: .86rem;
  font-weight: 800;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice:has(input:checked),
.choice.checked {
  border-color: var(--sky);
  background: var(--sky);
  color: #fff;
}

.choice:has(input:focus-visible) {
  outline: 3px solid rgba(21, 151, 199, .22);
}

.amenities .choice:has(input:checked) {
  border-color: var(--sun);
  background: var(--sun);
}

.search-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 450px);
  gap: 22px;
  align-items: end;
  padding: 24px 24px 10px;
  background: linear-gradient(180deg, rgba(244, 249, 251, .82), #fff 42%);
  border-top: 1px solid rgba(215, 226, 232, .9);
}

.search-summary {
  max-width: 540px;
  margin: 0 0 7px;
  color: rgba(101, 114, 124, .78);
  font-size: .78rem;
  line-height: 1.35;
}

.button-search {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 60;
  transform: translateX(-50%);
  display: inline-flex;
  width: min(450px, calc(100% - 32px));
  min-height: 64px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fb8d3c, var(--sun));
  color: #fff;
  padding: 16px 24px;
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(240, 123, 47, .34);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.button-search:hover {
  background: linear-gradient(180deg, #f47d2c, var(--sun-dark));
  box-shadow: 0 18px 34px rgba(204, 92, 24, .32);
  transform: translateX(-50%);
}

.button-search:focus-visible {
  outline: 3px solid rgba(240, 123, 47, .28);
  outline-offset: 3px;
}

.affiliate-note,
.form-error {
  margin: 0;
  padding: 0 24px 20px;
  color: var(--muted);
  font-size: .72rem;
}

.affiliate-note {
  color: rgba(101, 114, 124, .72);
  line-height: 1.35;
  max-width: 780px;
}

.form-error {
  color: #b42318;
  font-weight: 800;
}

.quick-destinations {
  width: min(var(--max), calc(100% - 32px));
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 36px;
}

.quick-destinations button {
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--sky-dark);
  padding: 12px;
  font-weight: 800;
  text-align: left;
  box-shadow: 0 6px 16px rgba(31, 54, 66, .08);
}

.quick-destinations small {
  display: block;
  margin-top: 4px;
  color: var(--sun);
  font-size: .76rem;
}

.legal-page {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.legal-page article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .98);
  padding: 34px;
  box-shadow: var(--shadow);
}

.legal-page h1 {
  max-width: none;
  margin-bottom: 22px;
  font-size: clamp(2.15rem, 5vw, 3.4rem);
  line-height: 1;
}

.legal-page h2 {
  margin: 28px 0 8px;
  color: var(--sky-dark);
  font-size: 1.15rem;
}

.legal-page p {
  color: var(--muted);
}

.redirect-body {
  min-height: 100vh;
}

.redirect-page {
  width: min(720px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 24px;
  padding: 42px 0;
}

.redirect-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(21, 151, 199, .12), rgba(240, 123, 47, .09)),
    rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
  padding: 34px;
}

.redirect-panel h1 {
  max-width: 620px;
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1;
}

.redirect-panel p:not(.eyebrow) {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 1.05rem;
}

.redirect-button {
  width: min(100%, 360px);
}

.footer {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sky-dark);
  font-size: 1.12rem;
  font-weight: 900;
}

.footer-brand img {
  width: 34px;
  height: 34px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-top: 14px;
  color: var(--sky-dark);
  font-size: .86rem;
  font-weight: 800;
}

.legal-links a:hover {
  color: var(--sun);
}

.footer p {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  text-align: right;
}

@media (max-width: 1040px) {
  .hero-copy,
  .grid-main,
  .search-footer {
    grid-template-columns: 1fr;
  }

  h1,
  .hero-copy p:not(.eyebrow) {
    grid-column: 1;
  }

  .grid-guests,
  .grid-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .choice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav,
  .search-hero,
  .quick-destinations,
  .footer {
    width: min(100% - 22px, var(--max));
  }

  .nav {
    min-height: 66px;
    align-items: flex-start;
    padding: 12px 0;
  }

  .brand {
    font-size: 1.05rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .nav-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 8px;
  }

  .search-hero {
    padding-top: 26px;
  }

  .hero-copy {
    gap: 18px;
    min-height: 440px;
    align-items: end;
    background:
      linear-gradient(180deg, rgba(14, 43, 57, .32), rgba(14, 43, 57, .78)),
      url("hero-calafate.png") center / cover no-repeat;
  }

  .hero-copy .eyebrow {
    margin-bottom: -8px;
  }

  h1 {
    font-size: clamp(2.15rem, 12vw, 3.2rem);
    line-height: 1;
  }

  .form-top,
  fieldset,
  .search-footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .grid-guests,
  .grid-filters,
  .choice-grid,
  .quick-destinations {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .choice {
    min-height: 48px;
    font-size: .82rem;
  }

  .button-search {
    min-height: 58px;
    padding: 14px 16px;
    font-size: 1rem;
  }

  .footer {
    display: grid;
    align-items: start;
  }

  .footer p {
    text-align: left;
  }
}

@media (max-width: 460px) {
  .grid-guests,
  .grid-filters,
  .choice-grid,
  .quick-destinations {
    grid-template-columns: 1fr;
  }

  .lang-links a {
    min-width: 33px;
    min-height: 33px;
    font-size: 1.05rem;
  }
}
