/* Site-level fixes layered on top of the Webflow CSS. */

/* iOS Safari zooms the whole page when a focused field has text under 16px. */
/* iOS zooms into any field with text smaller than 16px, so fields are 16px on touch devices only.
   (Doing it by screen width made the text jump bigger whenever a desktop browser window was made narrower.) */
@media (max-width: 991px) and (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
  select,
  textarea {
    font-size: 16px !important;
  }
  select { min-height: 44px; }
}

/* Contact page between 480px and 991px: the desktop layout (text column + form column side by side) squeezed the
   form into a ~220px sliver with a 300px button hanging out of it. Stack the two blocks instead, like the phone layout. */
@media (min-width: 480px) and (max-width: 991px) {
  .container-13.desktop-contact .grid-7 { grid-template-columns: 1fr; grid-auto-flow: row; grid-row-gap: 40px; margin-left: 24px; margin-right: 24px; }
  .container-13.desktop-contact .div-block-63 { padding-left: 0; }
  .container-13.desktop-contact .div-block-54,
  .container-13.desktop-contact .form-block,
  .container-13.desktop-contact form { width: 100%; max-width: 620px; }
  .container-13.desktop-contact .button-10 { width: 100%; max-width: none; }
  /* the form grid has a fixed 56px height and a fixed 120px last row (fine on desktop, where the panel is 110% tall):
     let it grow with its fields so the beige panel wraps the whole form */
  .container-13.desktop-contact .form-block { height: auto; margin-top: 0; }
  .container-13.desktop-contact .grid-8 { height: auto; grid-template-rows: auto; grid-column-gap: 20px; grid-template-columns: 1fr 1fr; }
  .container-13.desktop-contact .container-13, .container-13.desktop-contact { padding-bottom: 120px; }
}

/* Homepage hero: between ~480px and 767px the hero is two columns, but the Book button is a
   fixed 280px wide and spilled out of its column over the photo. */
@media (max-width: 767px) {
  .div-block-19 .button-5 {
    width: 100%;
    max-width: 280px;
    min-width: 0;
    box-sizing: border-box;
  }
}

/* Homepage hero on tablet/phone widths (<= 991px):
   1. The grid contains a duplicate hero photo (.div-block-43) that wraps onto a second row.
      It is never seen (the hero has a fixed height) but is still downloaded and stretches the grid.
   2. The hero is a fixed 740px tall, so when the text column wraps to more lines the Book button
      hangs out of the bottom of the grey panel. Let it grow with its content instead. */
@media (max-width: 991px) {
  .div-block-18.tablet .div-block-43 {
    display: none;
  }
  section.home_hero_wrap.u-position-relative.u-padding-block-8.u-theme-dark {
    height: auto;
    min-height: 740px;
    padding-bottom: 32px;
  }
}

/* ---------- Booking page on phones ---------- */
/* Heading area: the (hidden-on-mobile) button still reserved a 48px empty box, and the flex gap was 41px. */
@media (max-width: 767px) {
  .booking_grid_wrap .section_heading_contain { gap: 14px; }
  .booking_grid_wrap .section_heading_layout > .button_wrap { display: none; }
  .booking_grid_wrap .section_heading_layout { gap: 0; }
  .booking_grid_wrap .section_heading_layout[class] { padding-top: 14px; padding-bottom: 14px; margin-bottom: 0; }
  .booking_grid_wrap .text-block-46 { margin-top: 0; }
}

/* Room cards: two across, compact, instead of one huge card per row. */
@media (max-width: 479px) {
  .booking_grid_list { row-gap: 10px !important; column-gap: 10px !important; }
  .booking_grid_list .booking_grid_item.u-column-span-3 { grid-column-end: span 6 !important; }
  .booking_grid_item { height: auto !important; align-items: stretch !important; }
  .booking_grid_item .card_wrap { width: 100% !important; }
  .booking_grid_item .card_wrap { padding: 14px 8px 14px !important; gap: 4px !important; height: auto !important; min-height: 0 !important; align-items: center !important; justify-content: flex-start !important; text-align: center; }
  .booking_grid_item .card_img { width: 76px !important; height: 76px !important; }
  .booking_grid_item .slider_meta_wrap { margin-bottom: 4px !important; height: auto !important; min-height: 0 !important; flex-direction: column !important; flex-wrap: wrap !important; align-items: center !important; gap: 0 !important; padding: 8px 0 8px !important; text-align: center; }
  .booking_grid_item .slider_meta_wrap .section_text { font-size: 14px !important; line-height: 1.3 !important; }
  .booking_grid_item .button_main_wrap .clickable_wrap { min-height: 38px; }
  .booking_grid_item .button_main_element { height: 38px !important; padding: 0 10px !important; }
  .booking_grid_item .button_plus_minus { padding: 3px 8px !important; }
}

