@media (max-width: 760px) {
  body { font-size: 14px; }
  .shell { width: calc(100% - 20px); }

  .topbar { position: relative; }
  .topbar-inner { min-height: 58px; }
  .brand { gap: 8px; }
  .brand-mark { width: 31px; height: 31px; border-radius: 7px; font-size: 16px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { display: none; }
  .topnav { display: none; }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 20px);
    margin-top: 18px;
    padding: 4px 0 22px;
    gap: 22px;
  }
  .hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(31px, 9.5vw, 40px);
    line-height: 1.06;
    letter-spacing: -.03em;
  }
  .hero-lead { font-size: 14px; line-height: 1.6; }
  .hero-points { margin-top: 16px; gap: 7px 14px; }
  .hero-points span { font-size: 11px; }

  .city-console { grid-row: 1; padding: 15px; border-radius: 10px; box-shadow: none; }
  .console-heading { margin-bottom: 10px; }
  .console-heading strong { font-size: 16px; }
  .location-map-link { width: 27px; height: 27px; font-size: 15px; }
  .city-picker input { height: 45px; font-size: 13px; }
  .summary-card { padding: 10px; }
  .summary-card strong { font-size: 17px; }
  .summary-meta { margin-top: 6px; font-size: 9px; text-align: left; }

  .explorer {
    width: calc(100% - 20px);
    margin-top: 6px;
    padding-top: 20px;
  }
  .section-heading { margin-bottom: 12px; display: block; }
  .section-heading h2 { font-size: 23px; }
  .section-heading p { font-size: 12px; }
  .shown-count { max-width: none; margin-top: 8px; text-align: left; }

  .toolbar { position: static; margin-bottom: 8px; padding: 9px; border-radius: 9px; box-shadow: none; }
  .toolbar-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
  .search-field { grid-column: 1 / -1; }
  .search-field > span, .select-field > span { margin-bottom: 5px; font-size: 11px; }
  input, select { min-height: 44px; font-size: 14px; }
  .toolbar-secondary { align-items: stretch; flex-direction: column; gap: 6px; }
  .toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
  .toggle { width: 100%; min-height: 44px; padding: 6px 8px; border-radius: 7px; font-size: 12px; line-height: 1.2; }
  .hidden-offers { display: none; }

  .table-shell { overflow: visible; background: transparent; border: 0; }
  table, thead, tbody { display: block; width: 100%; min-width: 0; }
  thead { display: none; }
  tbody > tr:not(.group-details-row) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "venue map"
      "offers offers"
      "status best";
    gap: 8px 10px;
    margin-bottom: 8px;
    padding: 11px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 9px;
  }
  tbody > tr:not(.group-details-row) > td {
    min-width: 0;
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    font-size: 12px;
  }
  tbody > tr:not(.group-details-row) > td:nth-child(1) { display: none; }
  tbody > tr:not(.group-details-row) > td:nth-child(2) { grid-area: venue; }
  tbody > tr:not(.group-details-row) > td:nth-child(3) { grid-area: offers; }
  tbody > tr:not(.group-details-row) > td:nth-child(4) { grid-area: best; align-self: end; justify-self: end; }
  tbody > tr:not(.group-details-row) > td:nth-child(5) { grid-area: status; align-self: end; justify-self: start; text-align: left; }
  tbody > tr:not(.group-details-row) > td:nth-child(6) { grid-area: map; display: flex; justify-content: flex-end; align-self: start; }
  tbody > tr:not(.group-details-row) > td.empty { display: block; grid-column: 1 / -1; padding: 26px 10px !important; }

  .venue-cell { min-width: 0; grid-template-columns: 46px minmax(0, 1fr); gap: 9px; align-items: start; }
  .venue-image { width: 46px; height: 46px; border-radius: 7px; }
  .venue-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.28;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .venue-title::after { content: " ↗"; color: var(--accent-dark); font-size: .85em; }
  .venue-heading { align-items: center; gap: 5px; }
  .venue-type-inline { font-size: 10px; color: #98a3a8; }
  .venue-meta {
    display: -webkit-box;
    max-width: 100%;
    margin-top: 3px;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: clip;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .offer-list { min-width: 0; gap: 5px; }
  .offer { max-width: 100%; min-height: 25px; padding: 3px 6px; overflow-wrap: anywhere; white-space: normal; }
  .amount {
    min-width: 0;
    padding: 5px 7px;
    color: #934507;
    background: var(--warning-soft);
    border: 1px solid #efd7c0;
    border-radius: 7px;
    font-size: 14px !important;
    line-height: 1.05;
  }
  .amount-percent {
    color: #922351;
    background: #fff1f7;
    border-color: #efcade;
  }
  .map-link { width: 44px; height: 44px; padding: 0; font-size: 16px; }

  .group-details-row { display: block; margin: -5px 0 8px; }
  .group-details-row > td { display: block; padding: 0; border: 0; }
  .group-details { margin: 0; border: 1px solid var(--line); border-radius: 8px; }
  .group-details summary { min-height: 36px; padding: 7px 9px; line-height: 1.3; }
  .group-details summary strong { font-size: 9px; }
  .group-location-card {
    padding: 11px;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "main map"
      "offers offers"
      "status value";
    gap: 8px 10px;
  }
  .group-location-index { display: none; }
  .group-location-main { grid-area: main; }
  .group-location-offers { grid-area: offers; }
  .group-location-value { grid-area: value; justify-self: end; align-self: end; }
  .group-location-status { grid-area: status; align-self: end; justify-self: start; text-align: left; }
  .group-location-map { grid-area: map; justify-self: end; align-self: start; }

  .content-section {
    width: calc(100% - 20px);
    margin-top: 18px;
    padding: 18px 14px;
    border-radius: 10px;
  }
  .city-link-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 16px; }
  .feature-card h3 { margin-top: 10px; }
  .faq-list details { padding: 0 12px; }

  .footer-inner {
    min-height: 116px;
    padding-block: 20px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
  }
  .footer-links { gap: 12px; }

  .landing-hero {
    width: calc(100% - 20px);
    margin-top: 18px;
    padding: 6px 0 22px;
  }
  .landing-breadcrumbs { margin-bottom: 14px; }
  .landing-hero h1 { font-size: 32px; }
  .landing-hero p { font-size: 13px; }
  .landing-stats { width: calc(100% - 20px); grid-template-columns: 1fr; }
  .landing-section { width: calc(100% - 20px); padding: 17px 14px; border-radius: 9px; }
  .landing-section h2 { font-size: 20px; }
  .deal-grid { grid-template-columns: 1fr; }
  .city-directory { grid-template-columns: 1fr; }
}

