/* Tour search page (UMA Partner API) */
.s-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--green-950); color: var(--cream-50);
  padding: calc(var(--header-h) + 64px) 0 48px;
}
.s-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .45; }
.s-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(7,29,20,.55), rgba(7,29,20,.92) 75%); }
.s-hero h1 { margin-top: 14px; }
.s-hero__lead { margin-top: 14px; color: rgba(246,243,239,.75); max-width: 56ch; }

.s-form {
  margin-top: 36px; padding: 10px; border-radius: var(--r-lg); background: var(--cream-50); color: var(--ink);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); display: grid; gap: 8px;
}
.s-form__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.s-form__row--2 { grid-template-columns: 1.4fr 1fr auto; }
.s-form__row--more { grid-template-columns: 1.1fr 1fr .8fr 1fr; padding-top: 8px; }
.s-field { position: relative; display: grid; gap: 4px; padding: 10px 12px 10px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); min-width: 0; }
.s-field:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(26,85,60,.12); }
.s-field > span { font-size: 12px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.s-input {
  width: 100%; border: 0; background: transparent; outline: none; font-size: 17px; font-weight: 500;
  padding: 0; height: 28px; min-width: 0; text-align: left;
}
select.s-input { appearance: none; cursor: pointer; padding-right: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%2351605a' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 2px center; }
select.s-input:disabled { color: var(--ink-3); cursor: not-allowed; }
.s-field.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(180,65,47,.12); }
.s-pair { display: flex; align-items: center; gap: 8px; }
.s-pair i { font-style: normal; color: var(--ink-3); }
.s-pair .s-input { flex: 1 1 0; min-width: 0; }
input[type=date].s-input { font-size: 16px; }
@media (max-width: 420px) { input[type=date].s-input { font-size: 15px; letter-spacing: -.02em; } input[type=date].s-input::-webkit-calendar-picker-indicator { margin-left: 0; } }
.s-submit { min-height: 100%; padding: 0 32px; border-radius: 14px; font-size: 17px; }

.s-guests { cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-pop {
  position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: 300px;
  background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 16px; display: grid; gap: 12px;
}
.s-pop[hidden] { display: none; }
.s-pop__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.s-pop__row b { display: block; font-weight: 500; }
.s-pop__row small { color: var(--ink-3); font-size: 13px; }
.s-pop__kids { display: grid; gap: 8px; }
.s-pop__kids:empty { display: none; }
.kid { display: flex; gap: 8px; align-items: center; }
.kid .select { height: 40px; flex: 1; }
.kid button { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); }
.kid button svg { width: 16px; height: 16px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); font-size: 20px; line-height: 1; }
.stepper button:hover { border-color: var(--ink-3); }
.stepper button:disabled { opacity: .35; pointer-events: none; }
.stepper output { min-width: 18px; text-align: center; font-weight: 500; }

.s-more summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; font-size: 15px; font-weight: 500; color: var(--ink-2); border-radius: 10px;
}
.s-more summary::-webkit-details-marker { display: none; }
.s-more summary::after { content: '+'; font-size: 18px; line-height: 1; }
.s-more[open] summary::after { content: '−'; }
.s-more summary:hover { color: var(--ink); }
.s-stars { display: flex; gap: 6px; }
.s-stars label { position: relative; cursor: pointer; }
.s-stars input { position: absolute; opacity: 0; }
.s-stars span { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--cream-100); font-size: 14px; font-weight: 500; transition: background-color .2s, color .2s; }
.s-stars input:checked + span { background: var(--green-900); color: var(--cream-50); }
.s-stars input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.s-form__err { color: var(--danger); font-size: 15px; padding: 0 8px 4px; }

