/*
 * HASKE HOTEL responsive polish — release 2026.09.21e
 * Loaded after the visual theme so narrow screens get a predictable,
 * overflow-safe layout without changing the desktop composition.
 */

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

/* The cart is a shopping-style header utility. The drawer remains the
 * checkout surface, while the old floating pill is intentionally retired. */
.haske-stay-cart-toggle { display: none !important; }

body:not(.haske-staff-page) .haske-header-tools .haske-header-cart-link {
  position: relative !important;
  display: inline-flex !important;
  min-width: 54px;
  padding-inline: 10px;
  align-items: center;
  gap: 6px;
  border-left: 1px solid rgba(189, 148, 90, .24) !important;
  color: rgba(255, 255, 255, .92) !important;
}

body:not(.haske-staff-page) .haske-header-tools .haske-header-cart-link:hover,
body:not(.haske-staff-page) .haske-header-tools .haske-header-cart-link:focus-visible,
body:not(.haske-staff-page) .haske-header-tools .haske-header-cart-link.has-items {
  border-left-color: var(--haske-gold) !important;
  background: var(--haske-forest) !important;
  color: #fff !important;
}

.haske-header-cart-link > i { color: #d7b77a; font-size: 12px; }
.haske-header-cart-link > span:not(.haske-header-cart-count) { white-space: nowrap; }
.haske-header-cart-link .haske-header-cart-count {
  position: absolute;
  top: 1px;
  right: 2px;
  display: grid;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--haske-gold);
  color: var(--haske-ink);
  font-size: 8px;
  line-height: 1;
}
.haske-header-cart-link .haske-header-cart-count[hidden] { display: none !important; }

body:not(.haske-staff-page) .rixos-header.scrolled .haske-header-tools .haske-header-cart-link {
  border-left-color: rgba(189, 148, 90, .34) !important;
  color: var(--haske-ink) !important;
}
body:not(.haske-staff-page) .rixos-header.scrolled .haske-header-cart-link > i { color: var(--haske-bronze); }

