/* Tablets (761 to 1180px, portrait and landscape). Phones and desktop are unchanged.
   Portrait (up to 900px) keeps the phone layout (list, then a full-screen panel) with the cards two across.
   Landscape keeps list + map; the header goes icon-only so Schedule Consultation is never cut off, and an open
   location or provider panel covers the list instead of the map. */

/* Header: icons and the menu, as on phones (Schedule Consultation is in the menu) */
@media (min-width: 901px) and (max-width: 1180px) {
  .hdr-top { padding: 16px 24px; }
  .header-right { gap: 20px; margin-left: auto; margin-right: 6px; }
  .header-right .header-contact span { display: none; }
  .header-right .header-contact svg { width: 20px; height: 20px; }
  .header-right .header-cta { display: none; }
  .hamburger-btn { display: flex; margin-left: 0; }
}

/* Portrait: two cards across, a little more air at the edges */
@media (min-width: 761px) and (max-width: 900px) {
  .search-bar { padding: 16px 24px; }
  .location-list { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: max-content; align-content: start; gap: 16px; padding: 16px 24px 24px; }
  .location-list > :not(.location-card):not([data-provider-id]) { grid-column: 1 / -1; }
  /* the open panel fills the screen; its content keeps a readable width */
  .mod_locator.panel-open-mode .detail-panel.open .panel-body { max-width: 680px; margin: 0 auto; }
}

/* Landscape: a narrower list, and the open panel sits over it so the map stays in view */
@media (min-width: 901px) and (max-width: 1180px) {
  .sidebar { width: 360px; min-width: 0; }
  .detail-panel { left: 12px; width: 336px; }
}
