/* ── MOBILE MENU (shared by every page) ─────────────────────────
   The menu markup is written into each page so search engines see the
   links; its styles live here and its behaviour in mobile-menu.js.
   Colours are set locally so older pages with fewer :root tokens work. */

.mm, .mm-burger {
  --mm-ink: #1A1714; --mm-ink-soft: #242018;
  --mm-burgundy: #701C29; --mm-burg-dk: #521420;
  --mm-gold: #C1A264; --mm-gold-lt: #D4B87A; --mm-gold-pale: #EAD9B0;
  --mm-cream: #FAF9F6;
}

/* Hamburger button (in the page header) */
.mm-burger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; cursor: pointer;
  position: fixed; top: 11px; right: 10px; z-index: 215;
}
.mm-burger span { display: block; height: 2px; width: 100%; background: #3A3B3C; border-radius: 2px; }
/* Below 1024px every page swaps its desktop links for the menu button */
@media (max-width: 1024px) {
  .mm-burger { display: flex; }
  nav .nav-links, nav .nav-cta { display: none !important; }
  nav .nav-phone { margin-right: 44px; } /* keep the header phone number clear of the menu button */
}

/* Full-screen menu */
.mm {
  position: fixed; inset: 0; z-index: 300;
  background: var(--mm-ink); color: var(--mm-gold-pale);
  border-top: 3px solid var(--mm-burgundy);
  font-family: 'Inter', system-ui, sans-serif;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s, transform .25s, visibility .25s;
}
.mm.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .25s, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .mm { transition: none; transform: none; } }

/* Phone-width column, centred on tablets */
.mm-panel {
  height: 100%; max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column;
}

.mm-top {
  flex: none; height: 59px; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.mm-home { display: flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; }
.mm-home img { height: 40px; width: auto; border-radius: 5px; }
.mm-home span { font-size: 13px; font-weight: 500; letter-spacing: .04em; color: rgba(234,217,176,.75); }
.mm-home.mm-here span { color: #fff; }
.mm-close { width: 44px; height: 44px; margin-right: -2px; background: none; border: 0; cursor: pointer; position: relative; }
.mm-close::before, .mm-close::after {
  content: ''; position: absolute; left: 11px; right: 11px; top: 21px;
  height: 2px; background: rgba(255,255,255,.9); border-radius: 2px;
}
.mm-close::before { transform: rotate(45deg); }
.mm-close::after { transform: rotate(-45deg); }

.mm-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 20px 10px; }
.mm-body ul { list-style: none; margin: 0; padding: 0; }
.mm-sec + .mm-sec { margin-top: 8px; }

/* Section headings */
.mm-lbl {
  display: inline-flex; align-items: center; margin: 0 0 6px -10px; padding-left: 10px;
  border-left: 2px solid transparent;
  font-size: 10.5px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--mm-gold); line-height: 1.6;
}

