/* ==========================================================================
   Side menu on phones: the same layout as the VIVIDUS Sleek / GDH sites.
   Ported from their assets/shared/css/gdh-mobile.css, section 2 "Side menu" (Nov 2026), only that
   section (header, footer, button and slider rules there are not part of this site).
   Breakpoint: the phone menu runs from 1100px down, as on the source (client, Nov 2026); the desktop menu
   is unchanged above it. Kept in step with vividus.css (compact list rows), vvb-site.css,
   dest-browser.css / dest-browser.js (min-width: 1101px) and dest-menu.js (max-width: 1100px). Brand rows open one at a time: assets/shared/js/dest-menu.js.
   Loaded after every other stylesheet.
   ========================================================================== */

/* "Back to Great Destinations Hospitality" (first row of the menu), at every width:
   Playfair italic, like the header's back link. */
/* italic needs !important: inner.css sets font-style: normal !important on every non-heading element */
html body .menu-overlay .idx-links .idx-link.idx-back-gdh {
  font-family: var(--fd, 'Playfair Display', serif) !important; font-style: italic !important; font-size: 16px !important;
  font-weight: 400 !important; letter-spacing: .01em !important; text-transform: none !important;
  color: rgba(42, 40, 35, .82) !important; opacity: 1 !important;
}
/* the text span carried its own Manrope / uppercase / gold: it now takes the row's type */
html body .menu-overlay .idx-links .idx-link.idx-back-gdh :is(.idx-back-text, .idx-back-arrow) {
  font: inherit !important; letter-spacing: inherit !important; text-transform: none !important; color: inherit !important;
}
html body .menu-overlay .idx-links .idx-link.idx-back-gdh:is(:hover, :focus-visible) { color: #7A6130 !important; }

@media (max-width: 1100px) {
  html body .menu-topbar { padding: 12px 20px !important; border-bottom: 1px solid #E3D9C3; }

  /* Close: round icon button, no label (its aria-label stays); fills dark on hover / focus */
  html body .menu-close-btn {
    width: 36px !important; height: 36px !important; min-width: 0 !important; padding: 0 !important;
    display: flex !important; align-items: center; justify-content: center;
    background: transparent !important; color: #2A2823 !important;
    border: 1px solid #E3D9C3 !important; border-radius: 50% !important;
  }
  html body .menu-close-btn:hover,
  html body .menu-close-btn:focus-visible { background: #2A2823 !important; color: #FFFFFF !important; border-color: #2A2823 !important; }
  html body .menu-close-btn span { display: none !important; }

  /* rows run edge to edge */
  html body .idx-links { padding: 0 0 8px !important; width: 100%; }
  html body .idx-links .idx-link,
  html body .idx-links .idx-drop-trigger {
    width: 100% !important; padding: 14px 20px !important; box-sizing: border-box;
    border-bottom: 1px solid #ECE4D0 !important; color: #2A2823;
  }
  html body .idx-links .idx-title { font-size: 20px !important; letter-spacing: -.01em; }
  html body .idx-links .idx-link:not(.is-active) .idx-title { color: #2A2823; }
  html body .idx-links .idx-link:last-child { border-bottom: none !important; }
  html body .idx-drop-trigger .idx-drop-caret { color: #2A2823 !important; }
  /* Destinations open: its number and title in the brand gold, as on the reference (vvb-site.css keeps the
     always-.is-active trigger dark; this only wins while the list is actually open, on phones) */
  html body .menu-overlay .idx-links .idx-link.idx-drop-trigger[aria-expanded="true"] :is(.idx-num, .idx-title) { color: #7A6130 !important; }

  /* Back to Great Destinations: a menu row in the GDH back-link style */
  html body .idx-links .idx-link.idx-back-gdh {
    display: flex !important; align-items: center; gap: 8px;
    font-family: var(--fd, 'Playfair Display', serif) !important; font-style: italic !important; font-size: 16px !important;
    font-weight: 400; letter-spacing: .01em !important; text-transform: none !important;
    color: rgba(42, 40, 35, .82) !important;
  }
  html body .idx-links .idx-link.idx-back-gdh .idx-back-text { border-bottom: 0 !important; }
  /* equal space above and below the text, between the top bar's line and its own divider
     (the site gives this row a 21.6px bottom margin, which left a blank band under the divider) */
  html body .menu-overlay .idx-links .idx-link.idx-back-gdh { padding: 16px 20px !important; margin: 0 !important; line-height: 24px !important; }
  html body .menu-overlay .idx-links .idx-link.idx-back-gdh .idx-back-text { line-height: 24px !important; padding: 0 !important; }

  /* Destinations list: tinted panel, brand rows and hotel rows full width */
  html body .idx-drop-panel {
    width: 100% !important; padding: 0 !important; gap: 0 !important; box-sizing: border-box;   /* no 2px gaps between rows */
    background: rgba(46, 40, 24, .03) !important; border-bottom: 1px solid #ECE4D0 !important;
  }
  html body .idx-drop-panel .idx-sub-flat { width: 100%; margin: 0 !important; padding: 0 !important; gap: 0 !important; border: 0 !important; }
  /* brand rows: the same height, equal space above and below the name, no lines at their sides */
  html body .menu-overlay .idx-drop-panel .idx-sub-heading.idx-brand-filter {
    width: 100% !important; min-height: 48px; margin: 0 !important; padding: 14px 20px !important; box-sizing: border-box;
    line-height: 20px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
    color: rgba(46, 40, 24, .65);
  }
  html body .menu-overlay .idx-drop-panel .idx-sub-heading.idx-brand-filter:focus-visible { outline: 2px solid #7A6130 !important; outline-offset: -2px; }
  html body .idx-prop-list {
    width: 100% !important; margin: 4px 0 0 !important; padding: 4px 0 0 !important;
    border-top: 1px solid rgba(46, 40, 24, .08) !important;
  }
  html body .idx-prop-list .idx-hotel-card {
    width: 100% !important; padding: 10px 20px !important; gap: 12px !important; box-sizing: border-box;
    border: 0 !important; border-bottom: 1px solid rgba(46, 40, 24, .06) !important; border-radius: 0 !important;
  }
  html body .idx-prop-list .idx-hotel-info { gap: 1px !important; padding: 0 !important; }
  html body .idx-prop-list .idx-hotel-brand { display: none !important; }
  html body .idx-prop-list .idx-hotel-name {
    font-size: 16px !important; line-height: 1.2 !important; color: #2A2823;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html body .idx-prop-list .idx-hotel-loc { font-size: 12px !important; color: #8F887C; margin-top: 0; }

  /* brand rows open their hotel list (dest-menu.js): arrow right when closed, down when open,
     the same as the Destinations row; the open brand reads in gold */
  html body .idx-drop-panel .idx-brand-filter { display: flex !important; align-items: center; justify-content: space-between; gap: 12px; }
  html body .idx-drop-panel .idx-brand-filter::after {
    content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin-right: 4px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(-45deg); transition: transform 220ms ease;
  }
  html body .idx-drop-panel .idx-brand-filter[aria-expanded="true"]::after { transform: rotate(45deg) translate(-2px, -2px); }
  html body .idx-drop-panel .idx-brand-filter.is-active { color: #7A6130 !important; font-weight: 700 !important; }

  /* floating chat / back-to-top buttons step aside while the menu is open */
  html body .gdh-fab { transition: opacity 200ms ease, visibility 200ms ease; }
  html body.menu-open .gdh-fab { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; }
  /* the email / brand line / phone bar at the foot of the menu stays (client, Nov 2026) */
}
@media (max-width: 1100px) and (prefers-reduced-motion: reduce) {
  html body .idx-drop-panel .idx-brand-filter::after, html body .gdh-fab { transition: none; }
}
