/* ==========================================================================
   Sharm Voyager template 1.5.1 – hotel page (com_svbooking view hotel)
   Graphics only. Every rule is limited to the hotel page (#svHp.svt-hp) and the file is loaded only on it:
   the other pages (Solo Hotel, Volo + Hotel, escursioni…) are not touched.
   ========================================================================== */

.svt-theme #svHp.svt-hp {
  --hp-accent: #B85600;            /* same darker orange of Solo Hotel 1.5.0: white text readable (4.8:1) */
  --hp-accent-h: #A04A00;
  --hp-accent-ink: #8A3F00;
  --hp-soft: #FFF1E2;
  --hp-ink: var(--svt-ink, #262A30);
  --hp-ink-2: var(--svt-ink-2, #3B4048);
  --hp-muted: #59616E;             /* 6.2:1 on white */
  --hp-line: var(--svt-line, #E4E6EA);
  --hp-grey: var(--svt-grey, #F4F5F7);
  --hp-sand: var(--svt-sand, #FBF6EE);
  --hp-sea: #08698A;
  --hp-sea-soft: #E5F4F9;
  --hp-ok: #1E6B3C;
  --hp-r: 18px;
  --hp-shadow: 0 1px 2px rgba(38, 42, 48, .05), 0 12px 32px rgba(38, 42, 48, .10);
  --hp-top: var(--svt-header-h, 0px);
  color: var(--hp-ink);
  container: svhp / inline-size;
  margin-bottom: 2rem;
}
.svt-theme #svHp .svt-hp-ico { flex: none; }

/* ---- buttons -------------------------------------------------------------------------------------------------- */
.svt-theme #svHp .svt-hp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 50px; padding: 0 1.4rem; border-radius: 14px; font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s;
}
.svt-theme #svHp .svt-hp-btn--main { background: var(--hp-accent); color: #fff; }
.svt-theme #svHp .svt-hp-btn--main:hover { background: var(--hp-accent-h); color: #fff; }
.svt-theme #svHp .svt-hp-btn--line { background: #fff; color: var(--hp-ink); border-color: var(--hp-ink); }
.svt-theme #svHp .svt-hp-btn--line:hover { background: var(--hp-ink); color: #fff; }
.svt-theme #svHp .svt-hp-btn--block { display: flex; width: 100%; }
.svt-theme #svHp .svt-hp-btn:focus-visible,
.svt-theme #svHp a:focus-visible,
.svt-theme #svHp button:focus-visible { outline: 3px solid var(--hp-sea); outline-offset: 3px; }

/* ---- A. heading ---------------------------------------------------------------------------------------------- */
.svt-theme #svHp .svt-hp__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin: .4rem 0 1.3rem; }
.svt-theme #svHp .svt-hp__titles { display: flex; flex-direction: column; gap: .55rem; min-width: 0; flex: 1 1 420px; }
.svt-theme #svHp .svt-hp__loc { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--hp-muted); font-size: .95rem; }
.svt-theme #svHp .svt-hp__loc .svt-hp-ico { color: var(--hp-accent); }
.svt-theme #svHp .svt-hp__name { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .9rem; }
.svt-theme #svHp .svt-hp__h1 { margin: 0; font-family: var(--svt-font-h); font-weight: 700; font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.15; color: var(--hp-ink); }
.svt-theme #svHp .svt-hp__stars { color: var(--hp-accent); font-size: 1.3rem; letter-spacing: 2px; white-space: nowrap; }
.svt-theme #svHp .svt-hp__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.svt-theme #svHp .svt-hp__chips li { background: var(--hp-grey); border-radius: 999px; padding: .4rem .85rem; font-size: .9rem; color: var(--hp-ink); }
.svt-theme #svHp .svt-hp__chips .svt-hp__chip--board { background: var(--hp-soft); color: var(--hp-accent-ink); font-weight: 600; }
.svt-theme #svHp .svt-hp__cta { display: flex; flex-wrap: wrap; gap: .6rem; }

/* ---- B. gallery: big photo + 4 small (desktop), photos to swipe (smartphone) ---------------------------------- */
.svt-theme #svHp .svt-hp__gwrap { position: relative; margin: 0 0 1.6rem; }
.svt-theme #svHp .svt-hp__gallery {
  position: relative; display: flex; gap: 8px; margin: 0; padding: 0;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--hp-r);
  -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.svt-theme #svHp .svt-hp__gallery::-webkit-scrollbar { display: none; }
.svt-theme #svHp .svt-hp__gallery .svt-hp__ph { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0; margin: 0; position: relative; overflow: hidden; background: var(--hp-grey); grid-column: auto; }
.svt-theme #svHp .svt-hp__gallery .svt-hp__ph img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .35s ease; }
.svt-theme #svHp .svt-hp__gallery .svt-hp__ph:hover img { transform: scale(1.03); }
.svt-theme #svHp .svt-hp__count:not([hidden]) { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(20, 22, 26, .74); color: #fff; border-radius: 999px; padding: .3rem .7rem; font-size: .82rem; font-weight: 600; pointer-events: none; }
.svt-theme #svHp .svt-hp__nav { display: none; }
.svt-theme #svHp .svt-hp__all { display: none; }

@container svhp (min-width: 720px) {
  .svt-theme #svHp .svt-hp__gallery { display: grid; overflow: hidden; gap: 10px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 230px 230px; scroll-snap-type: none; }
  .svt-theme #svHp .svt-hp__gallery .svt-hp__ph { flex: none; }
  .svt-theme #svHp .svt-hp__gallery .svt-hp__ph img { aspect-ratio: auto; }
  .svt-theme #svHp .svt-hp__gallery .svt-hp__ph.is-main { grid-column: 1; grid-row: 1 / span 2; }
  .svt-theme #svHp .svt-hp__gallery .svt-hp__ph--more { display: none; }
  .svt-theme #svHp .svt-hp__gallery[data-count="1"] { grid-template-columns: 1fr; grid-template-rows: 460px; }
  .svt-theme #svHp .svt-hp__gallery[data-count="2"] { grid-template-columns: 2fr 1fr; }
  .svt-theme #svHp .svt-hp__gallery[data-count="2"] .svt-hp__ph:not(.is-main) { grid-row: 1 / span 2; }
  .svt-theme #svHp .svt-hp__gallery[data-count="3"] { grid-template-columns: 2fr 1fr; }
  .svt-theme #svHp .svt-hp__gallery[data-count="4"] .svt-hp__ph:nth-child(4) { grid-column: 2 / span 2; }
  .svt-theme #svHp .svt-hp__count { display: none; }
  .svt-theme #svHp .svt-hp__all:not([hidden]) {
    display: inline-flex; align-items: center; gap: .5rem; position: absolute; right: 14px; bottom: 14px; z-index: 2;
    min-height: 44px; padding: 0 1rem; border-radius: 12px; border: 0; background: #fff; color: var(--hp-ink);
    font: 600 .95rem var(--svt-font); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); cursor: pointer;
  }
  .svt-theme #svHp .svt-hp__all:hover { background: var(--hp-ink); color: #fff; }
}
@container svhp (max-width: 719.98px) {
  .svt-theme #svHp .svt-hp__gallery { border-radius: 14px; }
  .svt-theme #svHp .svt-hp__nav:not([hidden]) {
    display: grid; place-items: center; position: absolute; top: 50%; z-index: 3; width: 44px; height: 44px; margin-top: -22px;
    border-radius: 50%; border: 0; background: rgba(255, 255, 255, .94); color: var(--hp-ink); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); cursor: pointer;
  }
  .svt-theme #svHp .svt-hp__nav--prev { left: 10px; }
  .svt-theme #svHp .svt-hp__nav--next { right: 10px; }
  .svt-theme #svHp .svt-hp__nav[disabled] { opacity: 0; pointer-events: none; }
}