/* "You are here": burgundy bar + gold dot */
.mm-here { color: #fff !important; border-left-color: var(--mm-burgundy) !important; }
.mm-lbl.mm-here::after, .mm-big a.mm-here::after, .mm-small a.mm-here::after {
  content: ''; flex: none; width: 6px; height: 6px; margin-left: 8px;
  border-radius: 50%; background: var(--mm-gold);
}

/* Room tiles (minmax keeps the three columns equal even if a name is long) */
.mm-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mm-tiles a { display: block; text-decoration: none; color: var(--mm-gold-pale); }
.mm-img {
  position: relative; display: block; aspect-ratio: 1 / .5; overflow: hidden;
  background: var(--mm-ink-soft); border: 1px solid rgba(193,162,100,.25);
}
.mm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Each house's colour from the rest of the site, as a bar along the top of its photo */
.mm-pa .mm-img { border-top: 4px solid #5A6A55; }
.mm-lh .mm-img { border-top: 4px solid #701C29; }
.mm-ak .mm-img { border-top: 4px solid #C1A264; }
.mm-img img:not([src]) { visibility: hidden; }
.mm-chev {
  position: absolute; right: 5px; bottom: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(26,23,20,.8); color: var(--mm-gold-lt);
  font-size: 15px; font-weight: 600; line-height: 18px; text-align: center;
}
.mm-badge {
  position: absolute; top: 5px; left: 5px; padding: 2px 6px; border-radius: 3px;
  background: var(--mm-burgundy); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; line-height: 1.3;
}
.mm-nm {
  display: block; margin-top: 8px; white-space: nowrap;
  font-family: 'Playfair Display', Georgia, serif; font-size: 15px; line-height: 1.2; color: #fff;
}
.mm-sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; line-height: 1.3; color: rgba(234,217,176,.8); }

/* Main links: large serif, two columns of three */
.mm-big {
  display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto);
  grid-auto-flow: column; column-gap: 16px;
}
.mm-big a, .mm-small a {
  display: flex; align-items: center; margin-left: -10px; padding-left: 10px;
  border-left: 2px solid transparent; text-decoration: none;
}
.mm-big a {
  min-height: 42px;
  font-family: 'Playfair Display', Georgia, serif; font-size: 21px; line-height: 1.15;
  color: var(--mm-gold-pale);
}

/* Small print: Leavenworth */
.mm-small { border-top: 1px solid rgba(255,255,255,.08); padding-top: 12px; }
.mm-small .mm-lbl { margin-bottom: 0; }
.mm-small ul { display: flex; flex-wrap: wrap; column-gap: 20px; }
.mm-small a { min-height: 36px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: rgba(234,217,176,.7); }

.mm a:active { background: rgba(255,255,255,.05); }
.mm a:focus-visible, .mm button:focus-visible { outline: 2px solid var(--mm-gold); outline-offset: 2px; }

/* Pinned booking bar */
.mm-book {
  flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--mm-ink-soft); border-top: 1px solid rgba(193,162,100,.2);
  box-shadow: 0 -8px 20px rgba(0,0,0,.35);
}
.mm-reserve {
  display: block; padding: 15px; text-align: center; text-decoration: none;
  background: var(--mm-burgundy); color: var(--mm-cream);
  font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.mm-reserve:hover { background: var(--mm-burg-dk); }
.mm-contact { display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 6px; margin-top: 8px; }
.mm-contact a {
  display: flex; align-items: center; justify-content: center; gap: 7px; padding: 12px 4px;
  border: 1px solid rgba(193,162,100,.35); color: var(--mm-gold-lt); text-decoration: none;
  font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.mm-contact svg { width: 14px; height: 14px; flex: none; }

.mm-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Narrow phones (many Androids are 360px): smaller names, tighter Leavenworth row */
@media (max-width: 374px) {
  .mm-nm { font-size: 14px; }
  .mm-small ul { column-gap: 14px; }
  .mm-small a { font-size: 13.5px; }
}
/* Wider phones: slightly larger house names */
@media (min-width: 390px) {
  .mm-nm { font-size: 16px; }
}

/* Short phones (e.g. iPhone SE): tighten so everything fits without scrolling */
@media (max-height: 600px) {
  .mm-body { padding-top: 8px; padding-bottom: 6px; }
  .mm-lbl { margin-bottom: 4px; }
  .mm-img { aspect-ratio: 1 / .45; }
  .mm-big a { min-height: 40px; }
  .mm-small { padding-top: 8px; }
}

/* Taller phones: use the extra height */
@media (min-height: 620px) {
  .mm-body { padding-top: 20px; }
  .mm-sec + .mm-sec { margin-top: 20px; }
  .mm-img { aspect-ratio: 1 / .75; }
  .mm-big a { min-height: 46px; }
}
@media (min-height: 700px) {
  .mm-img { aspect-ratio: 1 / .9; }
}

/* Tablets: booking bar follows the links instead of sitting at the bottom of a tall screen */
@media (min-width: 600px) and (min-height: 800px) {
  .mm-body { flex: 0 1 auto; padding-bottom: 24px; }
  .mm-book { box-shadow: none; }
}
/* Tablets: the page stays visible, dimmed, on either side of the menu; tapping it closes the menu */
@media (min-width: 600px) {
  .mm { background: rgba(26,23,20,.72); border-top: 0; }
  .mm-panel { background: var(--mm-ink); border-top: 3px solid var(--mm-burgundy); box-shadow: 0 0 40px rgba(0,0,0,.4); }
}

/* Phones turned sideways: one-row booking bar so the links have room */
@media (max-height: 450px) {
  .mm-panel { max-width: 640px; }
  .mm-top { height: 50px; }
  .mm-book { display: flex; gap: 6px; padding-top: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
  .mm-reserve { flex: 1; padding: 11px; white-space: nowrap; letter-spacing: .1em; }
  .mm-contact { display: flex; margin-top: 0; }
  .mm-contact a { padding: 10px 12px; }
}

/* Page behind the open menu stays put (iOS-safe scroll lock) */
body.mm-locked { position: fixed; left: 0; right: 0; overflow: hidden; }