/* Keep the drawer itself inside the visual viewport on phones. */
@media (max-width: 1024px) {
  body .rixos-wrap,
  body .rixos-wrap.rixos-wrap-show {
    box-sizing: border-box !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
  }

  body .rixos-wrap .rixos-wrap-inner {
    display: block !important;
    min-height: 0 !important;
    height: calc(100dvh - 74px) !important;
    max-height: calc(100dvh - 74px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
  }

  body .rixos-wrap .rixos-menu > ul {
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  body .rixos-wrap .rixos-menu > ul > li,
  body .rixos-wrap .rixos-menu > ul > li > a,
  body .rixos-wrap .rixos-menu > ul > li > button {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
  }

  body .rixos-wrap .haske-branch-directory__grid {
    scrollbar-width: none !important;
  }
  body .rixos-wrap .haske-branch-directory__grid::-webkit-scrollbar { display: none; }

  body .rixos-wrap .rixos-menu-footer {
    margin-bottom: max(4px, env(safe-area-inset-bottom)) !important;
  }

  /* Currency stays next to the cart on smaller screens; language, call and
   * sign-in remain available from the full menu to protect header space. */
  body:not(.haske-staff-page) .haske-header-tools .haske-currency-menu {
    display: block !important;
  }
  body:not(.haske-staff-page) .haske-header-tools .haske-header-cart-link {
    display: inline-flex !important;
    min-width: 42px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding-inline: 8px !important;
  }
  body:not(.haske-staff-page) .haske-header-cart-link > span:not(.haske-header-cart-count) { display: none; }
  body:not(.haske-staff-page) .haske-header-cart-link > i { font-size: 14px; }
}

/* Four property cards fit the phone drawer without requiring a hidden
 * horizontal gesture. At very narrow widths they become a readable list. */
@media (max-width: 575px) {
  body .rixos-wrap .haske-branch-directory__grid {
    display: grid !important;
    margin-inline: 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  body .rixos-wrap .haske-branch-card,
  body .rixos-wrap .haske-branch-card:first-child,
  body .rixos-wrap .haske-branch-card:last-child,
  body .rixos-wrap .haske-branch-card:hover,
  body .rixos-wrap .haske-branch-card:focus-visible,
  body .rixos-wrap .haske-branch-card:active {
    min-width: 0 !important;
    width: auto !important;
    flex: none !important;
    grid-template-rows: 96px minmax(116px, auto) !important;
    border: 1px solid rgba(40, 36, 31, .13) !important;
    border-radius: 0 !important;
  }

  body .rixos-wrap .haske-branch-card figure { height: 96px !important; }
  body .rixos-wrap .haske-branch-card__content {
    min-height: 116px !important;
    padding: 10px !important;
    gap: 3px !important;
  }
  body .rixos-wrap .haske-branch-card__content > strong {
    overflow-wrap: anywhere;
    font-size: 15px !important;
  }
  body .rixos-wrap .haske-branch-card__content > span { overflow-wrap: anywhere; }

  .haske-stay-cart-drawer {
    width: 100vw !important;
    max-width: 100vw !important;
    border-left: 0;
  }
  .haske-stay-cart-drawer > header {
    min-height: 78px !important;
    padding: 15px 14px 12px !important;
    gap: 10px !important;
  }
  .haske-stay-cart-drawer > header h2 { font-size: 27px !important; }
  .haske-stay-cart-close { width: 44px; height: 44px; flex-basis: 44px; }
  .haske-stay-cart-message { padding-inline: 14px; overflow-wrap: anywhere; font-size: 13px; }
  .haske-stay-cart-empty {
    min-height: 0 !important;
    height: 100%;
    padding: 24px 18px !important;
  }
  .haske-stay-cart-line {
    min-width: 0;
    padding: 12px 14px !important;
    grid-template-columns: 64px minmax(0, 1fr) !important;
    gap: 9px !important;
  }
  .haske-stay-cart-line > img { width: 64px !important; height: 62px !important; }
  .haske-stay-cart-line__copy { min-width: 0; }
  .haske-stay-cart-line__copy h3 {
    overflow-wrap: anywhere;
    font-size: 17px !important;
  }
  .haske-stay-cart-line__copy > span { font-size: 11px !important; }
  .haske-stay-cart-line__copy p { overflow-wrap: anywhere; font-size: 12px !important; }
  .haske-stay-cart-line__controls {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    grid-column: 1 / -1;
    grid-template-columns: 44px minmax(0, 1fr) 44px !important;
  }
  .haske-stay-cart-line__amount {
    min-width: 0;
    grid-column: 1 / -1;
    gap: 10px;
  }
  .haske-stay-cart-line__amount strong { min-width: 0; overflow-wrap: anywhere; }
  .haske-stay-cart-drawer > footer { padding: 15px 14px max(16px, env(safe-area-inset-bottom)) !important; }
  .haske-stay-cart-total { min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; }
  .haske-stay-cart-total > span,
  .haske-stay-cart-total > small { font-size: 12px !important; line-height: 1.4; }
  .haske-stay-cart-total > strong { min-width: 0; max-width: 48vw; overflow-wrap: anywhere; text-align: right; }
  .haske-stay-cart-actions { display: grid !important; grid-template-columns: 1fr !important; gap: 9px !important; }
  .haske-stay-cart-clear,
  .haske-stay-cart-checkout { width: 100%; min-height: 44px; }

  #rooms-and-rates .item .wrap .cont { min-width: 0; }
  #rooms-and-rates .haske-cart-card-action {
    flex: 0 0 100% !important;
    width: 100% !important;
    margin: 10px 0 0 !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center;
    justify-items: stretch !important;
  }
  #rooms-and-rates .haske-cart-card-add {
    width: 100% !important;
    min-width: 0 !important;
    padding-inline: 8px !important;
    overflow-wrap: anywhere;
  }
  #rooms-and-rates .haske-cart-card-status { max-width: 88px; overflow-wrap: anywhere; }

  .booking-system .haske-room-card-selection {
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .booking-system .haske-room-card-selection__label { min-width: 0; overflow-wrap: anywhere; }
  .booking-system .haske-room-quantity { min-width: 0; grid-template-columns: 38px minmax(42px, 1fr) 38px; }

  .haske-stay-basket { max-width: 100%; }
  .haske-stay-basket__header,
  .haske-stay-basket__empty,
  .haske-stay-property__header,
  .haske-stay-line { min-width: 0; }
  .haske-stay-basket__header h3 { overflow-wrap: anywhere; font-size: 28px; }
  .haske-stay-property__header { padding-inline: 14px !important; gap: 8px; }
  .haske-stay-property__header span,
  .haske-stay-property__header strong { overflow-wrap: anywhere; white-space: normal !important; }
  .haske-stay-line { padding-inline: 14px !important; grid-template-columns: 64px minmax(0, 1fr) !important; gap: 9px; }
  .haske-stay-line > img { width: 64px !important; height: 62px !important; }
  .haske-stay-line__identity { min-width: 0; }
  .haske-stay-line__identity h4,
  .haske-stay-line__identity p { overflow-wrap: anywhere; }
  .haske-stay-line__identity h4 { font-size: 18px; }
  .haske-stay-line .haske-room-quantity { grid-column: 1 / -1; width: 100%; }
  .haske-stay-line__price { grid-column: 1 / -1; min-width: 0; }
  .haske-stay-line__price > strong { max-width: 56vw; overflow-wrap: anywhere; white-space: normal; }
  .haske-stay-basket__footer { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; padding-inline: 14px !important; gap: 10px 6px; }
  .haske-stay-basket__metric { min-width: 0; padding: 3px 8px !important; }
  .haske-stay-basket__metric:nth-child(2),
  .haske-stay-basket__metric--stay-total { border-right: 0; }
  .haske-stay-basket__metric--total,
  .haske-stay-basket__metric--stay-total { grid-column: auto !important; text-align: left; }
  .haske-stay-basket__metric span { font-size: 11px !important; line-height: 1.3; }
  .haske-stay-basket__metric strong { overflow-wrap: anywhere; font-size: 20px !important; line-height: 1.15; }
  .haske-stay-basket__property-note { font-size: 12px; }
}

@media (max-width: 390px) {
  body .rixos-wrap .haske-branch-directory__grid { grid-template-columns: 1fr !important; }
  body .rixos-wrap .haske-branch-card,
  body .rixos-wrap .haske-branch-card:first-child,
  body .rixos-wrap .haske-branch-card:last-child { grid-template-rows: 92px minmax(90px, auto) !important; }
  body .rixos-wrap .haske-branch-card figure { height: 92px !important; }
  body .rixos-wrap .haske-branch-card__content { min-height: 90px !important; }
  .haske-header-tools { gap: 1px !important; }
  body:not(.haske-staff-page) .haske-header-tools .haske-header-cart-link { min-width: 38px !important; padding-inline: 7px !important; }
  .haske-stay-cart-line__amount { align-items: center; flex-flow: row wrap; }
}

/* Typography and mobile composition pass — release 2026.09.21c
 * Keep the phone header, room cards, footer links and contact form on a
 * deliberate rhythm. These late rules intentionally override legacy theme
 * defaults that were written for the desktop template. */

/* The contact template inherited a generic input rule that omitted tel
 * fields. Make every contact control use the same full-width field silhouette
 * and remove the old inline-width behaviour that caused Phone/Subject to
 * overlap on small screens. */
.haske-contact-form .cont .row {
  display: grid;
  margin-inline: 0 !important;
  row-gap: 0;
}

.haske-contact-form .cont .row > :is(.form-group, .col-md-12, .col-lg-12) {
  box-sizing: border-box;
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  padding-inline: 0 !important;
}

.haske-contact-form .cont :is(input[type="text"], input[type="email"], input[type="tel"], textarea) {
  box-sizing: border-box;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0;
  margin: 0 0 15px;
  padding: 14px 20px;
  border: 1px solid #d9cab8;
  border-radius: 4px;
  background: #fffefb;
  color: var(--haske-ink);
  font: 600 16px/1.55 "Urbanist", sans-serif;
}

.haske-contact-form .cont :is(input[type="text"], input[type="email"], input[type="tel"]) {
  min-height: 56px;
}

.haske-contact-form .cont textarea {
  min-height: 132px;
  resize: vertical;
}

.haske-contact-form .cont > .row > :last-child {
  min-width: 0;
}

.haske-contact-form .cont .button-3 {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 52px;
}

/* Keep directions useful without making the map separate the enquiry form
 * from the contact actions on a phone-sized screen. */
@media (max-width: 767px) {
  .contact .map iframe {
    height: 280px !important;
  }
}

@media (max-width: 767px) {
  /* Give the room discovery heading a tighter editorial rhythm on a phone. */
  body:not(.haske-staff-page) #featured-rooms .section-subtitle {
    max-width: 100%;
    margin-bottom: 8px !important;
    font-size: clamp(13px, 4.2vw, 16px) !important;
    letter-spacing: .16em !important;
    line-height: 1.2 !important;
  }

  body:not(.haske-staff-page) #featured-rooms .haske-showcase-intro {
    max-width: 35ch;
    margin: 0 auto 15px !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
  }

  /* Keep the card's hierarchy clear: branch, name/rate, then a compact
   * two-column list of room characteristics. */
  body:not(.haske-staff-page) #featured-rooms .item .cont {
    row-gap: 3px;
  }

  body:not(.haske-staff-page) #featured-rooms .item .cont .property-label {
    font-size: 9px;
    letter-spacing: .11em;
    line-height: 1.2;
  }

  html body:not(.haske-staff-page) #featured-rooms .item .cont .title a {
    font-size: clamp(19px, 5.7vw, 22px) !important;
    line-height: 1.08;
  }

  body:not(.haske-staff-page) #featured-rooms .item .cont .room-price {
    font-size: 17px;
    line-height: 1.05;
  }

  body:not(.haske-staff-page) #featured-rooms .item .cont .room-price span {
    margin-top: 3px;
    font-size: 8px;
    letter-spacing: .08em;
  }

  html body:not(.haske-staff-page) #featured-rooms .item .cont .details > span {
    gap: 4px;
    font-size: 9px;
    letter-spacing: .08em;
    line-height: 1.25;
  }

  html body:not(.haske-staff-page) #featured-rooms .item .cont .details > span i {
    width: 11px;
    font-size: 10px;
  }

  body:not(.haske-staff-page) #featured-rooms .item .cont :is(.long-stay-badge, .haske-showcase-note) {
    font-size: 10px;
    letter-spacing: .02em;
    line-height: 1.3;
  }

  /* Footer links become a predictable two-column utility list instead of an
   * inline stream with uneven line breaks. */
  body:not(.haske-staff-page) .footer .links ul {
    display: grid !important;
    width: 100%;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 14px;
  }

  body:not(.haske-staff-page) .footer .links ul li {
    display: block !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
  }

  body:not(.haske-staff-page) .footer .links ul li:nth-child(7),
  body:not(.haske-staff-page) .footer .links ul li:nth-child(8),
  body:not(.haske-staff-page) .footer .links ul li:nth-child(9) {
    grid-column: span 1;
  }

  body:not(.haske-staff-page) .footer .links ul li a {
    display: flex !important;
    min-height: 38px;
    padding: 8px 0 !important;
    align-items: center;
    color: inherit;
    font: 650 14px/1.25 "Urbanist", sans-serif !important;
    letter-spacing: .02em;
    white-space: normal;
  }

  /* The menu is intentionally quiet and scannable: consistent rows, modest
   * type, and no inherited desktop tracking. */
  body .rixos-wrap .rixos-menu > ul > li > :is(a, button) {
    min-height: 46px !important;
    padding: 0 8px !important;
  }

  body .rixos-wrap .rixos-menu > ul > li > :is(a, button) > span:nth-child(2) {
    font-size: 13px !important;
    font-weight: 750 !important;
    letter-spacing: .045em !important;
    line-height: 1.25 !important;
    text-transform: none !important;
  }
}

