/* Stays (the list of homes to stay in) */

/* Hero with the search */
.stays-hero { position: relative; min-height: 320px; display: flex; padding: 36px 20px 28px; color: #FFFFFF; overflow: hidden; }
.stays-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; }
.stays-hero__shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,26,48,0.6) 0%, rgba(15,26,48,0.3) 55%, rgba(15,26,48,0.2) 100%); }
.stays-hero__inner { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.stays-hero__text { display: flex; flex-direction: column; gap: 8px; }
.stays-hero__eyebrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--head); font-weight: 600; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 1px 10px rgba(15,26,48,0.55); }
.stays-hero__eyebrow > span:first-child { display: inline-flex; }
.stays-hero__eyebrow .icon { display: block; }
.stays-hero h1 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 1.05; letter-spacing: -0.025em; }
.stays-hero__text p { margin: 0; font-size: 18px; max-width: 640px; }

.stays-search { display: flex; flex-direction: column; gap: 16px; color: var(--navy); }
.stays-search__toggle { min-height: 60px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border-radius: 999px; background: #FFFFFF; color: var(--navy); text-decoration: none; box-shadow: 0 8px 24px rgba(15,26,48,0.25); }
.stays-search__summary { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.stays-search__summary > span:first-child { font-family: var(--head); font-weight: 600; font-size: 16px; }
.stays-search__summary > span:last-child { font-size: 13px; color: var(--muted); }
.stays-search__edit { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #FFFFFF; border: 1.5px solid var(--navy); display: inline-flex; align-items: center; font-family: var(--head); font-weight: 600; font-size: 14px; }
.stays-search__form { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; background: #FFFFFF; border-radius: 18px; padding: 16px; scroll-margin-top: 12px; }
.stays-search__form:target, .stays-search.is-open .stays-search__form { display: grid; }
.stays-search.is-closed .stays-search__form { display: none; }
.stays-search__wide { grid-column: 1 / -1; }
.stays-search__go { min-height: 52px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: var(--coral); color: #FFFFFF; border-radius: 12px; font-family: var(--head); font-weight: 600; font-size: 17px; cursor: pointer; transition: background-color .2s ease; }
.stays-search__go:hover, .stays-search__go:focus-visible { background: var(--coral-dark); }

@media (min-width: 900px) {
  .stays-hero { min-height: 430px; padding: 56px 32px 36px; }
  .stays-hero__img { object-position: center 100%; }
  .stays-hero__shade { background: linear-gradient(to right, rgba(15,26,48,0.62) 0%, rgba(15,26,48,0.4) 40%, rgba(15,26,48,0.15) 65%, rgba(15,26,48,0.1) 100%); }
  .stays-hero__inner { max-width: var(--wrap); margin: 0 auto; gap: 22px; }
  .stays-hero__text { gap: 10px; }
  .stays-hero__eyebrow { gap: 8px; font-size: 13px; }
  .stays-hero h1 { font-size: 52px; }
  .stays-search__form, .stays-search.is-closed .stays-search__form { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; align-items: end; border-radius: 16px; box-shadow: 0 12px 40px rgba(15,26,48,0.25); }
  .stays-search__wide { grid-column: auto; }
  .stays-search__go { min-height: 0; height: 48px; display: inline-flex; }
}

/* Filters, sort and count */
.stays-list__inner { display: flex; flex-direction: column; }
.stays-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.stays-chips { grid-column: 1 / -1; gap: 8px; padding: 0 20px 4px; }
.chip { transition: background-color .2s ease, border-color .2s ease, color .2s ease; }
.chip--on, .chip--on:hover { border-color: var(--navy); background: var(--navy); color: #FFFFFF; }
.stays-count { margin: 0; padding-left: 20px; font-size: 14px; color: var(--muted); }
.stays-sort { display: flex; align-items: center; gap: 8px; padding-right: 20px; }
.stays-sort label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; }
.stays-sort select { height: 44px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 8px; font-size: 16px; color: var(--navy); background: #FFFFFF; }
.stays-sort__go { min-height: 44px; padding: 0 14px; border: 1.5px solid var(--navy); border-radius: 10px; background: #FFFFFF; font-family: var(--head); font-weight: 600; font-size: 15px; cursor: pointer; }
.stays-heading { margin: 4px 0 0; font-family: var(--head); font-weight: 700; font-size: 28px; letter-spacing: -0.015em; }
[data-swap-region].is-loading { opacity: 0.6; transition: opacity .15s ease .1s; }
#results { scroll-margin-top: 8px; }
#newest { scroll-margin-top: 12px; }

/* The cards */
.stays-list { padding-bottom: 32px; }
.stays-grid { display: flex; flex-direction: column; gap: 18px; padding: 20px 16px 0; }
.stay-card--list .stay-card__media img { height: 210px; }
.stay-card--list .stay-card__name { font-size: 20px; }
.stay-card__line { font-size: 14px; color: var(--muted); }
.stay-card--list .stay-card__foot { margin-top: 8px; padding-top: 0; border-top: 0; gap: 12px; }
.stay-card--list .stay-card__price { font-size: 14px; }
.stay-card--list .stay-card__price strong { font-size: 19px; }
.stays-more { margin: 18px 16px 0; min-height: 52px; display: flex; }
@media (max-width: 899.98px) { .stays-list:not(.is-all) .stay-card--more { display: none; } }
.stays-empty { margin: 20px 16px 0; background: var(--mist); border-radius: 20px; padding: 28px 20px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.stays-empty h3 { margin: 0; font-family: var(--head); font-weight: 600; font-size: 20px; }
.stays-empty p { margin: 0; font-size: 16px; color: var(--muted); }
.stays-empty .btn { margin-top: 6px; }

@media (min-width: 900px) {
  .stays-list { position: relative; overflow: hidden; padding: 36px 32px 72px; }
  .stays-list__inner { max-width: var(--wrap); margin: 0 auto; gap: 24px; }
  .stays-tools { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 0; border-bottom: 0; }
  .stays-chips { flex-wrap: wrap; gap: 10px; padding: 0; overflow: visible; }
  .stays-sort { padding-right: 0; }
  .stays-sort label { gap: 10px; font-size: 14px; }
  .stays-sort select { padding: 0 10px; font-size: 15px; }
  .stays-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; padding: 0; }
  .stay-card--list .stay-card__media img { height: 220px; }
  .stay-card--list .stay-card__name { font-size: 21px; }
  .stay-card--list .facts { gap: 6px 16px; }
  .stay-card--list .stay-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
  .stay-card--list .stay-card__price strong { font-size: 20px; }
  .stays-more { align-self: center; margin: 8px 0 0; padding: 0 28px; }
  .stays-empty { margin: 0; padding: 40px; }
  .stays-empty h3 { font-size: 22px; }
  .stays-empty .btn { margin-top: 8px; }
}

/* Longer stays / need a hand */
.stays-help { padding: 0 16px 36px; }
.stays-help__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.help-card { background: var(--cream); border-radius: 24px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; }
.help-card--navy { background: var(--navy); color: #FFFFFF; }
.help-card__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #FFFFFF; color: var(--navy); display: grid; place-items: center; }
.help-card--navy .help-card__icon { background: var(--coral); color: #FFFFFF; }
.help-card__eyebrow { margin-top: 4px; }
.help-card h2 { margin: 0; font-family: var(--head); font-weight: 700; font-size: 22px; letter-spacing: -0.015em; }
.help-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
.help-card--navy p { color: var(--blue); }
.help-card__actions { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.help-card__actions .btn { flex: 1 1 100%; }
.help-card__phone { color: #FFFFFF; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--head); font-weight: 600; font-size: 16px; }
.help-card__phone:hover { color: var(--coral-soft); }
@media (min-width: 900px) {
  .stays-help { padding: 0 32px 96px; }
  .stays-help__inner { max-width: var(--wrap); margin: 0 auto; gap: 24px; }
  .help-card { padding: 36px; }
  .help-card h2 { font-size: 28px; }
  .help-card p { font-size: 16px; }
  .help-card__actions .btn { flex: none; }
}

/* Dated search: homes with no calendar yet, and the line under the count that explains them. */
.stays-dates-note { margin: 12px 0 0; padding: 0 20px; font-size: 14px; color: var(--muted); }
.stay-card__dates { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.stay-card__dates .icon { flex: none; }
@media (min-width: 900px) {
  .stays-dates-note { margin: 0; padding: 0; font-size: 15px; }
  .stay-card__dates { font-size: 14px; }
}
