/* Telefon és kis tablet: alsó menü minden oldalon + alulról nyíló teljes menü (a felső hamburger helyett). */
.am-sav, .am-lap, .am-kereso, .am-kereso-nyit { display: none; }
/* Telefon: nagyító a fejlécben, felülről nyíló kereső (a képváltón lévő keresőblokk helyett) */
@media (max-width: 767px) {
  .header .am-kereso-nyit { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: auto; border: 0; border-radius: 50%; background: #fbeef0; color: #a5162c; font-size: 20px; cursor: pointer; }
  .am-kereso:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 1050; background: rgba(8, 24, 40, .55); overflow-y: auto; }
  .am-kereso-doboz { background: #fff; border-radius: 0 0 12px 12px; padding-bottom: 16px; }
  .am-kereso form { display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 0; }
  .am-kereso input, .am-kereso select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid #d5d9de; border-radius: 6px; background: #fff; color: #081828; font-size: 16px; }
  .am-kereses-gomb { height: 48px; border: 0; border-radius: 6px; background: #a5162c; color: #fff; font-size: 16px; font-weight: 600; }
  .am-kereso-doboz .am-lap-fej { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e6e8eb; font-size: 18px; color: #081828; }
  html.am-nyitva, html.am-nyitva body { overflow: hidden; }
}
@media (max-width: 991px) {
  .scroll-top, .header .mobile-menu-btn, .header #navbarSupportedContent { display: none !important; }
  body { padding-bottom: 66px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
  .am-sav { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: 2px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 1px solid #e6e8eb; box-shadow: 0 -4px 14px rgba(8, 24, 40, .12); padding: 4px 3px calc(4px + env(safe-area-inset-bottom)); transition: transform .25s ease; }
  .am-sav.am-rejt { transform: translateY(110%); }
  .am-sav .am-elem { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 56px; margin: 0; padding: 4px 0; border: 0; border-radius: 8px; background: transparent; color: #5c6773; cursor: pointer; }
  .am-sav .am-elem i { font-size: 20px; line-height: 20px; color: #a5162c; }
  .am-sav .am-elem span { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: inherit; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 14px; letter-spacing: 0; }
  .am-sav .am-elem.am-aktiv, .am-sav .am-nyit[aria-expanded="true"] { background: #fbeef0; color: #a5162c; }
  .am-sav .am-elem.am-fo { background: #a5162c; color: #fff; }
  .am-sav .am-elem.am-fo i { color: #fff; }
  .am-lap:not([hidden]) { display: flex; flex-direction: column; position: fixed; left: 0; right: 0; top: 0; bottom: calc(65px + env(safe-area-inset-bottom)); z-index: 1039; background: #fff; }
  .am-lap-fej { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #e6e8eb; font-size: 18px; color: #081828; }
  .am-zar { border: 0; background: transparent; font-size: 32px; line-height: 32px; padding: 0 6px; color: #081828; }
  .am-lap-test { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px 12px 24px; }
  .am-lap ul { list-style: none; margin: 0; padding: 0; }
  .am-lap li a, .am-lap li button, .am-lap summary { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 10px 8px; border: 0; background: transparent; text-align: left; color: #081828; font-size: 15px; font-weight: 600; line-height: 20px; cursor: pointer; }
  .am-lap li i { flex: 0 0 22px; font-size: 19px; color: #a5162c; text-align: center; }
  .am-lap .am-kiemeltek li a.am-fo { background: #a5162c; color: #fff; border-radius: 8px; }
  .am-lap .am-kiemeltek li a.am-fo i { color: #fff; }
  .am-lap ul.am-lista, .am-lap details { border-top: 1px solid #eef0f2; }
  .am-lap summary { justify-content: space-between; list-style: none; }
  .am-lap summary::-webkit-details-marker { display: none; }
  .am-lap summary::after { content: "+"; font-size: 22px; color: #a5162c; }
  .am-lap details[open] summary::after { content: "–"; }
  .am-lap details ul.am-lista { border-top: 0; padding-left: 14px; }
  .am-lap details li a { font-weight: 500; }
  .am-sav .am-elem:focus-visible, .am-lap a:focus-visible, .am-lap button:focus-visible, .am-lap summary:focus-visible { outline: 3px solid #0b5ed7; outline-offset: -3px; }
  html.am-nyitva, html.am-nyitva body { overflow: hidden; }
  #collapseLoginBigscreen .login-half { min-height: 0 !important; margin-bottom: 12px; }
  #CookiebotWidget { bottom: 80px !important; }
}
@media (prefers-reduced-motion: reduce) { .am-sav { transition: none; } }
@media print { .am-sav, .am-lap { display: none !important; } }

/* Gyűjtések oldal telefonon: szűrők a nagyítóból nyíló panelben, lenyitható csoportokkal; kompaktabb lista */
@media (max-width: 767px) {
  .am-kereso form[hidden] { display: none; }
  .am-kereso.am-szuro:not([hidden]) .am-kereso-doboz { max-height: 100%; overflow-y: auto; padding-bottom: 0; }
  .am-kereso .am-szurok { margin: 0; padding: 4px 16px 0; }
  .am-kereso .am-szurok .single-widget { margin: 0; padding: 0; border: 0; border-bottom: 1px solid #e6e8eb; border-radius: 0; background: none; box-shadow: none; }
  .am-kereso .am-szurok .single-widget:last-child { border-bottom: 0; }
  .am-kereso .am-szurok .single-widget.search { padding: 8px 0 10px; }
  .am-kereso .am-szurok .single-widget.search .sidebar-cim { display: none; }
  .am-kereso .am-szurok .single-widget.search form { display: block; position: relative; margin: 0; padding: 0; }
  .am-kereso .am-szurok .single-widget.search input[type=text] { width: 100%; height: 44px; padding: 0 48px 0 12px; font-size: 16px; }
  .am-kereso .am-szurok .single-widget.search button { position: absolute; top: 0; right: 0; width: 44px; height: 44px; transform: none; margin: 0; }
  .am-kereso .am-szurok .am-csoport .sidebar-cim { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 0; border: 0; font-size: 15px; line-height: 20px; cursor: pointer; }
  .am-kereso .am-szurok .am-csoport .sidebar-cim::before { display: none; }
  .am-kereso .am-szurok .am-csoport .sidebar-cim::after { content: ''; position: static; width: 8px; height: 8px; margin-right: 4px; border: solid #081828; border-width: 0 2px 2px 0; background: none; transform: rotate(45deg); flex: none; }
  .am-kereso .am-szurok .am-csoport.am-nyitott .sidebar-cim::after { transform: rotate(-135deg); }
  .am-kereso .am-szurok .am-valasztott { flex: 1; min-width: 0; text-align: right; font-size: 12px; font-weight: 400; color: #a5162c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .am-kereso .am-szurok .am-csoport > :not(.sidebar-cim) { display: none; }
  .am-kereso .am-szurok .am-csoport.am-nyitott > ul,
  .am-kereso .am-szurok .am-csoport.am-nyitott > .form-check { display: block; }
  .am-kereso .am-szurok .am-csoport.am-nyitott { padding-bottom: 8px; }
  .am-kereso .am-szurok ul.adomany-kategoriak { margin: 0; padding: 0; }
  .am-kereso .am-szurok ul.adomany-kategoriak li { margin: 0; padding: 0; }
  .am-kereso .am-szurok ul.adomany-kategoriak li a { display: flex; align-items: center; gap: 8px; margin: 0; padding: 7px 4px; font-size: 14px; line-height: 18px; }
  .am-kereso .am-szurok ul.adomany-kategoriak li a img { width: 20px; height: 20px; min-height: 0 !important; object-fit: contain; margin: 0; flex: none; }
  .am-kereso .am-szurok ul.adomany-kategoriak li a span { position: static; margin-left: auto; width: 26px; height: 26px; line-height: 26px; font-size: 12px; flex: none; transform: none; }
  .am-kereso .am-szurok .form-check { margin: 0; padding: 5px 0 5px 28px; min-height: 0; }
  .am-kereso .am-szurok .form-check .form-check-input { width: 18px; height: 18px; margin: 1px 0 0 -28px; }
  .am-kereso .am-szurok .form-check .form-check-label { display: block; margin: 0; font-size: 14px; line-height: 20px; }
  .am-szuro-lab { position: sticky; bottom: 0; padding: 10px 16px 12px; background: #fff; border-top: 1px solid #e6e8eb; border-radius: 0 0 12px 12px; }
  .am-szuro-lab .am-kereses-gomb { width: 100%; margin: 0; }
  .am-kereso.am-szuro:not([hidden]) { padding-bottom: 66px; }
  .am-kereso.am-szuro:not([hidden]) .am-lap-fej { position: sticky; top: 0; z-index: 1; background: #fff; }

  .breadcrumbs.gy-morzsa { padding: 52px 0 10px; }
  .breadcrumbs.gy-morzsa .page-title { font-size: 20px; line-height: 26px; margin: 0; }
  .breadcrumbs.gy-morzsa .breadcrumb-nav { margin-top: 2px; }
  .breadcrumbs.gy-morzsa .breadcrumb-nav li, .breadcrumbs.gy-morzsa .breadcrumb-nav li a { font-size: 12px; }
  .category-page.section { padding-top: 12px; }
  .category-page .container > .row > .col-lg-3:first-child { order: 2; }
  .category-page .category-grid-topbar { margin: 0 0 8px; padding: 8px 10px; }
  .category-page .category-grid-topbar .title { font-size: 13px; line-height: 18px; margin: 0; }
  .category-page .projekt-aktiv-lezart-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0 12px; }
  .category-page .projekt-aktiv-lezart-buttons .btn { width: 100%; height: 100%; margin: 0; padding: 7px 4px; font-size: 12px; line-height: 15px; white-space: normal; }
}
.am-valasztott { display: none; }
@media (max-width: 767px) { .am-kereso .am-szurok .am-valasztott { display: block; } }