/* Results */
.s-results { padding: 32px 0 clamp(72px, 9vw, 120px); min-height: 50vh; }
.s-demo {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 14px; margin-bottom: 20px;
  background: rgba(205,172,142,.18); color: #6b5238; font-size: 15px;
}
.s-demo svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.s-demo[hidden] { display: none; }
.s-state { text-align: center; display: grid; justify-items: center; gap: 12px; padding: clamp(40px, 8vw, 96px) 16px; }
.s-state h2 { max-width: 24ch; }
.s-state__icon { width: 44px; opacity: .25; margin-bottom: 4px; }
.s-state .btn { margin-top: 8px; }

.s-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.s-count { font-size: clamp(22px, 2vw, 28px); font-weight: 500; letter-spacing: -.01em; }
.s-count span { color: var(--ink-3); font-weight: 400; }
.s-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.s-tools .select { height: 40px; width: auto; font-size: 15px; }
.s-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s-chip {
  height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--white);
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color .2s, color .2s, border-color .2s;
}
.s-chip:hover { border-color: var(--ink-3); color: var(--ink); }
.s-chip[aria-pressed='true'] { background: var(--green-900); border-color: var(--green-900); color: var(--cream-50); }

.offers { display: grid; gap: 10px; }
.offer {
  display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 20px; border-radius: var(--r-lg);
  background: var(--white); border: 1px solid var(--line); transition: box-shadow .3s, transform .3s var(--ease);
  animation: rise .5s var(--ease) both;
}
.offer:hover { box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.offer__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.offer__stars { color: var(--gold-1); letter-spacing: 1px; }
.offer h3 { margin-top: 6px; font-size: clamp(20px, 1.8vw, 24px); letter-spacing: -.01em; line-height: 1.2; }
.offer__facts { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, auto)); gap: 8px 28px; justify-content: start; }
.offer__facts small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.offer__facts b { font-weight: 500; font-size: 16px; }
.offer__tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 4px 10px; border-radius: 8px; background: var(--cream-100); font-size: 14px; }
.tag svg { width: 15px; height: 15px; flex: none; }
.tag--meal { background: rgba(26,85,60,.08); color: var(--green); font-weight: 500; }
.offer__side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 12px; text-align: right; min-width: 190px; padding-left: 20px; border-left: 1px dashed var(--line); }
.offer__price { font-size: clamp(26px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.02em; line-height: 1; }
.offer__per { margin-top: 6px; font-size: 14px; color: var(--ink-3); }

.skeleton { height: 168px; border-radius: var(--r-lg); background: linear-gradient(90deg, #ece7e1 0%, #f6f2ee 50%, #ece7e1 100%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.s-loading { display: grid; gap: 10px; }
.s-loading__text { text-align: center; padding: 8px 0 16px; }
.s-loading__text b { display: block; font-weight: 500; font-size: 18px; }
.s-loading__plane { width: 40px; height: 40px; margin: 0 auto 10px; animation: float 2.4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-8px); } }
.s-sentinel { display: flex; justify-content: center; padding: 28px 0 8px; }
.s-sentinel[hidden], .s-end[hidden] { display: none; }
.s-spinner { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(15,31,24,.12); border-top-color: var(--green); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.s-end { text-align: center; padding: 28px 0 0; font-size: 15px; }

.header .btn[aria-current='page'] { background: var(--gold); }

@media (max-width: 1024px) {
  .s-form__row { grid-template-columns: 1fr 1fr; }
  .s-form__row--2 { grid-template-columns: 1fr 1fr; }
  .s-form__row--2 .s-submit { grid-column: 1 / -1; min-height: 54px; }
  .s-form__row--more { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .s-hero { padding-top: calc(var(--header-h) + 36px); }
  .s-form__row, .s-form__row--2, .s-form__row--more { grid-template-columns: 1fr; }
  .s-pop { left: 0; right: 0; width: auto; }
  .offer { grid-template-columns: 1fr; padding: 16px; }
  .offer__facts { grid-template-columns: 1fr 1fr; }
  .offer__side { flex-direction: row; align-items: center; text-align: left; border-left: 0; border-top: 1px dashed var(--line); padding: 14px 0 0; min-width: 0; }
  .s-tools { width: 100%; }
}
