/* ila-ux.css: client round of 6 Nov 26 (match Blusalzz layout, keep ila brand).
   Sections: 1 hero, 2 glass booking form, 3 login, 4 sound button, 5 call and WhatsApp buttons.
   Loaded after site.css on every page. Change a value here, nothing else depends on it. */

:root {
  --ila-hero-ratio: 9 / 16;          /* hero height as a share of the page width (Blusalzz: 16:9 video) */
  --ila-glass-bg: rgba(0, 0, 0, .32);   /* Blusalzz .19; darker so the small white labels stay readable on the bright reel */
  --ila-glass-border: rgba(255, 255, 255, .6);
  --ila-glass-blur: 8px;
}

/* 1. Hero: edge to edge, full 16:9, nothing over the video until the form at its bottom edge */
@media (min-width: 769px) {
  /* an inherited overflow-x:scroll gave the page a second scrollbar, which cut 15 px off the right of every full-width section */
  .v2-desk > .v2-body { overflow-x: clip !important; overflow-y: visible !important; }
}
@media (min-width: 1101px) {
  html body .v2-desk .outer-page .content_wrapper .bookingFormWidget.fullWidthWidget:first-child:has(video) {
    width: 100%;
    height: max(560px, calc(100vw * var(--ila-hero-ratio))) !important;
    padding: 0 !important;
  }
  html body .v2-desk .outer-page .content_wrapper .bookingFormWidget.fullWidthWidget:first-child:has(video) .image-content-wrapper, html body .v2-desk .outer-page .content_wrapper .bookingFormWidget.fullWidthWidget:first-child:has(video) .image-content-wrapper video {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
  }
}

/* Homepage booking form: half on the hero photo, half below it (ila-ux.js dropBookingForm sets --ila-be-below, the part under the hero).
   Desktop template only; at 768px and under the form is hidden (site.css 50-booking). */
@media (min-width: 769px) {
  html body .v2-desk .for-homepage .outer-page .content_wrapper .bookingFormWidget.fullWidthWidget {
    overflow: visible !important;
    margin-bottom: calc(var(--ila-be-below, 0px) + 24px) !important;
    z-index: 3;
  }
  html body .v2-desk .for-homepage .outer-page .content_wrapper .bookingFormWidget.fullWidthWidget > .bookingform-wrapper {
    position: absolute !important; top: auto !important; bottom: 0 !important; left: 0; right: 0;
    transform: translateY(50%);
  }
  /* slider dots: centred just above the form (ila-ux.js dropBookingForm measures --ila-dots-y) */
  html body .v2-desk .for-homepage .outer-page .content_wrapper .bookingFormWidget [data-u="navigator"] { transform: translateY(var(--ila-dots-y, -144px)) !important; }
}

/* 2. Booking form: Blusalzz glass panel, ila fields unchanged */
html body .v2-desk .phoenix-chain .bookingform-wrapper .simp-booking-form,
html body .v2-desk .phoenix-chain .bookingform-wrapper #layerContainer .simp-booking-form {
  background-color: var(--ila-glass-bg) !important;
  border: 1px solid var(--ila-glass-border);
  -webkit-backdrop-filter: blur(var(--ila-glass-blur));
  backdrop-filter: blur(var(--ila-glass-blur));
  border-radius: 4px;
}

