/* BAVEO responsive — mobile is a redesign, not a shrink. */

@media (max-width: 1199px) {
  .cat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-visual,
  .hero-frame {
    min-height: 360px;
    height: 360px;
  }
}

@media (max-width: 991px) {
  .nav-links,
  .nav-actions .nav-pro {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .hero {
    padding: 20px 0 36px;
  }

  .hero-grid,
  .nearby-layout,
  .join-panel {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-visual,
  .hero-frame {
    min-height: 240px;
    height: 240px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.5rem);
  }

  .search-shell {
    position: relative;
    z-index: 8;
    overflow: visible;
  }

  .search-shell:has(.is-open) {
    z-index: 40;
  }

  .search-field.is-open {
    z-index: 50;
  }

  .search-menu {
    z-index: 60;
    max-height: min(280px, 48vh);
  }

  .search-submit {
    width: 100%;
    min-height: 52px;
  }

  .search-field-btn {
    min-height: 56px;
  }

  .section {
    padding-block: 56px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .provider-grid,
  .review-grid,
  .how-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    columns: 2;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .join-copy {
    padding: 36px 28px 12px;
  }

  .join-visual,
  .join-visual.frame-cover {
    width: 100%;
    max-width: 100%;
    height: 240px;
    min-height: 240px;
    aspect-ratio: auto;
    overflow: hidden;
  }

  .cat-row,
  .best-viewport,
  .work-viewport,
  .leaflet-host {
    touch-action: pan-x pan-y;
  }

  .float-verified {
    left: 12px;
    bottom: 80px;
  }

  .gate {
    grid-template-columns: 1fr;
  }

  .gate-photo {
    min-height: 180px;
    max-height: 220px;
  }

  .gate-card {
    padding: 28px 22px 36px;
  }

  .best-card {
    grid-template-columns: 1fr;
    min-width: 0;
    max-width: 100%;
  }

  .best-card .frame-portrait {
    min-height: 180px;
    aspect-ratio: 16 / 10;
    height: auto;
  }

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

  .sheet-actions {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    min-height: 320px;
  }

  .leaflet-host,
  .map-fallback {
    height: 320px;
  }
}

@media (max-width: 767px) {
  .container-baveo {
    width: min(100% - 28px, var(--container));
  }

  .nav-inner {
    gap: 8px;
  }

  .site-header {
    height: 64px;
  }

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

  .gender-switch button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 0.75rem;
  }

  .brand-mark,
  .brand-mark img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .brand-fa {
    font-size: 0.98rem;
  }

  .hero {
    padding: 12px 0 28px;
  }

  .hero-kicker {
    margin-bottom: 12px;
  }

  .hero-title {
    font-size: clamp(1.6rem, 7vw, 2.05rem);
    margin-bottom: 10px;
    line-height: 1.25;
  }

  .hero-lead {
    font-size: 0.9375rem;
    margin-bottom: 16px;
  }

  .hero-visual,
  .hero-frame {
    min-height: 220px;
    height: 220px;
    border-radius: 22px;
  }

  .search-shell,
  .search-shell.is-3 {
    grid-template-columns: 1fr;
    padding: 6px;
    gap: 2px;
    border-radius: 16px;
  }

  .search-field-btn {
    min-height: 52px;
    padding: 6px 12px;
    gap: 10px;
  }

  .search-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .search-submit {
    min-height: 48px;
  }

  .search-field {
    position: relative;
    z-index: 1;
  }

  .search-field.is-open {
    z-index: 50;
  }

  .search-menu {
    z-index: 60;
    max-height: min(240px, 42vh);
  }

  .hero-trust {
    gap: 10px 16px;
    font-size: 0.8rem;
  }

  .cat-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 10px;
    padding-bottom: 8px;
    margin-inline: -14px;
    padding-inline: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .cat-row::-webkit-scrollbar {
    display: none;
  }

  .cat-card {
    flex: 0 0 156px;
    width: 156px;
    max-width: 156px;
    scroll-snap-align: start;
  }

  .provider-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .provider-card {
    flex-direction: column;
  }

  .provider-cover {
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
  }

  .provider-avatar-wrap,
  .sample-badge {
    display: none;
  }

  .fav-btn {
    top: 8px;
    left: 8px;
    width: 34px;
    height: 34px;
  }

  .provider-body {
    padding: 12px 12px 12px 10px;
    gap: 4px;
  }

  .provider-body h3 {
    font-size: 0.95rem;
  }

  .provider-foot {
    margin-top: 4px;
    padding-top: 8px;
    flex-wrap: wrap;
  }

  .provider-foot .btn-baveo {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.8rem;
  }

  .portfolio-grid {
    columns: 1;
  }

  .nearby-photo {
    height: 240px;
  }

  .dist {
    margin-right: 0;
  }

  .nearby-item {
    flex-wrap: wrap;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .cta-panel,
  .join-copy {
    padding: 24px 20px 28px;
  }

  .join-panel {
    min-height: 0;
  }

  .join-visual,
  .join-visual.frame-cover {
    order: -1;
    width: 100%;
    max-width: 100%;
    height: 200px;
    min-height: 200px;
    aspect-ratio: auto;
  }

  .modal-panel,
  .sheet {
    width: 100%;
    max-width: 100%;
    max-height: 92vh;
    border-radius: 20px 20px 0 0;
  }

  .sheet-root .drawer-panel {
    width: min(86vw, 320px);
  }

  .float-card {
    min-width: 0;
    padding: 6px 8px;
    gap: 8px;
  }

  .float-card strong {
    font-size: 0.78rem;
  }

  .float-card span {
    font-size: 0.68rem;
  }

  .float-ico {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
  }
  .float-ico i { font-size: 1.15rem; width: 1em; height: 1em; display: grid; place-items: center; margin: 0; }

  .float-rating {
    top: 10px;
    right: 10px;
  }

  .float-slot {
    right: 10px;
    bottom: 10px;
  }

  .best-nav {
    width: 36px;
    height: 36px;
  }

  .map-wrap {
    min-height: 260px;
    border-radius: 20px;
  }

  .leaflet-host,
  .map-fallback {
    height: 260px;
  }

  .section-best {
    padding-top: 8px;
  }

  .section {
    padding-block: 48px;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
  }

  .hero-visual,
  .hero-frame {
    min-height: 300px;
    height: 300px;
  }

  .search-shell,
  .search-shell.is-3 {
    grid-template-columns: 1fr 1fr;
  }

  .search-submit {
    width: 100%;
    grid-column: 1 / -1;
    min-width: 0;
  }

  .provider-grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-grid,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .how-grid .how-card:last-child,
  .review-grid .review-card:last-child {
    grid-column: 1 / -1;
  }
}
