/**
 * Mobil fejléc lock — ugyanaz a kinézet minden oldalon (főoldal = /arlista).
 * Header előtt + body végén is töltődik, hogy az oldalspecifikus CSS ne írja felül.
 */
.mc-header .mc-nav-right .mc-cta-btn-icon {
  display: none !important;
}

@media (max-width: 1024px) {
  /* Kék sáv: [hamburger 36] [középen logó] [kereső 36] — egyenlő oldalsávok */
  .mc-header .mc-top-bar {
    position: relative !important;
  }

  .mc-header .mc-top-bar-inner {
    display: grid !important;
    grid-template-columns: 36px minmax(0, 1fr) 36px !important;
    grid-template-areas: "burger logo search" !important;
    align-items: center !important;
    column-gap: 12px !important;
    position: relative !important;
  }

  .mc-header .mc-top-bar .mc-burger,
  body.page-home-v1 .mc-header .mc-top-bar .mc-burger,
  body.page-home .mc-header .mc-top-bar .mc-burger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: center !important;
    grid-area: burger !important;
    justify-self: center !important;
    order: 0 !important;
    margin: 0 !important;
    flex: none !important;
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    height: 36px !important;
    max-height: 36px !important;
    visibility: visible !important;
    font-size: 18px !important;
    line-height: 36px !important;
    padding: 0 !important;
    color: #fff !important;
    background: transparent !important;
    transform: none !important;
    position: relative !important;
    top: auto !important;
    z-index: 2 !important;
  }

  .mc-header .mc-top-bar .mc-burger i,
  body.page-home-v1 .mc-header .mc-top-bar .mc-burger i {
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 0 !important;
    max-height: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
    font-size: 18px !important;
    flex: none !important;
    transform: translateY(2px) !important;
  }

  .mc-header .mc-top-bar .mc-burger i::before {
    display: block !important;
    line-height: 1 !important;
  }

  .mc-header .mc-logo {
    grid-area: logo !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    /* A fehér logó vizuális súlya jobbra esik (MEDICARE felirat) — optikai közép */
    transform: translateX(-6px) !important;
    justify-self: stretch !important;
    align-self: center !important;
    order: 0 !important;
    margin: 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
    overflow: visible !important;
    flex-shrink: 1 !important;
    z-index: 1 !important;
    pointer-events: auto !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }

  .mc-header .mc-logo-img {
    display: block !important;
    height: 28px !important;
    width: auto !important;
    max-width: 100% !important;
    max-height: 28px !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
  }

  .mc-header .mc-contact-info,
  .mc-header .mc-top-bar-actions {
    grid-area: search !important;
    justify-self: stretch !important;
    align-self: center !important;
    order: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    width: 36px !important;
    max-width: 36px !important;
    flex: none !important;
    position: relative !important;
    z-index: 2 !important;
  }

  .mc-header .mc-topbar-booking--mobile {
    display: none !important;
  }

  .mc-header .mc-nav-right,
  body.page-home-v1 .mc-header .mc-nav-right,
  body.page-home .mc-header .mc-nav-right {
    order: 1 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: none !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 6px !important;
    position: relative !important;
  }

  .mc-header .mc-nav-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 6px !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    min-height: 0 !important;
  }

  /* Arany: Medicare biztosítás */
  .mc-header .mc-nav-right .mc-cta-aj,
  .mc-header .mc-nav-right .mc-cta-btn.mc-cta-aj,
  .mc-header .mc-nav-right .mc-cta-dropdown-toggle.mc-cta-aj,
  body.page-home-v1 .mc-header .mc-nav-right .mc-cta-btn.mc-cta-aj,
  body.page-home .mc-header .mc-nav-right .mc-cta-btn.mc-cta-aj {
    background: #DBAB24 !important;
    background-image: none !important;
    color: #fff !important;
    text-transform: uppercase !important;
  }

  /* Kék: Medicare szűrések (egyéni termék kártya) */
  .mc-header .mc-nav-right .mc-cta-sz,
  .mc-header .mc-nav-right .mc-cta-btn.mc-cta-sz,
  .mc-header .mc-nav-right .mc-cta-dropdown-toggle.mc-cta-sz,
  body.page-home-v1 .mc-header .mc-nav-right .mc-cta-btn.mc-cta-sz,
  body.page-home .mc-header .mc-nav-right .mc-cta-btn.mc-cta-sz {
    background: #1598D8 !important;
    background-image: none !important;
    color: #fff !important;
    text-transform: uppercase !important;
  }

  .mc-header .mc-nav-right .mc-cta-quote,
  body.page-home-v1 .mc-header .mc-nav-right .mc-cta-quote,
  body.page-home .mc-header .mc-nav-right .mc-cta-quote {
    background: #DBAB24 !important;
    background-image: none !important;
    color: #fff !important;
    text-transform: none !important;
  }
  .mc-header .mc-nav-right .mc-cta-quote .mc-cta-quote__label {
    display: block !important;
    font-weight: 800 !important;
    text-transform: none !important;
    white-space: nowrap !important;
  }
  .mc-header .mc-nav-right .mc-cta-quote .mc-cta-quote__desk,
  .mc-header .mc-nav-right .mc-cta-quote .mc-cta-quote__mob {
    display: none !important;
  }

  /* Három egyforma gomb: Időpont | Szűrések | Biztosítás */
  .mc-header .mc-nav-right .mc-cta-online,
  .mc-header .mc-nav-right .mc-cta-online--nav,
  .mc-header .mc-nav-right .mc-cta-btn.mc-cta-online,
  .mc-header .mc-nav-right .mc-cta-btn.mc-cta-online--nav,
  body.page-home-v1 .mc-header .mc-nav-right .mc-cta-btn.mc-cta-online,
  body.page-home .mc-header .mc-nav-right .mc-cta-btn.mc-cta-online {
    display: flex !important;
    order: 1 !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 5px 8px !important;
    white-space: nowrap !important;
    background: linear-gradient(135deg, #19324a 0%, #248c99 55%, #4A8EA6 100%) !important;
    color: #fff !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
    font-size: 10px !important;
    letter-spacing: 0.02em !important;
  }

  .mc-header .mc-nav-right .mc-cta-online__desk {
    display: none !important;
  }

  .mc-header .mc-nav-right .mc-cta-online__mob {
    display: inline !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    line-height: 1 !important;
    font-size: inherit !important;
    letter-spacing: inherit !important;
    white-space: nowrap !important;
    text-align: center !important;
  }

  .mc-header .mc-nav-right .mc-cta-online__mob > span {
    display: inline !important;
    white-space: nowrap !important;
  }

  .mc-header .mc-nav-right .mc-cta-online__mob > span + span {
    display: none !important;
  }

  .mc-header .mc-nav,
  .mc-header .mc-nav-inner,
  .mc-header .mc-nav-right {
    overflow: visible !important;
  }

  .mc-header .mc-nav-right .mc-cta-dropdown-wrap {
    display: flex !important;
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
    height: auto !important;
    min-height: 36px !important;
    max-height: none !important;
    overflow: visible !important;
    position: static !important;
  }

  .mc-header .mc-nav-right #mcBiztositasWrap {
    order: 3 !important;
  }

  .mc-header .mc-nav-right #mcSzuresekWrap {
    order: 2 !important;
  }

  html body .mc-header .mc-nav-right #mcSzuresekWrap,
  html body .mc-header .mc-nav-right #mcBiztositasWrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    flex: none !important;
  }

  html body .mc-header .mc-nav-right #mcSzuresekToggle,
  html body .mc-header .mc-nav-right #mcBiztositasToggle {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .mc-header .mc-top-bar .mc-contact-item,
  .mc-header .mc-top-bar .mc-contact-item--desk-phone {
    display: none !important;
  }

  /* Méret lock — főoldal kritikus CSS (48px/168px) és 480px (32px/7px) ellen */
  .mc-header .mc-nav-right .mc-cta-btn,
  .mc-header .mc-nav-right .mc-cta-dropdown-toggle,
  body.page-home-v1 .mc-header .mc-nav-right .mc-cta-btn,
  body.page-home .mc-header .mc-nav-right .mc-cta-btn {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  .mc-header .mc-nav-right .mc-cta-dropdown-toggle {
    width: 100% !important;
    flex: none !important;
  }

  .mc-header .mc-nav-right .mc-cta-btn,
  .mc-header .mc-nav-right .mc-cta-dropdown-toggle,
  body.page-home-v1 .mc-header .mc-nav-right .mc-cta-btn,
  body.page-home .mc-header .mc-nav-right .mc-cta-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 5px 10px !important;
    font-family: 'Montserrat', 'Poppins', sans-serif !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.02em !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(30, 58, 80, 0.14) !important;
    white-space: nowrap !important;
  }

  .mc-header .mc-nav-right .mc-cta-online,
  .mc-header .mc-nav-right .mc-cta-btn.mc-cta-online {
    flex: none !important;
    width: 100% !important;
    height: 36px !important;
    max-height: 36px !important;
    min-height: 36px !important;
    padding: 5px 8px !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    letter-spacing: 0.02em !important;
  }

  .mc-header .mc-nav-right .mc-cta-dropdown-toggle,
  body.page-home-v1 .mc-header .mc-nav-right .mc-cta-dropdown-toggle {
    position: relative !important;
    padding: 5px 22px 5px 8px !important;
  }

  .mc-header .mc-cta-dropdown-toggle__label {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .mc-header .mc-cta-dropdown-toggle__label > span:first-child {
    display: none !important;
  }

  .mc-header .mc-cta-dropdown-toggle__label > span {
    display: inline !important;
    margin-top: 0 !important;
    white-space: nowrap !important;
    font-weight: 800 !important;
    font-size: inherit !important;
    line-height: inherit !important;
  }

  .mc-header .mc-cta-dropdown-toggle .mc-dd-arrow {
    position: absolute !important;
    right: 8px !important;
    top: 50% !important;
    left: auto !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
    font-size: 8px !important;
    transition: transform 0.18s ease !important;
  }

  html body .mc-header .mc-nav-right {
    position: relative !important;
  }

  html body .mc-header .mc-nav-right .mc-cta-dropdown-menu {
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    top: calc(100% + 8px) !important;
    transform: none !important;
    margin-top: 0 !important;
    padding: 8px !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 36px rgba(30, 58, 80, 0.18) !important;
    z-index: 10060 !important;
  }

  html body .mc-header .mc-nav-right .mc-cta-dropdown-menu li a,
  html body .mc-header .mc-nav-right .mc-cta-dropdown-subtoggle {
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 14px !important;
    font-size: 14px !important;
    white-space: normal !important;
  }

  html body .mc-header .mc-nav-right .mc-cta-dropdown-wrap.is-open .mc-cta-dropdown-toggle {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72), 0 4px 14px rgba(30, 58, 80, 0.22) !important;
    filter: brightness(1.06);
  }

  html body .mc-header .mc-nav-right .mc-cta-dropdown-wrap.is-open .mc-dd-arrow {
    transform: translateY(-50%) rotate(180deg) !important;
  }

  html body .mc-header .mc-nav-right .mc-cta-dropdown-wrap.is-open .mc-cta-dropdown-toggle::after {
    content: "" !important;
    position: absolute !important;
    left: 50% !important;
    bottom: -8px !important;
    width: 0 !important;
    height: 0 !important;
    border: 7px solid transparent !important;
    border-top-color: currentColor !important;
    border-bottom: 0 !important;
    transform: translateX(-50%) !important;
    z-index: 10070 !important;
    pointer-events: none !important;
  }

  html body .mc-header .mc-nav-right #mcSzuresekWrap.is-open .mc-cta-dropdown-toggle::after {
    border-top-color: #1598D8 !important;
  }

  html body .mc-header .mc-nav-right #mcBiztositasWrap.is-open .mc-cta-dropdown-toggle::after {
    border-top-color: #DBAB24 !important;
  }

  html body .mc-header .mc-nav-right #mcSzuresekWrap .mc-cta-dropdown-menu {
    border-top: 3px solid #1598D8 !important;
  }

  html body .mc-header .mc-nav-right #mcBiztositasWrap .mc-cta-dropdown-menu {
    border-top: 3px solid #DBAB24 !important;
  }

  .mc-header .mc-nav-right .mc-life1-nav-link {
    display: none !important;
  }

  .mc-mobile-drawer__head-start .mc-mobile-drawer__close,
  .mc-mobile-drawer__head-start .mc-mobile-drawer__back {
    position: absolute !important;
    inset: auto !important;
    top: 50% !important;
    left: 0 !important;
    right: auto !important;
    bottom: auto !important;
    width: 40px !important;
    height: 40px !important;
    margin: 0 !important;
    transform: translateY(-50%) !important;
  }

  .mc-mobile-drawer__head-start:has(.mc-mobile-drawer__back:not([hidden])) .mc-mobile-drawer__close {
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mc-mobile-drawer__phone {
    justify-self: end !important;
    align-self: center !important;
  }

  .mc-mobile-drawer__close,
  .mc-mobile-drawer__back,
  .mc-mobile-drawer__phone {
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #1c3548 0%, #268699 100%) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px rgba(30, 58, 80, 0.16) !important;
  }

  .mc-mobile-drawer__close i,
  .mc-mobile-drawer__back i,
  .mc-mobile-drawer__phone i {
    color: #fff !important;
  }

  /* Utolsó, ID-s lock: a három gomb ténylegesen azonos oszlopszélességű */
  html body .mc-header .mc-nav-right {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    gap: 6px !important;
    position: relative !important;
  }

  html body .mc-header .mc-nav-right > .mc-cta-online,
  html body .mc-header .mc-nav-right > .mc-cta-dropdown-wrap,
  html body .mc-header .mc-nav-right #mcSzuresekWrap,
  html body .mc-header .mc-nav-right #mcBiztositasWrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
    align-self: stretch !important;
    flex: none !important;
  }

  html body .mc-header .mc-nav-right > .mc-cta-online,
  html body .mc-header .mc-nav-right #mcSzuresekToggle,
  html body .mc-header .mc-nav-right #mcBiztositasToggle {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    flex: none !important;
    box-sizing: border-box !important;
  }
}

