/*
 * Final CSS for the State Locations Page List
 */

/* Main container for the grid */
.location-list-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* Individual store card styling */
.location-card {
  background-color: #f6f6f6 !important;
  border: 1px solid #ecebeb !important;
  color: #212c28;
  padding: 25px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Styling for the temporary closure notice on location cards */
.location-card .card-closure-notice {
  background-color: #ed3e43;
  color: #ffffff;
  padding: 10px 15px;
  border-radius: 5px;
  margin: 15px 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.location-card-title {
  color: #212c28;
  font-size: 24px;
  font-weight: bold;
  margin-top: 0;
  margin-bottom: 30px;
  padding-bottom: 25px;
  text-align: left; /* ADDED: Align title to the left */
}

.location-card-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.location-card-details p.address,
.location-card-details p.phone {
  margin-bottom: 25px;
}

.location-card-details .hours {
  margin-bottom: 80px;
}

/* Base styles for all info items */
.location-card-details p,
.location-card-details .hours {
  margin-top: 0;
  line-height: 1.6;
  padding-bottom: 0px;
}

.location-card-details p.address,
.location-card-details p.phone {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.location-card-details .hours {
  position: relative;
  padding-left: 32px;
}

/* Shared styles for all icons */
.location-card-details p::before,
.location-card-details .hours::before {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 18px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.location-card-details p.address::before,
.location-card-details p.phone::before {
  margin-top: 2px;
}

.location-card-details .hours::before {
  position: absolute;
  left: 0;
  top: 2px;
}

.location-card-details p.address::before {
  content: "\f3c5";
}
.location-card-details p.phone::before {
  content: "\f095";
}
.location-card-details .hours::before {
  content: "\f017";
}

.location-card-details .hours p {
  margin: 0 0 5px 0;
}

.location-card-details p.phone a {
  color: #212c28;
  text-decoration: none;
}

.location-card-details p.phone a:hover {
  color: #b02329;
}

.location-card-buttons {
  margin-top: auto;
  padding-top: 15px;
  display: flex;
  gap: 10px;
}

.location-card-buttons .button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  color: #fff;
  background-color: #ed3e43;
  width: 100%;
  transition: all 0.3s ease;
}

.location-card-buttons .button:hover {
  opacity: 0.85;
}

.location-card-buttons .button i {
  font-size: 16px; /* Adjusted for better alignment */
}

/* Responsive layouts */
@media (max-width: 990px) {
  .location-list-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .location-list-container {
    grid-template-columns: 1fr;
  }

  .location-card-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .location-card-details .hours {
    margin-bottom: 40px;
  }

  .location-card-buttons {
    flex-direction: column;
  }
}

/* --- Store Finder Form --- */
.store-finder-form-container {
  background-color: #f6f6f6;
  /* border: 1px solid #ecebeb; */
  padding-top: 30px;
  border-radius: 8px;
  margin-bottom: 40px;
}
.store-finder-form label {
  display: block;
  font-size: 20px !important;
  font-weight: bold !important;
  text-align: left;
  color: #212c28;
  font-family: poppins;
}
.store-finder-state-links {
  text-align: left;
  margin-bottom: 15px;
  font-size: 17px;
}
.store-finder-state-links p {
  font-size: 15px !important;
  color: #b02329;
}
.store-finder-input-wrapper {
  display: flex;
  max-width: 500px;
  /* margin: 0 auto; */
}
.store-finder-input-wrapper input[type="text"] {
  flex-grow: 1;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  font-size: 14px;
  margin-right: 20px;
}
.store-finder-input-wrapper button {
  padding: 10px 20px;
  border: none;
  background-color: #ed3e43;
  color: white;
  font-size: 14px !important;
  text-transform: uppercase;
  border-radius: 0 5px 5px 0;
  cursor: pointer;
  transition: opacity 0.3s ease;
}
.store-finder-input-wrapper button:hover {
  opacity: 0.85;
}
.store-finder-results-title h3 {
  text-align: left;
  font-size: 28px;
}
.location-list-container.store-finder-results {
  padding-top: 40px;
}
.store-distance {
  font-weight: bold;
  text-align: left;
  color: #ed3e43;
  margin-bottom: 10px;
}
.store-finder-error {
  text-align: center;
  font-weight: bold;
  color: #b02329;
}
