/* Fixes from the site QA pass of 8 November 2026. Loaded on every page, after the other stylesheets
   (apollonaut-conversion.php). Each rule names what it fixes. */

/* Phone menu button: the visible icon is 22×10 px; give it a ~38×44 px tap area without moving it.
   The area reaches further right than left, away from the language button beside it. */
@media (max-width: 899.98px) {
  :is(.cv-home, .apocv-main-site) .header-actions #menu-toggle,
  body[class*="vm-page-"] header.vm-attraction-header .menu-toggle,
  header :is(.hdr-in, .hdr-acts) > button.menu-toggle { position: relative; }
  :is(.cv-home, .apocv-main-site) .header-actions #menu-toggle::after,
  body[class*="vm-page-"] header.vm-attraction-header .menu-toggle::after,
  header :is(.hdr-in, .hdr-acts) > button.menu-toggle::after { content: ""; position: absolute; inset: -17px -10px -17px -6px; }
}

/* Currency: removed from the menus at the owner's request (8 Nov 2026) — prices and payment are in euros only.
   The build's drawers no longer print it; this also hides it in any menu markup that still comes from elsewhere,
   and lets the language control take the whole row the two used to share. */
[data-ac-currency],
#mobile-nav .cv-e-settings > a[aria-disabled="true"] { display: none !important; }
body[class*="vm-page-"] #mobile-menu.ac-mj-drawer .settings,
:is(.cv-home, .apocv-main-site) .cv-drawer-settings { grid-template-columns: minmax(0, 1fr); }

/* Menu (guides and information pages): the theme gives the language control's wrapper its cream bar background, so the
   drawer's light "English" label sat white on cream and only the flag showed. Let the dark drawer show through. */
#mobile-nav [data-cv-language-slot] .language-bar { height: auto; border: 0; background: transparent; color: inherit; }

/* Information pages: "On this page" links were 12–13 px, muted and not underlined, so they read as plain text.
   Underline them and darken them a little; on phones one per line with a comfortable tap height. */
html body .information-toc li a {
  color: #1d4535;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(29, 69, 53, .4);
  text-underline-offset: 3px;
}
html body .information-toc li a:hover { text-decoration-color: currentColor; }
/* Its heading: the information pages' h2 size (presentation*.css) also reached this label, which the theme sets as a small
   capitalised eyebrow, so "ON THIS PAGE" showed at 30–51 px. Back to a label. */