/* The three right-side controls need a stable lane beside the menu button.
 * On very narrow screens the brand is intentionally left-aligned between
 * the hamburger and tools rather than centered underneath them. */
@media (max-width: 575px) {
  body:not(.haske-staff-page) .rixos-header .rixos-logo-wrap,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo-wrap,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo-wrap {
    left: 58px !important;
    max-width: 106px;
    transform: translateY(-50%) !important;
  }

  body:not(.haske-staff-page) .rixos-header .rixos-logo,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo {
    width: 106px;
    max-width: 106px;
    grid-template-columns: 29px minmax(0, 1fr);
    gap: 5px;
    justify-content: start;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-copy {
    min-width: 0;
    max-width: 72px;
    overflow: hidden;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-name {
    overflow: hidden;
    font-size: 10px !important;
    letter-spacing: .1em;
    white-space: nowrap;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-tagline {
    overflow: hidden;
    font-size: 5px !important;
    letter-spacing: .08em;
    white-space: nowrap;
  }

  body:not(.haske-staff-page) .rixos-header .haske-header-tools {
    gap: 2px !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary {
    width: 48px !important;
    min-width: 48px !important;
    padding-inline: 0 !important;
    gap: 3px !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-currency-menu .haske-utility-currency-code,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary > i:last-child {
    display: none !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-mobile-book,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:hover,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:focus-visible {
    width: 62px !important;
    min-width: 62px !important;
    padding-inline: 5px !important;
    font-size: 8px !important;
    letter-spacing: .05em;
  }
}

@media (max-width: 370px) {
  body:not(.haske-staff-page) .rixos-header .haske-logo-tagline { display: none !important; }
  body:not(.haske-staff-page) .rixos-header .haske-logo-copy { max-width: 70px; }
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:hover,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:focus-visible {
    width: 56px !important;
    min-width: 56px !important;
    font-size: 7px !important;
  }
}

/* Full-frame accommodation photography — September 2026.
 * Room-selection imagery preserves the complete photograph instead of
 * cropping mixed landscape and portrait sources into a wide cover frame. */
#rooms-and-rates .haske-room-gallery,
#featured-rooms .item .img,
.haske-experiences .experience-card-img {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  overflow: hidden;
  background: #1d1916 !important;
}

#rooms-and-rates .haske-room-gallery::before,
#featured-rooms .item .img::before,
.haske-experiences .experience-card-img::before {
  position: absolute;
  z-index: 0;
  inset: -24px;
  border-radius: 0;
  background:
    linear-gradient(rgba(22, 18, 15, .5), rgba(22, 18, 15, .68)),
    var(--haske-room-photo-backdrop, linear-gradient(135deg, #322820, #151310));
  background-position: center;
  background-size: cover;
  content: "" !important;
  filter: blur(17px) saturate(.78);
  opacity: .94;
  pointer-events: none;
  transform: scale(1.08);
}

#rooms-and-rates .haske-room-gallery > .haske-room-gallery__card-image,
#featured-rooms .item .img > img,
.haske-experiences .experience-card-img > img {
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

#rooms-and-rates .haske-room-gallery > .haske-room-gallery__card-image:not(.haske-auto-gallery__frame),
#featured-rooms .item .img > img:not(.haske-auto-gallery__frame),
.haske-experiences .experience-card-img > img:not(.haske-auto-gallery__frame) {
  position: relative;
}

.haske-experiences .experience-card-img .haske-auto-gallery__frame {
  transform: none !important;
  transition: opacity 760ms ease, filter 220ms ease !important;
}

#rooms-and-rates .haske-room-gallery > .haske-room-gallery__card-image.is-changing,
#featured-rooms .item .img > img.is-changing {
  transform: none !important;
}

.booking-system .step-content .room-info .photo,
body.haske-room-detail .galleryscroll .item .img,
#gallery .galleryscroll a[href*="img/rooms/galleries/"] .img {
  overflow: hidden;
  background: linear-gradient(145deg, #2d251f, #151310) !important;
}

.booking-system .step-content .room-info .photo img,
body.haske-room-detail .galleryscroll .item .img > img,
#gallery .galleryscroll a[href*="img/rooms/galleries/"] .img > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  object-position: center !important;
  background: linear-gradient(145deg, #2d251f, #151310) !important;
  transform: none !important;
}

.haske-room-gallery__dialog-image {
  background: linear-gradient(145deg, #2d251f, #151310);
}

@media (max-width: 575px) {
  #rooms-and-rates .haske-room-gallery {
    height: auto !important;
    aspect-ratio: 4 / 3 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rooms-and-rates .haske-room-gallery::before,
  #featured-rooms .item .img::before,
  .haske-experiences .experience-card-img::before {
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .haske-header-cart-link,
  .haske-stay-cart-drawer { transition: none !important; }
}

/* Cart fit pass — keep every cart surface inside its parent at every width. */
body:not(.haske-staff-page) #rooms-and-rates .item,
body:not(.haske-staff-page) #rooms-and-rates .item .wrap,
body:not(.haske-staff-page) #rooms-and-rates .item .wrap .cont,
body:not(.haske-staff-page) #rooms-and-rates .item .wrap .cont > *,
.haske-stay-cart-drawer,
.haske-stay-cart-drawer *,
.haske-stay-basket,
.haske-stay-basket *,
.haske-stay-line,
.haske-stay-line__identity,
.haske-stay-line__price {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

/* The legacy rooms theme positions .wrap as an image overlay. The catalogue
 * is a normal stacked card, so clear those inherited offsets completely. */
body:not(.haske-staff-page) #rooms-and-rates .item .wrap {
  bottom: auto;
  left: 0;
  right: 0;
  width: 100%;
}

/* The add-to-cart control is a final, full-width row in the card rather than
 * a flex sibling of the room title and price. This prevents long room names,
 * prices, or cart status text from widening the card or clipping its action. */
body:not(.haske-staff-page) #rooms-and-rates .item .wrap .cont .haske-cart-card-action {
  order: 7;
  display: grid;
  flex: 0 0 100%;
  width: 100%;
  margin: 9px 0 0;
  padding: 0;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  justify-items: stretch;
  gap: 8px;
}

body:not(.haske-staff-page) #rooms-and-rates .haske-cart-card-add {
  justify-self: end;
  min-width: 0;
  max-width: 100%;
  width: auto;
  min-height: 38px;
  padding: 8px 12px;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

body:not(.haske-staff-page) #rooms-and-rates .haske-cart-card-status {
  justify-self: start;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
}

/* Long basket labels and totals wrap instead of forcing a horizontal scroll. */
.haske-stay-cart-line__copy,
.haske-stay-cart-line__copy h3,
.haske-stay-cart-line__copy p,
.haske-stay-cart-line__amount,
.haske-stay-cart-line__amount strong,
.haske-stay-cart-total,
.haske-stay-cart-total > span,
.haske-stay-cart-total > strong,
.haske-stay-cart-total > small,
.haske-stay-cart-actions,
.haske-stay-cart-checkout {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.haske-stay-cart-line__copy h3,
.haske-stay-cart-line__copy p,
.haske-stay-cart-line__amount strong { white-space: normal; }
.haske-stay-cart-line__controls { width: max-content; max-width: 100%; }
.haske-stay-cart-actions { flex-wrap: wrap; }
.haske-stay-cart-checkout { flex: 1 1 190px; }

/* Booking basket columns are compacted before the phone breakpoint. This is
 * important when the basket sits in a half-width desktop/tablet column. */
@media (max-width: 1199px) and (min-width: 768px) {
  .haske-stay-line {
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 10px;
    padding-inline: 16px;
  }

  .haske-stay-line > img { width: 96px; height: 74px; }

  .haske-stay-line__price {
    grid-column: 2 / -1;
    grid-row: 2;
    align-items: center;
    justify-items: start;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .haske-stay-line__price > span { display: none; }
  .haske-stay-line__price > strong {
    justify-self: end;
    max-width: 100%;
    overflow-wrap: anywhere;
    text-align: right;
    white-space: normal;
  }
  .haske-stay-line__price button { margin: 0; }
}

@media (max-width: 767px) {
  .haske-property-directions { padding: 16px; grid-template-columns: 1fr; gap: 14px; }
  .haske-property-directions__links { grid-template-columns: 1fr; }
  .haske-property-directions__links a { min-height: 56px; }
  body:not(.haske-staff-page) #rooms-and-rates .item .wrap .cont .haske-cart-card-action {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body:not(.haske-staff-page) #rooms-and-rates .haske-cart-card-add {
    min-height: 40px;
    padding-inline: 10px;
  }

  .haske-stay-cart-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 9px; }
  .haske-stay-cart-checkout { width: 100%; }
  .haske-stay-cart-line__controls { width: 100%; }
}

@media (max-width: 390px) {
  body:not(.haske-staff-page) #rooms-and-rates .item .wrap .cont .haske-cart-card-action {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px;
  }

  body:not(.haske-staff-page) #rooms-and-rates .haske-cart-card-add {
    justify-self: stretch;
    width: 100%;
  }

  body:not(.haske-staff-page) #rooms-and-rates .haske-cart-card-status { justify-self: start; }
  .haske-stay-cart-actions { grid-template-columns: 1fr; }
}

/* Mobile header lockup — keep the brand optically centered while the utility
 * controls become a quiet icon cluster. The previous pass reserved too much
 * horizontal space for the word labels and nudged the logo left on phones. */
@media (max-width: 575px) {
  body:not(.haske-staff-page) .rixos-header .rixos-logo-wrap,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo-wrap,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo-wrap {
    left: 50% !important;
    width: 100px !important;
    max-width: 100px !important;
    transform: translate(-50%, -50%) !important;
  }

  body:not(.haske-staff-page) .rixos-header .rixos-logo,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo {
    display: grid !important;
    width: 100px !important;
    max-width: 100px !important;
    grid-template-columns: 28px minmax(0, 1fr) !important;
    gap: 4px !important;
    justify-content: initial !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-mark,
  body:not(.haske-staff-page) .rixos-header .rixos-logo img,
  body:not(.haske-staff-page) .rixos-header.scrolled .haske-logo-mark,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-mark,
  body:not(.haske-staff-page) .rixos-header.scrolled .haske-logo-mark { flex-basis: 28px !important; }

  body:not(.haske-staff-page) .rixos-header .haske-logo-copy {
    min-width: 0 !important;
    max-width: 68px !important;
    overflow: hidden;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-name {
    overflow: hidden;
    font-size: 9px !important;
    letter-spacing: .08em !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-tagline {
    overflow: hidden;
    font-size: 4.25px !important;
    letter-spacing: .06em !important;
    line-height: 1 !important;
    white-space: nowrap;
  }

  body:not(.haske-staff-page) .rixos-header .haske-header-tools {
    gap: 2px !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary:hover,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary:focus,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary:focus-visible,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:hover,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:focus,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:focus-visible,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:active,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:hover,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:focus,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:focus-visible,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:active {
    box-sizing: border-box !important;
    width: 32px !important;
    min-width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
    flex: 0 0 32px !important;
    margin: 0 !important;
    border-radius: 50% !important;
    gap: 0 !important;
    transform: none !important;
    scale: 1 !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary {
    border: 1px solid rgba(189,148,90,.38) !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-utility-currency-symbol {
    font-size: 13px !important;
    line-height: 1 !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link {
    border: 1px solid rgba(189,148,90,.38) !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link > i,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book > i {
    display: inline-block !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1 !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-mobile-book {
    border: 1px solid var(--haske-gold) !important;
    background: var(--haske-gold) !important;
    color: var(--haske-ink) !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-mobile-book > span {
    display: none !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-header-cart-count {
    top: -3px !important;
    right: -3px !important;
    width: 13px !important;
    height: 13px !important;
    font-size: 7px !important;
  }
}

@media (max-width: 370px) {
  body:not(.haske-staff-page) .rixos-header .rixos-logo-wrap,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo-wrap,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo-wrap,
  body:not(.haske-staff-page) .rixos-header .rixos-logo,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo {
    width: 100px !important;
    max-width: 100px !important;
  }

  body:not(.haske-staff-page) .rixos-header .rixos-logo,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo {
    grid-template-columns: 27px minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-mark,
  body:not(.haske-staff-page) .rixos-header .rixos-logo img,
  body:not(.haske-staff-page) .rixos-header.scrolled .haske-logo-mark,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo img {
    width: 27px !important;
    height: 27px !important;
    max-width: 27px !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-mark,
  body:not(.haske-staff-page) .rixos-header.scrolled .haske-logo-mark { flex-basis: 27px !important; }
  body:not(.haske-staff-page) .rixos-header .haske-logo-tagline { display: none !important; }

  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary:hover,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary:focus,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary:focus-visible,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:hover,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:focus,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:focus-visible,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:active,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:hover,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:focus,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:focus-visible,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:active {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;
    min-height: 28px !important;
    flex-basis: 28px !important;
    transform: none !important;
    scale: 1 !important;
  }
}

/* Final responsive guardrails: a complete centred wordmark, fixed-size
 * utilities, contained catalogue actions and an unobtrusive back-to-top. */
@media (max-width: 575px) {
  body:not(.haske-staff-page) .rixos-header .rixos-logo-wrap,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo-wrap,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo-wrap,
  body:not(.haske-staff-page) .rixos-header .rixos-logo,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo {
    width: clamp(112px, 34vw, 122px) !important;
    max-width: 122px !important;
  }

  body:not(.haske-staff-page) .rixos-header .rixos-logo,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo,
  body.haske-home:not(.haske-staff-page) .rixos-header:not(.scrolled) .rixos-logo {
    grid-template-columns: 27px minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-mark,
  body:not(.haske-staff-page) .rixos-header .rixos-logo img,
  body:not(.haske-staff-page) .rixos-header.scrolled .haske-logo-mark,
  body:not(.haske-staff-page) .rixos-header.scrolled .rixos-logo img {
    width: 27px !important;
    height: 27px !important;
    max-width: 27px !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-copy {
    display: grid !important;
    width: auto !important;
    max-width: none !important;
    overflow: visible !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-name {
    overflow: visible !important;
    font-size: 9.25px !important;
    letter-spacing: .075em !important;
    white-space: nowrap !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-logo-tagline {
    display: block !important;
    overflow: visible !important;
    font-size: 4.15px !important;
    letter-spacing: .045em !important;
    white-space: nowrap !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-header-tools {
    width: 94px !important;
    gap: 2px !important;
  }

  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary:hover,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary:focus,
  body:not(.haske-staff-page) .rixos-header .haske-currency-menu > summary:focus-visible,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:hover,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:focus,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:focus-visible,
  body:not(.haske-staff-page) .rixos-header .haske-header-cart-link:active,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:hover,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:focus,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:focus-visible,
  body:not(.haske-staff-page) .rixos-header .haske-mobile-book:active {
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
    height: 30px !important;
    min-height: 30px !important;
    max-height: 30px !important;
    padding: 0 !important;
    flex: 0 0 30px !important;
    border-radius: 50% !important;
    transform: none !important;
    scale: 1 !important;
    transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease !important;
  }

  body:not(.haske-staff-page) #rooms-and-rates .item .wrap .cont .haske-cart-card-action {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 5px !important;
  }

  body:not(.haske-staff-page) #rooms-and-rates .haske-cart-card-add {
    width: 100% !important;
    justify-self: stretch !important;
  }

  body:not(.haske-staff-page) #rooms-and-rates .haske-cart-card-status {
    width: 100%;
    max-width: 100% !important;
    justify-self: stretch !important;
    text-align: center !important;
  }

  .progress-wrap {
    right: max(12px, env(safe-area-inset-right)) !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    width: 44px !important;
    height: 44px !important;
  }
}

body.menu-open .progress-wrap,
body.haske-search-open .progress-wrap,
body.haske-stay-cart-open .progress-wrap,
body.haske-room-gallery-open .progress-wrap {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 767px) and (max-height: 650px) {
  body.haske-home .progress-wrap,
  body.haske-home .haske-budget-jump { display: none !important; }
}
