/* --- LOCATION PAGE (consistent with Home / Providers) --- */

/* HERO */
.location-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 0;
}
.location-hero h2 {
  font-size: clamp(2rem, 3.2vw, 2.4rem);
  color: var(--section-heading-color);
}
.location-hero .lead {
  margin-top: 0.35rem;
  color: var(--text-color);
  line-height: 1.8;
}

/* UNIFIED BUTTONS */
.btn, .btn-primary {
  --btn-bg: var(--primary-color);
  --btn-bg-hover: var(--primary-600);
  --btn-text: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;

  min-height: 44px;
  padding: .6rem 1rem;
  border-radius: 6px;
  border: 0;
  background-color: var(--btn-bg);
  color: var(--btn-text);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s ease, transform .06s ease;
}
.btn:hover, .btn-primary:hover { background-color: var(--btn-bg-hover); }
.btn:active, .btn-primary:active { transform: translateY(1px); }

/* keep white text across states */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.btn-primary:focus-visible { color: #fff !important; text-decoration: none; }

/* Link-style button */
.btn-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  font-weight: 700; color: var(--primary-color); text-decoration: none;
}
.btn-link:hover { color: var(--primary-700); text-decoration: underline; }

/* GRID */
.location-grid {
  display: grid;
  grid-template-columns: 1fr; /* mobile: stack */
  gap: clamp(.8rem, 2vw, 1.2rem);
  max-width: var(--container-max-width);
  margin: 1rem auto 2.5rem;
  padding: 0 1.25rem;
}

/* Map card (no visible border; soft shadow like Home) */
.map-card {
  background: #fff;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--box-shadow-soft);
  overflow: hidden;
}

/* Responsive map frame */
.map-frame {
  position: relative;
  width: 100%;
  background: var(--light-background);
  overflow: hidden;
}

/* Fallback for browsers without aspect-ratio */
.map-frame::before {
  content: "";
  display: block;
  padding-top: 80%; /* ~5:4 feel on desktop */
}

/* Use aspect-ratio when supported */
@supports (aspect-ratio: 1 / 1) {
  .map-frame { aspect-ratio: 5 / 4; }
  .map-frame::before { display: none; }
}

/* The iframe fills the frame exactly—no border */
.map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Map actions (buttons under the map) */
.map-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  align-items: center;
  padding: .9rem 1rem;
  background: #fff;
}

/* INFO COLUMN */
.info-col {
  display: grid;
  gap: .9rem;            /* slightly tighter to pull content up */
}
.contact-card {
  background: #fff;
  border: 1px solid #e6edf0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  box-shadow: var(--box-shadow-soft);
}
.contact-card h3 {
  margin: 0 0 .35rem;
  color: var(--section-heading-color);
}
.hours {
  list-style: none;
  margin: .25rem 0 0;
  padding: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .25rem 0;
  border-bottom: 1px dashed #e6edf0;
}
.hours li:last-child { border-bottom: 0; }

/* CTA (no "or") */
.contact-cta {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: .25rem;
}
.cta-sep { display: none !important; }

/* RESPONSIVE */
@media (min-width: 768px) {
  .location-grid {
    /* Make the map a bit larger, info narrower */
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: start;
  }
  /* Slightly wider map aspect on tablets/desktop */
  @supports (aspect-ratio: 1 / 1) {
    .map-frame { aspect-ratio: 4 / 3; }
  }
  .map-frame::before { padding-top: 75%; }
}

@media (max-width: 767px) {
  /* Taller map on phones for usability */
  @supports (aspect-ratio: 1 / 1) {
    .map-frame { aspect-ratio: 4 / 5; }
  }
  .map-frame::before { padding-top: 125%; }
}
