/* Info súgó (js/info-sugo.js): buborék asztali gépen, alsó panel mobilon.
   A buborék és a panel méretei em-ben vannak: a JS a font-size-t a mobil kicsinyítéséhez igazítja. */
.info-sugo-btn {
  display: inline-block;
  width: 28px;
  height: 28px;
  margin: 0 0 0 2px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  line-height: 0;
  vertical-align: middle;
  cursor: pointer;
}
.info-sugo-btn img { width: 15px; height: 15px; }
.info-sugo-btn:focus { outline: 2px solid #1f7fb0; outline-offset: 1px; }
.info-sugo-btn[aria-expanded="true"] { background: #e3eff6; }
/* csak forrás a JS-nek; a screen.css "label span { display: inline-block }" felülírná a hidden attribútumot */
.info-sugo-tartalom { display: none !important; }

/* buborék */
.info-sugo-bubble {
  position: absolute;
  z-index: 1070;
  width: 21.5em;
  max-width: calc(100vw - 16px);
  padding: 0.7em 1em;
  background: #fff;
  color: #333;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 0.45em;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  font-size: 14px;
  font-weight: normal;
  line-height: 1.5;
  text-align: left;
  box-sizing: border-box;
}
.info-sugo-bubble a { display: inline-block; margin-top: 0.4em; font-weight: bold; }
/* hosszú szövegnél (pl. szobatársítás) a buborék görgethető, ne lógjon ki a képernyőről */
.info-sugo-bubble-body { max-height: 60vh; overflow-y: auto; }

.info-sugo-nyil {
  position: absolute;
  top: 100%;
  margin-left: -8px;
  border: 8px solid transparent;
  border-top-color: #fff;
}
.info-sugo-nyil:before {
  content: "";
  position: absolute;
  left: -9px;
  top: -7px;
  border: 9px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.25);
  z-index: -1;
}
.info-sugo-bubble.lent .info-sugo-nyil {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #fff;
}
.info-sugo-bubble.lent .info-sugo-nyil:before {
  top: auto;
  bottom: -7px;
  border-top-color: transparent;
  border-bottom-color: rgba(0, 0, 0, 0.25);
}

/* alsó panel */
.info-sugo-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1060;
  background: rgba(0, 0, 0, 0);
  transition: background 0.22s;
}
.info-sugo-sheet.is-open { background: rgba(0, 0, 0, 0.45); }
.info-sugo-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 80vh;
  overflow-y: auto;
  padding: 0 1em 1em;
  padding-bottom: calc(1em + env(safe-area-inset-bottom, 0px));
  background: #fff;
  color: #333;
  border-radius: 1em 1em 0 0;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  transform: translateY(100%);
  transition: transform 0.22s ease-out;
}
.info-sugo-sheet.is-open .info-sugo-sheet-panel { transform: none; }
.info-sugo-grip {
  width: 2.5em;
  height: 0.25em;
  margin: 0.5em auto 0;
  border-radius: 0.125em;
  background: #d5d5d5;
}
.info-sugo-sheet-fej {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5em 0;
  margin-bottom: 0.5em;
  border-bottom: 1px solid #e5e5e5;
  font-size: 1.125em;
}
.info-sugo-zar {
  width: 1.45em;
  height: 1.45em;
  padding: 0;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 1.6em;
  line-height: 1;
  cursor: pointer;
}
.info-sugo-sheet-body a { display: inline-block; margin-top: 0.6em; padding: 0.25em 0; font-weight: bold; }
body.info-sugo-nyitva { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .info-sugo-sheet,
  .info-sugo-sheet-panel { transition: none; }
}
