/**
 * SkyStayTravel — native stays search panel (sky22.html hub)
 */

body.sst-page-sky22 .sst-stays-search-wrap {
  position: relative;
  z-index: 25;
  max-width: 1060px;
  margin: -58px auto 0;
  padding: 0 22px 8px;
  box-sizing: border-box;
}

body.sst-page-sky22 .sst-stays-search-panel {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  box-shadow:
    0 22px 55px rgba(15, 23, 42, 0.13),
    0 2px 10px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  max-width: 100%;
}

body.sst-page-sky22 .sst-stays-search-head {
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
  border-bottom: 1px solid rgba(7, 112, 227, 0.12);
  padding: 20px 24px 16px;
}

body.sst-page-sky22 .sst-stays-search-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.22);
  border: 1px solid rgba(255, 209, 102, 0.45);
  color: #8a5b00;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.sst-page-sky22 .sst-stays-search-head h2 {
  margin: 0 0 6px;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #0f2852;
}

body.sst-page-sky22 .sst-stays-search-head p {
  margin: 0;
  max-width: 720px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #64748b;
}

body.sst-page-sky22 .sst-stays-search-form {
  padding: 18px 24px 14px;
}

body.sst-page-sky22 .sst-stays-search-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

body.sst-page-sky22 .sst-stays-field--submit {
  grid-column: 1 / -1;
}

body.sst-page-sky22 .sst-stays-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

body.sst-page-sky22 .sst-stays-field label {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

body.sst-page-sky22 .sst-stays-field input,
body.sst-page-sky22 .sst-stays-field select {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1.5px solid #cfe0f6;
  border-radius: 12px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.sst-page-sky22 .sst-stays-field input:focus,
body.sst-page-sky22 .sst-stays-field select:focus {
  border-color: #0770e3;
  box-shadow: 0 0 0 3px rgba(7, 112, 227, 0.14);
}

body.sst-page-sky22 .sst-stays-search-submit {
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #0770e3, #0557b0);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(7, 112, 227, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.sst-page-sky22 .sst-stays-search-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(7, 112, 227, 0.28);
}

body.sst-page-sky22 .sst-stays-search-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

body.sst-page-sky22 .sst-stays-search-chips button {
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #f8fbff;
  color: #0557b0;
  padding: 7px 12px;
  font-family: inherit;
  font-size: 0.76rem;
  font-weight: 850;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

body.sst-page-sky22 .sst-stays-search-chips button:hover {
  background: #eff6ff;
  border-color: #93c5fd;
}

body.sst-page-sky22 .sst-stays-search-toast {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0557b0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

body.sst-page-sky22 .sst-stays-search-foot {
  padding: 0 24px 18px;
  border-top: 1px solid #eef2f7;
  background: #fafcff;
}

body.sst-page-sky22 .sst-stays-search-foot p {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: #64748b;
}

body.sst-page-sky22 .sst-stays-guests-note {
  margin-top: 8px;
  font-size: 0.74rem;
  color: #94a3b8;
}

/* Stay22 map — desktop list scroll needs taller embed + no lazy-load delay */
body.sst-page-sky22 .sst-map-frame iframe {
  display: block;
  width: 100%;
  height: min(90vh, 1000px);
  min-height: 680px;
  border: 0;
  pointer-events: auto;
}

@media (min-width: 981px) {
  body.sst-page-sky22 .sst-map-shell--listview .sst-map-frame iframe {
    height: min(90vh, 1000px);
    min-height: 760px;
  }
}

@media (max-width: 640px) {
  body.sst-page-sky22 .sst-map-frame iframe {
    height: 640px;
    min-height: 640px;
  }
}

/* Hub section rhythm — tighter gaps around the tall list widget */
body.sst-page-sky22 main > .sst-section {
  padding-top: 32px;
  padding-bottom: 32px;
}

body.sst-page-sky22 #stays-map.sst-section {
  padding-top: 8px;
  padding-bottom: 12px;
}

body.sst-page-sky22 #featured-destinations.sst-section {
  padding-top: 20px;
}

body.sst-page-sky22 .sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 900px) {
  body.sst-page-sky22 .sst-stays-search-grid {
    grid-template-columns: 1fr 1fr;
  }

  body.sst-page-sky22 .sst-stays-field--destination {
    grid-column: 1 / -1;
  }

  body.sst-page-sky22 .sst-stays-field--submit {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  body.sst-page-sky22 .sst-stays-search-wrap {
    margin-top: -44px;
    padding: 0 14px 16px;
  }

  body.sst-page-sky22 .sst-stays-search-panel {
    border-radius: 16px;
  }

  body.sst-page-sky22 .sst-stays-search-head {
    padding: 16px 16px 12px;
  }

  body.sst-page-sky22 .sst-stays-search-form {
    padding: 14px 14px 10px;
  }

  body.sst-page-sky22 .sst-stays-search-grid {
    grid-template-columns: 1fr;
  }

  body.sst-page-sky22 .sst-stays-search-foot {
    padding: 0 14px 14px;
  }

  body.sst-page-sky22 .sst-stays-search-wrap {
    padding-bottom: 8px;
  }

  body.sst-page-sky22 main > .sst-section {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  body.sst-page-sky22 #stays-map.sst-section {
    padding-top: 6px;
    padding-bottom: 10px;
  }

  body.sst-page-sky22 #featured-destinations.sst-section {
    padding-top: 16px;
  }
}
