/*
 * Sahapathika Holidays — accessibility toolbar styles.
 *
 * Every setting is a class on <html> (set by a11y.js before first paint):
 *   a11y-<key>          on/off settings        e.g. a11y-links
 *   a11y-<key>-<level>  multi-level settings   e.g. a11y-text-2
 *
 * The toolbar UI (#a11y-ui) is appended to <html>, not <body>, so the page
 * overrides below (which all target `body …`) never restyle the toolbar, and
 * Bigger text (zoom on body) never scales it.
 */

/* ───────────────────────── Always on (Phase 2 fixes) ───────────────────────── */

/* Skip links: first thing a keyboard user reaches; hidden until focused */
.a11y-skip { position: absolute; top: 0; left: 0; z-index: 2147483001; }
.a11y-skip-link {
  position: fixed; left: 12px; top: 12px; transform: translateY(-160%);
  padding: 12px 18px; border-radius: 12px; border: 0;
  background: #16211D; color: #fff !important; text-decoration: none;
  font: 700 15px/1.2 'Plus Jakarta Sans', system-ui, sans-serif; cursor: pointer;
  box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}
.a11y-skip-link:not(:focus) { opacity: 0; pointer-events: none; }
.a11y-skip-link:focus { transform: none; opacity: 1; outline: 3px solid #FFB4AC; outline-offset: 2px; }
.a11y-skip-link + .a11y-skip-link { left: 236px; }
.a11y-skip-link.a11y-skip-extra { left: 12px; }   /* page jump points: only one shows at a time */
@media (max-width: 480px) { .a11y-skip-link + .a11y-skip-link { left: 12px; top: 64px; } }

/* Booking card: "Or type your dates", a plain alternative to the calendar (round 2) */
.sh-date-type { display: block; margin-top: 10px; }
.sh-date-type > span { display: block; font-size: 13px; font-weight: 700; color: #3A4A44; margin-bottom: 6px; }
.sh-date-type > input {
  width: 100%; box-sizing: border-box; padding: 12px 16px; border-radius: 14px;
  border: 1.5px solid #7D827F; background: #fff; color: #16211D;   /* border 3.9:1 on white */
  font: 500 15px/1.3 'Plus Jakarta Sans', system-ui, sans-serif;
}
.sh-date-type > input::placeholder { color: #6B655C; }
.sh-date-type > input:focus { border-color: #C4362C; }

/* Visible keyboard focus everywhere (WCAG 2.4.7 / 1.4.11). An ink ring with a white halo
   reads on cream, on photos and on the dark panels; !important beats the outline:none
   and glow-only rules in the page styles. Mouse clicks don't trigger :focus-visible. */
body :focus-visible {
  outline: 3px solid #16211D !important; outline-offset: 2px !important;
  box-shadow: 0 0 0 5px #fff !important;
}
/* Keep focused elements clear of the sticky header (WCAG 2.4.11 Focus Not Obscured): the
   browser honours this when scrolling a focused element or a skip target into view.
   The header is 62–78px tall. */
html { scroll-padding-top: 96px; }
/* <main> is only focused by the skip link, as a starting point — no ring around the page */
body main:focus, body main:focus-visible { outline: none !important; box-shadow: none !important; }
/* Links that used to be a <button> nested inside an <a> (Phase 3): keep the button look */
body a[data-a11y-btnlink] {
  display: inline-flex; align-items: center; justify-content: center; gap: inherit;
  text-decoration: none; box-sizing: border-box; font-family: inherit; line-height: normal;
}
/* Transparent button covering each home-page gallery tile (opens the photo viewer) */
body .a11y-tile-btn {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  margin: 0; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: zoom-in;
}
body .a11y-tile-btn:focus-visible { outline-offset: -4px !important; }
/* Reels: Pause / Play button (Phase 4), top-left under the place tag */
body .hx-reel { position: relative; }
body .a11y-reel-pp {
  position: absolute; z-index: 3; top: 48px; left: 14px; width: 40px; height: 40px; padding: 0;
  border: 1.5px solid rgba(255,255,255,.75); border-radius: 50%; background: rgba(0,0,0,.55);
  display: grid; place-items: center; cursor: pointer;
}
body .a11y-reel-pp:hover { background: rgba(0,0,0,.75); }
body .a11y-reel-pp span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; box-sizing: border-box; }
body .a11y-reel-pp.is-paused span { width: 0; height: 0; border: 0; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
/* Home newsletter: its own CSS strips the input's focus ring; put one back for keyboard users */
body .nl-pill input:focus-visible { outline: 3px solid #16211D !important; outline-offset: 4px !important; border-radius: 99px; }
/* No smooth scrolling for visitors who ask for reduced motion */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto !important; } }
/* Mobile menu entries are now links: keep their look */
body a.sh-mob-link, body a.sh-mob-sub-link, body a.sh-mob-plan { text-decoration: none; box-sizing: border-box; }
body a.sh-mob-plan { display: block; text-align: center; }
/* The menu's slide transition only runs once the menu has been used, so it can't flash
   on screen while the page loads (motion.js adds .sh-anim on first open). */
#sh-mobile-nav:not(.sh-anim) #sh-mobile-panel,
#sh-mobile-nav:not(.sh-anim) #sh-mobile-backdrop { transition: none !important; }

/* Generic screen-reader-only text (also used inside page templates) */
.a11y-sr {
  position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important;
  margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important;
}

/* ───────────────────────── Page adjustments ───────────────────────── */

/* Colour filters (high contrast, invert, saturation) are composed by a11y.js into one
   variable. On the root element a filter does not trap position:fixed descendants. */
html.a11y-filtered { filter: var(--a11y-filter, none); }
/* Invert: put photos, video and maps back the right way round, and the toolbar too */
html.a11y-contrast-4 body img,
html.a11y-contrast-4 body video,
html.a11y-contrast-4 body image-slot,
html.a11y-contrast-4 body iframe,
html.a11y-contrast-4 body picture,
/* The toolbar is inverted back piece by piece, never on #a11y-ui itself: a filter on that
   wrapper would become the containing block for its position:fixed children and throw the
   button and panel to the end of the page (it did). Each child is fixed, so a filter on it is safe. */
html.a11y-contrast-4 #a11y-ui > * { filter: invert(1) hue-rotate(180deg); }

/* Dark contrast (1) and light contrast (2). Empty elements are usually photo overlays
   and gradients, so they go transparent instead of covering the photo. */
html.a11y-contrast-1 body *:empty:not(input):not(textarea):not(select):not(img):not(video):not(iframe),
html.a11y-contrast-2 body *:empty:not(input):not(textarea):not(select):not(img):not(video):not(iframe) {
  background: transparent !important;
}
html.a11y-contrast-1 body,
html.a11y-contrast-1 body *:not(img):not(video):not(iframe):not(image-slot):not(svg):not(svg *):not(:empty),
html.a11y-contrast-1 body :is(input, textarea, select) {
  background-color: #000 !important; background-image: none !important;
  color: #fff !important; border-color: #fff !important;
  text-shadow: none !important; box-shadow: none !important;
}
html.a11y-contrast-1 body :is(a, a *) { color: #FFE14D !important; }
html.a11y-contrast-1 body :is(button, [role="button"], input, select, textarea) { border: 2px solid #fff !important; }
/* The logo has dark lettering: give it a light backing on black */
html.a11y-contrast-1 body img[src*="Site-logo"] { background: #fff !important; border-radius: 8px; padding: 3px 6px; }

html.a11y-contrast-2 body,
html.a11y-contrast-2 body *:not(img):not(video):not(iframe):not(image-slot):not(svg):not(svg *):not(:empty),
html.a11y-contrast-2 body :is(input, textarea, select) {
  background-color: #fff !important; background-image: none !important;
  color: #000 !important; border-color: #000 !important;
  text-shadow: none !important; box-shadow: none !important;
}
html.a11y-contrast-2 body :is(a, a *) { color: #0645AD !important; }
html.a11y-contrast-2 body :is(button, [role="button"], input, select, textarea) { border: 2px solid #000 !important; }

/* Bigger text. The site sets nearly every size in px, so a root font-size change would do
   little; zoom scales text and the layout around it, like browser zoom. */
html.a11y-text-1 body { zoom: 1.1; }
html.a11y-text-2 body { zoom: 1.25; }
html.a11y-text-3 body { zoom: 1.5; }
html[class*="a11y-text-"] body { overflow-x: hidden; }

/* Text spacing (level 2 = the WCAG 1.4.12 values) */
html.a11y-spacing-1 body *:not(svg):not(svg *) { letter-spacing: .05em !important; word-spacing: .1em !important; }
html.a11y-spacing-2 body *:not(svg):not(svg *) { letter-spacing: .12em !important; word-spacing: .16em !important; }
html.a11y-spacing-3 body *:not(svg):not(svg *) { letter-spacing: .2em !important; word-spacing: .3em !important; }

/* Line height */
html.a11y-lineHeight-1 body *:not(svg):not(svg *) { line-height: 1.5 !important; }
html.a11y-lineHeight-2 body *:not(svg):not(svg *) { line-height: 1.8 !important; }
html.a11y-lineHeight-3 body *:not(svg):not(svg *) { line-height: 2 !important; }

/* Text alignment */
html.a11y-align-1 body *:not(svg):not(svg *) { text-align: left !important; }
html.a11y-align-2 body *:not(svg):not(svg *) { text-align: center !important; }
html.a11y-align-3 body *:not(svg):not(svg *) { text-align: right !important; }

/* Fonts. Devanagari falls through to the site's own Devanagari face. */
html.a11y-readable body *:not(svg):not(svg *) {
  font-family: 'Atkinson Hyperlegible', 'Tiro Devanagari Sanskrit', Verdana, sans-serif !important;
}
/* OpenDyslexic by Abbie Gonzalez, SIL Open Font License 1.1 (fonts/OpenDyslexic-OFL.txt).
   Self-hosted; the browser only downloads these once the Dyslexia font setting is on. */
@font-face { font-family: 'OpenDyslexic'; src: url('fonts/OpenDyslexic-Regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('fonts/OpenDyslexic-Italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('fonts/OpenDyslexic-Bold.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'OpenDyslexic'; src: url('fonts/OpenDyslexic-Bold-Italic.woff2') format('woff2'); font-weight: 700; font-style: italic; font-display: swap; }
html.a11y-dyslexia body *:not(svg):not(svg *) {
  font-family: 'OpenDyslexic', 'Comic Sans MS', 'Tiro Devanagari Sanskrit', Verdana, sans-serif !important;
}

/* Highlight links and buttons */
html.a11y-links body a[href] {
  text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important;
  outline: 2px solid #C4362C !important; outline-offset: 2px !important;
}
html.a11y-links body :is(button, [role="button"], input[type="submit"]) {
  outline: 2px dashed #C4362C !important; outline-offset: 2px !important;
}

/* Big cursor: black (1) or white (2) */
html.a11y-cursor-1, html.a11y-cursor-1 * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3 L6 41 L16 31 L23 46 L30 43 L23 28 L37 28 Z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}
html.a11y-cursor-2, html.a11y-cursor-2 * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3 L6 41 L16 31 L23 46 L30 43 L23 28 L37 28 Z' fill='%23fff' stroke='%23000' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important;
}

/* Hide images (photos, video, inline background photos). Icons (svg) stay. */
html.a11y-hideImages body :is(img, image-slot, video, picture) { visibility: hidden !important; }
html.a11y-hideImages body [style*="url("] { background-image: none !important; }

/* Pause animations: jump every animation and transition to its end state (rather than
   removing it, which would leave fade-in content invisible). */
html.a11y-pause body *, html.a11y-pause body *::before, html.a11y-pause body *::after {
  animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: .001ms !important; transition-delay: 0s !important;
}
html.a11y-pause { scroll-behavior: auto !important; }

/* Strong focus ring */
html.a11y-focus body :focus {
  outline: 4px solid #C4362C !important; outline-offset: 3px !important;
  box-shadow: 0 0 0 7px #fff, 0 0 0 9px #16211D !important;
}

/* Read aloud: the block being read */
.a11y-reading {
  outline: 3px solid #E8871E !important; outline-offset: 4px !important;
  background-color: rgba(255, 225, 77, .35) !important; border-radius: 4px;
}

/* ───────────────────────── Toolbar UI ───────────────────────── */

#a11y-ui {
  --a-ink: #16211D; --a-ink-soft: #3A4A44; --a-cream: #FAF6EF; --a-card: #fff;
  --a-accent: #C4362C; --a-accent-soft: #FDE8E4; --a-line: rgba(22,33,29,.14);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px; line-height: 1.4; color: var(--a-ink);
  letter-spacing: normal; word-spacing: normal; text-align: left;
}
#a11y-ui *, #a11y-ui *::before, #a11y-ui *::after { box-sizing: border-box; }
#a11y-ui [hidden] { display: none !important; }
/* (.a11y-sr is defined once, near the top of this file) */
/* Shield the toolbar from page-wide effects (motion.js line-draw, reveal and hover classes) */
#a11y-ui svg :is(path, circle, rect, ellipse) { animation: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important; }
#a11y-ui :is(.sh-child, .sh-section, .sh-card, .sh-btn) { opacity: 1 !important; transform: none !important; animation: none !important; }
/* The dialog itself takes focus on open so screen readers read its title; the ring
   belongs on the controls inside it, not around the whole panel. */
#a11y-ui #a11y-panel:focus, #a11y-ui #a11y-panel:focus-visible { outline: none; }
#a11y-ui :focus-visible { outline: 3px solid var(--a-accent); outline-offset: 2px; }

/* Launcher */
#a11y-launch {
  position: fixed; left: 24px; bottom: 26px; z-index: 2147482000;
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff;
  background: var(--a-ink); color: #fff; cursor: pointer; padding: 0;
  display: grid; place-items: center;
  box-shadow: 0 14px 30px -10px rgba(22,33,29,.6);
  transition: transform .2s ease, background .2s ease;
}
#a11y-launch:hover { transform: scale(1.06); background: #24332D; }
#a11y-launch:focus-visible { outline: 3px solid var(--a-accent); outline-offset: 3px; }
#a11y-launch svg { width: 30px; height: 30px; }
#a11y-ui.a11y-right #a11y-launch { left: auto; right: 24px; bottom: 100px; }
#a11y-ui.a11y-hidden-launch #a11y-launch { display: none; }

/* Minimised launcher: a slim tab on the same edge, always there to bring the button back */
#a11y-restore {
  display: none; position: fixed; left: 0; bottom: 34px; z-index: 2147482000;
  width: 30px; height: 48px; padding: 0 4px 0 2px; border: 2px solid #fff; border-left: 0;
  border-radius: 0 14px 14px 0; background: var(--a-ink); color: #fff; cursor: pointer;
  place-items: center; box-shadow: 0 10px 24px -10px rgba(22,33,29,.6);
}
#a11y-restore svg { width: 20px; height: 20px; }
#a11y-ui.a11y-hidden-launch #a11y-restore { display: grid; }
#a11y-ui.a11y-right #a11y-restore { left: auto; right: 0; bottom: 108px; border: 2px solid #fff; border-right: 0; border-radius: 14px 0 0 14px; padding: 0 2px 0 4px; }
@media (max-width: 768px) {
  #a11y-restore { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  body:has(.dx-mbar) ~ #a11y-ui #a11y-restore { bottom: calc(164px + env(safe-area-inset-bottom, 0px)); }
  #a11y-ui.a11y-right #a11y-restore { bottom: calc(208px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 768px) {
  #a11y-launch { left: 14px; bottom: calc(80px + env(safe-area-inset-bottom, 0px)); width: 52px; height: 52px; }
  #a11y-ui.a11y-right #a11y-launch { left: auto; right: 14px; bottom: calc(206px + env(safe-area-inset-bottom, 0px)); }
  /* Package pages show a full-width booking bar above the bottom nav */
  body:has(.dx-mbar) ~ #a11y-ui #a11y-launch { bottom: calc(162px + env(safe-area-inset-bottom, 0px)); }
  /* …which hides itself while the booking card is on screen (body.dx-book-in) */
  body.dx-book-in ~ #a11y-ui #a11y-launch { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* Panel */
#a11y-panel {
  position: fixed; top: 12px; bottom: 12px; left: 12px; z-index: 2147483000;
  width: min(420px, calc(100vw - 24px));
  display: flex; flex-direction: column;
  background: var(--a-cream); color: var(--a-ink);
  border-radius: 22px; border: 1px solid var(--a-line);
  box-shadow: 0 30px 80px -20px rgba(22,33,29,.55);
  overflow: hidden;
}
#a11y-ui.a11y-right #a11y-panel { left: auto; right: 12px; }
@media (max-width: 480px) {
  /* Full screen by pinning both edges, not width:100vw — vw includes the scrollbar, which put
     the panel 15px under it (button left) or 15px off the left edge (button right). */
  #a11y-panel, #a11y-ui.a11y-right #a11y-panel { top: 0; bottom: 0; left: 0; right: 0; width: auto; border-radius: 0; border: 0; }
}
#a11y-backdrop { position: fixed; inset: 0; z-index: 2147482999; background: rgba(22,15,10,.35); }

.a11y-head {
  display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px;
  background: var(--a-ink); color: #FAF6EF;
}
.a11y-head h2 { margin: 0; font: 600 21px/1.2 'Fraunces', Georgia, serif; color: #FAF6EF; }
.a11y-head p { margin: 4px 0 0; font-size: 13px; color: #D9D3C7; }
.a11y-head-text { flex: 1; min-width: 0; }
.a11y-icon-btn {
  flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(250,246,239,.35);
  background: transparent; color: #FAF6EF; cursor: pointer; display: grid; place-items: center; padding: 0;
}
.a11y-icon-btn:hover { background: rgba(250,246,239,.12); }
.a11y-icon-btn svg { width: 20px; height: 20px; }
#a11y-ui .a11y-head :focus-visible { outline-color: #FFB4AC; }

.a11y-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 16px 16px; }
.a11y-section { margin-top: 14px; }
.a11y-section h3 {
  margin: 0 0 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #6B4E12;
}
.a11y-note { margin: 0 0 10px; font-size: 12.5px; color: var(--a-ink-soft); }

.a11y-profiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.a11y-profile {
  display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px;
  border-radius: 14px; border: 1.5px solid var(--a-line); background: var(--a-card);
  color: var(--a-ink); font: 700 13.5px/1.25 inherit; font-family: inherit; text-align: left; cursor: pointer;
}
.a11y-profile svg { flex: none; width: 22px; height: 22px; color: var(--a-accent); }
.a11y-profile[aria-pressed="true"] { background: var(--a-ink); color: #fff; border-color: var(--a-ink); }
.a11y-profile[aria-pressed="true"] svg { color: #FFB4AC; }

.a11y-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (max-width: 360px) { .a11y-tiles { grid-template-columns: repeat(2, 1fr); } }
.a11y-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 92px; padding: 12px 6px 14px; border-radius: 16px;
  border: 1.5px solid var(--a-line); background: var(--a-card); color: var(--a-ink);
  font-family: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.25; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.a11y-tile:hover { border-color: var(--a-ink); }
.a11y-tile svg { width: 26px; height: 26px; }
.a11y-tile[aria-pressed="true"] { background: var(--a-ink); color: #fff; border-color: var(--a-ink); }
.a11y-tile-level { font-size: 11px; font-weight: 600; opacity: .9; }
.a11y-dots { display: flex; gap: 4px; position: absolute; bottom: 7px; }
.a11y-dots i { width: 14px; height: 3px; border-radius: 2px; background: var(--a-line); }
.a11y-tile[aria-pressed="true"] .a11y-dots i { background: rgba(255,255,255,.3); }
.a11y-tile[aria-pressed="true"] .a11y-dots i.on { background: #FFB4AC; }

.a11y-foot {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--a-line); background: #fff;
}
.a11y-btn {
  flex: 1 1 auto; min-height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  border: 1.5px solid var(--a-ink); background: #fff; color: var(--a-ink);
  font-family: inherit; font-size: 13.5px; font-weight: 700;
}
.a11y-btn:hover { background: var(--a-cream); }
.a11y-btn-primary { background: var(--a-accent); border-color: var(--a-accent); color: #fff; }
.a11y-btn-primary:hover { background: #A82E25; }
.a11y-foot a { flex-basis: 100%; text-align: center; font-size: 13px; font-weight: 700; color: var(--a-accent); padding: 6px 0; }

/* Page structure view */
.a11y-tabs { display: flex; gap: 6px; margin: 14px 0 10px; }
.a11y-tabs button {
  flex: 1; min-height: 40px; border-radius: 10px; border: 1.5px solid var(--a-line); background: #fff;
  font-family: inherit; font-size: 13px; font-weight: 700; color: var(--a-ink); cursor: pointer;
}
.a11y-tabs button[aria-pressed="true"] { background: var(--a-ink); border-color: var(--a-ink); color: #fff; }
.a11y-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.a11y-list button {
  width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: 10px; background: #fff;
  font-family: inherit; font-size: 13.5px; color: var(--a-ink); text-align: left; cursor: pointer;
  display: flex; gap: 10px; align-items: baseline;
}
.a11y-list button:hover { background: var(--a-accent-soft); }
.a11y-list b { flex: none; min-width: 30px; font-size: 11px; color: var(--a-accent); }

/* Read-aloud player */
#a11y-player {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 2147482500;
  display: flex; align-items: center; gap: 6px; padding: 8px; max-width: calc(100% - 24px); /* % = visible width; vw counts the scrollbar */
  background: var(--a-ink); color: #fff; border-radius: 18px; box-shadow: 0 20px 50px -18px rgba(0,0,0,.6);
}
@media (max-width: 768px) { #a11y-player { bottom: calc(150px + env(safe-area-inset-bottom, 0px)); } }
#a11y-player button {
  min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.1); color: #fff; font-family: inherit; font-size: 13px; font-weight: 800;
  display: grid; place-items: center;
}
#a11y-player button:hover { background: rgba(255,255,255,.2); }
#a11y-player svg { width: 20px; height: 20px; }
#a11y-player .a11y-player-label { font-size: 12.5px; font-weight: 700; padding: 0 6px 0 4px; white-space: nowrap; }
#a11y-ui #a11y-player :focus-visible { outline-color: #FFB4AC; }

/* Reading guide and mask */
#a11y-guide {
  position: fixed; left: 0; right: 0; height: 12px; z-index: 2147481000; pointer-events: none;
  background: #16211D; border-top: 3px solid #FFE14D; border-bottom: 3px solid #FFE14D;
}
/* NB: settings put "a11y-<key>" classes on <html> (a11y-mask, a11y-guide, a11y-links…), so
   never reuse those names for an element class. ".a11y-mask" here once matched <html> itself
   when Reading mask / ADHD friendly was on, making the whole page unclickable. */
.a11y-maskbar { position: fixed; left: 0; right: 0; z-index: 2147481000; pointer-events: none; background: rgba(10,14,12,.62); }
#a11y-mask-top { top: 0; }
#a11y-mask-bottom { bottom: 0; }

/* Label tooltip */
#a11y-tip {
  position: fixed; z-index: 2147482800; max-width: 280px; pointer-events: none;
  padding: 8px 12px; border-radius: 10px; background: var(--a-ink); color: #fff;
  font-size: 13.5px; font-weight: 600; line-height: 1.35; box-shadow: 0 12px 30px -10px rgba(0,0,0,.5);
}

@media (prefers-reduced-motion: reduce) {
  #a11y-ui * { transition: none !important; animation: none !important; }
}

/* ───────────────── Round 2, Phase 2: content for blind travellers ───────────────── */

/* Reels: "Video description" under each video (dark red section: cream text, gold summary) */
.sh-vdesc { margin-top: 10px; color: #FFF4E2; font: 500 13.5px/1.55 'Plus Jakarta Sans', system-ui, sans-serif; }
.sh-vdesc > summary { cursor: pointer; font-weight: 800; color: #FFC46B; width: max-content; max-width: 100%; padding: 4px 0; }
.sh-vdesc > p { margin: 6px 0 0; }

/* Package page: text itinerary and WhatsApp share, under the itinerary */
.sh-itin-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sh-itin-tools > button, .sh-itin-tools > a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid #7D827F; background: #fff; color: #16211D; text-decoration: none; cursor: pointer;
  font: 700 14px/1.2 'Plus Jakarta Sans', system-ui, sans-serif;
}
.sh-itin-tools > button:hover, .sh-itin-tools > a:hover { border-color: #C4362C; color: #A82E25; }

/* Enquiry form: optional access needs */
.sh-access { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.sh-access > legend { padding: 0; }
.sh-access-opt-l { font-weight: 500; }
.sh-access-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 16px; }
.sh-access-opt { display: flex; align-items: flex-start; gap: 10px; min-height: 32px; font-size: 14.5px; line-height: 1.4; color: #16211D; cursor: pointer; }
.sh-access-opt > input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #C4362C; }
.sh-access-note { margin: 8px 0 0; font-size: 13px; color: #6B655C; }

/* Booking card: link to the access-needs question */
.sh-access-link { display: block; margin-top: 12px; text-align: center; font-size: 14px; font-weight: 700; color: #A82E25; text-decoration: underline; text-underline-offset: 3px; }

/* "Accessibility on this trip" (filled from data/trip-access.json) */
.sh-trip-access .sh-ta-date { margin: 4px 0 14px; font-size: 13.5px; color: #6B655C; }
.sh-ta-list { margin: 0; display: grid; gap: 14px; }
.sh-ta-list dt { font-weight: 800; color: #16211D; }
.sh-ta-list dd { margin: 2px 0 0; line-height: 1.6; color: #3A4A44; }
.sh-ta-more { margin-top: 16px; }
.sh-ta-more a { color: #A82E25; font-weight: 700; text-decoration: underline; }

/* "Get this itinerary as text": a plain, full-screen reading view (a dialog in #a11y-ui) */
#sh-itin {
  position: fixed; inset: 0; z-index: 2147483002; overflow-y: auto; background: #fff; color: #111;
  font: 18px/1.6 system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-overflow-scrolling: touch;
}
#sh-itin .sh-itin-bar {
  position: sticky; top: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  padding: 12px 16px; background: #fff; border-bottom: 1px solid #767676;
}
#sh-itin .sh-itin-bar button {
  font: 700 16px/1.2 system-ui, sans-serif; min-height: 44px; padding: 10px 18px; cursor: pointer;
  border: 2px solid #111; border-radius: 8px; background: #fff; color: #111;
}
#sh-itin .sh-itin-bar button:focus-visible, #sh-itin h2:focus-visible { outline: 3px solid #C4362C; outline-offset: 2px; }
#sh-itin .sh-itin-body { max-width: 46rem; margin: 0 auto; padding: 8px 16px 48px; }
#sh-itin h2 { font-size: 1.7em; line-height: 1.2; margin: .6em 0; }
#sh-itin h3 { font-size: 1.3em; margin: 1.6em 0 .4em; }
#sh-itin h4 { font-size: 1.1em; margin: 1.3em 0 .3em; }
html.sh-itin-open { overflow: hidden; }
@media print {
  html.sh-itin-open body, html.sh-itin-open #a11y-ui > :not(#sh-itin), #sh-itin .sh-itin-bar { display: none !important; }
  html.sh-itin-open { overflow: visible; }
  #sh-itin { position: static; overflow: visible; }
}

/* ───────────────── Round 2, Phase 3: toolbar languages ───────────────── */
/* Language switch: a strip continuing the dark panel head */
.a11y-langs { display: flex; gap: 6px; padding: 0 18px 14px; background: var(--a-ink); flex: none; }
.a11y-langs button {
  flex: 1; min-height: 40px; border-radius: 10px; border: 1.5px solid rgba(250,246,239,.45);
  background: transparent; color: #FAF6EF; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.a11y-langs button:hover { background: rgba(250,246,239,.12); }
.a11y-langs button[aria-pressed="true"] { background: #FAF6EF; border-color: #FAF6EF; color: var(--a-ink); }
#a11y-ui .a11y-langs :focus-visible { outline-color: #FFB4AC; }
/* Malayalam and Devanagari need a little more line height than Latin text */
#a11y-ui:lang(ml) .a11y-tile-name, #a11y-ui:lang(hi) .a11y-tile-name,
#a11y-ui:lang(ml) .a11y-note, #a11y-ui:lang(hi) .a11y-note { line-height: 1.5; }
/* Letter-spacing pulls Malayalam and Devanagari letters apart (it breaks conjuncts),
   and these scripts have no capitals: plain headings in those languages. */
#a11y-ui:lang(ml) h3, #a11y-ui:lang(hi) h3 { letter-spacing: 0; text-transform: none; font-size: 13px; }
/* Longer words: wrap inside tiles and profiles instead of overflowing sideways */
#a11y-ui:lang(ml) .a11y-profile, #a11y-ui:lang(hi) .a11y-profile,
#a11y-ui:lang(ml) .a11y-tile-name, #a11y-ui:lang(hi) .a11y-tile-name { overflow-wrap: anywhere; min-width: 0; }
#a11y-ui:lang(ml) .a11y-profile span, #a11y-ui:lang(hi) .a11y-profile span { min-width: 0; }
/* Footer: two buttons per row, smaller text, so the settings keep their space */
#a11y-ui:lang(ml) .a11y-foot .a11y-btn, #a11y-ui:lang(hi) .a11y-foot .a11y-btn { flex: 1 1 calc(50% - 4px); font-size: 12.5px; padding: 4px 8px; line-height: 1.3; }
#a11y-ui:lang(ml) .a11y-foot .a11y-btn-primary, #a11y-ui:lang(hi) .a11y-foot .a11y-btn-primary { flex-basis: 100%; }

/* ───────────────── Round 2, Phase 4: low vision ───────────────── */

/* Windows contrast themes (forced colours). The system replaces our colours with the
   visitor's own, and removes backgrounds. Anything that was shown only by a background
   (button shapes, the selected chip or day, white icons on a coloured circle) needs a
   border or a system colour instead. */
@media (forced-colors: active) {
  /* every button and button-styled link keeps a visible edge */
  body button, body [role="button"], body a[data-a11y-btnlink], body [class*="-btn"], body .hx-wa, body .px-wa,
  #a11y-ui button { border: 1px solid ButtonText !important; }
  /* selected / pressed / current: shown with the system highlight */
  body [aria-pressed="true"], body [aria-current="page"], body [aria-current="true"], body [aria-selected="true"],
  #a11y-ui [aria-pressed="true"] {
    forced-color-adjust: none; background: Highlight !important; color: HighlightText !important; border-color: Highlight !important;
  }
  body [aria-pressed="true"] svg, #a11y-ui [aria-pressed="true"] svg { color: HighlightText; }
  /* icons follow the text colour (a white icon on a removed green circle would vanish) */
  body svg [fill]:not([fill="none"]), #a11y-ui svg [fill]:not([fill="none"]) { fill: currentColor; }
  body svg [stroke]:not([stroke="none"]), #a11y-ui svg [stroke]:not([stroke="none"]) { stroke: currentColor; }
  /* focus ring in the system highlight colour (the white halo is a box-shadow, which is removed) */
  body :focus-visible, #a11y-ui :focus-visible { outline: 3px solid Highlight !important; outline-offset: 2px !important; }
  /* disabled calendar days look disabled */
  body button:disabled { color: GrayText !important; border-color: GrayText !important; }
  /* reading guide and mask are drawn with backgrounds: keep their look */
  #a11y-guide, .a11y-maskbar { forced-color-adjust: none; }
  /* the skip links and the toolbar panel need an edge against the page */
  .a11y-skip-link, #a11y-panel, #sh-itin .sh-itin-bar { border: 2px solid CanvasText !important; }
}

/* The visitor's system asks for more contrast (macOS "Increase contrast", iOS, Android
   high-contrast text, Windows contrast themes in some browsers). */
@media (prefers-contrast: more) {
  /* muted grey text becomes near-black. Page styles use the --muted / --soft variables;
     inline styles reach the DOM as rgb() (React rewrites them), so match that form. */
  html .hx, html .dx, html .px, html .cx, html body { --muted: #1B1A17; --soft: #1B1A17; }
  body [style*="color: rgb(107, 101, 92)"], body [style*="color: rgb(58, 74, 68)"], body [style*="color: var(--muted)"],
  body .sh-access-note, body .sh-ta-date, body .sh-date-type > span { color: #1B1A17 !important; }
  body ::placeholder { color: #3A3A3A !important; opacity: 1 !important; }
  /* links in running text are underlined */
  body main p a, body main li a, body footer a:not([aria-label]) { text-decoration: underline !important; text-underline-offset: 3px; }
  /* form fields and outline buttons get a solid dark edge */
  body input:not([type="checkbox"]):not([type="radio"]), body select, body textarea { border-color: #16211D !important; }
  /* a thicker focus ring */
  body :focus-visible { outline-width: 4px !important; }
}

/* Text magnifier: the text under the pointer, or the focused control, shown large */
#a11y-mag {
  position: fixed; z-index: 2147483002; pointer-events: none; max-width: min(640px, calc(100% - 24px));
  padding: 14px 18px; border-radius: 12px; background: #111; color: #FFF; border: 3px solid #FFD54A;
  font: 600 28px/1.4 system-ui, -apple-system, 'Segoe UI', sans-serif; letter-spacing: normal; word-spacing: normal;
  box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); overflow-wrap: anywhere;
}
@media (max-width: 480px) { #a11y-mag { font-size: 24px; } }
@media (forced-colors: active) { #a11y-mag { border-color: CanvasText; } }

/* Phone bottom bar: with larger text (browser or phone font size) the four labels would
   spill past the screen edge; let the columns shrink and the labels wrap */
#sx-bnav { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
#sx-bnav .sx-bn { min-width: 0; height: auto !important; min-height: 52px; padding: 4px 2px; }
#sx-bnav .sx-bn span { max-width: 100%; overflow-wrap: anywhere; text-align: center; line-height: 1.15; }