/* ---- section tabs -------------------------------------------------------------------------------------------- */
.svt-theme #svHp .svt-hp__tabs { position: sticky; top: var(--hp-top); z-index: 5; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--hp-line); margin: 0 0 2rem; }
.svt-theme #svHp .svt-hp__tabs-in { display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; }
.svt-theme #svHp .svt-hp__tabs-in::-webkit-scrollbar { display: none; }
.svt-theme #svHp .svt-hp__tabs a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 .95rem; white-space: nowrap; font-weight: 600; font-size: .95rem; color: var(--hp-muted); text-decoration: none; border-bottom: 3px solid transparent; }
.svt-theme #svHp .svt-hp__tabs a:hover { color: var(--hp-ink); }
.svt-theme #svHp .svt-hp__tabs a[aria-current="true"] { color: var(--hp-ink); border-bottom-color: var(--hp-accent); }

/* ---- layout: content + booking card --------------------------------------------------------------------------- */
.svt-theme #svHp .svt-hp__layout { display: grid; gap: 2.2rem; }
.svt-theme #svHp .svt-hp__main { display: flex; flex-direction: column; gap: 3rem; min-width: 0; }
@container svhp (min-width: 980px) {
  .svt-theme #svHp .svt-hp__layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 3rem; align-items: start; }
  .svt-theme #svHp .svt-hp__side { position: sticky; top: calc(var(--hp-top) + 70px); }
}
.svt-theme #svHp .svt-hp__sec { scroll-margin-top: calc(var(--hp-top) + 64px); display: flex; flex-direction: column; gap: 1rem; }
.svt-theme #svHp .svt-hp__eyebrow { margin: 0; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hp-accent-ink); }
.svt-theme #svHp .svt-hp__h2 { margin: -.4rem 0 .2rem; font-family: var(--svt-font-h); font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 700; color: var(--hp-ink); }
.svt-theme #svHp .svt-hp__h3 { margin: 1.1rem 0 .1rem; font-family: var(--svt-font-h); font-size: 1.12rem; font-weight: 600; color: var(--hp-ink); }
.svt-theme #svHp .svt-hp__muted { color: var(--hp-muted); }

