/* ==========================================================================
   Mobile menu (drawer) - includes/header.php + assets/js/mobile-menu.js
   Shown when the theme switches the header to mobile (#header_content.header_mobile,
   i.e. 992px and below). Desktop keeps the theme's own menu.
   ========================================================================== */

/* ---------- Menu button ---------- */
.mm-toggle { display: none; }
#header_content.header_mobile .mm-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
#header_content.header_mobile .mm-toggle:active { background: #eef4f0; }
.mm-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: #115c3f;
  transition: transform .25s, opacity .2s, width .25s;
}
.mm-toggle span:nth-child(2) { width: 18px; align-self: center; }
.mm-toggle:focus-visible { outline: 3px solid rgba(241, 146, 2, .55); outline-offset: 2px; }
/* The theme's own mobile menu is replaced by the drawer. */
#header_content.header_mobile .menu-bars,
#header_content.header_mobile .header_menu { display: none !important; }

/* ---------- Drawer ---------- */
.mm {
  position: fixed;
  inset: 0;
  z-index: 3000;
  visibility: hidden;
  pointer-events: none;
}
.mm.is-open { visibility: visible; pointer-events: auto; }
.mm__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 25, 18, .5);
  opacity: 0;
  transition: opacity .3s ease;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.mm.is-open .mm__backdrop { opacity: 1; }
.mm__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(88vw, 380px);
  background: #fff;
  box-shadow: -12px 0 40px rgba(0, 0, 0, .18);
  transform: translateX(100%);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1);
  font-family: var(--font-body);
}
.mm.is-open .mm__panel { transform: none; }

.mm__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px 12px 18px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid #eee8de;
}
.mm__logo img { display: block; width: auto; height: 42px; }
.mm__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f4f1ea;
  color: #115c3f;
  font-size: 20px;
  line-height: 44px;
  cursor: pointer;
}
.mm__close:active { background: #e6e1d6; }

.mm__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 10px 12px calc(20px + env(safe-area-inset-bottom, 0px));
}

/* ---------- Links ---------- */
.mm__list { margin: 0; padding: 0; list-style: none; }
.mm__list > li + li { margin-top: 2px; }
.mm__link {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 50px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: #232323 !important;
  font: 600 16px/1.2 var(--font-ui);
  text-align: left;
  text-decoration: none !important;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: background .15s;
  -webkit-tap-highlight-color: transparent;
}
.mm__link > i:first-child {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #eef4f0;
  color: #115c3f;
  font-size: 16px;
  line-height: 34px;
  text-align: center;
}
.mm__link span { flex: 1; }
.mm__link:hover,
.mm__link:active { background: #f6f3ec; }
.mm__link.is-active { background: #eef4f0; color: #115c3f !important; }
.mm__link.is-active > i:first-child { background: #115c3f; color: #fff; }
.mm__ext { font-size: 12px; color: #9a948a; }
.mm__chev { font-size: 12px; color: #6b6b6b; transition: transform .25s; }
.mm__group.is-open .mm__chev { transform: rotate(180deg); }

/* Rooms (expandable) */
.mm__sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s ease;
}
.mm__sub > * { min-height: 0; overflow: hidden; }
.mm__group.is-open .mm__sub { grid-template-rows: 1fr; }
.mm__sub-inner { padding: 4px 0 8px 12px; }
.mm__room {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  color: #232323 !important;
  text-decoration: none !important;
}
.mm__room img { flex: 0 0 56px; width: 56px; height: 42px; border-radius: 8px; object-fit: cover; }
.mm__room strong { display: block; font: 600 15px/1.25 var(--font-ui); }
.mm__room small { display: block; margin-top: 2px; font-size: 13px; color: #6b6b6b; }
.mm__room:active,
.mm__room:hover { background: #f6f3ec; }
.mm__room.is-active { background: #eef4f0; }
.mm__room.is-active strong { color: #115c3f; }
.mm__all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 4px 10px 0;
  padding: 6px 0;
  color: #115c3f !important;
  font: 600 14px var(--font-ui);
  text-decoration: none !important;
}

/* ---------- Actions ---------- */
.mm__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  margin: 16px 0 14px;
  border-radius: 999px;
  background: #f19202;
  color: #fff !important;
  font: 600 14px/1 var(--font-ui);
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none !important;
}
.mm__cta:active { background: #d98300; }
.mm__contact { display: flex; flex-wrap: wrap; gap: 8px; }
.mm__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #e3ded4;
  border-radius: 999px;
  background: #fff;
  color: #115c3f !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.mm__chip:active { background: #f6f3ec; }
.mm__address { margin: 14px 4px 0; color: #8a847a; font-size: 13px; }

.mm a:focus-visible,
.mm button:focus-visible { outline: 3px solid rgba(241, 146, 2, .55); outline-offset: 2px; }

/* Page behind the open drawer doesn't scroll. */
html.mm-lock,
html.mm-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .mm__panel, .mm__backdrop, .mm__sub, .mm__chev, .mm-toggle span { transition: none; }
}
