/* Gift with booking (U111, Marti 2026-10-14): the open view shell of the other offers around the booking card.
   Photo rail under the transparent header, title on a rounded sheet (phones) or in the left column (desktop),
   Chilli Plus on top of the card, Broneeri | Kingi as an Osta gradient switch, the card stops at the collage
   under Tingimused (booking-shell.js). Calendar, options and the gift mode are untouched. */

/* title block */
body.offer-hero-page .skb-head h1 { margin-bottom: 12px !important; text-wrap: balance; }
body.offer-hero-page .skb-head .skb-lead { font-size: 18px; line-height: 1.5; }
body.offer-hero-page .skb-head > div[style] { margin-top: 12px !important; }

/* Broneeri | Kingi: a soft track with the active side in the Osta gradient */
body.offer-hero-page .sk-booking-sidebar-wrap .sk-mode-tabs {
  gap: 4px; padding: 4px; border: 0; border-radius: 15px; background: var(--bs-tertiary-bg); margin-bottom: 14px;
}
body.offer-hero-page .sk-booking-sidebar-wrap .sk-mode-tabs > .sk-mode-tab {
  border-radius: 12px; background: transparent; font-weight: 700; min-height: 44px;
}
body.offer-hero-page .sk-booking-sidebar-wrap .sk-mode-tabs > .sk-mode-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #18AE00 0%, #4CD964 100%); color: #fff; box-shadow: 0 3px 10px rgba(24, 174, 0, .28);
}
body.offer-hero-page .sk-booking-sidebar-wrap .sk-mode-tabs > .sk-mode-tab[aria-selected="true"]:hover {
  background: linear-gradient(135deg, #159400 0%, #3FC456 100%); filter: none;
}
body.offer-hero-page .sk-booking-sidebar-wrap .sk-booking-plus-banner { margin-bottom: 14px; }
body.offer-hero-page .sk-booking-sidebar-wrap .sk-booking-plus-banner .plus-deal-detail-banner { margin: 0; }

/* phones: the title sits on the rounded sheet rising over the photo rail */
@media (max-width: 767.98px) {
  body.offer-hero-page .sk-booking-grid { margin-top: 0 !important; }
  body.offer-hero-page .skb-head {
    position: relative; z-index: 4; width: 100vw; margin: -28px 0 0 calc(50% - 50vw);
    padding: 18px 16px 18px; background: var(--bs-body-bg); border-radius: 28px 28px 0 0; text-align: center;
  }
  body.offer-hero-page .skb-head .rating { justify-content: center; margin-bottom: 12px; }
  body.offer-hero-page .skb-head h1 { font-size: 1.6rem !important; line-height: 1.15; }
  body.offer-hero-page .skb-head .skb-lead { font-size: 16px; }
}

/* tablets keep the old two columns, with the title above the content */
@media (min-width: 768px) {
  body.offer-hero-page .sk-booking-grid { grid-template-rows: auto auto 1fr; }
  body.offer-hero-page .sk-booking-grid > .skb-head { grid-column: 1; grid-row: 2; margin-bottom: 24px; }
  body.offer-hero-page .sk-booking-grid > .skb-sidebar { grid-row: 2 / span 2; }
  body.offer-hero-page .sk-booking-grid > .skb-content { grid-row: 3; overflow: visible; }
}

/* desktop: the grid of the other open views, the card rides along on the right */
@media (min-width: 992px) {
  body.offer-hero-page .sk-crumbs { display: none !important; }
  body.offer-hero-page .sk-booking-grid {
    grid-template-columns: minmax(0, 1fr) var(--od-side); column-gap: var(--od-gap);
    max-width: calc(1240px + 2 * var(--od-pad)); margin: 0 auto !important; padding: 0 var(--od-pad);
  }
  body.offer-hero-page .sk-booking-grid > .skb-gallery { margin-bottom: 0; }
  body.offer-hero-page .sk-booking-grid > .skb-head { padding-top: 6px; margin-bottom: 32px; }
  body.offer-hero-page .skb-head h1 { font-size: clamp(32px, 2.7vw, 46px) !important; line-height: 1.1; }
  body.offer-hero-page .sk-booking-sidebar-wrap {
    top: 20px; margin-top: 6px; padding: 20px; border: 1px solid var(--bs-border-color); border-radius: 26px;
    background: var(--bs-body-bg); box-shadow: 0 16px 48px rgba(16, 24, 18, .11), 0 2px 6px rgba(16, 24, 18, .05);
  }
  [data-bs-theme="dark"] body.offer-hero-page .sk-booking-sidebar-wrap { background: var(--bs-tertiary-bg); box-shadow: 0 16px 48px rgba(0, 0, 0, .45); }
  body.offer-hero-page .sk-booking-sidebar-wrap > .card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
}

/* ===== V3 hotel (U111): same shell; title, address and about in .hv3-head, the reservation card .hotel-sidebar ===== */
.hotel-gallery-tablet { display: none; }
@media (min-width: 768px) and (max-width: 991.98px) { .hotel-gallery-tablet { display: block; margin-bottom: 1.5rem; } }
body.offer-hero-page .hv3-head h1 { margin-bottom: 12px !important; text-wrap: balance; }
body.offer-hero-page .hv3-head .hv3-about { margin-top: 10px; }
/* Chilli Plus heads the card */
body.offer-hero-page .hotel-sidebar { display: flex; flex-direction: column; }
body.offer-hero-page .hotel-sidebar > .mt-3:has(.plus-deal-detail-banner) { order: -1; margin: 0 0 14px !important; }
body.offer-hero-page .hotel-sidebar .plus-deal-detail-banner { margin: 0; }
@media (max-width: 767.98px) {
  body.offer-hero-page .hotel-v3-grid { margin-top: 0; }
  body.offer-hero-page .hv3-head {
    position: relative; z-index: 4; width: 100vw; margin: -28px 0 0 calc(50% - 50vw);
    padding: 18px 16px 18px; background: var(--bs-body-bg); border-radius: 28px 28px 0 0; text-align: center;
  }
  body.offer-hero-page .hv3-head .rating { justify-content: center; }
  body.offer-hero-page .hv3-head h1 { font-size: 1.6rem !important; line-height: 1.15; }
  body.offer-hero-page .hv3-head .lead { font-size: 16px !important; }
}
@media (min-width: 768px) {
  body.offer-hero-page .hotel-v3-grid { grid-template-rows: auto auto auto 1fr; }
  body.offer-hero-page .hotel-v3-grid > .hv3-gallery { grid-column: 1 / -1; grid-row: 1; }
  body.offer-hero-page .hotel-v3-grid > .hv3-head { grid-column: 1; grid-row: 2; margin-bottom: 24px; }
  body.offer-hero-page .hotel-v3-grid > .hv3-rooms { grid-column: 1; grid-row: 3; }
  body.offer-hero-page .hotel-v3-grid > .hv3-desc { grid-column: 1; grid-row: 4; min-width: 0; }
  body.offer-hero-page .hotel-v3-grid > .hv3-sidebar { grid-column: 2; grid-row: 2 / span 3; }
}
@media (min-width: 992px) {
  body.offer-hero-page .hotel-v3-grid {
    grid-template-columns: minmax(0, 1fr) var(--od-side); column-gap: var(--od-gap);
    max-width: calc(1240px + 2 * var(--od-pad)); margin: 0 auto; padding: 0 var(--od-pad);
  }
  body.offer-hero-page .hotel-v3-grid > .hv3-head { padding-top: 6px; margin-bottom: 32px; }
  body.offer-hero-page .hv3-head h1 { font-size: clamp(32px, 2.7vw, 46px) !important; line-height: 1.1; }
  body.offer-hero-page .hv3-head .lead { font-size: 18px !important; line-height: 1.5; }
  /* the card speaks for itself: no «Broneeri» heading above it */
  body.offer-hero-page .hv3-sidebar > h2 { display: none; }
  body.offer-hero-page .hotel-sidebar {
    top: 20px; margin-top: 6px; padding: 20px; border: 1px solid var(--bs-border-color); border-radius: 26px;
    background: var(--bs-body-bg); box-shadow: 0 16px 48px rgba(16, 24, 18, .11), 0 2px 6px rgba(16, 24, 18, .05);
  }
  [data-bs-theme="dark"] body.offer-hero-page .hotel-sidebar { background: var(--bs-tertiary-bg); box-shadow: 0 16px 48px rgba(0, 0, 0, .45); }
  body.offer-hero-page .hotel-sidebar > .card { padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
}

/* U112: side column under the card (brand block or map, vendor, same vendor, favourites), as on the other open views */
@media (min-width: 768px) {
  body.offer-hero-page .sk-booking-grid > .skb-side { grid-column: 2; grid-row: 3; min-width: 0; }
  body.offer-hero-page .hotel-v3-grid > .hv3-side { grid-column: 2; grid-row: 4; min-width: 0; }
  /* the hotel info card is one column in the narrow side */
  body.offer-hero-page .hv3-side .hotel-vendor-card .vendor-booking-inner { display: block; }
  body.offer-hero-page .hv3-side .hotel-vendor-card .vendor-booking-inner > * { width: auto; max-width: none; }
}
@media (max-width: 767.98px) {
  body.offer-hero-page .skb-side, body.offer-hero-page .hv3-side { margin-top: 24px; }
}
