/* --- Legend Control Styles --- */
.legendControl {
  background: rgba(255,255,255,0.95);
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  padding: 0;
  min-width: 180px;
  max-width: 260px;
  font-size: 15px;
  transition: max-height 0.2s;
  overflow: hidden;
}
.legendControl .legendToggle {
  width: 100%;
  background: #0062ff;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 6px 0;
  font-size: 16px;
  cursor: pointer;
  outline: none;
}
.legendControl .legendContent {
  padding: 10px 14px 10px 14px;
  display: block;
}
.legendControl.collapsed .legendContent {
  display: none;
}
.legendControl i {
  margin-right: 8px;
  font-size: 1.2em;
}
.legend-items {
    display: flex;
    flex-direction: column;
}

.legendLine {
    display: flex;
    align-items: center;
}

.legendItem_label {
    display: flex;
    align-items: center;
}

.legendEnableAllButton {
    background: #0062ff;
    color: #fff;
    border: none;
    border-radius: 3px;
    padding: 3px 10px;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    margin-top: 10px;
}

body {
    height: 100vh;
    margin: 0;
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
}

html, body {
    font-family: Arial, sans-serif;
}

h1 {
    padding-top: 10px;
    margin: 0;
}

fieldset {
    border: none;
    padding: 0;
    margin-bottom: 0;
}

.introduction {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#map {
    flex: 1;
    border: 2px solid #ccc;
    margin-bottom: 10px;
}

.markerShortInfo {
    display: flex;
    flex-direction: column;
    min-width: 200px;
    max-width: 400px;
    padding: 5px 10px;
    font-size: 14px;
    color: #333;
    background-color: #f9f9f9;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    word-break: break-word;
    white-space: normal;
    text-align: center;
}

.marker-title_modern-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.marker-title_ancient-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.popup-title_modern-name {
    font-size: 1.2em;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.popup-title_ancient-name {
    font-size: 1.1em;
    font-weight: bold;
    color: #555;
    margin-bottom: 5px;
}

.popup-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-image {
    max-width: 100%;
    max-height: 400px;;
    height: auto;
    width: auto;
    border-radius: 5px;
    box-shadow: 1px 2px 4px 1px rgba(0, 0, 0, 0.75);
    margin-bottom: 5px;
}

.image-caption {
    font-size: 0.9em;
    color: #333;
    text-align: center;
    margin-top: 5px;
}

.image-credit {
    font-size: 0.8em;
    color: #555;
    text-align: center;
    margin-top: 5px;
}

.image-by {
    font-weight: bold;
    color: #333;
}

.image-license {
    font-style: italic;
    color: #777;
}

.emphasis-primary {
    font-weight: bold;
}

.emphasis-secondary {
    font-style: italic;
}

/* Customize the pop-up content */
.leaflet-popup-content {
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #333;
    max-width: 600px;
}

/* Add custom styles for images in pop-ups */
.leaflet-popup-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 5px;
}

/* Optional: Customize the pop-up container */
.leaflet-popup-content-wrapper {
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.icon-medium {
    font-size: 1.5em;
}