/* ---- C. description ------------------------------------------------------------------------------------------ */
.svt-theme #svHp .svt-hp__text { margin: 0; max-width: 72ch; color: var(--hp-ink-2); font-size: 1.03rem; line-height: 1.75; }
.svt-theme #svHp .svt-hp__text p { margin: 0 0 .9rem; }
.svt-theme #svHp .svt-hp__text .svt-hp__lead { font-size: 1.15rem; line-height: 1.6; color: var(--hp-ink); }
.svt-theme #svHp .svt-hp__text.is-closed > :nth-child(n+4) { display: none; }
.svt-theme #svHp .svt-hp__more { align-self: flex-start; min-height: 44px; padding: 0 1rem; border-radius: 12px; border: 1.5px solid var(--hp-ink); background: #fff; color: var(--hp-ink); font: 600 .95rem var(--svt-font); cursor: pointer; }
.svt-theme #svHp .svt-hp__more:hover { background: var(--hp-ink); color: #fff; }
.svt-theme #svHp .svt-hp__info { display: grid; gap: .5rem; margin: .3rem 0 0; padding: 1rem 1.2rem; border-radius: 14px; background: var(--hp-grey); }
.svt-theme #svHp .svt-hp__info div { display: flex; flex-wrap: wrap; gap: .3rem .6rem; }
.svt-theme #svHp .svt-hp__info dt { font-weight: 600; }
.svt-theme #svHp .svt-hp__info dt::after { content: ":"; }
.svt-theme #svHp .svt-hp__info dd { margin: 0; }

/* ---- D. services --------------------------------------------------------------------------------------------- */
.svt-theme #svHp .svt-hp__cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.svt-theme #svHp .svt-hp__cat { border: 1px solid var(--hp-line); border-radius: var(--hp-r); padding: 1.15rem 1.2rem; background: #fff; display: flex; flex-direction: column; gap: .85rem; }
.svt-theme #svHp .svt-hp__cat-h { display: flex; align-items: center; gap: .75rem; margin: 0; font-size: 1.02rem; font-weight: 600; font-family: var(--svt-font); color: var(--hp-ink); }
.svt-theme #svHp .svt-hp__bub { width: 44px; height: 44px; border-radius: 12px; background: var(--hp-soft); color: var(--hp-accent); display: grid; place-items: center; flex: none; }
.svt-theme #svHp .svt-hp__bub--white { background: #fff; border-radius: 50%; width: 48px; height: 48px; }
.svt-theme #svHp .svt-hp__bub--sea { background: var(--hp-sea-soft); color: var(--hp-sea); border-radius: 50%; width: 52px; height: 52px; }
.svt-theme #svHp .svt-hp__list { display: flex; flex-direction: column; flex-wrap: nowrap; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.svt-theme #svHp .svt-hp__list li { display: flex; align-items: flex-start; gap: .55rem; background: none; border-radius: 0; padding: 0; font-size: .97rem; line-height: 1.4; }
.svt-theme #svHp .svt-hp__list .svt-hp-ico, .svt-theme #svHp .svt-hp__pkg--plain .svt-hp-ico { color: var(--hp-ok); margin-top: 1px; stroke-width: 2.2; }

