/* Base styles */
body {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f4f6f8;
    color: #212529;
}

/* App Container */
.app-container {
    background-color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
}

/* Navbar */


/* Map Container */
#map-container {
    width: 95%;
    height: 400px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

/* Footer */
#footer-container {
    width: 100%;
    color: #231111;
    padding: 1rem;
    text-align: center;
    border-radius: 12px;
    margin-top: auto;
}

/* Search Form Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.card-title {
    font-size: 1.5rem;
    font-weight: 600;
}

.card-body .form-label {
    font-weight: 500;
    color: #495057;
}

#resultsContainer {
    background-color: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.05);
}

#routeResults li {
    margin-bottom: 0.5rem;
}

/* Image Fit */
.object-fit-cover {
    object-fit: cover;
    height: 100%;
}

/* Popup Styles */
.custom-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}

.custom-popup.hidden {
  display: none;
}

.popup-content {
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  text-align: center;
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

.popup-content h2 {
  margin-bottom: 1rem;
}

#popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  cursor: pointer;
  font-size: 1.5rem;
  color: #888;
}

#popup-close:hover {
  color: #000;
}

@keyframes fadeIn {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}


/* Responsive Styles */
@media (max-width: 599px) {
    .app-container {
        padding: 1rem;
    }

    #navbar-container,
    #footer-container {
        font-size: 1rem;
        padding: 0.75rem;
    }

    #map-container {
        height: 280px;
    }

    .card-title {
        font-size: 1.25rem;
    }
}

@media (min-width: 600px) and (max-width: 1024px) {
    .app-container {
        padding: 2rem;
    }

    #navbar-container,
    #footer-container {
        font-size: 1.1rem;
        padding: 1rem;
    }

    #map-container {
        height: 350px;
    }

    .card-title {
        font-size: 1.35rem;
    }
}

@media (min-width: 1025px) {
    .app-container {
        padding: 3rem;
    }

    #navbar-container,
    #footer-container {
        font-size: 1.3rem;
        padding: 1.25rem;
    }

    #map-container {
        height: 450px;
    }

    .card-title {
        font-size: 1.5rem;
    }
}
