/* ==========================================================================
   Közlemény felugró ablak (karbantartás / felhívás / nyitvatartás)
   — a mostani mphu arculat szerint
   (Mona Sans, --tj-* színtokenek, lekerekített kártya, teal kiemelés).
   A régi karbantartas.php szürke, táblázatos dobozát VÁLTJA KI.
   ========================================================================== */

.mphu-notice[hidden] {
  display: none;
}

.mphu-notice {
  position: fixed;
  inset: 0;
  /* Mindenek fölött: a guided tour 100002, a süti-sáv 99999999 — a közlemény
     azoknál is előrébb van, különben mobilon a cookie-banner takarja el. */
  z-index: 100000000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.mphu-notice__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 55, 60, .62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .25s ease;
}

.mphu-notice__dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  background: var(--tj-color-common-white, #fff);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(7, 55, 60, .32);
  padding: 40px 36px 32px;
  text-align: center;
  font-family: var(--tj-ff-body, 'Mona Sans', sans-serif);
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .28s ease, transform .28s ease;
}

/* A JS teszi rá, amikor megjelenik (egyszerű belépő animáció). */
.mphu-notice.is-visible .mphu-notice__backdrop {
  opacity: 1;
}
.mphu-notice.is-visible .mphu-notice__dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Ikon-plecsni a kártya tetején */
.mphu-notice__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: rgba(30, 138, 138, .10);
  color: var(--tj-color-theme-primary, #1e8a8a);
  font-size: 26px;
  line-height: 1;
}

.mphu-notice__title {
  font-family: var(--tj-ff-heading, 'Mona Sans', sans-serif);
  font-size: 26px;
  font-weight: var(--tj-fw-bold, 700);
  line-height: 1.3;
  color: var(--tj-color-heading-primary, #0c1e21);
  margin: 0 0 14px;
}

.mphu-notice__body {
  font-size: 16px;
  line-height: 1.7;
  color: var(--tj-color-text-body, #364e52);
}
.mphu-notice__body > *:first-child { margin-top: 0; }
.mphu-notice__body > *:last-child  { margin-bottom: 0; }
.mphu-notice__body p {
  margin: 0 0 14px;
}
.mphu-notice__body a {
  color: var(--tj-color-theme-primary, #1e8a8a);
  font-weight: var(--tj-fw-sbold, 600);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mphu-notice__body a:hover {
  color: var(--tj-color-theme-dark, #0c1e21);
}
/* A telefonszám ne törjön ketté mobilon. */
.mphu-notice__body a[href^="tel:"] {
  white-space: nowrap;
}
.mphu-notice__body strong {
  color: var(--tj-color-heading-primary, #0c1e21);
}
.mphu-notice__body ul,
.mphu-notice__body ol {
  text-align: left;
  margin: 0 0 14px;
  padding-left: 22px;
}

/* Bezáró X — a guided tour gombjának testvére */
.mphu-notice__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(30, 138, 138, .10);
  color: var(--tj-color-theme-primary, #1e8a8a);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.mphu-notice__close:hover {
  background: var(--tj-color-theme-primary, #1e8a8a);
  color: var(--tj-color-common-white, #fff);
}

.mphu-notice__actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

/* A tj-primary-btn <button>-ként is ugyanúgy nézzen ki, mint a linkes változat. */
button.mphu-notice__btn {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* Mobil */
@media (max-width: 575.98px) {
  .mphu-notice {
    padding: 12px;
  }
  .mphu-notice__dialog {
    padding: 32px 22px 24px;
    border-radius: 16px;
    max-height: calc(100vh - 24px);
  }
  .mphu-notice__title {
    font-size: 21px;
  }
  .mphu-notice__body {
    font-size: 15px;
  }
  .mphu-notice__icon {
    width: 56px;
    height: 56px;
    font-size: 22px;
    margin-bottom: 16px;
  }
}

/* Mozgáscsökkentés kérése esetén nincs animáció. */
@media (prefers-reduced-motion: reduce) {
  .mphu-notice__backdrop,
  .mphu-notice__dialog {
    transition: none;
  }
}

/* --- Stílus-variánsok (appsettings: Notice:Style) -------------------------
   info    = arculati türkiz (alap)
   warning = borostyán (leállás, fontos figyelmeztetés)
   success = zöld (jó hír, elindult szolgáltatás)                          */

.mphu-notice--warning .mphu-notice__icon {
  background: rgba(199, 119, 0, .12);
  color: #c77700;
}
.mphu-notice--warning .mphu-notice__close {
  background: rgba(199, 119, 0, .12);
  color: #c77700;
}
.mphu-notice--warning .mphu-notice__close:hover {
  background: #c77700;
  color: var(--tj-color-common-white, #fff);
}

.mphu-notice--success .mphu-notice__icon {
  background: rgba(23, 133, 87, .12);
  color: #178557;
}
.mphu-notice--success .mphu-notice__close {
  background: rgba(23, 133, 87, .12);
  color: #178557;
}
.mphu-notice--success .mphu-notice__close:hover {
  background: #178557;
  color: var(--tj-color-common-white, #fff);
}
