/* ══ Stay search & hotel page (Pages/Stays) ═══════════════════════════════════
   Builds on villa-rates.css (tokens, search bar, rates) and villa-search.css (filters, cards). */

/* Search bar: destination, dates, guests, nationality */
.st-search { grid-template-columns: 1.45fr 1fr 1fr 1fr 1.1fr auto; }
.st-hero-slim { padding: 150px 0 40px; }
.st-hero-slim::before { opacity: .55 !important; }

.st-field-guests { position: relative; }
.st-guests-btn {
    width: 100%; padding: 2px 18px 2px 0; border: none; background: transparent; cursor: pointer; text-align: left;
    font-family: "Urbanist", sans-serif; font-size: 16px; font-weight: 600; line-height: 1.5; color: var(--vr-ink);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative;
}
.st-guests-btn::after {
    content: ""; position: absolute; right: 0; top: 50%; width: 10px; height: 6px; margin-top: -3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23BD945A' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center;
}
.st-guests-panel {
    position: absolute; left: 0; top: calc(100% + 10px); z-index: 1061; width: 320px; padding: 18px;
    background: #fff; border: 1px solid var(--vr-line); border-radius: 16px; box-shadow: 0 18px 50px rgba(20, 16, 10, .18);
    text-align: left;
}
.st-guests-panel[hidden] { display: none; }
/* The theme paints text inside dark-overlay heroes white. */
.st-search .st-guests-btn span { display: inline; color: var(--vr-ink); }
.st-search .st-age span { color: var(--vr-muted); text-transform: none; letter-spacing: 0; }
.st-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; }
.st-step + .st-step { border-top: 1px solid var(--vr-line); }
.st-step-label { display: flex; flex-direction: column; line-height: 1.35; }
.st-step-label strong { font-size: 15px; color: var(--vr-ink); }
.st-step-label small { font-size: 12px; color: var(--vr-muted); }
.st-stepper { display: flex; align-items: center; gap: 10px; }
.st-stepper button {
    width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--vr-gold-border); background: #fff; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; color: var(--vr-gold-dark); font-size: 13px;
    transition: background .15s, color .15s;
}
.st-stepper button:hover { background: var(--vr-gold); border-color: var(--vr-gold); color: #fff; }
.st-stepper output { min-width: 18px; text-align: center; font-weight: 800; color: var(--vr-ink); }
.st-ages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.st-ages:empty { display: none; }
.st-age { display: flex; flex-direction: column; gap: 4px; margin: 0; font-size: 12px; font-weight: 700; color: var(--vr-muted); }
.st-age select {
    padding: 7px 10px; border: 1px solid var(--vr-gold-border); border-radius: 10px; background: #fff;
    font-size: 14px; font-weight: 600; color: var(--vr-ink);
}
.st-guests-note { margin: 12px 0; font-size: 12px; line-height: 1.5; color: var(--vr-muted); }
.st-guests-done { width: 100%; padding: 11px 18px; }

.st-meta { align-items: center; }
.st-currency { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; }
.st-currency select {
    padding: 3px 26px 3px 10px; border-radius: 20px; cursor: pointer; font-size: 13px; font-weight: 800;
    border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23ffffff' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 9px center;
    color: #fff; -webkit-appearance: none; appearance: none;
}
.st-currency select option { color: var(--vr-ink); }

/* Landing (no destination yet) */
.st-landing-head { text-align: center; margin-bottom: 26px; }
.st-landing-head h2 { margin: 0 0 8px; font-family: "Gilda Display", serif; font-size: 34px; color: var(--vr-ink); }
.st-landing-head p { margin: 0; color: var(--vr-muted); font-size: 16px; }
.st-places { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.st-place {
    position: relative; display: block; height: 210px; padding: 0; overflow: hidden; cursor: pointer; text-align: left;
    border: none; border-radius: 18px; background: linear-gradient(135deg, #c9a774, #8a6a3d);
    box-shadow: 0 10px 30px rgba(20, 16, 10, .10); transition: transform .25s, box-shadow .25s;
}
.st-place:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(20, 16, 10, .18); }
.st-place-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s; }
.st-place:hover .st-place-img { transform: scale(1.05); }
.st-place::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .7)); }
.st-place-body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; color: #fff; }
.st-place-body strong { font-family: "Gilda Display", serif; font-size: 24px; font-weight: 400; line-height: 1.2; }
.st-place-body small { font-size: 13px; font-weight: 600; opacity: .9; }
.st-usps { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; margin: 34px 0 0; padding: 0; list-style: none; }
.st-usps li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--vr-ink-soft); }
.st-usps i { font-size: 20px; color: var(--vr-gold); }

