/* Places to stay: dedicated page (pages/stay.php) */

/* ── Hero ── */
.shero { position: relative; min-height: 440px; overflow: hidden; background: var(--navy); color: #fff; }
.shero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.shero__img.is-on { opacity: 1; animation: settle 9s var(--ease) both; }
.shero.hero--video .shero__img { animation: none; }
.shero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgb(11 28 40 / 0.78) 0%, rgb(11 28 40 / 0.45) 45%, rgb(11 28 40 / 0.1) 75%), linear-gradient(180deg, rgb(11 28 40 / 0.55) 0%, transparent 30%, rgb(11 28 40 / 0.35) 100%); }
.shero__inner { position: relative; padding-top: 150px; padding-bottom: 104px; }
.shero__eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.shero__title { max-width: 9.5em; margin: 0; font: 500 clamp(40px, 5.6vw, 66px)/1.04 var(--serif); letter-spacing: -0.01em; color: #fff; }
.shero__sub { max-width: 26em; margin: 22px 0 0; font-size: 17px; line-height: 1.55; color: rgb(255 255 255 / 0.9); }
.shero__inner > * { animation: rise 700ms var(--ease) both; }
.shero__inner > :nth-child(2) { animation-delay: 90ms; }
.shero__inner > :nth-child(3) { animation-delay: 180ms; }

/* ── Search bar: overlaps the foot of the hero ── */
.ssearch-wrap { position: relative; z-index: 5; margin-top: -56px; }
.ssearch {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr 1.15fr auto;
  align-items: center;
  padding: 10px 12px 10px 4px;
  border-radius: 8px;
  background: var(--navy);
  box-shadow: 0 22px 50px rgb(11 28 40 / 0.28);
  color: #fff;
}
.ssearch__f { position: relative; display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 22px; cursor: pointer; }
.ssearch__f + .ssearch__f::before { content: ''; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: var(--line-dark); }
.ssearch__f .ic { color: rgb(255 255 255 / 0.85); }
.ssearch__f > span { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ssearch__f b { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.ssearch__f select, .ssearch__f input {
  width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: rgb(255 255 255 / 0.75);
  font: 500 14px/1.3 var(--sans); appearance: none; -webkit-appearance: none; cursor: pointer;
}
.ssearch__f select, .ssearch__f input { color-scheme: dark; }
/* The open list of options: light text on the navy of the bar, on every browser */
.ssearch__f select option, .ssearch__f select optgroup { background-color: var(--navy); color: #fff; }
.ssearch__f select option:checked { background-color: var(--gold-2); color: #fff; }
.ssearch__f input::-webkit-calendar-picker-indicator { filter: invert(1); opacity: 0.6; }
.ssearch__f input:invalid, .ssearch__f input:not(:focus):placeholder-shown { color: rgb(255 255 255 / 0.6); }
.ssearch__f:focus-within { background: rgb(255 255 255 / 0.05); border-radius: 6px; }
.ssearch__btn { min-height: 52px; padding-inline: 30px; white-space: nowrap; }

/* ── Layout: filters | results | map & help ── */
.stay { padding-top: 40px; }
.scrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 12.5px; color: var(--muted); }
.scrumbs a { color: var(--muted); text-decoration: none; }
.scrumbs a:hover { color: var(--ink); }
.stay .wrap, .ssearch-wrap { max-width: 1340px; }
.shero .wrap { max-width: 1340px; }
.stay__grid { display: grid; grid-template-columns: 210px minmax(0, 1fr) 270px; gap: 32px; align-items: start; }

/* Filters */
.sfilters { position: sticky; top: 24px; display: grid; gap: 0; }
.sfilters__head { display: flex; align-items: baseline; justify-content: space-between; padding: 6px 0 16px; border-bottom: 1px solid var(--line); }
.sfilters__head h2 { margin: 0; font: 800 13px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.sfilters .linkbtn { padding: 0; border: 0; background: none; color: var(--muted); font: 600 12.5px var(--sans); cursor: pointer; }
.sfilters .linkbtn:hover { color: var(--ink); text-decoration: underline; }
.sfilters__close { display: none; }
.sf { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); }
.sf__title { margin: 0 0 12px; padding: 0; font: 800 12px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.sf__opt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--slate); cursor: pointer; }
.sf__opt[hidden] { display: none; }
.sf__opt input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); cursor: pointer; flex: none; }
.sf__opt span { flex: 1; min-width: 0; }
.sf__opt small { color: var(--faint); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.sf__opt:hover span { color: var(--ink); }
.sf__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--ink); font: 700 13px var(--sans); cursor: pointer; }
.sf__more[aria-expanded="true"] .ic { transform: rotate(180deg); }