/* ---- E. rooms and treatment ---------------------------------------------------------------------------------- */
.svt-theme #svHp .svt-hp__board { display: flex; align-items: center; gap: 1rem; background: var(--hp-sand); border-radius: var(--hp-r); padding: 1rem 1.3rem; }
.svt-theme #svHp .svt-hp__board > div { display: flex; flex-direction: column; gap: .1rem; }
.svt-theme #svHp .svt-hp__board .svt-hp__muted { font-size: .88rem; }
.svt-theme #svHp .svt-hp__board strong { font-size: 1.15rem; }
.svt-theme #svHp .svt-hp__board small { color: var(--hp-ink-2); font-size: .88rem; }
.svt-theme #svHp .svt-hp__rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.svt-theme #svHp .svt-hp__room { border: 1px solid var(--hp-line); border-radius: var(--hp-r); padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; }
.svt-theme #svHp .svt-hp__room h3 { margin: 0; font-size: 1.1rem; font-weight: 600; font-family: var(--svt-font); }
.svt-theme #svHp .svt-hp__room p { margin: 0; font-size: .93rem; color: var(--hp-ink-2); }
.svt-theme #svHp .svt-hp__cap { display: inline-flex; align-items: center; gap: .45rem; font-size: .93rem; color: var(--hp-ink-2); }
.svt-theme #svHp .svt-hp__cap .svt-hp-ico { color: var(--hp-muted); }
.svt-theme #svHp .svt-hp__note { margin: 0; font-size: .88rem; color: var(--hp-muted); }

/* ---- F. where ------------------------------------------------------------------------------------------------ */
.svt-theme #svHp .svt-hp__where { border: 1px solid var(--hp-line); border-radius: var(--hp-r); overflow: hidden; display: grid; }
.svt-theme #svHp .svt-hp__where-txt { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 1.2rem 1.3rem; }
.svt-theme #svHp .svt-hp__where-txt > div { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 200px; }
.svt-theme #svHp .svt-hp__where-txt strong { font-size: 1.08rem; }
.svt-theme #svHp .svt-hp__where-txt span { color: var(--hp-ink-2); }
.svt-theme #svHp .svt-hp__map { margin: 0; background: var(--hp-sea-soft); }
.svt-theme #svHp .svt-hp__map iframe { display: block; width: 100%; height: 320px; border: 0; border-radius: 0; }
@container svhp (min-width: 720px) {
  .svt-theme #svHp .svt-hp__where.has-map { grid-template-columns: 300px minmax(0, 1fr); }
  .svt-theme #svHp .svt-hp__where.has-map .svt-hp__where-txt { flex-direction: column; align-items: flex-start; }
  .svt-theme #svHp .svt-hp__where.has-map .svt-hp__where-txt > div { flex: none; }
  .svt-theme #svHp .svt-hp__where.has-map .svt-hp__gmaps { margin-top: auto; width: 100%; }
  .svt-theme #svHp .svt-hp__where.has-map .svt-hp__map iframe { height: 100%; min-height: 340px; }
}

