.mobile-nav,
.mobile-search-summary,
.mobile-card-details-toggle {
  display: none;
}

.mobile-card-secondary {
  display: contents;
}

@media (max-width: 700px) {
  body {
    padding-bottom: 66px;
  }

  .mobile-nav {
    position: fixed;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 10px;
    z-index: 220;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    min-height: 52px;
    overflow: hidden;
    border: 1px solid #d8e1ea;
    border-radius: 14px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 16px 42px rgba(11, 19, 32, .18);
    backdrop-filter: blur(14px);
  }

  .mobile-nav a {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 52px;
    padding: 0 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 780;
    text-decoration: none;
  }

  .mobile-nav a + a {
    border-left: 1px solid #e5ebf1;
  }

  .mobile-nav a[aria-current="page"] {
    background: #edf7f4;
    color: #00695f;
  }

  .mobile-search-summary {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: #f4f8f7;
    color: #172033;
    padding: 8px 10px;
    text-align: left;
    cursor: pointer;
  }

  .mobile-search-summary span {
    min-width: 0;
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-search-summary strong {
    flex: 0 0 auto;
    color: #007d70;
    font-size: 12px;
  }

  body.has-search-results .search-strip {
    position: sticky;
    top: 92px;
    z-index: 180;
    padding: 7px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 8px 24px rgba(17, 24, 39, .08);
    backdrop-filter: blur(12px);
  }

  body.has-search-results .mobile-search-summary {
    display: flex;
  }

  body.has-search-results:not(.search-form-expanded) .search-strip > :not(.mobile-search-summary) {
    display: none;
  }

  body.has-search-results.search-form-expanded .search-strip {
    padding: 10px;
  }

  body.has-search-results .popular-preset-strip {
    display: none;
  }

  body.has-search-results .content {
    margin-top: 10px;
  }

  body.has-search-results .mobile-filter-bar {
    top: 151px;
  }

  body.has-search-results .search-map-unavailable {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .result-card.mobile-card-enhanced {
    gap: 9px;
    padding: 10px;
  }

  .result-card.mobile-card-enhanced .thumb {
    height: 160px;
  }

  .result-card.mobile-card-enhanced .card-main h3 {
    margin-bottom: 2px;
    font-size: 19px;
  }

  .result-card.mobile-card-enhanced .meta {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .result-card.mobile-card-enhanced .match-line {
    margin: 6px 0;
  }

  .result-card.mobile-card-enhanced .match-line span:nth-child(n+4) {
    display: none;
  }

  .mobile-card-details-toggle {
    width: 100%;
    min-height: 42px;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    border: 1px solid #c8ded9;
    border-radius: 10px;
    background: #f6fbf9;
    color: #035d53;
    padding: 0 11px;
    font: inherit;
    font-size: 13px;
    font-weight: 780;
    cursor: pointer;
  }

  .mobile-card-details-toggle::after {
    content: "+";
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
  }

  .result-card.mobile-card-enhanced.is-mobile-expanded .mobile-card-details-toggle::after {
    content: "−";
  }

  .result-card.mobile-card-enhanced .mobile-card-details-toggle {
    display: flex;
  }

  .result-card.mobile-card-enhanced .mobile-card-secondary {
    display: none;
  }

  .result-card.mobile-card-enhanced.is-mobile-expanded .mobile-card-secondary {
    display: block;
  }

  .result-card.mobile-card-enhanced .price-box {
    gap: 8px;
    padding-top: 9px;
  }

  .result-card.mobile-card-enhanced .price-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-card.mobile-card-enhanced .price-actions .btn,
  .result-card.mobile-card-enhanced .price-actions .ghost-btn {
    min-width: 0;
    min-height: 42px;
    padding: 0 9px;
    font-size: 13px;
  }

  .result-card.mobile-card-enhanced .save-row {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-nav,
  .mobile-search-summary,
  .mobile-card-details-toggle {
    scroll-behavior: auto;
  }
}
