/* Stays: the directory's cards and each stay's own page (owner, 2026-10-22).
 *
 * "This page must be much better in design and it needs to have all the
 * listings as cards instead of just a row." Every stay is a card now. A paid
 * stay (contact_visible) has its photo, price, facilities and booking link; a
 * stay with no plan has a drawn picture of its type, its stage and rating,
 * and nothing that belongs to the Premium Plan. Either card opens the stay's
 * own page, /stays/<slug> (shared/js/stay-page.js), styled below.
 *
 * Built on each brand's styles.v2.css variables (--green, --sand,
 * --terracotta, --radius, --shadow...), so every sister wears its own colours.
 */

/* ── Directory: the toolbar ─────────────────────────────────────────────── */
.dir-tabs { display: flex; gap: 0; border-bottom: 2px solid var(--sand-dark); margin-bottom: 24px; }
.dir-tab { padding: 12px 24px; font-size: 0.88rem; font-weight: 600; color: var(--text-muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -2px; transition: var(--transition); background: none; border-top: none; border-left: none; border-right: none; font-family: 'Inter', sans-serif; }
.dir-tab.active { color: var(--green); border-bottom-color: var(--green); }
.dir-tab:hover:not(.active) { color: var(--text); }

.dir-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; padding: 12px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.dir-search { position: relative; flex: 1 1 240px; min-width: 0; }
.dir-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }
.dir-search input { width: 100%; padding: 10px 14px 10px 40px; border: 1px solid var(--sand-dark); border-radius: 12px; background: var(--sand); font: inherit; font-size: 0.9rem; color: var(--text); outline: none; transition: var(--transition); }
.dir-search input:focus { border-color: var(--green); background: var(--white); }
.dir-filter { padding: 10px 14px; border: 1px solid var(--sand-dark); border-radius: 12px; background: var(--white); font-size: 0.86rem; font-family: 'Inter', sans-serif; color: var(--text); cursor: pointer; outline: none; max-width: 100%; }
.dir-filter:focus { border-color: var(--green); }

.dir-view-toggle { display: flex; gap: 2px; padding: 3px; background: var(--sand); border-radius: 12px; }
.dir-view-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; background: transparent; border-radius: 9px; cursor: pointer; font: 600 0.82rem 'Inter', sans-serif; color: var(--text-muted); transition: var(--transition); }
.dir-view-btn.active { background: var(--white); color: var(--green); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); }

.dir-count { margin: 0 0 18px; font-size: 0.92rem; color: var(--text-muted); }
.dir-count b { color: var(--text); }

/* ── Directory: the lists ───────────────────────────────────────────────── */
#dirGrid { display: block; }
.dir-section + .dir-section { margin-top: 40px; }
.dir-section-title { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--green); }
.dir-section-title small { font: 500 0.85rem 'Inter', sans-serif; color: var(--text-muted); }
.dir-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.dir-cards-featured { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

/* ── A card ─────────────────────────────────────────────────────────────── */
.dir-card { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(0, 0, 0, 0.05); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.dir-card:hover, .dir-card:focus-within { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dir-card.has-stage-color::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--stage-color, var(--green)); z-index: 3; }

.dir-card-img { position: relative; height: 190px; background: var(--sand-dark) center/cover no-repeat; }
.dir-cards-featured .dir-card-img { height: 210px; }
.dir-card-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.5) 80%, rgba(0, 0, 0, 0.66) 100%); pointer-events: none; }
.dir-card-type { position: absolute; top: 10px; left: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 50px; font-size: 0.7rem; font-weight: 700; background: rgba(255, 255, 255, 0.96); color: var(--green); text-transform: uppercase; letter-spacing: 0.06em; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16); }
/* The Premium badge takes the other top corner from the type pill (2026-10-07). */
.dir-card-img .acc-badge { top: 10px; left: auto; right: 10px; z-index: 2; padding: 4px 10px; font-size: 0.7rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18); }
.dir-card-stage-overlay { position: absolute; bottom: 10px; left: 12px; right: 12px; z-index: 2; display: flex; align-items: center; gap: 7px; color: #fff; font-size: 0.78rem; font-weight: 600; line-height: 1.3; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7); }
.dir-card-stage-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--stage-color, #fff); box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85), 0 0 6px rgba(0, 0, 0, 0.4); }

/* A stay with no plan: a drawn picture of its type, never a photo. */
.dir-card-plain .dir-card-img { height: 128px; display: flex; align-items: center; justify-content: center; background: var(--sand); background: linear-gradient(135deg, color-mix(in srgb, var(--stage-color, var(--green)) 16%, var(--sand)) 0%, var(--sand) 100%); }
.dir-card-plain .dir-card-img::after { display: none; }
.dir-card-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background: var(--white); color: var(--stage-color, var(--green)); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1); }
.dir-card-icon svg { width: 28px; height: 28px; }
.dir-card-plain .dir-card-stage-overlay { color: var(--text); text-shadow: none; }