@media (min-width: 360px) and (max-width: 1024px) {
  html body .mc-header .mc-nav-right .mc-cta-btn-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: none !important;
    width: 11px !important;
    min-width: 11px !important;
    height: 11px !important;
    margin: 0 5px 0 0 !important;
    padding: 0 !important;
    font-size: 11px !important;
    line-height: 1 !important;
    color: inherit !important;
    position: static !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    pointer-events: none !important;
  }

  html body .mc-header .mc-nav-right .mc-cta-online,
  html body .mc-header .mc-nav-right .mc-cta-online--nav,
  html body .mc-header .mc-nav-right .mc-cta-btn.mc-cta-online,
  html body .mc-header .mc-nav-right a.mc-cta-btn.mc-cta-online,
  html body.page-home-v1 .mc-header .mc-nav-right .mc-cta-btn.mc-cta-online,
  html body.page-home .mc-header .mc-nav-right .mc-cta-btn.mc-cta-online {
    font-size: 9px !important;
    letter-spacing: 0 !important;
    gap: 0 !important;
    padding: 5px 6px !important;
  }

  html body .mc-header .mc-nav-right .mc-cta-dropdown-toggle,
  html body .mc-header .mc-nav-right #mcSzuresekToggle,
  html body .mc-header .mc-nav-right #mcBiztositasToggle {
    font-size: 9px !important;
    letter-spacing: 0 !important;
    gap: 0 !important;
    padding: 5px 16px 5px 5px !important;
  }
}