/* Filters */
.st-text { position: relative; }
.st-text i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--vr-gold); font-size: 14px; }
.st-text input {
    width: 100%; height: 44px; padding: 0 12px 0 36px; border: 1px solid var(--vr-gold-border); border-radius: 12px;
    font-family: "Urbanist", sans-serif; font-size: 15px; color: var(--vr-ink); background: #fff; outline: none;
}
.st-text input:focus { border-color: var(--vr-gold); box-shadow: 0 0 0 3px rgba(189, 148, 90, .14); }
.st-check span:first-of-type i { width: 18px; margin-right: 4px; color: var(--vr-gold); text-align: center; }
.st-stars-pills .vs-pill { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; }
.st-stars-pills .vs-pill i { font-size: 11px; color: var(--vr-gold); }
.st-stars-pills .vs-pill.is-active i { color: #fff; }
.st-stars-pills .vs-pill[disabled] { opacity: .4; cursor: default; }
.st-pill-n { margin-left: 3px; font-size: 11px; font-weight: 700; opacity: .65; }
.vs-ffield > .vs-check:first-of-type { margin-top: -2px; }
.st-check[hidden] { display: none; }
.st-expand { margin-top: 6px; }

/* Toolbar: stay type tabs and notes */
.st-kinds { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 14px; background: #fff; border: 1px solid var(--vr-line); }
.st-kind {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: none; border-radius: 10px; cursor: pointer;
    background: transparent; font-size: 14px; font-weight: 700; color: var(--vr-ink-soft); transition: background .2s, color .2s;
}
.st-kind span { font-size: 12px; font-weight: 800; padding: 0 7px; border-radius: 10px; background: var(--vr-gold-soft); color: var(--vr-gold-dark); }
.st-kind i { color: var(--vr-gold); }
.st-kind:hover { color: var(--vr-ink); }
.st-kind.is-active { background: var(--vr-gold); color: #fff; }
.st-kind.is-active i { color: #fff; }
.st-kind.is-active span { background: rgba(255, 255, 255, .25); color: #fff; }
.st-note {
    display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; padding: 11px 16px; border-radius: 12px;
    background: #fff; border: 1px solid var(--vr-line); font-size: 14px; line-height: 1.5; color: var(--vr-ink-soft);
}
.st-note i { margin-top: 3px; color: var(--vr-gold); }
.st-note.is-warn { border-color: rgba(178, 58, 43, .25); background: rgba(178, 58, 43, .04); }
.st-note.is-warn i { color: var(--vr-red); }

/* Cards */
.st-card .vs-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.st-stars { display: inline-flex; gap: 2px; font-size: 12px; color: var(--vr-gold); white-space: nowrap; }
.st-kind-badge {
    position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
    padding: 3px 11px; border-radius: 20px; background: rgba(255, 255, 255, .94); color: var(--vr-ink);
    font-size: 12px; font-weight: 800; line-height: 1.7; box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.st-kind-badge i { color: var(--vr-gold); }
.st-ribbon-deal { background: var(--vr-green); box-shadow: 0 4px 12px rgba(46, 125, 50, .35); }
.st-amen { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 12px; padding: 0; list-style: none; }
.st-amen li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--vr-muted); }
.st-amen i { color: var(--vr-gold); }
.st-charged { margin-top: 2px; font-size: 12px; color: var(--vr-muted); }
.st-ctas { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.st-ctas .vs-cta { grid-column: auto; }
.st-rooms-btn { display: inline-flex; align-items: center; gap: 8px; }
.st-rooms-btn .st-caret { font-size: 11px; transition: transform .2s; }
.st-card.is-open .st-rooms-btn { background: var(--vr-gold); color: #fff; }
.st-card.is-open .st-rooms-btn .st-caret { transform: rotate(180deg); }
.st-rooms { grid-column: 1 / -1; border-top: 1px solid var(--vr-line); background: #fcfaf7; }
.st-rooms[hidden] { display: none; }
.st-rooms > .vr-loading-text, .st-rooms > .vr-empty, .st-rooms > .vr-alert { margin: 18px 22px; }

/* Content still loading (static file not downloaded yet) */
.st-card.is-pending .vs-media { background: linear-gradient(90deg, #f1ece4 25%, #f9f6f1 50%, #f1ece4 75%); background-size: 200% 100%; animation: vr-shimmer 1.2s ease-in-out infinite; }
.st-card.is-pending .vs-media-empty { opacity: .5; }
.st-pending-lines { display: grid; gap: 8px; margin-bottom: 16px; }
.st-pending-lines span { height: 10px; border-radius: 6px; background: #f1ece4; }
.st-pending-lines span:last-child { width: 70%; }

/* Rooms & rates */
.st-rooms-inner { padding: 18px 22px 22px; }
.st-rooms-head { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--vr-muted); }
.st-rooms-head i { color: var(--vr-gold); margin-right: 4px; }
.st-room { background: #fff; border: 1px solid var(--vr-line); border-radius: 16px; overflow: hidden; }
.st-room + .st-room { margin-top: 14px; }
.st-room-head { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px; border-bottom: 1px solid var(--vr-line); }
.st-room-img {
    position: relative; height: 110px; border-radius: 12px; overflow: hidden; background: #efe9df;
    display: flex; align-items: center; justify-content: center; color: rgba(189, 148, 90, .6); font-size: 30px;
}
.st-room-img img { width: 100%; height: 100%; object-fit: cover; }
.st-room-imgs {
    position: absolute; right: 6px; bottom: 6px; padding: 1px 8px; border-radius: 12px; background: rgba(20, 20, 20, .6);
    color: #fff; font-size: 11px; font-weight: 700;
}
.st-room-info h4 { margin: 2px 0 8px; font-family: "Gilda Display", serif; font-size: 20px; line-height: 1.25; color: var(--vr-ink); }
.st-room-info .vs-facts { margin-bottom: 8px; }
.st-room-info .vs-facts li { font-size: 13px; }
.st-room-tags { margin-bottom: 0; gap: 6px; }
.st-room-tags .vr-tag { padding: 2px 10px; font-size: 12px; }
.st-tag-more { cursor: help; }
.st-rate {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px 22px;
    padding: 14px 16px; border-top: 1px solid var(--vr-line);
}
.st-rate:first-child { border-top: none; }
.st-rate[hidden] { display: none; }
.st-rate.is-best { background: linear-gradient(90deg, rgba(189, 148, 90, .06), transparent 60%); }
.st-rate-name { margin-bottom: 6px; font-size: 14px; font-weight: 800; color: var(--vr-ink); }
.st-rate .vr-tags { margin-bottom: 6px; gap: 6px; }
.st-rate .vr-tags .vr-tag { padding: 2px 10px; font-size: 12px; }
.st-rate .vr-perks li { font-size: 13px; }
.st-rate-price { display: flex; flex-direction: column; text-align: right; line-height: 1.3; min-width: 140px; }
.st-rate-price .vr-price-total { font-size: 24px; }
.st-rate-cta .vr-btn-reserve { padding: 12px 20px; white-space: nowrap; }
.st-rates-more { display: block; margin: 0 16px 14px; }
.st-remarks { margin-top: 14px; }
.st-remarks p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--vr-ink-soft); }

/* Show more */
.st-more { display: flex; justify-content: center; margin-top: 6px; }
.st-more-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 34px; }
.st-more-btn.is-loading { opacity: .6; cursor: progress; }
.st-more-n { font-size: 12px; font-weight: 600; opacity: .75; }
.st-nomatch { padding: 50px 20px; background: #fff; border: 1px solid var(--vr-line); border-radius: 18px; }

/* Hotel page */
.st-hotel { padding: 34px 0 90px; }
.st-crumbs { margin-bottom: 18px; font-size: 14px; font-weight: 700; }
.st-crumbs a { color: var(--vr-gold-dark); text-decoration: none; }
.st-crumbs a:hover { text-decoration: underline; }
.st-hotel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 30px; margin-bottom: 22px; }
.st-hotel-title {
    display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 12px;
    font-family: "Gilda Display", serif; font-size: 42px; line-height: 1.15; color: var(--vr-ink);
}
.st-hotel-title .st-stars { font-size: 15px; }
.st-hotel-head .vr-tags { margin: 0; }
.st-map-link { text-decoration: none; color: var(--vr-gold-dark); }
.st-map-link:hover { background: var(--vr-gold); color: #fff; }
.st-hotel-cta { text-decoration: none; }
.st-hotel-cta:hover { color: #fff; }
.st-gallery {
    display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 210px 210px; gap: 10px; margin-bottom: 34px;
    border-radius: 20px; overflow: hidden;
}
.st-gallery-item { position: relative; padding: 0; border: none; cursor: zoom-in; overflow: hidden; background: #e9e3d9; }
.st-gallery-item.is-main { grid-row: 1 / 3; }
.st-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.st-gallery-item:hover img { transform: scale(1.04); }
.st-gallery-more {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px;
    background: rgba(20, 16, 10, .5); color: #fff; font-size: 20px; font-weight: 800;
}
.st-hotel-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 34px; align-items: start; }
.st-block { padding: 28px; margin-bottom: 24px; background: #fff; border: 1px solid var(--vr-line); border-radius: 18px; scroll-margin-top: 150px; }
.st-block h2 { margin: 0 0 16px; font-family: "Gilda Display", serif; font-size: 28px; color: var(--vr-ink); }
.st-desc p { margin: 0 0 12px; font-size: 15px; line-height: 1.75; color: var(--vr-ink-soft); }
.st-desc.is-clamped { max-height: 230px; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); mask-image: linear-gradient(180deg, #000 60%, transparent); }
.st-hotel-rates .st-room { border-color: var(--vr-line); }
.st-hotel-rates .st-rooms-inner { padding: 0; }
.st-facilities { columns: 3 220px; column-gap: 26px; }
.st-fac-group { break-inside: avoid; margin-bottom: 20px; }
.st-fac-group h3 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--vr-gold-dark); }
.st-fac-group ul { margin: 0; padding: 0; list-style: none; }
.st-fac-group li { display: flex; gap: 8px; padding: 3px 0; font-size: 14px; line-height: 1.45; color: var(--vr-ink-soft); }
.st-fac-group li i { margin-top: 3px; color: var(--vr-green); }
.st-fac-group li.is-popular { font-weight: 700; color: var(--vr-ink); }
.st-hotel-side { position: sticky; top: 150px; display: grid; gap: 18px; }
.st-side-card { padding: 22px; background: #fff; border: 1px solid var(--vr-line); border-radius: 18px; }
.st-side-card h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: "Gilda Display", serif; font-size: 21px; color: var(--vr-ink); }
.st-side-card h3 i { color: var(--vr-gold); }
.st-side-card .vr-perks { margin-bottom: 12px; }
.st-side-ours ul { margin: 0; padding: 0; list-style: none; }
.st-side-ours li + li { border-top: 1px solid var(--vr-line); }
.st-side-ours a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; font-weight: 700; color: var(--vr-ink); text-decoration: none; }
.st-side-ours a:hover { color: var(--vr-gold-dark); }
.st-side-back { text-align: center; text-decoration: none; }

/* Lightbox */
.st-lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(10, 8, 5, .92); }
.st-lightbox[hidden] { display: none; }
.st-lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.st-lb-close, .st-lb-nav {
    position: absolute; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
    border: none; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; cursor: pointer; transition: background .2s;
}
.st-lb-close:hover, .st-lb-nav:hover { background: rgba(255, 255, 255, .25); }
.st-lb-close { top: 20px; right: 20px; }
.st-lb-prev { left: 20px; top: 50%; margin-top: -24px; }
.st-lb-next { right: 20px; top: 50%; margin-top: -24px; }
.st-lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; }

/* Tablet & phone */
@media (max-width: 1199.98px) {
    .st-places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .st-hotel-grid { grid-template-columns: minmax(0, 1fr) 280px; }
}
@media (max-width: 991.98px) {
    .st-hero-slim { padding: 120px 0 30px; }
    .st-places { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-hotel-grid { grid-template-columns: minmax(0, 1fr); }
    .st-hotel-side { position: static; }
    .st-hotel-title { font-size: 34px; }
    .st-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 140px; }
    .st-gallery-item.is-main { grid-column: 1 / -1; grid-row: auto; }
    .st-gallery-item:nth-child(n+4) { display: none; }
    .st-guests-panel { width: min(340px, calc(100vw - 40px)); }
}
@media (max-width: 767.98px) {
    .st-room-head { grid-template-columns: 96px minmax(0, 1fr); }
    .st-room-img { height: 80px; }
    .st-rate { grid-template-columns: minmax(0, 1fr) auto; }
    .st-rate-cta { grid-column: 1 / -1; }
    .st-rate-cta .vr-btn-reserve { width: 100%; }
    .st-kinds { display: flex; width: 100%; }
    .st-kind { flex: 1; justify-content: center; padding: 8px 6px; }
    .st-block { padding: 20px; }
    .st-ctas { justify-content: stretch; }
    .st-ctas > * { flex: 1; justify-content: center; }
}
@media (max-width: 575.98px) {
    .st-places { grid-template-columns: minmax(0, 1fr); }
    .st-place { height: 170px; }
    .st-rooms-inner { padding: 14px; }
    .st-rate-price { text-align: left; }
    .st-hotel-title { font-size: 28px; }
    .st-gallery { grid-template-rows: 200px 110px; }
}

/* The stay search bar keeps its own columns (.st-search comes after .vs-search): give it the same
   tablet/phone grid as the villa search bar, or its fields squeeze into six columns on a phone. */
@media (max-width: 1199.98px) { .st-search { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 991.98px) { .st-search { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767.98px) { .st-ctas > * { white-space: nowrap; padding-left: 12px; padding-right: 12px; } }