@media (max-width: 430px) {
  .hero h1 { font-size: 31px; }
  .hero-points { display: grid; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .toolbar-main { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .toggles { grid-template-columns: 1fr; }
  .venue-cell { grid-template-columns: 42px minmax(0, 1fr); }
  .venue-image { width: 42px; height: 42px; }
  .landing-actions { display: grid; }
}

@media (max-width: 760px) {
  .checkout-estimator { padding: 15px 13px; margin-bottom: 12px; border-radius: 12px; }
  .checkout-estimator h3 { font-size: 18px; }
  .checkout-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
  .checkout-fields label:first-child { grid-column: 1 / -1; }
  .checkout-fields label { min-width: 0; }
  .checkout-fields input { width: 100%; }
  .checkout-calculate { grid-column: 1 / -1; }
  .estimate-venue-button { min-height: 42px; font-size: 12px; }
  .delivery-notice { font-size: 11px; }
  tbody > tr:not(.group-details-row) { border-radius: 13px; padding: 14px; box-shadow: 0 3px 16px rgba(10, 48, 50, .04); }
  .venue-image { width: 52px; height: 52px; border-radius: 10px; }
  .venue-cell { grid-template-columns: 52px minmax(0,1fr); gap: 11px; }
  .venue-title { font-size: 14px; }
  .offer { font-size: 12px; line-height: 1.4; }
  .amount { border-radius: 9px; font-size: 15px !important; }
}

@media (max-width: 760px) {
  .mobile-filter-toggle { display: block; width: 100%; min-height: 44px; margin: 8px 0 3px; padding: 8px 14px; border: 1px solid #b2d6d0; border-radius: 10px; background: #f1faf7; color: #066f68; font-weight: 730; text-align: left; cursor: pointer; }
  .mobile-filter-toggle::after { content: "⌄"; float: right; font-size: 17px; }
  .show-advanced-filters .mobile-filter-toggle::after { content: "⌃"; }
  #mobileAdvancedFilters { display: none; }
  .show-advanced-filters #mobileAdvancedFilters { display: flex; }
}
