html, body {
  height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
}

body {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

#mainContent {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

#toggleTableBtn {
  margin: 5px 0 5px 5px;
  padding: 7px 20px;
  font-size: 16px;
}

#map {
  width: 100%;
  transition: height 0.3s;
  z-index: 1;
}
#map.fullscreen {
  height: calc(100vh - 110px) !important;
  min-height: 300px;
}
#map:not(.fullscreen) {
  height: 70vh;
  min-height: 400px;
}

#attributeTable {
  padding: 12px;
  background: #f7f7f7;
  transition: max-height 0.3s;
}
#attributeTable.hideTable {
  display: none;
}

#situlTable {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  margin-top: 8px;
}
#situlTable th, #situlTable td {
  border: 1px solid #ccc;
  padding: 5px 8px;
  text-align: left;
}
#situlTable th {
  background: #ffe066;
}

#loginScreen {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(50,50,50,0.55);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
}
#loginPanel {
  background: #fff;
  padding: 30px 35px;
  border-radius: 12px;
  box-shadow: 0 4px 32px #4444;
}

#paginationDiv {
  margin: 10px 0;
  text-align: center;
}

button {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid #bbb;
  background: #ffe066;
  color: #222;
  cursor: pointer;
}
button[disabled] { background: #eee; color: #aaa; cursor: default; }

input[type="text"], input[type="number"], input[type="password"] {
  padding: 2px 6px; border-radius: 3px; border: 1px solid #ccc;
}

/* ========== Popup Leaflet LAT, PLIN, MODERN ========== */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
  max-width: 680px !important;
  min-width: 600px !important;
  padding-left: 18px !important;
  padding-right: 18px !important;
  max-height: 800px !important;
  font-size: 1.11em;
  background: #fffbe6 !important;
  box-sizing: border-box;
  border-radius: 18px !important;
  box-shadow: 0 2px 24px #8882;
  border: 1.5px solid #ffe066 !important;
}

.leaflet-popup-content {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  max-height: 650px;
  overflow-y: auto !important;
}

/* "Truncate/Full" zone dacă ai multe detalii în popup */
.popup-truncated,
.popup-full {
  max-height: none !important;
  overflow: visible !important;
}

/* Buton "Continuare" lat, stil vizibil, margini mici */
.popup-more-btn {
  display: block;
  width: 100%;
  background: #1891e6;
  color: #fff;
  border: none;
  border-radius: 7px;
  padding: 7px 0;
  margin: 18px 0 0 0;
  text-align: center;
  font-size: 1.11em;
  font-weight: bold;
  box-shadow: 0 1px 5px #1891e62a;
  cursor: pointer;
  transition: background 0.2s;
}
.popup-more-btn:hover {
  background: #1572b6;
}

@media (max-width: 900px) {
  .leaflet-popup-content-wrapper, .leaflet-popup-tip {
    max-width: 99vw !important;
    min-width: 0 !important;
  }
}