/* ---- G. booking card ----------------------------------------------------------------------------------------- */
.svt-theme #svHp .svt-hp__side { display: flex; flex-direction: column; gap: 1rem; }
.svt-theme #svHp .svt-hp__book { border: 1px solid var(--hp-line); border-radius: 20px; padding: 1.4rem; box-shadow: var(--hp-shadow); background: #fff; display: flex; flex-direction: column; gap: .8rem; }
.svt-theme #svHp .svt-hp__book-h { margin: 0; font-family: var(--svt-font-h); font-size: 1.3rem; font-weight: 700; }
.svt-theme #svHp .svt-hp__book p { margin: 0; color: var(--hp-ink-2); font-size: .95rem; line-height: 1.5; }
.svt-theme #svHp .svt-hp__book-h3 { margin: .5rem 0 0; padding-top: 1rem; border-top: 1px solid var(--hp-line); font-size: .98rem; font-weight: 600; font-family: var(--svt-font); }
.svt-theme #svHp .svt-hp__pkg { margin: 0; }
.svt-theme #svHp .svt-hp__pkg li:last-child { border-bottom: 0; }
.svt-theme #svHp .svt-hp__pkg small { color: var(--hp-muted); }
.svt-theme #svHp .svt-hp__pkg--plain { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.svt-theme #svHp .svt-hp__pkg--plain li { display: flex; gap: .55rem; font-size: .93rem; }
.svt-theme #svHp .svt-hp__wa { display: flex; align-items: center; gap: .7rem; border-radius: 16px; background: #E8F5EC; padding: .9rem 1.1rem; color: #1E4D2E; text-decoration: none; font-size: .95rem; }
.svt-theme #svHp .svt-hp__wa .svt-hp-ico { color: var(--hp-ok); }
.svt-theme #svHp .svt-hp__wa:hover { background: #D6EEDD; }

/* ---- small screens: services as chips, rooms as compact rows (as in the approved preview) -------------------- */
@container svhp (max-width: 559.98px) {
  .svt-theme #svHp .svt-hp__cats { gap: .75rem; }
  .svt-theme #svHp .svt-hp__cat { padding: 1rem; gap: .7rem; }
  .svt-theme #svHp .svt-hp__bub { width: 40px; height: 40px; }
  .svt-theme #svHp .svt-hp__list { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
  .svt-theme #svHp .svt-hp__list li { background: var(--hp-grey); border-radius: 999px; padding: .35rem .75rem; font-size: .92rem; }
  .svt-theme #svHp .svt-hp__list li .svt-hp-ico { display: none; }
  .svt-theme #svHp .svt-hp__rooms { gap: .6rem; }
  .svt-theme #svHp .svt-hp__room { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .15rem .8rem; padding: .85rem 1rem; }
  .svt-theme #svHp .svt-hp__room > .svt-hp-ico { display: none; }
  .svt-theme #svHp .svt-hp__room h3 { font-size: 1.02rem; }
  .svt-theme #svHp .svt-hp__room .svt-hp__cap { grid-column: 2; grid-row: 1; white-space: nowrap; }
  .svt-theme #svHp .svt-hp__room p { grid-column: 1 / -1; font-size: .88rem; }
}

/* ---- smartphone: booking bar always visible ------------------------------------------------------------------ */
.svt-theme #svHp .svt-hp__bar { display: none; }
@media (max-width: 979.98px) {
  .svt-theme #svHp .svt-hp__bar {
    display: flex; gap: .6rem; align-items: center; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: .7rem 1rem calc(.8rem + env(safe-area-inset-bottom, 0px)); background: #fff; border-top: 1px solid var(--hp-line);
    box-shadow: 0 -8px 24px rgba(38, 42, 48, .10);
  }
  .svt-theme #svHp .svt-hp-btn--grow { flex: 1; }
  .svt-theme #svHp .svt-hp__bar-wa { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 14px; background: #E8F5EC; color: var(--hp-ok); }
  .svt-theme #svHp { padding-bottom: 5.5rem; }
  .svt-theme #svHp .svt-hp__cta { display: none; }
  /* the floating WhatsApp button of the template would cover the bar: the bar already has WhatsApp */
  body.svt-theme:has(#svHp) .svt-wafloat { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .svt-theme #svHp .svt-hp__gallery { scroll-behavior: auto; }
  .svt-theme #svHp .svt-hp__gallery .svt-hp__ph img { transition: none; }
}
@media print {
  .svt-theme #svHp .svt-hp__tabs, .svt-theme #svHp .svt-hp__bar, .svt-theme #svHp .svt-hp__all, .svt-theme #svHp .svt-hp__nav { display: none !important; }
}
