﻿@import url("./css/tokens.css");
@import url("./css/layout.css");
@import url("./css/components.css");
@import url("./css/pages-home.css");
@import url("./css/overlays.css");
@import url("./css/booking.css");
@import url("./css/responsive.css");

:where([hidden]) {
  display: none !important;
}

@media (max-width: 768px) {
  .nav-center a,
  .nav-dropdown-toggle {
    display: flex;
  }

  .mobile-member-link {
    display: none;
  }

  .logo {
    order: 1;
    max-width: calc(100% - 7.5rem);
  }

  .nav-actions {
    order: 2;
    display: flex;
    flex: 0 0 44px;
    margin-left: auto;
    position: relative;
    z-index: 9002;
  }

  .nav-actions .nav-btn {
    display: none;
  }

  .nav-actions .nav-login,
  .nav-actions .nav-login:hover {
    display: flex;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    padding: 0;
    gap: 0;
    background: var(--ink);
    border-color: var(--ink);
    transform: none;
  }

  .nav-actions .nav-login-label {
    display: none;
  }

  .nav-toggle {
    order: 3;
  }

  /* Release polish: keep anchor targets below the fixed mobile navigation. */
  html {
    scroll-padding-top: 6rem;
  }

  #inschrijven {
    scroll-margin-top: 6rem;
  }

  /* One complete card per swipe instead of clipping the next card into view. */
  .mem-grid,
  .img-cards {
    width: 100%;
    gap: 0.75rem;
    scroll-padding-inline: 0;
  }

  .m-card,
  .m-card:nth-child(1),
  .m-card:nth-child(2),
  .m-card:nth-child(3),
  .m-card:nth-child(4),
  .img-card,
  .img-card:nth-child(1),
  .img-card:nth-child(2),
  .img-card:nth-child(3),
  .img-card:nth-child(4),
  .img-card:nth-child(5),
  .img-card:nth-child(6) {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    scroll-snap-stop: always;
  }

  .mem-grid + .mem-note {
    width: 100%;
    margin: 1rem 0 0;
    padding: 1.25rem;
  }

  .membership-checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.9rem 1rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 0.4rem;
    font-size: 0.82rem;
    line-height: 1.45;
  }

  .membership-checkout-consent input { margin-top: 0.2rem; }
  .membership-checkout-consent a { color: inherit; text-decoration: underline; }

  /* Android/Samsung browsers otherwise render the required date input as an empty box. */
.membership-checkout-form input[type="date"] {
    width: 100%;
    min-height: 56px;
    color: var(--ink);
    background-color: var(--off);
  }

  .membership-checkout-form input[type="date"]:required:invalid {
    color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='24' viewBox='0 0 180 24'%3E%3Ctext x='0' y='17' font-family='Arial,sans-serif' font-size='14' fill='%23999'%3EGeboortedatum%3C/text%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
    background-size: 180px 24px;
  }

  .membership-checkout-form input[type="date"]:focus {
    color: var(--ink);
    background-image: none;
  }

  /* Keep the chat entry point available without covering CTAs and form controls. */
  .chat-btn {
    width: 54px;
    height: 54px;
    right: 1rem;
    bottom: 1rem;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    gap: 0;
    font-size: 0;
  }

  .chat-btn svg {
    width: 22px;
    height: 22px;
  }

  .chat-panel {
    bottom: 4.75rem;
  }

  .partner-roller-section {
    padding-bottom: 2rem !important;
  }

  .partner-roller-shell {
    min-height: 88px !important;
  }

  .partner-roller-track {
    display: flex !important;
    width: max-content !important;
    min-width: 0 !important;
    padding: 0.75rem !important;
  }

  .partner-logo-button {
    display: inline-flex !important;
    flex: 0 0 clamp(180px, 46vw, 200px);
    width: clamp(180px, 46vw, 200px) !important;
    min-width: 0 !important;
    padding-inline: 0.75rem;
  }

  .partner-roller-logo {
    width: auto !important;
    max-width: 100% !important;
    max-height: 54px !important;
    object-fit: contain;
  }

  .partner-detail {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(72dvh, 620px);
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 20px 20px 0 0;
  }
}