/* 3. Login link, top right, next to Book Now */
.v2-desk .resv-wrap { display: flex; align-items: center; gap: 16px; }
.ila-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: inherit;
  font-size: 15px;
  white-space: nowrap;
  text-decoration: none;
}
.ila-login:hover, .ila-login:focus-visible { color: var(--brand-color, #734538); text-decoration: underline; }
.v2-phone .ila-login { font-size: 12px; padding: 0 12px 0 8px; flex-direction: column; gap: 0; line-height: 1.2; justify-content: center; }

/* 4. Sound on/off for the hero reel */
.ila-sound {
  position: absolute;
  z-index: 3;
  right: 18px;   /* centre 40 px from the right edge, the same column as Back to Top and the Call/WhatsApp buttons */
  top: 104px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ila-glass-border);
  border-radius: 50%;
  color: #fff;
  background: var(--ila-glass-bg);
  -webkit-backdrop-filter: blur(var(--ila-glass-blur));
  backdrop-filter: blur(var(--ila-glass-blur));
  cursor: pointer;
}
.ila-sound i { color: #fff; font-size: 18px; }
.v2-phone .ila-sound { top: auto; bottom: 16px; right: auto; left: 16px; }   /* left: the Blusalzz contact button owns the bottom-right corner */

/* 5. Call and WhatsApp: the Blusalzz widget, its sizes and places as measured on blusalzz.com (16 Nov 26).
   Phones: toggle 56 px at bottom 15, Call at 95, WhatsApp at 174, all 20 px from the right. Same widget on desktop (owner picked one button there too).
   Colours: Ila's Book Now red where Blusalzz uses its Book Now blue; WhatsApp green as Blusalzz. */
.ila-float-menu[hidden], .ila-float-list[hidden] { display: none; }
.ila-float-toggle, .ila-float-call, .ila-float-wa {
  position: fixed;
  z-index: 1050;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.ila-float-toggle { bottom: 15px; background: #d56750; box-shadow: 0 0 10px rgba(0, 0, 0, .2); transition: .3s ease-in-out; }
.ila-float-toggle img { width: 30px; height: auto; }
/* open: white circle, thin X in the button colour (Blusalzz draws it with a light-weight icon font Ila does not load, so two 3 px bars) */
.ila-float-toggle i { display: none; position: relative; width: 30px; height: 30px; }
.ila-float-toggle i::before, .ila-float-toggle i::after { content: ""; position: absolute; left: 0; top: 13px; width: 30px; height: 4px; border-radius: 2px; background: #d56750; transform: rotate(45deg); }
.ila-float-toggle i::after { transform: rotate(-45deg); }
.ila-float-toggle[aria-expanded="true"] { background: #fff; }
.ila-float-toggle[aria-expanded="true"] img { display: none; }
.ila-float-toggle[aria-expanded="true"] i { display: block; }
.ila-float-call { bottom: 95px; background: #d56750; box-shadow: 2px 2px 6px rgba(0, 0, 0, .4); }
.ila-float-call i { font-size: 28px; color: #fff; transform: scaleX(-1); }   /* handset faces left, as the Blusalzz icon */
.ila-float-wa { bottom: 174px; background: #40c351; }
.ila-float-wa i { font-size: 40px; color: #fff; }
.ila-float-menu .ila-float-wa { animation: ila-wa-up .5s ease forwards; }   /* Blusalzz slides WhatsApp up 20 px as it opens */
@keyframes ila-wa-up { from { transform: translateY(20px); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .ila-float-menu .ila-float-wa { animation: none; } }
/* brand pages cover 3 hotels: WhatsApp opens this list of them above the green button */
.ila-float-list {
  position: fixed;
  z-index: 1050;
  right: 20px;
  bottom: 238px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}
.ila-float-list a { display: block; padding: 8px 16px; color: #734538; font-size: 14px; line-height: 24px; white-space: nowrap; }
/* desktop template: Back to Top is a 56 px circle 12 px from the right, bottom 50-106 px. The widget stands in the same column (right 12 px, as Blusalzz desktop)
   and starts 24 px above it, Blusalzz's own gap between its buttons; spacing above stays the phone spacing */
html:not(.v2-is-phone) :is(.ila-float-toggle, .ila-float-call, .ila-float-wa, .ila-float-list) { right: 12px; }
html:not(.v2-is-phone) .ila-float-toggle { bottom: 130px; }
html:not(.v2-is-phone) .ila-float-call { bottom: 210px; }
html:not(.v2-is-phone) .ila-float-wa { bottom: 289px; }
html:not(.v2-is-phone) .ila-float-list { bottom: 353px; }

/* 6. Top menu: tighter spacing so Destination Weddings stays visible beside Dining, not inside More */
@media (min-width: 1101px) {
  html body .v2-desk header .navbar-top #top-navbar-collapse > li > a { padding-left: 8px !important; padding-right: 8px !important; }
  html body .v2-desk .outer-page header .resv-wrap .resv { width: auto !important; min-width: 0 !important; padding-left: 24px !important; padding-right: 24px !important; }
  .v2-desk .resv-wrap { gap: 12px; }
}

/* 7. Inner pages: breadcrumb bar 20 px above and below, as on Blusalzz. Desktop only: the phone gap is already 28 px. */
html body .v2-desk .outer-page .content_wrapper .no-gutter .widget-wrapper.breadcrumbs { padding-top: 20px !important; padding-bottom: 20px !important; }

/* 8. Lead forms on desktop: Send button centred under the form */
html body .v2-desk form.form-horizontal .formSubmitButton { display: block !important; width: auto; margin-left: auto !important; margin-right: auto !important; }

/* 9. Cookie notice: small corner card, off the hero */
html body .ila-cookie-notice { left: 24px; right: auto; bottom: auto; top: calc(var(--ila-header-h, 115px) + 20px); max-width: 360px; flex-wrap: wrap; justify-content: flex-start; gap: 8px; padding: 12px 16px; border-radius: 4px; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
/* Pages with the hero booking form: bottom-left, 16px above the form (owner, 27 Nov 26); ila-ux.js sets the class and gap */
html.ila-cookie-over-form body .ila-cookie-notice { top: auto; bottom: var(--ila-cookie-bottom, 24px); }
html body.mobile .ila-cookie-notice, .v2-is-phone body .ila-cookie-notice { left: 10px; top: auto; bottom: 10px; max-width: calc(100vw - 76px); font-size: 13px; line-height: 20px; }

/* 10. Phone: menu icon turns into an X while open; the 3-hotel picker needs no search box */
.v2-phone .mobile .hamburger i { transition: transform .2s, opacity .2s; }
/* step = distance between bar centres (measured 10px on all pages), so both strokes cross on the middle bar */
.v2-phone .mobile .hamburger { --ila-bar-step: 10px; }
.v2-phone .mobile .hamburger.open .top-bar { transform: translateY(var(--ila-bar-step, 8px)) rotate(45deg); }
.v2-phone .mobile .hamburger.open .middle-bar { opacity: 0; }
.v2-phone .mobile .hamburger.open .bottom-bar { transform: translateY(calc(-1 * var(--ila-bar-step, 8px))) rotate(-45deg); }
.v2-phone .search-wrapper { display: none !important; }

/* 11. Venue table on the weddings page: reuses .ila-hall-table, left aligned, grouped by hotel, filter tags */
:is(.v2-desk, .v2-phone) .ila-venue-table { max-width: none; margin: 24px 0 0; }
:is(.v2-desk, .v2-phone) .ila-dw-section .text-content-wrapper > p { max-width: none !important; padding-left: 0 !important; padding-right: 0 !important; }
:is(.v2-desk, .v2-phone) .ila-venue-table :is(th, td) { text-align: left; vertical-align: middle; }
:is(.v2-desk, .v2-phone) .ila-venue-table small { display: block; font-size: 13px; font-weight: 400; }
:is(.v2-desk, .v2-phone) .ila-venue-table .v-size b { font-size: 20px; font-weight: 600; color: #734538; }
:is(.v2-desk, .v2-phone) .ila-venue-table tbody th small { display: none; }
:is(.v2-desk, .v2-phone) .ila-venue-table tr.v-group th { padding-top: 20px; border-bottom: 1px solid #734538; }
:is(.v2-desk, .v2-phone) .ila-venue-table tr.v-group a { color: #734538; font-family: "Montagu Slab", serif; font-size: 18px !important; font-weight: 500; text-decoration: none; }
:is(.v2-desk, .v2-phone) .ila-venue-table tr.v-group small { display: inline; margin-inline-start: 12px; }
:is(.v2-desk, .v2-phone) .ila-venue-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
:is(.v2-desk, .v2-phone) .ila-venue-tags button { padding: 6px 14px; border: 1px solid #734538; border-radius: 4px; background: none; color: #734538; font: inherit; font-size: 14px; cursor: pointer; }
:is(.v2-desk, .v2-phone) .ila-venue-tags button[aria-pressed="true"] { background: #734538; color: #fff; }
.ila-venue-table [hidden] { display: none !important; }
/* Phones: one line per venue, type under the name, guests on the right, tags scroll sideways */
.v2-phone .ila-venue-table :is(.v-kind, .v-more), .v2-phone .ila-venue-table thead { display: none; }
.v2-phone .ila-venue-table tbody th small { display: block; }
.v2-phone .ila-venue-table .v-size { text-align: right; white-space: nowrap !important; }
.v2-phone .ila-venue-table .table :is(th, td) { padding: 8px 0; }
.v2-phone .ila-venue-tags { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
.v2-phone .ila-venue-tags button { flex: none; }

/* 12. Weddings page: the venue table and text share the form's row, whose cell is narrow. They run the full page width; the form stays centred. */
html body .v2-desk .outer-page .content_wrapper .no-gutter .gjs-cell > .widget-wrapper.widget-text-group.ila-dw-section { width: calc(100vw - 2 * 6.51vw) !important; max-width: none !important; }  /* 6.51vw = the site page margin */
.v2-phone .ila-venue-table tr.v-group small { display: block; margin-inline-start: 0; }

/* Line drawings: the live site's own art (assets/live-art/), see addBrandMotifs() in ila-ux.js. */
.ila-art-host { position: relative; isolation: isolate; }
.ila-art { position: absolute; z-index: -1; pointer-events: none; background-repeat: no-repeat; }
.ila-art--footer, .ila-art--footer-hills { left: 0; right: 0; bottom: 0; height: 100%; background-position: 50% 100%; background-size: 100% auto; }
.ila-art--footer { background-image: url(live-art/footer-maulakali-dots.svg); }
.ila-art--footer-hills { background-image: url(live-art/hills-dots-crescant.png); }
.ila-art--cablecar, .ila-art--cablecar-dots { top: 0; right: 0; width: min(100vw, 1434px); aspect-ratio: 1434 / 939; background-size: contain; background-position: 100% 0; }
.ila-art--cablecar { background-image: url(live-art/cable-car.svg); }
.ila-art--cablecar-dots { background-image: url(live-art/cable-car-dots.webp); }
.content_wrapper { overflow-x: clip; }

/* The footer scene is 24vw tall (1920x463). Like live's taller footer, the text sits above it, not on it. */
.v2-desk #footer.ila-footer-v1.ila-art-host { padding-bottom: 24vw; }
.v2-phone #footer.ila-footer-v1.ila-art-host { padding-bottom: 32vw; }

/* Inner-page intro panel (addIntroPanel() in ila-ux.js). Layout and sizes from live's inner pages (desktop: 50/50,
   820px tall, 500px text column 110px in; phone: 40px 15px padding). Colour stays ours: brand terracotta, white text. */
.content_wrapper .ila-ipanel { display: grid !important; grid-template-columns: 1fr 1fr; min-height: 820px; flex: 0 0 100%; width: 100%; max-width: none; margin: 0; padding: 0; }
.content_wrapper .ila-ipanel-replaced { position: absolute !important; left: -300vw !important; top: 0; width: 100vw; visibility: hidden; pointer-events: none; overflow: hidden; clip-path: inset(50%); }
.content_wrapper .ila-ipanel-replaced * { visibility: hidden !important; }   /* the room hero's Book Now box sets its own visibility */
.ila-ipanel-pic { position: relative; overflow: hidden; }
.ila-ipanel-photo { position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; object-fit: cover; }
.ila-ipanel-side { display: flex; align-items: center; padding: 70px 40px 70px 110px; background: #d56750 url(live-art/flower-hero-dots.png) no-repeat 50% 100% / 100% auto; }
.ila-ipanel-text { max-width: 520px; text-align: left; }
.ila-ipanel-text, .ila-ipanel-text :is(h1, p, a, span, strong) { color: #fff !important; }
.v2-desk .content_wrapper .ila-ipanel-text h1 { font-size: 46px !important; line-height: 1.25 !important; margin: 0 0 24px !important; text-align: left !important; }
.ila-ipanel-text h1::after { background: rgba(255, 255, 255, .55) !important; }
.ila-ipanel-label { font-size: 16px !important; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 16px !important; }
.v2-desk .ila-ipanel-text p:not(.ila-ipanel-label) { font-size: 18px !important; line-height: 1.75 !important; text-align: left !important; }
.v2-phone .content_wrapper .ila-ipanel { grid-template-columns: 1fr; min-height: 0; }
.v2-phone .ila-ipanel-pic { aspect-ratio: 3 / 2; }
.v2-phone .ila-ipanel-side { padding: 40px 20px 30vw; }
.v2-phone .content_wrapper .ila-ipanel-text h1 { font-size: 30px !important; line-height: 1.25 !important; margin: 0 0 20px !important; text-align: left !important; }
.v2-phone .ila-ipanel-text p:not(.ila-ipanel-label) { font-size: 16px !important; line-height: 1.6 !important; text-align: left !important; }

/* Desktop "Booking for" bar (addBookingBar() in ila-ux.js), as on live: 50px, fixed to the bottom, equal cells.
   Label cell white, Cable Car light terracotta, Resort dark terracotta, labels in the heading font. */
.ila-bookbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990; display: flex; height: 50px; transform: translateY(100%); visibility: hidden; transition: transform .35s ease, visibility 0s .35s; }
.ila-bookbar.is-shown { transform: none; visibility: visible; transition: transform .35s ease; }   /* slides in after the first block (addBookingBar) */
.ila-bookbar > * { flex: 1 1 0; display: flex; align-items: center; justify-content: center; margin: 0; border: 0; border-radius: 0; font-family: "Montagu Slab", serif; font-size: 24px; line-height: 1; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.ila-bookbar-cable, .ila-bookbar-resort { text-transform: none !important; }
.ila-bookbar-label { background: #fff; color: #734437; cursor: default; box-shadow: 0 -1px 0 rgba(0, 0, 0, .08); }
.ila-bookbar-cable { background: #dc816e; color: #fff !important; }
.ila-bookbar-resort { background: #bb5b46; color: #fff; }
.ila-bookbar a:hover, .ila-bookbar button:hover { filter: brightness(1.06); }
.ila-bookbar :focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
html.ila-has-bookbar body { padding-bottom: 50px; }
html.ila-has-bookbar #back-top { bottom: 65px !important; }
html.ila-has-bookbar .ila-float-toggle { bottom: 145px !important; }

/* Language switcher chevron: gtranslate's grey SVG arrow and the template's Font Awesome arrow both drew on the same ::after,
   the dark one sitting low (its 28px line box in a 20px box). One arrow, centred where the grey one was (owner, 25 Nov 26). */
html body .v2-desk .gt_switcher .gt_selected a::after {
  background-image: none !important;
  display: flex !important; align-items: center; justify-content: center; line-height: 1 !important;
}

/* Pop-ups (rates-by-email card, photo viewer, menus) lock page scroll, which removed the scrollbar and slid the whole page ~15px sideways. The scrollbar's space is now always kept. */
html { scrollbar-gutter: stable; }

/* Hotel homepage intro (owner, 26 Nov 26): the portrait film is taller and sits flush with the page's right edge, like the photos below it. */
html body .v2-desk .ila-split .ila-reel-portrait .image-content-wrapper { display: flex !important; justify-content: flex-end !important; width: 100% !important; }
html body .v2-desk .ila-split .ila-reel-portrait video[src] { width: auto !important; max-width: none !important; height: min(43vw, 82vh) !important; aspect-ratio: 3 / 4 !important; object-fit: cover !important; display: block; margin: 0 0 0 auto !important; }

/* Blog feedback form styles: assets/ila-blog-form.css (linked from the form block itself). */
