/* The homepage's quiet mobile contact rail. It is enabled by mobile-booking.js. */
.smc-mobile-booking[hidden] { display: none !important; }
.smc-mobile-booking { display: none; }

@media (max-width: 760px) {
  body.smc-mobile-booking-space {
    padding-bottom: var(--smc-mobile-booking-height, calc(76px + env(safe-area-inset-bottom)));
  }

  .smc-mobile-booking {
    display: block;
    position: fixed;
    inset: auto 0 0;
    z-index: 18;
    padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
    background: var(--paper, #f7f5f0);
    border-top: 1px solid var(--line, #dfdbd2);
    box-shadow: 0 -6px 28px rgb(38 52 46 / 5%);
    animation: smc-booking-enter 220ms ease-out both;
  }

  .smc-mobile-booking-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
    gap: 10px;
    max-width: 520px;
    margin-inline: auto;
  }

  .smc-mobile-booking a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--olive, #1d2b52);
    border-radius: 2px;
    font-family: var(--sans, sans-serif);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .015em;
    text-decoration: none;
    transition: background-color 180ms ease, color 180ms ease;
  }

  .smc-mobile-booking-call {
    color: var(--olive-dark, #1d2b52);
    background: var(--paper, #f7f5f0);
  }

  .smc-mobile-booking-book {
    color: var(--white, #fdfdfc);
    background: var(--olive, #1d2b52);
  }

  .smc-mobile-booking-call:active { background: var(--olive-light, #eeebe4); }
  .smc-mobile-booking-book:active { background: var(--olive-dark, #1d2b52); }
  .smc-mobile-booking-book span[aria-hidden] { color: var(--gold-light, #d6c086); }
  .smc-mobile-booking svg { flex: 0 0 17px; width: 17px; height: 17px; }
  .smc-mobile-booking a:focus-visible { outline: 2px solid var(--gold, #cbaf6a); outline-offset: 3px; }
}

@keyframes smc-booking-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .smc-mobile-booking { animation: none; }
  .smc-mobile-booking a { transition: none; }
}