.dir-card-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 16px; }
.dir-card-body h3 { margin: 0; font-family: 'Playfair Display', serif; font-size: 1.08rem; line-height: 1.3; color: var(--green); }
/* The whole card opens the stay's page; the links inside it sit above. */
.dir-card-link { color: inherit; text-decoration: none; }
.dir-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.dir-card-link:focus-visible { outline: none; }
.dir-card:has(.dir-card-link:focus-visible) { outline: 3px solid var(--green); outline-offset: 2px; }
.dir-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 0.8rem; color: var(--text-muted); }
.dir-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.dir-card-rating { color: #b45309; font-weight: 600; }
.dir-card-rating.is-none { color: var(--text-muted); font-weight: 500; }
.dir-card-price { color: var(--text); font-weight: 700; }
.dir-card-amenities { display: flex; gap: 6px; flex-wrap: wrap; }
.dir-amenity { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; padding: 3px 8px; border-radius: 6px; background: var(--sand); color: var(--text-muted); }
.dir-amenity svg { width: 13px; height: 13px; }
.dir-card-offer { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 4px 10px; border-radius: 8px; background: #fef3c7; color: #92400e; font-size: 0.78rem; }
.dir-card-offer b { font-size: 0.9rem; }
.dir-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--sand-dark); }
.dir-card-more { display: inline-flex; align-items: center; gap: 5px; font-size: 0.84rem; font-weight: 700; color: var(--green); }
.dir-card-more svg { width: 16px; height: 16px; transition: transform 0.2s; }
.dir-card:hover .dir-card-more svg { transform: translateX(3px); }
.dir-card-foot .acc-external-link, .dir-card-claim { position: relative; z-index: 2; }
.dir-card-foot .acc-external-link { margin: 0; padding: 8px 14px; }
.dir-card-claim { font-size: 0.78rem; font-weight: 600; color: var(--terracotta-text, var(--terracotta)); text-decoration: underline; text-underline-offset: 2px; }

.dir-map-container { height: 560px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 32px; display: none; }
.acc-map-popup .acc-map-more { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--green); }
.dir-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.dir-empty h3 { font-family: 'Playfair Display', serif; color: var(--green); margin-bottom: 8px; }

@media (max-width: 768px) {
  .dir-cards, .dir-cards-featured { grid-template-columns: 1fr; gap: 16px; }
  .dir-tabs { overflow-x: auto; }
  .dir-tab { white-space: nowrap; padding: 10px 16px; font-size: 0.82rem; }
  .dir-filters { padding: 10px; }
  .dir-filter { flex: 1 1 calc(50% - 10px); }
  .dir-view-toggle { flex: 1 1 100%; }
  .dir-view-btn { flex: 1; justify-content: center; }
  .dir-map-container { height: 420px; }
}

/* ── A stay's page ──────────────────────────────────────────────────────── */
.stay-wrap { padding: 104px 0 64px; background: var(--sand); min-height: 70vh; }
.stay-wrap .container { max-width: 1140px; }
.stay-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 0.85rem; color: var(--text-muted); }
.stay-crumbs a { color: var(--text-muted); text-decoration: none; }
.stay-crumbs a:hover { color: var(--green); text-decoration: underline; }
.stay-crumbs [aria-current] { color: var(--text); font-weight: 600; }
.stay-ico { width: 20px; height: 20px; flex-shrink: 0; }
.stay-page .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.stay-muted { color: var(--text-muted); }

