/* styles/map.css */
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  display: flex;
  flex-direction: column;
}
header {
  background: #ffffff;
  color: white;
  padding: 1em;
  position: relative;
  z-index: 1000;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.logo {
  height: 100px;
}
.map-nav {
  display: flex;
}
.map-nav a {
  color: black;
  text-decoration: none;
  margin-left: 20px;
  font-weight: bold;
  font-size: 0.95em;
}
.map-nav a:hover {
  text-decoration: underline;
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: black;
  font-size: 1.5em;
  cursor: pointer;
}
@media (max-width: 768px) {
  .map-nav {
    display: none !important;
    flex-direction: column;
    background-color: white;
    position: absolute;
    top: 100%;
    right: 1em;
    padding: 1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1001;
  }
  .map-nav.open {
    display: flex !important;
  }
  .map-nav a {
    margin: 0.5em 0;
  }
  .menu-toggle {
    display: block;
  }
}
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}
main {
  display: flex;
  flex-direction: column;
  position: relative;
}
.map-wrapper {
  padding: 0 2.5%;
  display: flex;
  justify-content: center;
  position: relative;
}
#map {
  height: 80vh;
  width: 100%;
  max-width: 1200px;
  border-radius: 8px;
}
footer {
  background: #ecf0f1;
  text-align: center;
  padding: 1em;
  font-size: 0.9em;
}
#info-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  padding: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1002;
  display: none; /* <-- HIDDEN by default */
}

#info-panel.show {
  transform: translateX(0%);
  display: block; /* <-- SHOWN when active */
}

#close-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5em;
  border: none;
  background: none;
  cursor: pointer;
}
#info-content {
  margin-top: 40px;
}
#swipe-hint {
  text-align: center;
  margin-bottom: 10px;
  font-size: 1rem;
  opacity: 0.6;
  display: none;
}
.swipe-arrow {
  display: inline-block;
  animation: swipeWiggle 1.5s ease-in-out infinite;
  font-size: 1.2em;
}
@keyframes swipeWiggle {
  0% { transform: translateX(0); }
  50% { transform: translateX(8px); }
  100% { transform: translateX(0); }
}
@media (hover: none) and (pointer: coarse) {
  #swipe-hint {
    display: block;
  }
}
.floating-logo {
  position: absolute;
  bottom: 20px;
  left: 40px;
  width: 100px;
  z-index: 1001;
  opacity: 0.9;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
@media (max-width: 768px) {
  #info-panel.show ~ .floating-logo {
    opacity: 0;
    pointer-events: none;
  }
}
.route-description {
  background: #f9f9f9;
  padding: 2em 1em;
  border-top: 1px solid #ddd;
}
.route-description .content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.route-description h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.route-pois {
  background: #f9f9f9;
  padding: 2em 1em;
  border-top: 1px solid #ddd;
}
.route-pois .content {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}
.route-pois h2 {
  font-size: 1.5em;
  margin-bottom: 0.5em;
}

.custom-fullscreen {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  font-size: 1.2em;
  background: white;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.map-wrapper.fullscreen-mode {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: white;
}
.map-wrapper.fullscreen-mode #map {
  height: 100%;
  width: 100%;
  border-radius: 0;
}
.map-wrapper.fullscreen-mode .floating-logo {
  bottom: 20px;
  left: 20px;
  top: auto !important;
  transform: translateY(0);
}
@media (max-width: 768px) {
  .map-wrapper.fullscreen-mode .floating-logo {
    bottom: 20px;
    left: 20px;
    top: auto;
    transform: translateY(0);
  }
}

.intro-section {
  padding: 2em;
  background: #fefefe;
}

.intro-container {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  max-width: 1000px;
  margin: 0 auto;
}

.intro-logo {
  width: 180px;
  max-width: 100%;
  height: auto;
  flex-shrink: 0;
}

.intro-text {
  flex: 1;
}

