/* ==========================================================
   08. RESPONSIVE
   ========================================================== */

@media (min-width: 1850px) {
  html { font-size: 18px; }
  .shell { max-width: 1780px; }
}

@media (max-width: 1200px) {
  .shell { padding-inline: 22px; }
  .brand-baseline,
  .topbar .brand-baseline,
  body[data-scope="overview"] .brand-baseline  { /**display: none;*/ }
  .search-grid { gap: 18px; }
  .search-cell + .search-cell { padding-left: 18px; }
  .transport button { flex-direction: column; gap: 3px; padding: 7px 5px; }
  .discovery-layout { grid-template-columns: minmax(390px,1fr) minmax(0,1fr); gap: 20px; }
  .store-link { grid-template-columns: 108px minmax(0,1fr); }
  .store-copy { padding: 17px 15px; }
  .store-copy h3 { font-size: 1.25rem; }
  .store-visual > .art { width: 98px; height: 98px; }
  .store-visual::before { width: 90px; height: 90px; }
}

@media (max-width: 950px) {
  .hero-art { flex-basis: 180px; height: 180px; }
  .hero-art .art { width: 110px; height: 110px; }
  .hero-art .art:last-child { width: 100px; height: 100px; }
  .search-grid { grid-template-columns: 1fr 1fr; }
  .search-cell:last-child { grid-column: 1 / -1; padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .discovery-layout { grid-template-columns: 1fr; }
  .discovery-layout[data-view="split"] .map-panel { display: none; }
  .discovery-layout[data-view="list"] .store-list { grid-template-columns: 1fr; }
  .views [data-view="split"] { display: none; }
  .map-panel { position: relative; top: auto; }
  #map { height: 65dvh; min-height: 430px; }
  .store-link { grid-template-columns: 155px minmax(0,1fr); }
  .store-visual { min-height: 220px; }
  .store-visual > .art { width: 133px; height: 133px; }
  .store-copy { padding: 20px; }
  .store-copy h3 { font-size: 1.4rem; }
}

@media (max-width: 850px) {
  .nav-actions { gap: 7px; }
  .nav-actions .btn { min-height: 42px;min-height: 0; padding: 9px 12px; font-size: .8125rem; }
  .favorite-top { width: 42px; height: 42px; padding: 0 !important; }
  .favorite-top .nav-label { display: none; }
 
  .brand-baseline, .topbar .brand-baseline, body[data-scope="overview"] .brand-baseline {
    line-height: 1.3;
    padding-left: 16px;
  }
}


@media (max-width: 650px) {
  .shell { padding-inline: 16px; }
  .topbar { min-height: 75px; gap: 10px; }
  .brand-word { font-size: 2.2rem; }
  .brand-star { font-size: 2.3rem; }
  
  .demo-line { padding-top: 13px; font-size: .75rem; gap: 6px; }
  .demo-line .chip { font-size: .75rem; }

  .hero { padding: 25px 0; gap: 14px; }
  .hero h1 { font-size: 2.3rem; }
  .hero p { font-size: .9375rem; margin-top: 12px; }
  .hero-art { display: none; }

  .search-panel { padding: 18px; border-radius: 22px; }
  .search-grid { grid-template-columns: 1fr; gap: 18px; }
  .search-cell + .search-cell { padding: 17px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .search-cell:last-child { grid-column: auto; }
  .place-button strong { font-size: 1.1rem; }
  .transport button { flex-direction: row; min-height: 45px; gap: 7px; }
  .radius-head output { font-size: 1.1rem; }
  .search-foot { margin-top: 12px; padding-top: 12px; }
  .field-label { margin-bottom: 8px; }

  .categories { margin-inline: -16px; padding: 20px 16px 17px; gap: 8px; }
  .category { min-height: 53px; padding: 8px 14px 8px 10px; gap: 7px; font-size: .875rem; border-radius: 15px; }
  .category .art, .category-star { width: 31px; height: 31px; }
  .filterbar { gap: 8px; padding-bottom: 16px; }
  .filterbar .reset { margin-left: 0; }
  .filter, .select-filter { font-size: .8125rem; }
  .select-filter select { max-width: 153px; }

  .results-toolbar { align-items: flex-start; flex-wrap: wrap; gap: 15px; }
  .results-toolbar h2 { font-size: 1.5rem; }
  .toolbar-actions { width: 100%; justify-content: space-between; }
  .views button { padding-inline: 13px; }
  .sort-select { max-width: 175px; font-size: .875rem; }

  .store-link { grid-template-columns: 101px minmax(0,1fr); }
  .store-visual { min-height: 245px; }
  .store-visual > .art { width: 95px; height: 95px; }
  .store-copy { padding: 16px 14px; }
  .store-copy h3 { font-size: 1.2rem; padding-right: 28px; }
  .store-description { font-size: .875rem; }
  .store-address { font-size: .8125rem; }
  .store-info { gap: 5px 9px; }
  .store-cta { font-size: .875rem; }
  .store-tools { padding: 7px 14px; gap: 5px 14px; }
  .favorite { width: 38px; height: 38px; top: 9px; right: 8px; }
  .format-sticker { font-size: .75rem; left: 6px; right: 6px; }
  .store-card { border-radius: 21px; }

  .offer { grid-template-columns: 1fr auto; padding: 21px; gap: 15px; }
  .offer h3 { font-size: 1.3rem; }
  .offer .art { width: 72px; height: 72px; }
  .offer > .btn { grid-column: 1 / -1; width: 100%; }
  .offer p { font-size: .875rem; }

  .pro-banner { display: block; padding: 24px; margin-top: 27px; }
  .pro-banner h2 { font-size: 1.5rem; }
  .pro-banner p { font-size: .9375rem; }
  .pro-banner .btn { margin-top: 20px; width: 100%; }
  .footer { display: block; padding-bottom: 25px; }
  .footer > p + p { margin-top: 13px; }

  #map { height: 62dvh; min-height: 400px; }
  .map-area-button { max-width: calc(100% - 75px); font-size: .8125rem; padding: 10px 12px; }

  dialog {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: calc(100dvh - 12px);
    margin: 0;
    border-radius: 24px 24px 0 0;
  }

  .dialog-head { padding: 18px 20px; }
  .dialog-head h2 { font-size: 1.35rem; }
  .dialog-body { padding: 20px 20px max(22px,env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
 .brand-baseline, .topbar .brand-baseline, body[data-scope="overview"] .brand-baseline {
    line-height: 1.3;
    padding-left: 13px;
  }
}

@media (max-width: 470px) {
  .brand-baseline, .topbar .brand-baseline, body[data-scope="overview"] .brand-baseline {
    line-height: 1.3;
    padding-left: 11px;
  }
}
@media (max-width: 460px) {
  .miamm-header:has(#headerCustomerSpace:not([hidden])):has(#sharedHeaderCart:not([hidden])) .brand-baseline {
	  display: none;
  }
  body[data-page="home"] .miamm-header #favoritesButton {
	  display: none!important;
  }
}
@media (max-width: 420px) {
  .miamm-header:has(#headerCustomerSpace:not([hidden])) .brand-baseline {
	  display: none;
  }
  .miamm-header:has(#sharedHeaderCart:not([hidden])) .brand-baseline {
	  display: none;
  }
}

@media (max-width: 370px) {
  .brand-baseline, .topbar .brand-baseline, body[data-scope="overview"] .brand-baseline {
    display:none;
  }
}

@media (max-width: 360px) {
  .brand-star { /**display: none;*/ }
  .store-link { grid-template-columns: 82px minmax(0,1fr); }
  .store-visual > .art { width: 80px; height: 80px; }
  .store-copy { padding-inline: 12px; }
  .store-copy h3 { font-size: 1.1rem; }
  .store-info { display: block; }
  .store-info span { display: block; margin-top: 5px; }
  .transport button { font-size: .8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
