/* ==========================================================================
   Sofhor — Stays (resorts, rooms, booking widget)
   Uses the brand tokens from main.css.
   ========================================================================== */

.st { --st-r: 22px; --st-shadow: 0 24px 60px -28px rgba(58, 10, 14, .35); background: var(--paper); }

/* Tri-colour ribbon ------------------------------------------------------- */
.st-ribbon { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--gold) 0 33.33%, #fff 33.33% 66.66%, var(--leaf) 66.66%); z-index: 3; }
.st-ribbon--inline { position: static; display: block; width: 120px; height: 5px; border-radius: 5px; margin-top: 28px; }

/* Hero ---------------------------------------------------------------- */
.st-hero { position: relative; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: flex-end; color: var(--paper); background: var(--ink-deep); overflow: hidden; }
.st-hero__media, .st-hero__shade { position: absolute; inset: 0; }
.st-hero__img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.03); animation: st-zoom 14s ease-out forwards; }
@keyframes st-zoom { to { transform: scale(1); } }
.st-hero__shade { background: linear-gradient(180deg, rgba(36,5,8,.55) 0%, rgba(36,5,8,.05) 35%, rgba(36,5,8,.35) 60%, rgba(36,5,8,.88) 100%); }
.st-hero__content { position: relative; z-index: 2; padding-top: 150px; padding-bottom: clamp(48px, 7vw, 84px); }
.st-hero .breadcrumb { margin-bottom: 22px; }
.st-hero .breadcrumb, .st-hero .breadcrumb a { color: var(--on-dark); }
.st-hero__loc { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.st-hero__title { font-family: var(--serif); font-weight: 500; font-size: clamp(44px, 7.2vw, 104px); line-height: .98; letter-spacing: -.02em; max-width: 14ch; text-wrap: balance; }
.st-hero--room .st-hero__title { font-size: clamp(40px, 6vw, 84px); max-width: 18ch; }
.st-hero__tag { margin-top: 18px; font-size: clamp(18px, 1.6vw, 22px); color: var(--on-dark); max-width: 46ch; }
.st-hero__chips { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.st-hero__chips li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-size: 15px; }
.st-hero__chips strong { font-family: var(--serif); font-weight: 600; font-size: 18px; color: #fff; }

/* Mosaic gallery -------------------------------------------------------- */
.st-mosaic-wrap { position: relative; z-index: 4; margin-top: -40px; }
.st-mosaic { display: grid; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 150px 150px; padding: 10px; background: var(--paper); border-radius: 28px; box-shadow: var(--st-shadow); }
.st-mosaic__item { position: relative; display: block; overflow: hidden; border-radius: 18px; }
.st-mosaic__item:first-child { grid-row: span 2; }
.st-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.st-mosaic__item:hover img { transform: scale(1.05); }
.st-mosaic[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 260px; }
.st-mosaic[data-count="2"] { grid-template-columns: 2fr 1fr; grid-template-rows: 130px 130px; }
.st-mosaic[data-count="3"] { grid-template-columns: 2fr 1fr; }
.st-mosaic[data-count="4"] { grid-template-columns: 2fr 1fr 1fr; }
.st-mosaic[data-count="4"] .st-mosaic__item:nth-child(4) { grid-column: span 2; }
.st-mosaic__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(36,5,8,.55); color: #fff; font-weight: 600; letter-spacing: .08em; }

/* Section nav ----------------------------------------------------------- */
.st-nav { margin-top: 28px; }
.st-nav__cta { margin-left: auto; color: var(--gold) !important; font-weight: 600; }

/* Layout ---------------------------------------------------------------- */
.st-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(40px, 5vw, 80px); padding-block: clamp(48px, 6vw, 88px) var(--section); align-items: start; }
.st-side { position: sticky; top: 96px; }
.st-sec { padding-bottom: clamp(48px, 5vw, 72px); margin-bottom: clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--rule); scroll-margin-top: 140px; }
.st-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.st-sec .eyebrow { margin-bottom: 12px; }
.st-sec__title { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.01em; margin-bottom: 26px; }
.st-sec__title--small { font-size: clamp(26px, 2.4vw, 34px); }

