body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.button-label {
  display: none !important;
}



/* Alapbeállítás: minden nézetben vízszintesen, egymás mellett legyenek az ikonok */
.floating-button {
  font-size: 24px;
  padding: 10px;
  border: none;
  background-color: transparent; /* Teljesen átlátszó háttér */
  cursor: pointer;
  border-radius: 50%;
}

.icon-img {
  width: 20px;
  height: 20px;
  opacity: 0.7; /* Enyhén áttetsző ikon */
  transition: opacity 0.3s;
}

.icon-img:hover {
  opacity: 1; /* Hover-re élesebb legyen */
}

/* Mobil nézet: elrejtjük a címkéket */
@media (max-width: 768px) {
  .button-label {
    display: none;
  }
}

/* Úszó gombok */
.floating-buttons {
  position: fixed;
  bottom: 10px;
  left: 20px;
  display: flex;
  gap: 10px;
  z-index: 1000;
  flex-wrap: wrap;
}

.floating-button {
  background-color: #7bc9c9;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.floating-button:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0.9;
  z-index: 2000;
}

/* Modalok */
.bottom-modal {
  display: none;
  position: fixed;
  bottom: 0;
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  z-index: 999;
  animation: slideUp 0.3s ease-out;
  max-height: 70%;
  width: 90%;
  left: 50%;
  transform: translateX(-50%);
  overflow-y: auto;
}

@keyframes slideUp {
  from {transform: translateY(100%);}
  to {transform: translateY(0);}
}

.center-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  z-index: 1000;
  width: 90%;
  max-width: 400px;
  max-height: 80%;
  overflow-y: auto;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -40%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  font-size: 18px;
}

.modal-body {
  padding: 15px;
  font-size: 16px;
}

.small-popup {
  display: none;
  position: fixed;
  bottom: 80px;
  left: 20px;
  background: white;
  color: black;
  padding: 8px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 14px;
  z-index: 1000;
}

@keyframes fadeInOut {
  0% { opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { opacity: 0; }
}

.fade-popup {
  animation: fadeInOut 3s forwards;
}

.family-list {
  list-style-type: none;
  padding: 0;
}

.family-list li {
  margin: 10px 0;
  cursor: pointer;
  color: #4CAF50;
}

.family-list li:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .floating-buttons {
    gap: 8px;
    bottom: 15px;
    left: 15px;
  }
  .floating-button {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  .bottom-modal, .center-modal {
    width: 95%;
    max-height: 65%;
  }
  .modal-header {
    font-size: 16px;
  }
  .modal-body span {
    font-size: 14px;
  }
  .small-popup {
    font-size: 12px;
  }
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
}

/* Bal oldali ikon */
.icon-button {
  position: fixed;
  top: 85%;
  left: 0;
  transform: translateY(-50%);
  background-color: #4CAF50; /* világoskék */
  border: 2px solid #88c4f7;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 10000;
  font-size: 1.0rem;
}

/* Modal háttér overlay (középre igazításhoz szükséges) */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Modal ablak */
.modal-container {
  background-color: #ffffff;
  border: 2px solid #ccc;
  padding: 1rem 1.2rem 1rem 1rem;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

.modal-header {
  font-weight: bold;
  font-size: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.close-btn {
  cursor: pointer;
  font-size: 0.9rem;
  border: none;
  background: none;
  padding: 4px 8px;
  color: #555;
}

/* Modal szöveg középre igazítása */
.modal-body {
  font-size: 0.8rem;
  line-height: 1.0;
  text-align: center; /* Középre igazítja a szöveget */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.modal-body strong {
  display: block;
  margin-top: 1.0rem;
}

.kek-szoveg {
	font-size: 16px; /* vagy például 24px */
  color: #196bc2; /* Bootstrap kék, de cserélhető más árnyalatra is */
  font-weight: normal;
}

/* ===== KÉNYSZERÍTETT MEGJELENÍTÉS az index.html JS-éhez (.is-open) ===== */

/* Alapból legyenek rejtve */
#updatePopup,
#maintainerModal,
#familyModal {
  display: none;
}

/* JS ezt kapcsolja: .is-open -> látható */
#updatePopup.is-open {
  display: block;
}

#maintainerModal.is-open,
#familyModal.is-open {
  display: block;
  z-index: 20000; /* Leaflet fölé */
}
.floating-button-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}

#maintainerModal.is-open,
#familyModal.is-open {
  display: block;
  z-index: 20000; /* Leaflet fölé */
}
