/* Locations Page Specific Styles */

/* ===== Hero Section ===== */
.locations-hero {
  background-color: var(--purple-primary);
  padding: 4rem 0;
  text-align: center;
  font-family: "Rische", sans-serif;
}

.locations-hero h1 {
  font-family: "Rische", sans-serif;
  
}

.hero-logo-small {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
}

.hero-logo-small img {
  width: 7rem;
}

.hero-logo-small .logo-rio,
.hero-logo-small .logo-body {
  color: white;
  font-weight: 700;
}

.hero-logo-small .logo-wax {
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
}

/* ===== Map Section ===== */
.map-section {
  background-color: var(--gray-light);
}

.search-sidebar {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  height: 600px;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.map-loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9; /* Below the 'Use my location' button */
}

.map-loading-content {
  text-align: center;
  color: var(--purple-primary);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
}

.map-section .row {
  position: relative;
}

.search-box label {
  color: var(--purple-primary);
  font-size: 1.1rem;
}

.input-group .form-control {
  border: 2px solid var(--purple-light);
  border-right: none;
  padding: 0.75rem;
}

.input-group .form-control:focus {
  border-color: var(--purple-primary);
  box-shadow: none;
}

.btn-search {
  background-color: var(--purple-primary);
  color: white;
  border: 2px solid var(--purple-primary);
  padding: 0.75rem 1.5rem;
}

.btn-search:hover {
  background-color: var(--purple-dark);
  border-color: var(--purple-dark);
}

.locations-info {
  padding: 1rem 0;
  border-bottom: 2px solid var(--gray-light);
}

.locations-info a {
  color: var(--purple-primary);
  font-weight: 500;
}

.locations-info a:hover {
  color: var(--purple-dark);
}



/* ===== Locations List ===== */
.locations-list {
  margin-top: 1rem;
}

.location-item {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.location-item:hover {
  border-color: var(--purple-primary);
  box-shadow: 0 3px 10px rgba(139, 123, 158, 0.2);
  transform: translateX(5px);
}

.location-item.active {
  border-color: var(--purple-primary);
  background-color: rgba(139, 123, 158, 0.05);
}

.location-item.highlight {
  background-color: #f0e6f7; /* A light purple highlight */
  border-left: 4px solid var(--purple-primary); /* A purple border to indicate selection */
  transition: background-color 0.3s ease;
}

.location-item h6 {
  color: var(--purple-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.location-item p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.location-item small {
  color: #666;
}

.location-item .phone-link {
  color: var(--purple-primary);
  text-decoration: none;
  font-weight: 500;
}

.location-item .phone-link:hover {
  text-decoration: underline;
}

/* ===== Map Container ===== */
.map-container {
  position: relative;
  height: 600px;
  background-color: #f8f9fa;
  border-radius: 10px;
  overflow: hidden;
}

#map {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.current-location-marker {
  color: #8b7b9e;
  font-size: 24px;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.3);
}

.leaflet-popup-content {
  font-family: "Roboto", sans-serif;
  line-height: 1.6;
}

.leaflet-popup-content strong {
  color: #8b7b9e;
}

#map {
  width: 100%;
  height: 100%;
}

.btn-use-location {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: white;
  color: var(--purple-primary);
  border: 2px solid var(--purple-primary);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  border-radius: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
}

.btn-use-location:hover {
  background-color: var(--purple-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== Custom Map Info Window ===== */
.custom-info-window {
  padding: 1rem;
  max-width: 250px;
}

.custom-info-window h6 {
  color: var(--purple-primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.custom-info-window p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.custom-info-window .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

/* ===== Locations by State Section ===== */
.state-title {
  color: var(--purple-primary);
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  border-bottom: 3px solid var(--purple-primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.location-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  transition: all 0.3s ease;
}

.location-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
}

.location-card h5 {
  color: var(--purple-primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.location-card p {
  color: var(--text-dark);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Geolocation Modal ===== */
#geolocationModal .modal-content {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

#geolocationModal .text-purple {
  color: var(--purple-primary);
}

#geolocationModal .btn-purple {
  padding: 0.75rem 3rem;
  font-size: 1.1rem;
  letter-spacing: 1px;
}

/* ===== Loading Spinner ===== */
.loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
}

.spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.3rem;
  color: var(--purple-primary);
}

.text-purple {
  color: #6A0DAD !important;
}

/* ===== Responsive Styles ===== */
@media (max-width: 991px) {
  .search-sidebar {
    height: auto;
    max-height: 400px;
    margin-bottom: 2rem;
  }

  .map-container {
    height: 400px;
  }

  .btn-use-location {
    top: 10px;
    right: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .locations-hero {
    padding: 3rem 0;
  }

  .locations-hero h1 {
    font-size: 2rem;
  }

  .search-sidebar {
    padding: 1.5rem;
  }

  .location-card {
    margin-bottom: 1rem;
  }
}

/* ===== Custom Scrollbar for Sidebar ===== */
.search-sidebar::-webkit-scrollbar {
  width: 8px;
}

.search-sidebar::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 10px;
}

.search-sidebar::-webkit-scrollbar-thumb {
  background: var(--purple-light);
  border-radius: 10px;
}

.search-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--purple-primary);
}

/* ===== Distance Badge ===== */
.distance-badge {
  display: inline-block;
  background-color: var(--green-primary);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

/* ===== Route Line Styles (for Google Maps) ===== */
.route-info {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-top: 1rem;
}

.route-info h6 {
  color: var(--purple-primary);
  font-weight: 600;
}

.route-info .route-details {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.route-info .route-details span {
  font-weight: 500;
}

/* ===== Coming Soon Styles ===== */
.coming-soon-badge {
  display: inline-block;
  background: var(--green-primary);
  color: white;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.location-item.coming-soon {
  border-left: 4px solid #6b8b7a;
  background: linear-gradient(to right, rgba(255, 152, 0, 0.05), transparent);
}

.location-item.coming-soon h5 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}


.btn-coming-soon {
    background-color: var(--green-primary);
    color: var(--white);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.btn-coming-soon:hover {
  background-color: var(--green-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.location-card.coming-soon-card {
  position: relative;
  overflow: hidden;
  border: 2px solid #6b8b7a;
}

.location-card.coming-soon-card h5 {
    color: var(--green-primary);
}

.coming-soon-ribbon {
  position: absolute;
  right: -35px;
  background: var(--green-primary);
  color: white;
  padding: 0.3rem 2.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px #6b8b7a;
  z-index: 1;
}