/* Highlights ------------------------------------------------------------ */
.st-high { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.st-high li { display: flex; gap: 12px; padding: 18px 20px; border-radius: var(--radius); background: var(--mist); color: var(--ink); line-height: 1.45; }
.st-high svg { color: var(--gold); flex: none; margin-top: 2px; }

/* Amenities ------------------------------------------------------------- */
.st-amen { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.st-amen li { display: inline-flex; align-items: center; gap: 8px; }
.st-amen svg { color: var(--crimson); flex: none; }
.st-amen--chips li { padding: 6px 12px; border-radius: 999px; background: var(--rule-soft); font-size: 13px; color: var(--body); }
.st-amen--chips svg { width: 15px; height: 15px; }
.st-amen--inline { gap: 6px 16px; font-size: 14px; color: var(--muted); }
.st-amen--inline svg { width: 15px; height: 15px; }
.st-amen--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.st-amen--grid li { padding: 18px; border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; font-weight: 500; color: var(--ink); transition: border-color .2s, transform .2s; }
.st-amen--grid li:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.st-amen--grid svg { width: 22px; height: 22px; }
.st-amen__more span { color: var(--muted); }

/* Room rows ------------------------------------------------------------- */
.st-rooms { display: grid; gap: 18px; }
.st-room { display: grid; grid-template-columns: 240px minmax(0, 1fr) auto; gap: 26px; align-items: center; padding: 14px 26px 14px 14px; border: 1px solid var(--rule); border-radius: var(--st-r); background: #fff; transition: box-shadow .3s, border-color .3s, transform .3s; }
.st-room:hover { box-shadow: var(--st-shadow); border-color: transparent; transform: translateY(-2px); }
.st-room__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--mist); }
.st-room__media img, .st-room__media .img-fallback { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-room__ribbon { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.st-room__n { display: block; font-family: var(--serif); color: var(--gold); font-size: 14px; letter-spacing: .1em; margin-bottom: 4px; }
.st-room__title { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; margin-bottom: 12px; }
.st-room__title a { text-decoration: none; }
.st-facts { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; color: var(--body); }
.st-facts li { display: inline-flex; align-items: center; gap: 7px; }
.st-facts svg { color: var(--muted); }
.st-room__buy { display: grid; justify-items: end; gap: 8px; text-align: right; min-width: 150px; }
.st-room__price { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); line-height: 1; }
.st-room__price small { font-family: var(--sans); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }
.st-room__wk { font-size: 13px; color: var(--muted); margin-top: -4px; }
.st-room .btn { border-radius: 999px; margin-top: 4px; }
.st-btn-line { border: 1px solid var(--ink); color: var(--ink); border-radius: 999px; }
.st-btn-line:hover { background: var(--ink); color: #fff; }
.st-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; text-decoration: none; color: var(--ink); }
.st-link:hover { color: var(--gold); }
.st-link--small { font-size: 11px; color: var(--muted); }

/* Location / policies --------------------------------------------------- */
.st-loc { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px; border-radius: var(--st-r); background: linear-gradient(135deg, var(--mist), #fff); border: 1px solid var(--rule); }
.st-loc__pin { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--gold-light); }
.st-loc__name { font-family: var(--serif); font-size: 26px; color: var(--ink); line-height: 1.15; }
.st-loc__addr { color: var(--muted); margin-top: 4px; }
.st-loc__times { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; }
.st-pol { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.st-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.st-rules li { display: flex; gap: 10px; line-height: 1.5; }
.st-rules svg { color: var(--leaf); flex: none; margin-top: 4px; }
.st-pol__box { padding: 22px 24px; border-radius: var(--radius); background: var(--mist); border-left: 3px solid var(--gold); }

/* Room page spec + photo strip ------------------------------------------ */
.st-spec { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 32px 0 0; border: 1px solid var(--rule); border-radius: var(--st-r); overflow: hidden; }
.st-spec div { padding: 18px 22px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-right: -1px; margin-bottom: -1px; }
.st-spec dt { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.st-spec dd { margin: 4px 0 0; font-family: var(--serif); font-size: 22px; color: var(--ink); }
.st-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 32%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 18px; }
.st-strip a { scroll-snap-align: start; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.st-strip img { width: 100%; height: 100%; object-fit: cover; }

/* Booking widget -------------------------------------------------------- */
.st-book { position: relative; padding: 28px; border-radius: 28px; background: #fff; border: 1px solid var(--rule); box-shadow: var(--st-shadow); scroll-margin-top: 110px; }
.st-book::before { content: ""; position: absolute; top: -1px; left: 28px; right: 28px; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--gold) 0 33.33%, var(--rule) 33.33% 66.66%, var(--leaf) 66.66%); }
.st-book__head { margin-bottom: 20px; }
.st-book__head .eyebrow { margin-bottom: 8px; }
.st-book__price { font-family: var(--serif); font-size: 38px; font-weight: 600; color: var(--ink); line-height: 1; }
.st-book__price small { font-family: var(--sans); font-size: 14px; font-weight: 400; color: var(--muted); }
.st-book__sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
.st-book__form { display: grid; gap: 12px; }
.st-book__dates, .st-book__guest { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-f { display: grid; gap: 5px; }
.st-f--full { grid-column: 1 / -1; }
.st-f > span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.st-f input, .st-f select, .st-f textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 16px; transition: border-color .2s, box-shadow .2s; }
.st-f textarea { min-height: 0; resize: vertical; }
.st-f input:focus, .st-f select:focus, .st-f textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(215, 25, 31, .12); }
.st-book__guest { padding-top: 6px; border-top: 1px dashed var(--rule); margin-top: 4px; }
.st-quote { padding: 16px 18px; border-radius: 16px; background: var(--mist); }
.st-quote__lines { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 6px; font-size: 14px; color: var(--body); }
.st-quote__lines li { display: flex; justify-content: space-between; gap: 12px; }
.st-quote__lines .is-out { color: var(--crimson); }
.st-quote__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--rule); }
.st-quote__total span { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.st-quote__total strong { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.st-quote__msg { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; border-left: 3px solid var(--crimson); color: var(--crimson); font-size: 14px; line-height: 1.45; }
.st-quote.is-ok .st-quote__msg { border-left-color: var(--leaf); color: var(--leaf-deep); }
.st-pay { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.st-pay legend { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
.st-pay label { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--rule); border-radius: 12px; cursor: pointer; }
.st-pay label:has(input:checked) { border-color: var(--gold); background: #FFF7F6; }
.st-pay em { margin-left: auto; font-style: normal; font-weight: 600; color: var(--ink); }
.st-book__go { border-radius: 999px; margin-top: 4px; }
.st-book__go[disabled] { opacity: .45; cursor: not-allowed; }
.st-book__fine { display: flex; gap: 8px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.st-book__fine svg { flex: none; color: var(--leaf); margin-top: 2px; }
.st-wa { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; padding: 13px; border-radius: 999px; border: 1px solid #CDE3C1; background: #F2F8EE; color: var(--leaf-deep); text-decoration: none; font-weight: 600; font-size: 15px; }
.st-wa:hover { background: var(--leaf); color: #fff; border-color: var(--leaf); }
.st-book .form-notice { margin-bottom: 14px; }
.st-book.is-flash { animation: st-flash 1.2s ease; }
@keyframes st-flash { 30% { box-shadow: 0 0 0 6px rgba(215, 25, 31, .18), var(--st-shadow); } }

/* Archive + cards ------------------------------------------------------- */
.st-head { position: relative; background: radial-gradient(circle at 85% 0%, #FBE9E8 0, transparent 50%), var(--paper); }
.st-head .page-title { max-width: 16ch; text-wrap: balance; }
.st-head__lead { margin-top: 18px; font-size: 19px; color: var(--muted); max-width: 52ch; }
.st-grid-wrap { padding-bottom: var(--section); }
.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; }
.st-card { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--rule); transition: box-shadow .35s, transform .35s, border-color .35s; }
.st-card:hover { box-shadow: var(--st-shadow); transform: translateY(-4px); border-color: transparent; }
.st-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.st-card__media img, .st-card__media .img-fallback { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.st-card:hover .st-card__media img { transform: scale(1.05); }
.st-card__price { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.95); color: var(--ink); font-family: var(--serif); font-weight: 600; font-size: 20px; box-shadow: 0 10px 30px rgba(36,5,8,.18); }
.st-card__price small { font-family: var(--sans); font-weight: 400; font-size: 12px; color: var(--muted); }
.st-card__body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex: 1; }
.st-card__loc { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--crimson); }
.st-card__title { font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.08; }
.st-card__title a { text-decoration: none; }
.st-card__tag { color: var(--muted); line-height: 1.5; }
.st-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--rule-soft); display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); }
.st-strip-sec { padding-block: var(--section); }
.st-strip-sec .section-head { margin-bottom: 40px; }

/* Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
	.st-layout { grid-template-columns: minmax(0, 1fr); }
	.st-side { position: static; order: 2; }
	.st-room { grid-template-columns: 200px minmax(0, 1fr); }
	.st-room__buy { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; text-align: left; padding: 4px 6px; }
	.st-room__buy .st-room__price { order: 1; }
	.st-room__buy .btn { order: 2; margin: 0 0 0 auto; }
	.st-room__buy .st-room__wk { order: 3; width: 100%; margin: 0; }
	.st-room__buy .st-link--small { order: 4; width: 100%; }
}
@media (max-width: 720px) {
	.st-hero { min-height: 560px; }
	.st-hero__content { padding-top: 130px; }
	.st-hero__chips li { font-size: 14px; padding: 7px 12px; }
	.st-mosaic-wrap { margin-top: -24px; }
	.st-mosaic, .st-mosaic[data-count] { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 110px; padding: 6px; gap: 6px; border-radius: 20px; }
	.st-mosaic__item:first-child { grid-row: auto; grid-column: 1 / -1; }
	.st-mosaic__item:nth-child(n+4) { display: none; }
	.st-mosaic[data-count="4"] .st-mosaic__item:nth-child(4) { grid-column: auto; }
	.st-nav__cta { display: none; }
	.st-room { grid-template-columns: 1fr; padding: 12px; gap: 14px; }
	.st-room__body { padding: 0 6px; }
	.st-room__buy { padding: 0 6px 6px; }
	.st-amen--grid { grid-template-columns: 1fr 1fr; gap: 8px; }
	.st-amen--grid li { padding: 14px 12px; font-size: 15px; }
	.st-loc { grid-template-columns: 1fr; text-align: left; }
	.st-pol { grid-template-columns: 1fr; }
	.st-spec { grid-template-columns: 1fr 1fr; }
	.st-book { padding: 22px 18px; border-radius: 22px; }
	.st-book__guest { grid-template-columns: 1fr; }
	.st-grid { grid-template-columns: 1fr; }
	.st-strip { grid-auto-columns: 78%; }
}
