/* Mobile-only navigation. The approved desktop styles and base stylesheet stay intact. */
.mobile-nav { display: none; }

@media (max-width: 830px) {
  .site-header { position: relative; z-index: 50; }
  .site-header .header-core { position: relative; gap: 10px; }
  .site-header .header-cta { display: none; }
  .site-header .brand { min-width: 0; }
  .mobile-nav { display: block; flex: 0 0 auto; margin-left: auto; }
  .mobile-nav summary { list-style: none; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav-trigger {
    width: 53px; min-height: 57px;
    border: 1px solid #dbe5f0; border-radius: 9px;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 6px; background: #fff; color: #274b75; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .mobile-nav-trigger-icon { width: 22px; display: flex; flex-direction: column; gap: 4px; }
  .mobile-nav-trigger-icon span {
    display: block; width: 22px; height: 2px; background: currentColor;
    border-radius: 2px;
  }
  .mobile-nav-trigger-label { font-size: 10px; font-weight: 750; line-height: 1; }
  .mobile-nav[open] .mobile-nav-trigger { background: #f1f5fa; border-color: #b5c8dd; }
  .mobile-nav-trigger:focus-visible { outline: 2px solid #2a5d91; outline-offset: 3px; }
  .mobile-nav-panel {
    position: absolute; top: calc(100% - 1px); left: 16px; right: 16px;
    z-index: 60; background: #fff; color: #27415e;
    border: 1px solid #d6e1ed; border-radius: 0 0 13px 13px;
    box-shadow: 0 16px 32px rgba(24, 49, 80, .16);
    padding: 12px 14px 17px;
    max-height: min(72vh, 590px); overflow-y: auto; overscroll-behavior: contain;
  }
  .mobile-nav-panel > a {
    display: block; text-decoration: none; border-bottom: 1px solid #ecf1f6;
    padding: 11px 10px; font-size: 13px; line-height: 1.35;
    font-weight: 650; overflow-wrap: anywhere;
  }
  .mobile-nav-panel > a[aria-current="page"] { color: #235a94; background: #f2f6fb; border-radius: 6px; }
  .mobile-nav-panel > a:focus-visible { outline: 2px solid #3c6e9f; outline-offset: -2px; }
  .mobile-nav-panel > a:hover { color: #245b92; background: #f7f9fc; }
  .mobile-nav-caption {
    margin: 13px 10px 3px; color: #758ca5;
    font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .12em;
  }
  .mobile-nav-caption-secondary { margin-top: 16px; }
  .mobile-nav-panel > .mobile-nav-review {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 12px; border: 1px solid #b9737b;
    border-radius: 9px; background: #fffafa; color: #294c74;
    margin: 2px 0 10px;
  }
  .mobile-nav-review svg { flex: 0 0 21px; width: 21px; height: 21px; }
  .mobile-nav-review > span { display: block; font-size: 14px; font-weight: 800; }
  .mobile-nav-review small { display: block; font-size: 11px; font-weight: 450; color: #78899d; margin-top: 3px; }
  /* Category selection moves to the mobile menu; search and city filter stay on the page. */
  .main-list > .tags { display: none; }
  /* The old sidebar link would otherwise appear after every ad on mobile. */
  .aside > .side-reviews-link { display: none; }
}
@media (max-width: 560px) {
  .mobile-nav-trigger { width: 49px; min-height: 53px; }
  .mobile-nav-panel { padding: 11px 12px 15px; }
  .main-list > .filterbox + .listing-disclaimer { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav-panel, .mobile-nav-trigger { transition: none; }
}
