/* ============================================================
   Snap Shot Entertainment — Mobile layer
   Loaded LAST (after each page's inline <style>) so it overrides.
   Everything meaningful is scoped under a max-width media query,
   so the desktop layout is left completely untouched.

   Pairs with mobile-nav.js, which injects:
     .mob          → hamburger button (added inside <nav>)
     .mob-backdrop → dim/blur overlay (added to <body>)
     .mob-menu     → slide-in drawer  (added to <body>)
   These class names are also recognised by demand-bar.js, which
   keeps the header pinned while the drawer is open.
   ============================================================ */

/* Hidden on desktop — only revealed inside the mobile breakpoint. */
.mob,
.mob-menu,
.mob-backdrop { display: none; }

@media (max-width: 860px) {

  /* ── Collapse the horizontal nav ── */
  nav { padding: 0 16px !important; }
  nav .nav-links { display: none !important; }
  nav .nav-right { display: none !important; }

  /* ── Hamburger button ── */
  .mob {
    display: inline-flex !important;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1002;
  }
  .mob span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 0 auto;
    background: var(--gold, #D4AF37);
    border-radius: 2px;
    transition: transform .3s ease, opacity .2s ease;
  }
  .mob.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mob.open span:nth-child(2) { opacity: 0; }
  .mob.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* ── Backdrop ── */
  .mob-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
  }
  .mob-backdrop.open { opacity: 1; pointer-events: auto; }

  /* ── Slide-in drawer ── */
  .mob-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1001;
    width: min(84vw, 340px);
    height: 100%;
    height: 100dvh;
    background: #0c0c0c;
    border-left: 1px solid #222;
    box-shadow: -14px 0 44px rgba(0, 0, 0, 0.55);
    transform: translateX(100%);
    transition: transform .38s cubic-bezier(.16, .84, .44, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 32px;
  }
  .mob-menu.open { transform: none; }

  .mob-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px;
    border-bottom: 1px solid #1c1c1c;
  }
  .mob-menu-title {
    font-family: var(--font-b, sans-serif);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #888;
  }
  .mob-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    transition: color .2s;
  }
  .mob-close:hover { color: var(--gold, #D4AF37); }

  /* ── Drawer links ── */
  .mob-links { display: flex; flex-direction: column; padding: 8px 0; }
  .mob-link {
    font-family: var(--font-h, serif);
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    padding: 15px 24px;
    border-bottom: 1px solid #141414;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background .2s, color .2s;
  }
  .mob-link::after { content: '›'; color: #444; font-size: 20px; }
  .mob-link:hover { background: #141414; color: var(--gold, #D4AF37); }
  .mob-link.active { color: var(--gold, #D4AF37); }
  .mob-link.active::after { color: var(--gold, #D4AF37); }

  /* ── Drawer extras (city switcher + socials) ── */
  .mob-extra {
    margin-top: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    border-top: 1px solid #1c1c1c;
  }
  .mob-citypill {
    align-self: flex-start;
    font-family: var(--font-b, sans-serif);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid var(--gold, #D4AF37);
    color: var(--gold, #D4AF37);
    padding: 8px 18px;
    border-radius: 20px;
    cursor: pointer;
  }
  .mob-socials { display: flex; gap: 14px; }
  .mob-socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s;
  }
  .mob-socials a:hover { border-color: var(--gold, #D4AF37); }
  .mob-socials svg { width: 16px; height: 16px; fill: #fff; }

  /* Lock background scroll while the drawer is open. */
  body.mob-lock { overflow: hidden; }

  /* ── City-selector splash: stack the two cities ── */
  .splash-cities { flex-direction: column; gap: 0; width: 100%; max-width: 340px; }
  .splash-city { padding: 28px 24px; }
  .splash-city-name { font-size: 32px; }
  .splash-divider { width: 100%; height: 1px; }

  /* Keep wide media from forcing horizontal scroll. */
  img, video, iframe { max-width: 100%; }
}

/* Tighten oversized section gutters on small phones. */
@media (max-width: 600px) {
  section { padding-left: 20px !important; padding-right: 20px !important; }
  footer { padding-left: 22px; padding-right: 22px; }
}