/* Homepage "Fully Managed Interiors" band (further down the page, black/cream band with a photo):
   the photo half was built with a Webflow "bleed" trick (width:120%; left:-200px) meant to let the photo
   extend past the page's outer margin, but at ordinary desktop/laptop widths there isn't 200px of margin to
   absorb it, so the photo lands mostly off-screen and the section reads as broken/half-empty. Keep it
   contained instead - a smaller photo that is actually visible beats a bigger one nobody sees. */
.quick-stack-4 { width: 100% !important; left: 0 !important; }

/* "Ready to Begin? / Book from £295" CTA band, right above the footer on the homepage and How It Works:
   Webflow gave its box a flat height:300px with the text/button centred inside it, at every screen width (no
   responsive override). The actual content is only ~190px tall, so it sits in ~110px of dead, centred padding
   that reads as a big awkward gap before the footer. Let the box size to its own content instead. */
.div-block-66 { height: auto !important; padding: 32px 24px; }

/* "REQUEST AN ESTIMATE" button (Fully Managed Interiors band) on phones (<= 479px): its wrapper is a plain
   block with no centering, so the button just sits at the left edge with a lot of empty space beside it -
   the other CTAs on the same screens are all centred/full-width, so this reads as a leftover/unfinished spot. */
@media (max-width: 479px) {
  .div-block-45 { text-align: center; }
}

/* Homepage "design journey" step slider (Share your Vision / Collaborate & Create / Transform your Space) on
   phones (<= 479px): Webflow built this as a plain horizontally-scrolling flex row (overflow:auto, no
   scroll-snap), so it free-scrolls to any position like panning a map instead of settling on one step at a
   time. Add scroll-snap so it behaves like a normal swipeable slide. Webflow's own "overflow:auto" scrolls
   both axes, and the step cards (min-height:220px) are taller than the row's own computed height, so it was
   also draggable a little up and down - lock it to horizontal only. */
@media (max-width: 479px) {
  .div-block-10 {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .div-block-10 .div-block-11 {
    scroll-snap-align: center;
  }
}

/* Homepage "OPTION 1: Book by Room" / "OPTION 2: Fully Managed Interiors" labels on phones (<= 479px):
   these are two separate Webflow components (the step-slider footer text vs. the mobile-only Fully Managed
   teaser block) and were never styled to match - Option 1 renders small, dark and underlined while Option 2
   renders large, gold and letter-spaced, so the pair reads as inconsistent/out of place. Restyle Option 2's
   label to match Option 1's so the two read as one consistent pair of choices. */
@media (max-width: 479px) {
  .text-block-23 {
    font-size: var(--_typography---font-size--text-tiny-poppins);
    font-weight: 400;
    letter-spacing: normal;
    color: var(--swatch--brand-800);
    text-decoration: underline;
    text-underline-offset: 80%;
    margin-top: 24px;
    text-align: center;
  }
  /* the content has hard <br> breaks between every word (needed for the old large letter-spaced style to
     stack nicely) - at this small size they just chop one short label into four separately-underlined lines,
     so let it wrap naturally instead. */
  .text-block-23 br {
    display: none;
  }
}

/* Footer (every page, every width): its top/bottom padding comes from the same fluid spacing variable used for
   full page sections (--_typography---section-space--main, 4-7rem - up to 112px top AND bottom on a desktop
   screen), which is generous for a hero or CTA band but way too much air around a footer's few lines of
   text/links, at any width. Fixed, smaller values here instead of touching that shared variable (which spaces
   out unrelated sections too); phones get a bit less still. */
.footer_par_contain { padding-top: 56px !important; padding-bottom: 56px !important; }
.footer_par_bottom_layout { padding-top: 24px !important; padding-bottom: 24px !important; }
@media (max-width: 767px) {
  .footer_par_contain { padding-top: 40px !important; padding-bottom: 40px !important; }
  .footer_par_bottom_layout { padding-top: 20px !important; padding-bottom: 20px !important; }
}

/* The footer's own outer wrapper (a leftover from a "parallax" effect that doesn't actually run on this site -
   no script anywhere drives it) has overflow:hidden with a height that's shorter than its actual content, so the
   last ~36px of the bottom row (copyright / payment icons) is silently clipped off - not scrolled past, actually
   cut off by the box. It only becomes visible if the browser's own UI chrome (e.g. a mobile address bar)
   happens to collapse and free up a little extra room, which reads as "you have to force-scroll for it to
   appear" - it's really being clipped, not merely below the fold. Let it size to its content instead. */
.footer_parallax_wrap { height: auto !important; overflow: visible !important; }

/* Book-by-room cards: Webflow fixes each card at 300px tall (a very specific selector), which clips the "ADD +" button
   at tablet / narrow-desktop widths where the room photo, label and button need more than 300px. Let the card grow. */
@media (max-width: 1279px) {
  .booking_grid_item .card_wrap.u-overflow-clip { height: auto !important; min-height: 300px !important; padding-bottom: 14px !important; }
}