.srange { position: relative; height: 22px; margin-top: 4px; }
.srange__track { position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); border-radius: 2px; background: var(--line); }
.srange__track span { position: absolute; top: 0; bottom: 0; background: var(--navy); }
.srange input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.srange input::-webkit-slider-thumb { width: 14px; height: 14px; border: 2px solid #fff; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 1px var(--navy); pointer-events: auto; cursor: grab; -webkit-appearance: none; }
.srange input::-moz-range-thumb { width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 1px var(--navy); pointer-events: auto; cursor: grab; }
.srange input::-webkit-slider-runnable-track { background: none; }
.srange input::-moz-range-track { background: none; }
.srange__vals { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; }

.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.sfilters__apply { margin-top: 22px; width: 100%; }

/* Results */
.sresults__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 20px; margin-bottom: 26px; }
.sresults__head > div:first-child { flex: 1 1 250px; }
.sresults__title { margin: 0 0 10px; font: 500 clamp(28px, 3vw, 34px)/1.15 var(--serif); color: var(--ink); }
.sresults__text { max-width: 30em; margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.sresults__tools { display: flex; align-items: center; gap: 12px; flex: none; }
.sresults__count { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sresults__filters { display: none; }
.sselect select {
  min-height: 42px; padding: 0 38px 0 14px; border: 1px solid var(--line); border-radius: 4px; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230f2230' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--ink); font: 600 13px var(--sans); appearance: none; -webkit-appearance: none; cursor: pointer;
}

.slist { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.scard {
  position: relative;
  display: grid;
  grid-template-columns: 36% minmax(0, 1fr) auto;
  min-height: 196px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.scard[hidden] { display: none; }
.scard:hover { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
.scard__img { position: relative; display: block; min-height: 100%; overflow: hidden; background: var(--navy-2); }
.scard__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.scard:hover .scard__img img { transform: scale(1.05); }
.scard__fav {
  position: absolute; top: 12px; left: calc(36% - 46px); z-index: 2;
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: rgb(11 28 40 / 0.35); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.2s var(--ease);
}
.scard__fav:hover { background: rgb(11 28 40 / 0.55); }
.scard__fav:active { transform: scale(0.92); }
.scard__fav[aria-pressed="true"] { background: #fff; color: #c2413a; }
.scard__fav[aria-pressed="true"] .ic path { fill: currentColor; }
.scard__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 20px 8px 20px 24px; }
.scard__type { margin: 0; color: var(--gold-2); font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.scard__name { margin: 0; font: 500 23px/1.2 var(--serif); }
.scard__name a { color: var(--ink); text-decoration: none; }
.scard__name a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.scard__name a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.scard__loc { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 13.5px; color: var(--muted); }
.scard__amen { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--slate); }
.scard__amen li { display: inline-flex; align-items: center; gap: 6px; }
.scard__amen .ic { color: var(--muted); }
.scard__text { display: -webkit-box; margin: auto 0 0; overflow: hidden; font-size: 13.5px; line-height: 1.55; color: var(--muted); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.scard__side { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 14px; padding: 20px 22px 20px 8px; }
.scard__price { display: grid; justify-items: end; gap: 2px; margin: 0; color: var(--ink); text-align: right; }
.scard__price small { font-size: 12.5px; color: var(--muted); }
.scard__price b { font: 600 28px/1 var(--sans); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.scard__price--none small { max-width: 7em; font-size: 13px; line-height: 1.35; }
.scard__side .btn { min-height: 38px; padding: 0 16px; font-size: 11.5px; white-space: nowrap; }

.spager { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 34px; }
.spager button {
  display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid transparent; border-radius: 4px;
  background: none; color: var(--ink); font: 700 14px var(--sans); cursor: pointer; font-variant-numeric: tabular-nums;
}
.spager button:hover:not(:disabled) { border-color: var(--line); background: #fff; }
.spager button[aria-current="page"] { background: var(--navy); color: #fff; }
.spager button:disabled { opacity: 0.35; cursor: default; }
.spager .gap { padding: 0 4px; color: var(--faint); }

/* Side: map, help, why us */
.sside { position: sticky; top: 24px; display: grid; gap: 22px; }
.smap { padding: 16px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.smap__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.smap__head h2, .swhy h2 { margin: 0; font: 800 12.5px/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); }
.smap__expand { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--ink); cursor: pointer; }
.smap__expand:hover { background: var(--warm); }
.smap__map { height: 260px; border-radius: 6px; background: #e8ece6; overflow: hidden; z-index: 0; }
.smap__btn { width: 100%; min-height: 42px; margin-top: 12px; font-size: 11.5px; }
/* Full-screen map: lift the whole side column above the list (it is sticky, so it has its own layer) */
.sside.has-full-map { z-index: 120; }
.smap.is-full { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; padding: 18px; border-radius: 0; box-shadow: none; }
.smap__holder { display: none; }
.smap__holder.is-on { display: block; min-height: 380px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.smap.is-full .smap__map { flex: 1; height: auto; }
.smap.is-full .smap__btn { display: none; }
.smap__pin { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; background: var(--navy); color: #fff; transform: rotate(-45deg); box-shadow: 0 4px 10px rgb(11 28 40 / 0.35); border: 2px solid #fff; }
.smap__pin::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.smap__pin.is-hot { background: var(--gold-2); }
.smap .leaflet-popup-content { margin: 10px 14px; font: 600 13px/1.4 var(--sans); }
.smap .leaflet-popup-content a { color: var(--ink); }
.smap .leaflet-popup-content { width: 220px !important; margin: 0; }
.smap .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: 8px; }
.smap__pop { display: block; color: var(--ink); text-decoration: none; }
.smap__pop img { display: block; width: 100%; height: 120px; object-fit: cover; background: var(--navy-2); }
.smap__pop span { display: grid; gap: 3px; padding: 10px 12px 12px; }
.smap__pop small { color: var(--gold-2); font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.smap__pop b { font: 500 16px/1.25 var(--serif); }
.smap__pop em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.smap__pop strong { margin-top: 4px; font-size: 13px; color: var(--ink); }
.smap__pop:hover b { text-decoration: underline; }
.smap .leaflet-tooltip { padding: 5px 9px; border: 0; border-radius: 4px; background: var(--navy); color: #fff; font: 700 12.5px var(--sans); box-shadow: 0 6px 16px rgb(11 28 40 / 0.3); }
.smap .leaflet-tooltip-top::before { border-top-color: var(--navy); }
.smap__pin { transition: transform 0.2s var(--ease); }
.leaflet-marker-icon:hover .smap__pin, .smap__pin.is-hot { transform: rotate(-45deg) scale(1.15); }

.shelp { position: relative; min-height: 180px; overflow: hidden; border-radius: 8px; background: var(--navy); color: #fff; }
.shelp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.45; }
.shelp::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 28 40 / 0.6), rgb(11 28 40 / 0.85)); }
.shelp__in { position: relative; z-index: 1; padding: 26px 22px; }
.shelp h2 { max-width: 8em; margin: 0 0 12px; font: 500 26px/1.15 var(--serif); color: #fff; }
.shelp p { margin: 0 0 18px; font-size: 14px; line-height: 1.55; color: rgb(255 255 255 / 0.85); }
.shelp .btn { min-height: 38px; font-size: 11.5px; }

.swhy { padding: 20px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.swhy ul { display: grid; gap: 18px; margin: 16px 0 0; padding: 0; list-style: none; }
.swhy li { display: flex; gap: 14px; }
.swhy .ic { margin-top: 2px; color: var(--ink); }
.swhy span { display: grid; gap: 3px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.swhy b { font-size: 14px; color: var(--ink); }

/* ── Get inspired ── */
.sinsp__title { margin: 0 0 8px; font: 500 clamp(26px, 2.6vw, 30px)/1.2 var(--serif); color: var(--ink); }
.sinsp__text { margin: 0 0 26px; font-size: 14.5px; color: var(--muted); }
.sinsp__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.sinsp__card { position: relative; display: grid; align-content: end; min-height: 150px; padding: 18px; overflow: hidden; border-radius: 8px; background: var(--navy-2); color: #fff; text-decoration: none; }
.sinsp__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.sinsp__card::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 25%, rgb(11 28 40 / 0.82)); }
.sinsp__card:hover img { transform: scale(1.06); }
.sinsp__name, .sinsp__count, .sinsp__go { position: relative; z-index: 2; }
.sinsp__name { font: 500 21px/1.2 var(--serif); padding-right: 36px; }
.sinsp__count { margin-top: 6px; font-size: 12.5px; font-weight: 700; color: rgb(255 255 255 / 0.85); }
.sinsp__go { position: absolute; right: 16px; bottom: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgb(255 255 255 / 0.5); transition: background 0.25s, border-color 0.25s; }
.sinsp__card:hover .sinsp__go { background: var(--gold); border-color: var(--gold); }

/* ── Tablet: map and help move under the list ── */
@media (max-width: 1180px) {
  .stay__grid { grid-template-columns: 210px minmax(0, 1fr); }
  .sside { position: static; grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .sinsp__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .ssearch { grid-template-columns: 1fr 1fr; padding: 8px; gap: 0; }
  .ssearch__f + .ssearch__f::before { display: none; }
  .ssearch__f { border-bottom: 1px solid var(--line-dark); }
  .ssearch__btn { grid-column: 1 / -1; margin: 10px 6px 4px; }
  .ssearch-wrap { margin-top: -40px; }
  .stay__grid { grid-template-columns: minmax(0, 1fr); }
  .sresults__filters { display: inline-flex; min-height: 42px; padding: 0 16px; }
  /* Filters slide in as a drawer */
  .sfilters { position: fixed; inset: 0 auto 0 0; z-index: 95; width: min(360px, 88vw); padding: 18px 22px 28px; overflow-y: auto; background: var(--warm); box-shadow: var(--shadow); transform: translateX(-102%); transition: transform 0.4s var(--ease); visibility: hidden; }
  .sfilters.is-open { transform: none; visibility: visible; box-shadow: 0 0 0 100vmax rgb(11 28 40 / 0.45); }
  .sfilters__close { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 8px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
  .sfilters__head { align-items: center; }
  .sfilters__head .linkbtn { margin-left: auto; }
  .sside { grid-template-columns: 1fr 1fr; }
  .smap { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .shero { min-height: 400px; }
  .shero__inner { padding-top: 120px; padding-bottom: 86px; }
  .ssearch { grid-template-columns: 1fr; }
  .ssearch__f { padding: 12px 14px; }
  .sresults__head { flex-direction: column; align-items: stretch; }
  .sresults__head > div:first-child { flex: none; }
  .sresults__tools { flex-wrap: wrap; gap: 10px; }
  .sresults__count { flex-basis: 100%; order: 3; }
  .sselect { flex: 1; }
  .sselect select { width: 100%; }
  .scard { grid-template-columns: 1fr; }
  .scard__img { aspect-ratio: 16 / 10; }
  .scard__fav { left: auto; right: 12px; }
  .scard__body { padding: 18px 18px 6px; }
  .scard__side { flex-direction: row; align-items: center; justify-content: space-between; padding: 12px 18px 18px; }
  .scard__price { justify-items: start; text-align: left; grid-auto-flow: column; align-items: baseline; gap: 6px; }
  .scard__price b { font-size: 24px; }
  .sside { grid-template-columns: 1fr; }
  .sinsp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .sinsp__card { min-height: 130px; padding: 14px; }
  .sinsp__name { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .shero__img, .shero__inner > * { animation: none; }
}
.scard.is-hot { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }

.smap__close { display: none; min-height: 38px; padding: 0 16px; font-size: 11.5px; }
.smap.is-full .smap__close { display: inline-flex; }
.smap.is-full .smap__expand { display: none; }
