/* Santorini panorama: the search stays in document flow, including open widgets. */
.home-page .header {
  min-height: 92px;
}

.home-page .header .wordmark {
  font-size: 3rem;
}

.home-page .header .brand-dot {
  width: .18em;
  height: .18em;
}

.home-main > .travel-shell {
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  isolation: isolate;
  overflow: visible;
}

.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(460px, calc(100svh - 260px), 620px);
  isolation: isolate;
  background: #174b60;
}

.home-main .hero-photo {
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.home-main .hero-photo img {
  display: block;
  object-position: 50% 50%;
}

.home-main .hero-photo::after {
  background: linear-gradient(90deg, rgba(5, 31, 48, .43), rgba(5, 31, 48, .1) 48%, transparent 68%), linear-gradient(0deg, rgba(5, 31, 48, .06), transparent 45%);
}

.home-main .hero-copy {
  width: min(1280px, calc(100% - 80px));
  min-height: 0;
  padding: 60px 0 120px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(5, 31, 48, .18);
}

.home-main .hero-copy .eyebrow {
  display: block;
  max-width: 40rem;
  font-size: .8125rem;
  line-height: 1.6;
  letter-spacing: .13em;
  font-weight: 600;
}

.home-main .hero-copy h1 {
  max-width: min(66%, 50rem);
  font-size: clamp(3.25rem, 5.65vw, 5.5rem);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 600;
  margin: 22px 0 22px;
  overflow-wrap: break-word;
}

.home-main .hero-copy h1 em {
  font-weight: 400;
  letter-spacing: -.055em;
}

.home-main .hero-copy p {
  color: #fff;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  max-width: 35rem;
  margin: 0;
}

.home-main .photo-label {
  position: static;
  margin-top: 36px;
  font-size: .875rem;
  line-height: 1.5;
  gap: 8px;
}

.home-main .photo-label svg {
  width: 18px;
  height: 18px;
}

.home-main .search-card {
  width: min(1280px, calc(100% - 80px));
  margin: -84px auto 0;
  border-radius: 16px;
  box-shadow: 0 14px 40px rgba(17, 61, 66, .12);
}

.home-main .tabs {
  padding-inline: 28px;
  gap: 36px;
}

.home-main .tab {
  padding-block: 20px 18px;
  font-size: 1rem;
}

.home-main .tab.active::after {
  background: var(--coral);
  height: 4px;
}

.home-main .panel {
  padding: 20px 24px 18px;
}

.home-main .field {
  border-color: var(--line);
  min-height: 74px;
}

.home-main .field > span {
  color: var(--ink);
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.35;
}

.home-main .field input,
.home-main .field select {
  font-size: 1rem;
}

.home-main .search-button {
  font-size: 1rem;
}

.home-main .form-note {
  margin-top: 12px;
  font-size: .8125rem;
}

.home-main .popular-destinations {
  padding-top: 44px;
}

@media (max-width: 1150px) and (min-width: 701px) {
  .home-main .hero-copy,
  .home-main .search-card {
    width: calc(100% - 48px);
  }

  .home-main .hero-copy h1 {
    max-width: 75%;
  }

  .home-main .hero-copy p {
    max-width: 65%;
  }

  .home-main .hotel-form {
    grid-template-columns: 1.5fr 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .home-page .header {
    min-height: 80px;
  }

  .home-page .header .wordmark {
    font-size: clamp(2.25rem, 11vw, 2.75rem);
  }

  .home-page .header > nav {
    display: none;
  }

  .home-hero {
    min-height: 0;
  }

  .home-main .hero-copy {
    width: calc(100% - 40px);
    min-height: min(60vw, 288px);
    padding: 20px 0 40px;
  }

  .home-main .hero-photo img {
    object-position: 72% 50%;
  }

  .home-main .hero-photo::after {
    background: linear-gradient(90deg, rgba(5, 31, 48, .64), rgba(5, 31, 48, .27) 68%, rgba(5, 31, 48, .12));
  }

  .home-main .hero-copy .eyebrow {
    display: none;
  }

  .home-main .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(2rem, 8.8vw, 3.25rem);
    line-height: 1.08;
    margin: 12px 0 10px;
  }

  .home-main .hero-copy p {
    max-width: 27rem;
    font-size: 1rem;
    line-height: 1.45;
  }

  .home-main .photo-label {
    margin-top: 16px;
    font-size: .8125rem;
  }

  .home-main .search-card {
    width: calc(100% - 24px);
    margin-top: -28px;
    border-radius: 12px;
    box-shadow: 0 8px 26px rgba(17, 61, 66, .1);
  }

  .home-main .tabs {
    padding-inline: 14px;
    gap: 10px;
    align-items: stretch;
  }

  .home-main .tab {
    padding: 17px 0 15px;
    font-size: .875rem;
    line-height: 1.4;
    text-align: center;
    justify-content: center;
  }

  .home-main .tab svg {
    display: none;
  }

  .home-main .panel {
    padding: 16px 12px;
  }

  .home-main .field {
    padding: 12px 10px;
    min-height: 72px;
  }

  .home-main .popular-destinations {
    padding-top: 32px;
  }
}

/* Approved mobile homepage: bright panorama, overlaid title and floating search. */
@media (max-width: 700px) {
  .home-hero {
    align-items: flex-end;
    min-height: clamp(240px, 68vw, 300px);
  }
  .home-main .hero-photo img { object-position: 66% 50%; }
  .home-main .hero-photo::after {
    background: linear-gradient(0deg, rgba(5,31,48,.62), rgba(5,31,48,.12) 55%, transparent 85%);
  }
  .home-main .hero-copy {
    width: calc(100% - 40px);
    min-height: 0;
    padding: 80px 0 54px;
  }
  .home-main .hero-copy h1 {
    max-width: 100%;
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.1rem, 9.5vw, 3.25rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.035em;
    text-shadow: 0 2px 12px rgba(5,31,48,.35);
  }
  .home-main .hero-copy h1 em { font-weight: 400; letter-spacing: -.035em; }
  .home-main .hero-copy p,
  .home-main .hero-copy .photo-label { display: none; }
  .home-main .search-card {
    width: calc(100% - 28px);
    margin-top: -28px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(17,61,66,.13);
  }
  .home-main .tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 !important;
    padding-inline: 10px;
    overflow: visible;
  }
  .home-main .tab {
    flex-direction: column;
    gap: 6px;
    padding: 14px 4px 12px;
    font-size: .875rem;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .home-main .tab svg { display: block; width: 20px; height: 20px; }
  .home-main .tab.active { color: var(--coral); }
  .home-main .tab.active::after { height: 3px; }
  .home-main .panel { padding: 16px 14px 18px; }
  .home-main .field { border-radius: 10px; padding: 12px; min-height: 70px; }
  .home-main .search-button { border-radius: 10px; min-height: 52px; padding: 15px 12px; }
  .home-main .popular-destinations { padding-top: 30px; }
  .home-main .destination-heading h2 { font-size: 1.8rem; margin-bottom: 20px; }
  .home-main .destination-grid {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
  }
  .home-main .destination-card { position: relative; border-radius: 12px; }
  .home-main .destination-card:has(>img) { display: grid; border: 0; background: var(--ink); }
  .home-main .destination-card>img { grid-area: 1/1; aspect-ratio: 4/3; min-height: 150px; height: 100%; }
  .home-main .destination-card:has(>img) .destination-card-body {
    position: relative;
    grid-area: 1/1;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 12px 12px;
    background: linear-gradient(0deg, rgba(5,31,48,.78), rgba(5,31,48,.08) 72%, transparent);
    color: white;
  }
  .home-main .destination-card:has(>img) .destination-country { color: #fff; font-size: .875rem; }
  .home-main .destination-card h4 { font-size: 1.15rem; line-height: 1.2; margin: 4px 0 0; overflow-wrap: anywhere; }
  .home-main .destination-card:has(>img) .destination-explore { display: none; }
  .home-main .destination-card-local { min-height: 160px; padding-top: 12px; }
  .home-main .destination-card-local .destination-card-body { padding: 12px; }
  .home-main .destination-card-local h4 { margin-bottom: 16px; }
  .home-main .destination-number { padding-inline: 12px; }
}
