/* Phone menu, shared by every page.
   The homepage writes the panel into its HTML; every other page gets the
   same panel built by site-nav.js. */
/* Full-screen panel: logo and close button where the nav bar was, big
   serif links, the booking button, then languages and contact details
   pinned to the bottom. Scrolls on short screens. */
.mobile-menu {
  --tide: #1a3a4a; --foam: #faf7f3; --mist: #b8d4dc;
  position: fixed; inset: 0; z-index: 1000;
  background:
    radial-gradient(120% 50% at 100% 0%, rgba(46,107,128,.55), transparent 65%),
    linear-gradient(to bottom, var(--tide) 0%, var(--tide) 48%, rgba(26,58,74,.82) 72%, rgba(15,37,48,.94) 100%),
    url('/sm/tywyn-beach-dunes.avif') center bottom / cover no-repeat,
    var(--tide);
  overflow-y: auto; overscroll-behavior: contain;
  opacity: 0; visibility: hidden;
  transition: opacity .35s, visibility 0s .35s;
}
.mobile-menu.open { opacity: 1; visibility: visible; transition: opacity .35s; }
.mobile-menu-inner {
  min-height: 100%; max-width: 560px; margin: 0 auto;
  display: flex; flex-direction: column;
  padding: 1rem 1.2rem calc(1.6rem + env(safe-area-inset-bottom));
}
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.mobile-menu-logo img { display: block; height: 52px; width: auto; filter: brightness(0) invert(1); }
.mobile-menu-close {
  width: 44px; height: 44px; border-radius: 50%;
  background: none; border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.85); font-size: 1rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.mobile-menu-close:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.6); color: #fff; }
.mobile-nav { display: flex; flex-direction: column; margin-top: .4rem; }
.mobile-nav-link {
  display: flex; align-items: center; gap: 1.1rem;
  padding: 1rem 0;
  color: var(--foam); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.1);
  position: relative;
}
.mobile-nav-link:first-child { border-top: 1px solid rgba(255,255,255,.1); }
/* gold line that draws across under the link you touch */
.mobile-nav-link::before {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: #e6b27d; transform: scaleX(0); transform-origin: left;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.mnl-num { font-family: 'Jost', sans-serif; font-size: .72rem; letter-spacing: .12em; color: #e6b27d; min-width: 1.4rem; align-self: flex-start; padding-top: .55rem; }
.mnl-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mnl-title { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.9rem, 8.5vw, 2.4rem); font-weight: 300; line-height: 1.1; }
.mnl-sub { font-size: .78rem; letter-spacing: .04em; color: rgba(255,255,255,.55); margin-top: .2rem; }
.mobile-nav-link::after {
  content: ''; flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid rgba(230,178,125,.45);
  background: no-repeat center / 14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6b27d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
  transition: transform .3s, background-color .3s, border-color .3s;
}
.mobile-nav-link:hover::before, .mobile-nav-link:focus-visible::before, .mobile-nav-link:active::before { transform: scaleX(1); }
.mobile-nav-link:hover::after, .mobile-nav-link:focus-visible::after, .mobile-nav-link:active::after { transform: translateX(4px); border-color: #e6b27d; background-color: rgba(230,178,125,.12); }
.mobile-nav-link:focus-visible { outline: none; }
.mobile-menu-cta {
  display: block; margin-top: 1.6rem; padding: 1rem 1.5rem;
  font-family: 'Jost', sans-serif; font-size: .75rem; font-weight: 400;
  letter-spacing: .18em; text-transform: uppercase; text-align: center;
  color: var(--tide); background: #e6b27d; border: 1px solid #e6b27d;
  text-decoration: none; transition: background .25s, color .25s;
}
.mobile-menu-cta:hover { background: transparent; color: #e6b27d; }
.mobile-menu-bottom { margin-top: auto; padding-top: 1.8rem; }
.mobile-lang-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 3px;
  margin-bottom: .9rem;
}
.mobile-lang-grid a {
  display: flex; align-items: center; justify-content: center; min-height: 38px;
  font-family: 'Jost', sans-serif; font-size: .75rem; letter-spacing: .04em;
  color: rgba(255,255,255,.65); text-decoration: none; border-radius: 999px;
  transition: color .2s, background .2s;
}
.mobile-lang-grid a:hover { color: #fff; }
.mobile-lang-grid a[aria-current] { color: var(--tide); background: var(--foam); }
.mobile-menu-footer { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.mobile-menu-footer a {
  display: flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px;
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--foam); text-decoration: none;
  border: 1px solid rgba(255,255,255,.25); transition: background .2s, border-color .2s;
}
.mobile-menu-footer a svg { width: 16px; height: 16px; color: #e6b27d; }
.mobile-menu-footer a:hover, .mobile-menu-footer a:focus-visible { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }
.mobile-menu.open .mobile-nav-link,
.mobile-menu.open .mobile-menu-cta,
.mobile-menu.open .mobile-menu-bottom {
  animation: menuIn .5s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: calc(.08s + var(--i, 0) * .05s);
}
.mobile-menu-cta { --i: 4; }
.mobile-menu-bottom { --i: 5; }
@keyframes menuIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu.open { transition: none; }
    .mobile-menu.open .mobile-nav-link,
  .mobile-menu.open .mobile-menu-cta,
  .mobile-menu.open .mobile-menu-bottom { animation: none; }
}