/* Photos: one large and up to four small; a scroller on a phone. */
.stay-hero { position: relative; margin-bottom: 22px; border-radius: var(--radius); overflow: hidden; }
.stay-hero-plain { display: flex; align-items: center; justify-content: center; height: 190px; color: rgba(255, 255, 255, 0.92); background: var(--green); background: linear-gradient(135deg, var(--green) 0%, color-mix(in srgb, var(--green) 60%, #000) 100%); }
.stay-hero-ico { width: 76px; height: 76px; stroke-width: 1.2; }
.stay-gallery { display: grid; gap: 8px; height: 440px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.stay-gallery-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.stay-gallery-2 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr; }
.stay-gallery-3 { grid-template-columns: 2fr 1fr; }
.stay-gallery-4 { grid-template-columns: 2fr 1fr 1fr; }
.stay-gallery-4 .stay-photo:nth-child(4) { grid-column: 2 / 4; }
.stay-photo { padding: 0; margin: 0; border: 0; cursor: zoom-in; overflow: hidden; background: var(--sand-dark); }
.stay-photo-main { grid-row: 1 / -1; }
.stay-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.stay-photo:hover img { transform: scale(1.03); }
.stay-photos-all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.95); color: var(--text); font: 600 0.85rem 'Inter', sans-serif; cursor: pointer; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18); }

.stay-head { margin-bottom: 22px; }
.stay-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.stay-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 50px; background: var(--white); color: var(--green); font-size: 0.8rem; font-weight: 600; text-decoration: none; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); }
.stay-chip .stay-ico { width: 16px; height: 16px; }
a.stay-chip:hover { background: var(--green); color: #fff; }
.stay-chips .acc-badge { position: static; padding: 5px 12px; font-size: 0.74rem; }
.stay-name { margin: 0 0 8px; font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: var(--text); }
.stay-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: 0.92rem; color: var(--text-muted); }
.stay-sub-trail { display: inline-flex; align-items: center; gap: 5px; }
.stay-sub-trail .stay-ico { width: 16px; height: 16px; }
.stay-rating { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; }
.stay-rating-none { color: var(--text-muted); }
.stay-stars { color: #f59e0b; letter-spacing: 1px; }
.stay-stars-off { color: #d6d3d1; }

.stay-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.stay-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 16px; }
.stay-card, .stay-section { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.stay-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.stay-section { padding: 22px 24px; margin-bottom: 18px; }
.stay-section h2, .stay-claim h2 { margin: 0 0 14px; font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--green); }
.stay-section p { margin: 0 0 10px; line-height: 1.7; }
.stay-section p:last-child { margin-bottom: 0; }

.stay-price { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; color: var(--text-muted); font-size: 0.85rem; }
.stay-price b { font-size: 1.45rem; color: var(--text); }
.stay-avail { margin: 0; }
.stay-offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding: 10px 12px; border-radius: 10px; background: #fef3c7; color: #92400e; text-decoration: none; }
.stay-offer b { font-size: 1.1rem; }
.stay-offer small { flex-basis: 100%; font-size: 0.75rem; }
.stay-contact { display: flex; flex-direction: column; gap: 8px; }
.stay-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 1px solid var(--sand-dark); border-radius: 12px; background: var(--white); color: var(--text); font: 600 0.92rem 'Inter', sans-serif; text-decoration: none; text-align: center; transition: var(--transition); }
.stay-btn:hover { border-color: var(--green); color: var(--green); }
.stay-btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.stay-btn-primary:hover { background: var(--green-light, var(--green)); color: #fff; }
.stay-btn-ghost { background: transparent; border-color: var(--green); color: var(--green); }
.stay-btn-sub { font-weight: 500; opacity: 0.75; }
.stay-direct { margin: 4px 0 0; font-size: 0.78rem; line-height: 1.5; color: var(--text-muted); }
.stay-claim p { margin: 0; font-size: 0.9rem; line-height: 1.6; }

.stay-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.stay-amenities li { display: flex; align-items: center; gap: 12px; font-size: 0.93rem; }
.stay-amenities li > svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--sand); color: var(--green); }
.stay-amenities small { display: block; font-size: 0.78rem; color: var(--text-muted); }