.intro-text h1 {
  margin-top: 0;
  font-size: 2em;
}

.intro-text ul {
  padding-left: 1.2em;
}

.intro-text li {
  margin-bottom: 0.5em;
}

@media (max-width: 600px) {
  .intro-container {
    flex-direction: column;
    align-items: center;
    text-align: left;
    padding-right: 1em;
  }

  .intro-logo {
    margin-bottom: 1em;
  }

  .intro-text {
    width: 100%;
  }
}

.map-title {
  text-align: center;
}

.map-legend {
  background: #fff;
  padding: 2em 1em;
  border-top: 1px solid #ddd;
}

.map-legend .content {
  max-width: 800px;
  margin: 0 auto;
}

.legend-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1em 2em;
  align-items: center;
}

.legend-list li {
  display: flex;
  align-items: center;
  font-size: 1rem;
}

.legend-list img {
  width: 30px;
  height: 38px;
  margin-right: 0.5em;
}

.pulsing-dot {
  width: 15px;
  height: 15px;
  background: #3b9ddd;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(59, 157, 221, 0.4);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 157, 221, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(59, 157, 221, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 157, 221, 0);
  }
}

#scroll-down-hint {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1001; /* Below info panel (1002), above map */
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  font-size: 0.9em;
  border: 1px solid #ccc;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}




.locate-wrapper {
  position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  z-index: 1002;
  pointer-events: auto;
}

#locate-user {
  all: unset; /* reset unwanted button styling */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4em;
  background: white;
  padding: 0px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  /*border: 1px solid #ccc;*/
  cursor: pointer;

}

#toggle-3d {
  all: unset; /* reset unwanted button styling */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4em;
  background: white;
  padding: 0px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  /*border: 1px solid #ccc;*/
  cursor: pointer;

}
/*
.custom-fullscreen {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  font-size: 1.2em;
  background: white;
  border: 1px solid #ccc;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

 */
.custom-fullscreen {
  all: unset; /* reset unwanted button styling */
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.4em;
  background: white;
  padding: 0px;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  /*border: 1px solid #ccc;*/
  cursor: pointer;

}

.custom-marker.pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin-top: -25px;  /* Half of height */
  margin-left: -25px; /* Half of width */
  border-radius: 50%;
  border: 3px solid #ff6600;
  animation: pulse-ring 1.5s ease-out 6;
  pointer-events: none;
  z-index: -1;
}


@keyframes pulse-ring {
  0% {
    transform: scale(0.5);
    opacity: 0.8;
  }
  80% {
    transform: scale(1.8);
    opacity: 0;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Default: horizontal layout */
.poi-entry {
  display: flex;

  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid #ccc;
  font-family: 'Segoe UI', sans-serif;
}

/* Image styling */
.poi-image {
  display: flex;
  flex-direction: column;
  width: 200px;
  height: 200px;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  flex-shrink: 0;
}

/* Text block styling */
.poi-text {
  flex: 1;
}

.photo-credit {
  font-size: 10px;
  color: #888;
  font-style: italic;
}


/* Responsive: stack on small screens */
@media (max-width: 600px) {
  .poi-entry {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .poi-image {
    margin-bottom: 12px;
  }

  .poi-text {
    text-align: left;
    width: 100%;
  }
}

.poi-title {
  margin: 0 0 6px;
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
}

.poi-description {
  margin-bottom: 6px;
  font-size: 0.95em;
  color: #444;
}

.show-on-map {
  display: inline-block;
  font-size: 0.9em;
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.show-on-map:hover {
  color: #ff6600;
  text-decoration: underline;
}

.read-more-url {
  display: inline-block;
  font-size: 0.9em;
  color: #0066cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-more-url:hover {
  color: #ff6600;
  text-decoration: underline;
}

.user-location-dot {
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

.custom-ctrl {
  position: absolute;
  top: 100px;
  right: 10px;
  background: white;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: bold;
  z-index: 999;
}
