/* ══════════════════════════════════════════════
   MOBILE BOTTOM NAV — two-button bar (≤900px only)
   Markup is built by js/bottom-nav.js.
   On mobile it replaces the floating "+" contact button;
   on desktop nothing here applies and the "+" button stays.
   ══════════════════════════════════════════════ */

/* Hidden everywhere by default — only the mobile media query switches it on. */
.mbn, .mbn-backdrop, .mbn-sheet { display: none; }

@media (max-width: 900px) {

  /* The bottom bar takes over the floating button's job down here. */
  .fab-wrap { display: none !important; }

  /* Keep the end of the page reachable above the fixed bar.
     65px = 64px of buttons + the bar's 1px top border. */
  body { padding-bottom: calc(65px + env(safe-area-inset-bottom, 0px)); }

  /* ---------- The bar ---------- */
  .mbn {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9200;
    background: rgba(0, 48, 135, .98);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 149, 214, .35);
    box-shadow: 0 -2px 16px rgba(0, 0, 0, .28);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mbn-btn {
    flex: 1 1 50%;
    height: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, .88);
    font-family: 'Raleway', sans-serif;
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .2s, color .2s;
    -webkit-tap-highlight-color: transparent;
  }
  .mbn-btn + .mbn-btn { border-left: 1px solid rgba(255, 255, 255, .14); }
  .mbn-btn svg { width: 21px; height: 21px; fill: currentColor; flex-shrink: 0; }
  .mbn-btn-label {
    line-height: 1.1;
    text-align: center;
    padding: 0 6px;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .mbn-btn.mbn-active { color: #fff; background: rgba(0, 149, 214, .22); }

  /* ---------- Dim layer behind an open sheet ---------- */
  .mbn-backdrop {
    display: block;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9300;
    background: rgba(0, 12, 40, .55);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  .mbn-backdrop.mbn-show { opacity: 1; pointer-events: auto; }

  /* ---------- Slide-up sheets ---------- */
  .mbn-sheet {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9400;
    background: #fff;
    border-radius: 18px 18px 0 0;
    padding: 8px 18px calc(22px + env(safe-area-inset-bottom, 0px));
    max-height: 86vh;
    overflow-y: auto;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .3);
    transform: translateY(102%);
    transition: transform .34s cubic-bezier(.22, .61, .36, 1);
  }
  .mbn-sheet.mbn-show { transform: translateY(0); }

  .mbn-grab {
    width: 40px; height: 4px;
    border-radius: 2px;
    background: #d3dced;
    margin: 6px auto 14px;
  }
  .mbn-title {
    font-family: 'Playfair Display', serif;
    color: var(--cb);
    font-size: 1.25rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
  }

  /* ---------- Sheet 1: pick an accommodation type ---------- */
  .mbn-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .mbn-room {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    border-radius: 10px;
    overflow: hidden;
    background: var(--cb);
    text-decoration: none;
  }
  .mbn-room img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .mbn-room-name {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px 10px 12px;
    background: linear-gradient(to top, rgba(0, 20, 60, .9), rgba(0, 20, 60, 0));
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-align: center;
    line-height: 1.25;
  }

  /* ---------- Sheet 2: ways to get in touch ---------- */
  .mbn-contact { display: flex; flex-direction: column; gap: 10px; }
  .mbn-c-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--ww);
    border: 1px solid #e2e8f5;
    border-radius: 10px;
    text-decoration: none;
  }
  .mbn-c-icon {
    width: 44px; height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
    font-size: 1.15rem;
  }
  .mbn-c-icon svg { width: 22px; height: 22px; fill: #fff; }
  .mbn-c-value {
    font-size: .92rem;
    font-weight: 600;
    color: var(--cb);
    overflow-wrap: anywhere;
  }
}
