/* Hotels & dharamshalas: homepage section, /hotels/, /dharamshala/ and detail pages. Everything is scoped under .stay-* */
.stay-sec { padding: 72px 0; background: linear-gradient(180deg, #fbf5ea 0%, #fff8ed 100%); }
.stay-wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.stay-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; margin-bottom: 30px; }
.stay-head { padding-left: 16px; border-left: 4px solid var(--gold, #d9a64f); max-width: 780px; }
.stay-kicker { display: inline-block; margin-bottom: 6px; color: var(--saffron, #c96d24); font-size: .95rem; font-weight: 800; }
.stay-head h2 { margin: 0; color: var(--maroon-900, #481014); font: 700 clamp(1.5rem, 3vw, 2.15rem)/1.35 "Tiro Devanagari Sanskrit", serif; }
.stay-head p { margin: 8px 0 0; color: var(--muted, #75645f); }
.stay-ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.stay-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 10px 22px; color: var(--maroon-900, #481014); background: #fff; border: 1px solid rgba(217,166,79,.7); border-radius: 12px; font-weight: 800; text-decoration: none; box-shadow: 0 2px 8px rgba(64,22,17,.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease; }
.stay-cta:hover { transform: translateY(-2px); background: #fff8ed; border-color: var(--saffron, #c96d24); box-shadow: 0 10px 20px rgba(64,22,17,.12); }
.stay-cta:focus-visible, .stay-link:focus-visible, .stay-btn:focus-visible, .stay-chip:focus-visible { outline: 3px solid var(--saffron-bright, #e38c36); outline-offset: 3px; }

.stay-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.stay-grid > li { display: flex; min-width: 0; }
.stay-grid > li[hidden] { display: none; }
.stay-card { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; background: #fff; border: 1px solid rgba(217,166,79,.5); border-radius: 18px; box-shadow: 0 4px 16px rgba(64,22,17,.06); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease; }
.stay-card:hover, .stay-card:focus-within { transform: translateY(-4px); border-color: var(--saffron, #c96d24); box-shadow: 0 16px 32px rgba(64,22,17,.13); }
.stay-media { position: relative; aspect-ratio: 3 / 2; background: #f6ead2; overflow: hidden; }
.stay-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.stay-card:hover .stay-media img { transform: scale(1.04); }
.stay-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #b88a3b; background: radial-gradient(circle at 30% 20%, #fff8ed, #f3e2bd 70%); }
.stay-ph em { font-style: normal; font-size: .82rem; font-weight: 700; color: #8a6a2c; }
.stay-badge { position: absolute; top: 12px; left: 12px; padding: 3px 12px; color: var(--maroon-900, #481014); background: rgba(255,248,237,.95); border: 1px solid rgba(217,166,79,.7); border-radius: 99px; font-size: .78rem; font-weight: 800; }
.stay-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.stay-body h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.5; font-weight: 800; overflow-wrap: anywhere; }
.stay-link { color: var(--maroon-900, #481014); text-decoration: none; }
.stay-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.stay-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; padding: 0; list-style: none; font-size: .9rem; }
.stay-km { color: var(--muted, #75645f); font-weight: 700; }
.stay-price { color: var(--saffron, #c96d24); font-weight: 800; }
.stay-price small { color: var(--muted, #75645f); font-weight: 600; }
.stay-price.is-req { color: var(--muted, #75645f); font-weight: 700; }
.stay-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.stay-chips li { padding: 2px 10px; color: var(--maroon, #7d2727); background: #fdf0dc; border-radius: 99px; font-size: .76rem; font-weight: 800; }
.stay-go { margin-top: auto; padding-top: 14px; color: var(--saffron, #c96d24); font-size: .88rem; font-weight: 800; }
.stay-sub { margin: 0 0 14px; color: var(--maroon-900, #481014); font: 700 1.25rem/1.4 "Tiro Devanagari Sanskrit", serif; }
.stay-group + .stay-group { margin-top: 30px; }
.stay-note { margin: 26px 0 0; padding: 12px 16px; color: #5b4630; background: #fff8e1; border: 1px solid rgba(217,166,79,.6); border-left: 4px solid var(--gold, #d9a64f); border-radius: 10px; font-size: .92rem; line-height: 1.7; }
.stay-fine { margin: 10px 0 0; color: var(--muted, #75645f); font-size: .84rem; line-height: 1.7; }

/* directory */
.stay-dir { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 26px; align-items: start; }
.stay-filters { position: sticky; top: 90px; padding: 18px; background: #fff; border: 1px solid rgba(217,166,79,.5); border-radius: 16px; }
.stay-filters summary { display: none; }
.stay-filters h2 { margin: 0 0 12px; color: var(--maroon-900, #481014); font-size: 1.1rem; }
.stay-fg { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.stay-fg legend { padding: 0; margin-bottom: 6px; color: var(--maroon, #7d2727); font-size: .82rem; font-weight: 800; letter-spacing: .02em; }
.stay-fg label { display: flex; align-items: center; gap: 9px; min-height: 36px; font-size: .92rem; cursor: pointer; }
.stay-fg input[type=checkbox], .stay-fg input[type=radio] { width: 18px; height: 18px; flex: none; accent-color: var(--maroon, #7d2727); }
.stay-fg small { margin-left: auto; color: var(--muted, #75645f); }
.stay-search { display: block; width: 100%; min-height: 44px; margin-bottom: 14px; padding: 8px 12px; color: var(--ink, #2f2220); background: #fff; border: 1px solid rgba(125,39,39,.25); border-radius: 10px; font: inherit; }
.stay-search:focus { outline: 0; border-color: var(--saffron, #c96d24); box-shadow: 0 0 0 3px rgba(201,109,36,.18); }
.stay-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 20px; color: #fff; background: var(--maroon, #7d2727); border: 1px solid var(--maroon, #7d2727); border-radius: 10px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; transition: background-color .2s ease, transform .2s ease; }
.stay-btn:hover { background: var(--maroon-900, #481014); transform: translateY(-1px); }
.stay-btn.is-light { color: var(--maroon-900, #481014); background: #fff; border-color: rgba(125,39,39,.25); }
.stay-btn.is-light:hover { background: #fff8ed; }
.stay-count { margin: 0 0 14px; color: var(--muted, #75645f); font-weight: 700; }
.stay-empty { padding: 30px 22px; text-align: center; color: var(--muted, #75645f); background: #fff; border: 1px dashed rgba(125,39,39,.3); border-radius: 16px; }
.stay-dir .stay-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stay-xlink { margin-top: 30px; text-align: center; }

/* detail */
.stay-detail { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.stay-gallery { display: grid; gap: 10px; }
.stay-hero-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #f6ead2; border: 1px solid rgba(217,166,79,.5); border-radius: 18px; }
.stay-hero-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.stay-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stay-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid rgba(217,166,79,.5); }
.stay-credit { margin: 0; color: var(--muted, #75645f); font-size: .8rem; }
.stay-panel { padding: 22px; background: #fff; border: 1px solid rgba(217,166,79,.5); border-radius: 18px; }
.stay-panel + .stay-panel { margin-top: 18px; }
.stay-panel h2 { margin: 0 0 12px; color: var(--maroon-900, #481014); font: 700 1.25rem/1.4 "Tiro Devanagari Sanskrit", serif; }
.stay-panel p { margin: 0 0 10px; line-height: 1.85; }
.stay-table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.stay-table th, .stay-table td { padding: 10px 6px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(217,166,79,.35); }
.stay-table th { width: 38%; color: var(--maroon, #7d2727); font-weight: 800; }
.stay-table tr:last-child th, .stay-table tr:last-child td { border-bottom: 0; }
.stay-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.stay-tags li { padding: 4px 12px; color: var(--maroon, #7d2727); background: #fdf0dc; border-radius: 99px; font-size: .86rem; font-weight: 800; }
.stay-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.stay-unv { color: var(--muted, #75645f); font-size: .9rem; }

@media (max-width: 1024px) {
  .stay-grid, .stay-dir .stay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stay-dir { grid-template-columns: 1fr; }
  .stay-filters { position: static; padding: 0; }
  .stay-filters summary { display: flex; align-items: center; min-height: 48px; padding: 0 18px; color: var(--maroon-900, #481014); font-weight: 800; cursor: pointer; list-style: none; }
  .stay-filters summary::-webkit-details-marker { display: none; }
  .stay-filters summary::after { content: "▾"; margin-left: auto; }
  .stay-filters[open] summary::after { content: "▴"; }
  .stay-filters .stay-fbody { padding: 0 18px 18px; }
  .stay-detail { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .stay-sec { padding: 52px 0; }
  .stay-wrap { width: calc(100% - 32px); }
  /* homepage: one swipeable row per group; directories: stacked */
  .stay-home .stay-grid { display: flex; gap: 14px; overflow-x: auto; padding: 4px 2px 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .stay-home .stay-grid > li { flex: 0 0 78%; max-width: 320px; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .stay-dir .stay-grid { grid-template-columns: 1fr; }
  .stay-ctas { width: 100%; }
  .stay-cta { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .stay-card, .stay-media img, .stay-cta, .stay-btn { transition: none !important; }
  .stay-card:hover, .stay-card:hover .stay-media img, .stay-cta:hover { transform: none; }
}