.stay-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.stay-video { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.stay-video img, .stay-video iframe { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; }
.stay-video-poster { display: block; width: 100%; height: 100%; }
.stay-video-play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 66px; height: 46px; transform: translate(-50%, -50%); border-radius: 14px; background: rgba(220, 38, 38, 0.92); color: #fff; transition: transform 0.2s; }
.stay-video-play svg { width: 26px; height: 26px; }
.stay-video-poster:hover .stay-video-play { transform: translate(-50%, -50%) scale(1.08); }

.stay-loc-stage { display: flex; align-items: center; gap: 8px; }
.stay-loc-stage a { color: var(--green); font-weight: 600; }
.stay-map { position: relative; z-index: 0; height: 330px; margin: 12px 0 14px; border-radius: 12px; overflow: hidden; background: var(--sand-dark); }
.stay-map-static { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
.stay-loc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.stay-loc-actions .stay-btn { flex: 1 1 220px; }

.stay-reviews-sum { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--text-muted); }
.stay-reviews-sum b { font-size: 2rem; color: var(--text); }
.stay-reviews { margin: 0; padding: 0; list-style: none; }
.stay-review { padding: 14px 0; border-top: 1px solid var(--sand-dark); }
.stay-review:first-child { border-top: 0; padding-top: 0; }
.stay-review-top { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.stay-review-top time { font-size: 0.8rem; color: var(--text-muted); }
.stay-review-title { font-weight: 700; }
.stay-reviews-app { margin-top: 12px !important; }
.stay-reviews-app a, .stay-link { color: var(--green); font-weight: 600; }

.stay-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 0 0 14px; padding: 0; list-style: none; }
.stay-mini { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--sand-dark); border-radius: 12px; color: var(--text); text-decoration: none; transition: var(--transition); }
.stay-mini:hover { border-color: var(--green); box-shadow: var(--shadow); }
.stay-mini-img { flex-shrink: 0; width: 56px; height: 56px; border-radius: 10px; background: var(--sand-dark) center/cover no-repeat; }
.stay-mini-plain { display: flex; align-items: center; justify-content: center; background: var(--sand); color: var(--green); }
.stay-mini-body { display: flex; min-width: 0; flex-direction: column; gap: 2px; font-size: 0.82rem; color: var(--text-muted); }
.stay-mini-body b { overflow: hidden; color: var(--text); font-size: 0.92rem; text-overflow: ellipsis; white-space: nowrap; }
.stay-mini-body .acc-badge { position: static; align-self: flex-start; margin-top: 2px; }

.stay-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; background: rgba(10, 10, 10, 0.94); }
.stay-lightbox img { max-width: min(92vw, 1400px); max-height: 84vh; border-radius: 8px; object-fit: contain; }
.stay-lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; border-radius: 50%; width: 48px; height: 48px; }
.stay-lightbox .stay-lb-close { top: 18px; right: 18px; }
.stay-lightbox .stay-lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.stay-lightbox .stay-lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
.stay-lightbox .stay-lb-count { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); color: #fff; font-size: 0.9rem; }

.stay-missing { padding: 48px 24px; text-align: center; }
.stay-missing h1 { font-family: 'Playfair Display', serif; color: var(--green); }

@media (max-width: 900px) {
  .stay-layout { grid-template-columns: 1fr; gap: 0; }
  .stay-aside { position: static; order: -1; margin-bottom: 18px; }
}
@media (max-width: 768px) {
  .stay-wrap { padding-top: 88px; }
  .stay-gallery { display: grid; height: 260px; grid-auto-flow: column; grid-template-columns: none; grid-template-rows: 1fr; grid-auto-columns: 88%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 12px; }
  .stay-gallery-1 { grid-auto-columns: 100%; }
  .stay-gallery .stay-photo { grid-row: auto; grid-column: auto !important; scroll-snap-align: start; }
  .stay-section { padding: 18px; }
  .stay-map { height: 260px; }
}
