/* ==========================
   Location Page Styles
   ========================== */

/* Hero section styling */
.location-page h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.location-page p.text-center {
  max-width: 700px;
  margin: 0 auto 1.2rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

/* Map container */
.map-container {
  margin: 2rem auto;
  max-width: 1000px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-main);
}

/* Responsive Google Maps iframe */
.map-container iframe{
  width: 100%;
  height: auto;             /* override the HTML height attr */
  aspect-ratio: 16 / 9;     /* compute height from width */
  display: block;
}

@media (max-width: 600px){
  .map-container iframe{
    aspect-ratio: 4 / 3;    /* a touch taller on small screens */
    min-height: 300px;      /* safety floor */
  }
}

/* Fallback for very old browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
  .map-container iframe{ height: 450px; }
}


/* Location details section */
.location-details {
  max-width: 800px;
  margin: 2rem auto;
  padding: 1rem;
  background-color: #fffefc;
  border: 1px solid #ffe7dc;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.location-details h2,
.location-details h3 {
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.location-details p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
}

.location-details ul {
  padding-left: 1.5rem;
  list-style-type: disc;
  margin-top: 0.5rem;
  color: var(--text);
}

.location-details ul li {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
}

/* Fade-in animation reuse */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .map-container iframe {
    height: 300px;
  }

  .location-details {
    padding: 0.8rem;
  }

  .location-page h1 {
    font-size: 1.6rem;
  }
}

.location-nav {
  margin: 1.5rem 0 2rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.location-nav a {
  background: #fff4ee;
  color: var(--primary-dark);
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 1rem;
  text-decoration: none;
  transition: background 0.2s ease;
}
.location-nav a:hover {
  background: var(--primary);
  color: white;
}
.branch-location {
  margin-top: 4rem;
}
.branch-location h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

/* Offset anchor targets for sticky header */
.branch-location{ scroll-margin-top: 96px; } /* adjust if your header height changes */
.location-nav a:focus-visible{
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
