/* style.css */

/* 
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f4f4f4;
  color: #333;
}

.hero {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.hero-picture {
  width: 100%;
  height: 250px;
  background-image: url('hero.jpg');
  background-image: image-set(
    url('hero.avif') type("image/avif"),
    url('hero.jpg') type("image/jpeg")
  );
  background-size: cover;
  background-position: center 50%;
  background-repeat: no-repeat;
}

@media screen and (min-width: 500px) {
  .hero-picture {
    height: 400px;
  }
}

.intro-text {
  padding: 1rem;
  background: #fff;
  text-align: center;
}

.search {
  padding: 1rem;
  background: #e6f2e6;
  display: flex;
  justify-content: center;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  min-width: 160px;
  text-align: left;
}

.search-field label {
  font-weight: bold;
  margin-bottom: 0.3rem;
}

.search-field input,
.search-field select {
  padding: 0.5rem;
  width: 100%;
  box-sizing: border-box;
}

.search-button button {
  padding: 0.6rem 1rem;
  margin-top: 1.4rem;
  cursor: pointer;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 4px;
}

.search-button button:hover {
  background-color: #45a049;
}

@media (max-width: 600px) {
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }

  .search-button {
    margin-top: 0;
  }

  .search-button button {
    margin-top: 0.5rem;
    width: 100%;
  }
}
*/

/* Remaining CSS (not inlined) stays active */

#map {
  height: 400px;
  margin: 1rem;
}

#results {
  padding: 1rem;
}

.result-item {
  background: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #4CAF50;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.result-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.results-map-container {
  display: none; /* hidden until search */
  flex-direction: row;
  height: 500px;
  margin: 1rem;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#results {
  width: 35%;
  overflow-y: auto;
  padding: 1rem;
  border-right: 1px solid #ccc;
}

#map {
  width: 65%;
  height: 100%;
}

/* Remove outdated image styles */
.hero img {
  display: none;
}

/* footer related */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#footer-container {
  display: none; /* hidden by default */
}

footer {
  background: #e6f2e6;
  padding: 1rem;
  text-align: center;
  color: #333;
  font-size: 0.9rem;
  margin-top: auto; /* pushes footer to bottom if content is short */
}

.footer-content {
  max-width: 960px;
  margin: 0 auto;
}

/* CSS to support bouncing only the visual part of the marker */
.leaflet-marker-icon .bounce-inner {
  display: inline-block;
  animation: bounce 0.7s ease;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.no-results {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: #777;
  text-align: center;
}

.no-results p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.no-results .exclamation {
  font-size: 3rem;
  color: #bbb;
  font-weight: bold;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); opacity: 0.7; }
  50%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
