/* ===============================
   MAP PAGE STYLES (Vanilla Version)
   =============================== */

/* Layout Wrappers */
#locations-hero {
  background: #fff;
  padding: 40px 0;
}

#locations-hero .page-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 2rem;
  color: #333;
  margin-bottom: 25px;
}

.wraptastic {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Sidebar Tools */
.tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 20px;
}

.tools-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tools-inner3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

#zipcode-search {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 200px;
  font-size: 15px;
}

#radius-filter {
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-size: 15px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn svg {
  fill: #fff;
}

.btn-primary {
  background-color: #dd513f;
  color: #fff;
}

.btn-primary:hover {
  background-color: #c03e2e;
  transform: scale(1.03);
}

.btn-secondary {
  background-color: #666;
  color: #fff;
}

.btn-secondary:hover {
  background-color: #444;
  transform: scale(1.03);
}

/* ===============================
   MAP CONTAINER
   =============================== */
#map-div {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  margin: 30px auto;
}

/* ===============================
   LOCATION CARDS
   =============================== */
.flexy-locations {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.locations-col-link {
  text-decoration: none;
  color: inherit;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.lc-outer {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background-color: #fff;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lc-outer:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.locations-col img.location-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.location-top {
  padding: 15px 20px 0;
}

.location-street {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: #dd513f;
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.location-city {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 8px;
}

.location-description {
  font-size: 0.9rem;
  color: #555;
}

.location-arrow {
  display: block;
  margin-top: 10px;
}

.location-bottom {
  border-top: 1px solid #eee;
  padding: 15px 20px 20px;
  font-size: 0.9rem;
  color: #444;
}

.location-bottom p {
  margin: 6px 0 2px;
  font-weight: 600;
  color: #222;
}

/* ===============================
   RESPONSIVE ADJUSTMENTS
   =============================== */
@media (max-width: 768px) {
  #zipcode-search {
    width: 100%;
  }

  .tools {
    flex-direction: column;
    align-items: stretch;
  }

  .tools-inner,
  .tools-inner3 {
    width: 100%;
    justify-content: space-between;
  }

  .flexy-locations {
    grid-template-columns: 1fr;
  }
}