html body:not([class*="vm-page"]) main .information-layout .information-toc h2 { margin: 0 0 10px; font-size: 12px; line-height: 1.5; letter-spacing: .12em; color: #50614b; }
@media (min-width: 900px) {
  html body .information-toc li a { font-size: 14px; line-height: 1.45; }
}
@media (max-width: 899.98px), (pointer: coarse) {
  html body .information-toc ul { grid-template-columns: minmax(0, 1fr); gap: 0; }
  html body .information-toc li a { display: inline-block; padding-block: 8px; font-size: 15px; line-height: 1.35; }
}

/* Information pages: "Back to top" at the end of the long policies (markup: global/copy-fixes.php). It jumps to #main;
   the margin lets the jump reach the very top, so the sticky header doesn't cover the breadcrumb. */
main#main.information-page { scroll-margin-top: 160px; }
.information-copy .apocv-back-to-top { margin: 8px 0 0; text-align: right; }
html body .information-copy .apocv-back-to-top a {
  display: inline-block;
  padding-block: 11px;
  line-height: 1.4;
  color: #1d4535;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(29, 69, 53, .4);
  text-underline-offset: 3px;
}
html body .information-copy .apocv-back-to-top a span { display: inline-block; margin-left: 7px; }
html body .information-copy .apocv-back-to-top a:hover { text-decoration-color: currentColor; }

/* Footer on guides and information pages (phone): the "Where will curiosity take you?" fold sat in a padded block with a
   rule of its own (a double divider), and 38 px of empty padding sat above and below the link groups. Close them up into
   one run of folds with a single rule between each. */
@media (max-width: 899.98px) {
  body:not([class*="vm-page"]) footer.institutional-footer:not(#apo-global-footer) .footer-destinations:has(> .cv-footer-fold) { padding: 0; border-bottom: 0; }
  body:not([class*="vm-page"]) footer.institutional-footer:not(#apo-global-footer) .institutional-footer__grid:has(.cv-footer-fold) { padding: 0; }
  body:not([class*="vm-page"]) footer.institutional-footer:not(#apo-global-footer):has(.cv-footer-fold) .institutional-footer__company { padding-top: 28px; border-top: 0; }
  body:not([class*="vm-page"]) footer.institutional-footer:not(#apo-global-footer) .cv-footer-fold[open] { padding-bottom: 12px; }
}
/* Same footer: the "© 2026 …" line was #55665b on the dark green (about 2:1); lighten it to a readable muted tone. */
body:not([class*="vm-page"]) footer.institutional-footer:not(#apo-global-footer) .institutional-footer__bottom { color: #b3c1b7; }

/* Tap targets on phones (QA measured under 32 px). Breadcrumb links get invisible padding: a taller tap area, same layout. */
@media (max-width: 899.98px), (pointer: coarse) {
  html body :is(nav.vm-brand-breadcrumb, nav.information-breadcrumb, nav.cg-breadcrumb) > a { display: inline-block; padding-block: 7px; margin-block: -7px; }
  html body p.ep-breadcrumb > a { display: inline-block; padding: 10px 4px; margin: -10px -4px; }
  /* Footer legal links (Privacy, Cookie policy, Photography credits, Cookie preferences): 17–19 px tall, some with no gap. */
  html body footer .institutional-footer__bottom > :is(a, button),
  html body:is(.cv-home, [class*="vm-page"]) footer#apo-global-footer .institutional-footer__bottom > :is(a, button) { display: inline-flex; align-items: center; min-height: 32px; }
  html body footer .institutional-footer__bottom { column-gap: 20px; row-gap: 2px; }
  /* Footer link lists on the homepage and attraction homepages: 18 px tall inline links, now 32 px rows (same spacing).
     (The other pages' footer lists are already 44 px.) */
  html body:is(.cv-home, .vm-page-home) #apo-global-footer .cv-footer-fold ul { gap: 0; }
  html body:is(.cv-home, .vm-page-home) #apo-global-footer .cv-footer-fold li a { display: inline-flex; align-items: center; min-height: 32px; }
  /* "View all experiences ↗" in the attraction pages' footer: 18 px tall. */
  html body[class*="vm-page"] #apo-global-footer .footer-destinations__heading > a[data-footer-all] { display: inline-block; padding-block: 7px; margin-block: -7px; }
  /* "Cookie preferences" under the attraction pages' footer: 29 px tall. */
  html body .vm-cookie-footer .vm-cookie-manage { min-height: 36px; }
}

/* Cookie banner (owner, 9 Nov 2026): "Accept all" (and "Save" in Preferences) was Majorelle blue on attraction pages and
   plain cream on the guides; it is now the homepage's yellow button on every page. */
html body :is(#apo-consent-banner, #apo-consent-preferences) .apo-consent-actions button:is([data-apo-choice="all"], [data-apo-save]) {
  background: #f8e46c !important;
  color: #183c34 !important;
  border: 1px solid #f8e46c !important;
}
html body :is(#apo-consent-banner, #apo-consent-preferences) .apo-consent-actions button:is([data-apo-choice="all"], [data-apo-save]):hover {
  background: #f2d94a !important;
  border-color: #f2d94a !important;
}
/* Owner's wording and checkout changes, 17 Nov 2026 (global/wording-2026-11.php). */
.buy .apocv-buy-statement{margin:14px 0 0;font-size:12px;line-height:1.5;color:inherit;opacity:.8}
.apocv-tax-note{margin:6px 0 0;font-size:13px;line-height:1.4;color:var(--muted,#58606b);text-align:right}
.apocv-mini-summary .apocv-tax-note{text-align:left}
.apocv-terms-check{display:flex;gap:10px;align-items:flex-start;margin:16px 0 4px;font-size:14px;line-height:1.45;cursor:pointer}
.apocv-terms-check input{flex:0 0 auto;width:18px;height:18px;margin:2px 0 0}
.apocv-terms-check input[aria-invalid="true"]{outline:2px solid #b42318;outline-offset:2px}
[data-apocv-terms-error]{display:block;min-height:0;color:#b42318;font-size:13px}
.institutional-footer__company .apocv-footer-brand{margin:0 0 8px}
/* Terms box: the box beside its text on both checkouts; tax line under the total's label (owner, 17 Nov 2026). */
#main .apocv-terms-check,#main label.apocv-check.apocv-terms-check{display:flex !important;flex-direction:row !important;align-items:flex-start !important;gap:10px !important;margin:16px 0 4px !important}
#main .apocv-terms-check>input[type=checkbox]{flex:0 0 18px !important;width:18px !important;height:18px !important;min-height:0 !important;margin:3px 0 0 !important;padding:0 !important}
#main .apocv-terms-check>span{flex:1 1 auto;display:block}
.apocv-tax-note,#main .apocv-tax-note{text-align:left !important;margin:4px 0 0 !important}

/* Terms line: box level with its words (owner, 21 Nov 2026). Every text link is 44px tall for tapping (presentation.css), which made
   each line of this sentence 44px tall and pushed the words below the tick box. Here the links stay ordinary text, with
   padding as the larger tap area, and the box is centred on the first line at any text size. */
#main label.apocv-terms-check{line-height:1.5 !important}
#main label.apocv-terms-check a.text-link{display:inline !important;min-height:0 !important;padding-block:6px}
#main label.apocv-terms-check>input[type=checkbox]{font:inherit !important;margin:calc((1.5em - 18px)/2) 0 0 !important}

/* Phone header and photo buttons (owner, 23 Nov 2026, with a circled phone screenshot):
   1. the language flag in the header goes: Language is already in the menu. The button stays in the page, only out of
      sight, because the menu's Language item opens the language list by clicking it (attraction/majorelle.js).
   2. the heart on the photo goes: Save is already the heart at the top.
   3. the "← Marrakech" pill on the photo goes: the breadcrumb under the photo links to the city.
   4. Share moves off the photo to the right end of the breadcrumb row under it, so the title keeps its full width.
      Its place pairs with the phone photo height (200px, attraction/listing-top.css) and the 14px above the breadcrumb.
   Phones only (below 900px): on a computer the menu has no language item, and Share and Save sit beside the title. */
@media (max-width: 899.98px) {
  body[class*="vm-page-"] .site-header .vm-language-switcher > .vm-language-enable { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
  body.vm-page-home #main.ac-mj .ac-lt-city { display: none !important; }
  body.vm-page-home #main.ac-mj .ac-lt-act[data-ac-save-listing] { display: none !important; }
  body.vm-page-home #main.ac-mj .ac-lt-actions { top: 206px !important; right: var(--gutter) !important; }
  body.vm-page-home #main.ac-mj .ac-lt-act[data-ac-share] { width: 36px !important; height: 36px !important; border: 1px solid var(--line-2) !important; box-shadow: none !important; }
  body.vm-page-home #main.ac-mj .ac-lt-act[data-ac-share] svg { width: 17px; height: 17px; }
  body.vm-page-home #main.ac-mj .ac-lt-crumbs { padding-right: 48px; }
}

/* Bigger phone photo (owner, 23 Nov 2026: "make the photos area a bit bigger on mobile. It's too small now"): 200px
   became about three quarters of the screen width (240px to 360px). Share sits at the right of the breadcrumb row
   just under the photo (hero-buttons rules above), so its place follows the same height. */
@media (max-width: 899.98px) {
  body.vm-page-home #main.ac-mj { --ac-lt-photo-h: clamp(240px, 72vw, 360px); }
  body.vm-page-home #main.ac-mj .ac-lt-photos { height: var(--ac-lt-photo-h) !important; }
  body.vm-page-home #main.ac-mj .ac-lt-actions { top: calc(var(--ac-lt-photo-h) + 6px) !important; }
}

/* Homepage language picker (owner, 23 Nov 2026: "remove the english lanauge picker because it's already in the menu").
   The picker leaves the homepage header; the menu's English row opens language preferences by clicking this button
   (home/home.js), so the button stays in the page, only out of sight. Other pages keep their header picker: their menus
   have no language row. */
body.cv-home .header-language > [data-apo-language-preferences] { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

/* Attraction pages on a computer (owner, 23 Nov 2026: "remove 'explore apollonaut'" and the English picker, "its also in
   the attraction pages"). The menu has its own Explore Apollonaut section and a Language item, so the top bar drops the
   "Explore Apollonaut" link and the language picker. The picker button stays in the page, only out of sight: the menu's
   flag and Language item open the language list by clicking it (attraction/majorelle.js). Phones already hide it. */
body[class*="vm-page-"] .site-header .desktop-nav > a[href="https://apollonaut.com/"] { display: none !important; }
body[class*="vm-page-"] .site-header .vm-language-switcher > .vm-language-enable { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; min-height: 0 !important; margin: -1px !important; padding: 0 !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

/* Compact cookie box on phones (owner, 23 Nov 2026, after the page review): on a first visit the box filled about a third
   of the screen and covered the ticket box. Same words, buttons and choices, in a slimmer bar: smaller text, the heading
   on one line with it, and the three choices in one row. Larger screens keep the card in the corner. */
@media (max-width: 899.98px) {
  #apo-consent-banner.apo-consent-panel { padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) !important; border-radius: 14px 14px 0 0 !important; font-size: 12.5px !important; line-height: 1.38 !important; }
  #apo-consent-banner.apo-consent-panel > h2 { display: inline !important; margin: 0 6px 0 0 !important; font-family: inherit !important; font-size: 12.5px !important; font-weight: 700 !important; line-height: inherit !important; letter-spacing: 0 !important; }
  #apo-consent-banner.apo-consent-panel > h2::after { content: "."; }
  #apo-consent-banner.apo-consent-panel > p { display: inline !important; margin: 0 !important; font-size: 12.5px !important; line-height: inherit !important; }
  #apo-consent-banner.apo-consent-panel .apo-consent-actions { display: flex !important; flex-wrap: wrap !important; align-items: center !important; gap: 8px !important; margin: 8px 0 0 !important; }
  #apo-consent-banner.apo-consent-panel .apo-consent-actions button { flex: 0 1 auto; min-height: 40px !important; margin: 0 !important; padding: 0 12px !important; font-size: 13px !important; line-height: 1.2 !important; white-space: nowrap; }
  #apo-consent-banner.apo-consent-panel .apo-consent-actions button[data-apo-open] { padding: 0 4px !important; }
}

/* Apollonaut logo (owner, 23 Nov 2026): the "linked letters" wordmark in blue, no tagline, no sun icon.
   One picture replaces the old sun + text wherever the logo is drawn: top bars, slide-out menus, footers.
   On light bars: brand/apollonaut-on-light.svg (navy to blue). On dark bars: brand/apollonaut-on-dark.svg (white to pale blue).
   The link's name for screen readers ("Apollonaut home") is unchanged. To undo: remove this block. */
header.header .header-brand a.brand,
#mobile-nav .cv-drawer-top > .brand,
.vm-footer-directory .foot-base > span.word,
header.site-header a.apo-header-brand,
#mobile-menu .top > .brand,
#mobile-nav .cv-drawer-top > .header-brand a.brand,
footer .institutional-footer__intro a.brand {
  --apo-logo-h: 42px;
  display: block !important; flex: 0 0 auto !important; box-sizing: content-box !important;
  width: calc(var(--apo-logo-h) * 4.5532) !important; height: var(--apo-logo-h) !important; min-width: 0 !important; max-width: none !important;
  padding: 0 !important; overflow: hidden !important;
  background-repeat: no-repeat !important; background-position: left center !important; background-size: contain !important; background-color: transparent !important;
  font-size: 0 !important; line-height: 0 !important; letter-spacing: 0 !important; color: transparent !important; text-decoration: none !important;
}
header.header .header-brand a.brand > *,
#mobile-nav .cv-drawer-top > .brand > *,
.vm-footer-directory .foot-base > span.word > *,
header.site-header a.apo-header-brand > *,
#mobile-menu .top > .brand > *,
#mobile-nav .cv-drawer-top > .header-brand a.brand > *,
footer .institutional-footer__intro a.brand > * { display: none !important; }
header.header .header-brand a.brand,
#mobile-nav .cv-drawer-top > .brand,
.vm-footer-directory .foot-base > span.word { background-image: url(brand/apollonaut-on-light.svg?v=20261123) !important; }
header.site-header a.apo-header-brand,
#mobile-menu .top > .brand,
#mobile-nav .cv-drawer-top > .header-brand a.brand,
footer .institutional-footer__intro a.brand { background-image: url(brand/apollonaut-on-dark.svg?v=20261123) !important; }
#mobile-menu .top > .brand, #mobile-nav .cv-drawer-top > .brand, #mobile-nav .cv-drawer-top > .header-brand a.brand { --apo-logo-h: 36px; }
footer .institutional-footer__intro a.brand { --apo-logo-h: 38px; }
.vm-footer-directory .foot-base > span.word { --apo-logo-h: 26px; }
.header-brand > .brand-tagline, footer .institutional-footer__intro .footer-tagline { display: none !important; }

/* Ticket step on phones (owner, 24 Nov 2026): the "Useful information" card sits under the Continue button
   (button, "Back to experiences", the no-payment note, then the card), so the button is reached sooner.
   Only the order on screen changes; computers keep the card in the side column. To undo: remove this block. */
@media (max-width: 900px) {
  #main.apocv-booking .ticket-card { display: flex !important; flex-direction: column; }
  #main.apocv-booking .ticket-card > * { min-width: 0; }
  #main.apocv-booking .ticket-card > .apocv-mobile-useful { order: 1; margin: 4px 0 14px; }
}

/* Homepage top section (owner, 24 Nov 2026: "unreadable and hard on the eye"): the dark veil over the photo slides was
   almost absent just where the heading and sentence sit, so bright photos showed through the words. On phones the veil
   is now even from top to bottom; on computers it is dark on the left, behind the words, and clears to the right so the
   photo stays bright. The words also carry a soft shadow. Photos, words and layout are unchanged.
   To undo: remove this block. */
body.cv-home .hero.hero-slideshow .hero-shade {
  background: linear-gradient(180deg, rgba(6, 20, 30, .74) 0%, rgba(6, 20, 30, .64) 34%, rgba(6, 20, 30, .58) 58%, rgba(6, 20, 30, .93) 100%) !important;
}
@media (min-width: 901px) {
  body.cv-home .hero.hero-slideshow .hero-shade {
    background: linear-gradient(90deg, rgba(6, 20, 30, .80) 0%, rgba(6, 20, 30, .66) 34%, rgba(6, 20, 30, .22) 68%, rgba(6, 20, 30, .08) 100%),
      linear-gradient(180deg, rgba(6, 20, 30, .40) 0%, rgba(6, 20, 30, 0) 30%, rgba(6, 20, 30, 0) 62%, rgba(6, 20, 30, .80) 100%) !important;
  }
}
body.cv-home .hero.hero-slideshow .hero-copy :is(.eyebrow, h1, .hero-intro) { text-shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 2px 16px rgba(0, 0, 0, .35); }
body.cv-home .hero.hero-slideshow .hero-copy .hero-intro { color: #fff !important; }