body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f8f9fa;
  line-height: 1.6;
  overflow: hidden;
}

.header {
  text-align: center;
  padding: 20px;
  background-color: white;
  box-shadow: 0 2px 4px rgb(0 0 0 / 10%);
  position: relative;
  z-index: 100;
}

.header h1 {
  color: #2c3e50;
  margin: 0 0 5px;
  font-size: 2em;
}

.header p {
  color: #7f8c8d;
  font-size: 1em;
  margin: 0;
}

.admin-link,
.gallery-link {
  position: absolute;
  right: 20px;
  color: #3498db;
  text-decoration: none;
  font-weight: bold;
  z-index: 101;
}

.gallery-link {
  top: 20px;
}

.admin-link {
  top: 50px;
}

.admin-link:hover,
.gallery-link:hover {
  text-decoration: underline;
}

.map-container {
  position: relative;
  height: calc(100vh - 120px);
  width: 100%;
}

#map {
  height: 100%;
  width: 100%;
  z-index: 1;
}

/* Custom marker styling */
.custom-marker {
  background: none;
  border: none;
}

.marker-pin {
  width: 32px;
  height: 32px;
  position: relative;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 2px 6px rgb(0 0 0 / 40%);
  cursor: pointer;
  transition: all 0.2s ease;
}

.marker-pin::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 12px solid #764ba2;
  transform: translateX(-50%);
  filter: drop-shadow(0 2px 2px rgb(0 0 0 / 30%));
}

.custom-marker:hover .marker-pin {
  transform: scale(1.15);
  box-shadow: 0 3px 10px rgb(0 0 0 / 50%);
}

/* Travel line styling */
.travel-line {
  filter: drop-shadow(0 2px 3px rgb(0 0 0 / 30%));
}

/* Arrow marker styling */
.arrow-marker {
  background: none;
  border: none;
}

/* Cluster styling */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  box-shadow: 0 3px 8px rgb(0 0 0 / 40%) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  font-weight: bold !important;
  text-align: center !important;
  line-height: 1.4 !important;
}

/* Sidebar styles */
.sidebar {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 8px rgb(0 0 0 / 20%);
  z-index: 1000;
  overflow-y: auto;
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(100%);
}

.sidebar-header {
  padding: 20px;
  background-color: #2c3e50;
  color: white;
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sidebar-header h2 {
  margin: 0;
  font-size: 1.5em;
  flex-grow: 1;
}

.sidebar-close {
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sidebar-close:hover {
  opacity: 0.7;
}

.sidebar-content {
  padding: 20px;
}

.sidebar-picture {
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #ecf0f1;
}

.sidebar-picture:last-child {
  border-bottom: none;
}

.sidebar-picture img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.sidebar-picture img:hover {
  transform: scale(1.02);
}

.sidebar-picture .picture-description {
  color: #555;
  margin: 10px 0 5px;
  font-style: italic;
}

.sidebar-picture .picture-date {
  color: #8e44ad;
  font-size: 0.9em;
  margin: 5px 0 0;
}

/* Modal styles for full-size image viewing */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0 0 0 / 90%);
}

.modal-content {
  display: block;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: #ccc;
}

/* Responsive design */
@media (width <= 768px) {
  .sidebar {
    width: 100%;
    max-width: 100%;
  }

  .header h1 {
    font-size: 1.5em;
  }

  .header p {
    font-size: 0.9em;
  }

  .admin-link,
  .gallery-link {
    position: static;
    display: inline-block;
    margin: 10px 10px 0 0;
    font-size: 0.9em;
  }

  .map-container {
    height: calc(100vh - 140px);
  }
}
