/* Larger visual hero; background image set via CSS var from JS */
:root {
  --location-hero-image: none;
}

.location-hero,
.location-detail-hero {
  background: var(--location-hero-image) center / cover no-repeat;
  min-height: 520px; /* larger header image as requested */
  display: flex;
  align-items: end;
}

.location-hero .location-hero-content {
  padding: 48px 0 36px;
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.25);
}

.location-hero h1 {
  margin: 0 0 6px;
}

.location-subtitle {
  margin: 0;
  opacity: 0.95;
}

/* Quick Contact Bar Section */
.section.section-light {
  padding: 40px 0;
}

.location-quick-contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* Action strip that uses your existing .btn styles - this is the hero action bar */
.location-actions-strip {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.location-actions-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px 0;
}

/* Two-column overview that collapses on mobile */
.location-overview,
.location-overview-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.location-main-content {
  /* Main content area styling */
}

@media (max-width: 980px) {
  .location-overview,
  .location-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* LOCATION SIDEBAR CARD - UNIQUE CLASS TO AVOID CONFLICTS */
.location-sidebar-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 20px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  text-align: left !important;
}

.location-sidebar-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #008dd0;
  font-size: 18px;
  font-weight: 600;
  text-align: left !important;
}

.location-sidebar-card h3 i {
  color: #008dd0;
  font-size: 22px;
}

.contact-info .hours-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
}

/* Location info details (sidebar) */
.location-sidebar-card .location-info-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.location-sidebar-card .location-info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  text-align: left !important;
}

.location-sidebar-card .location-info-item i {
  color: #008dd0;
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  width: 22px;
  text-align: center;
}

.location-sidebar-card .location-info-item > div {
  flex: 1;
  text-align: left !important;
}

.location-sidebar-card .location-info-item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.location-sidebar-card .location-info-item a {
  color: #008dd0;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
}

.location-sidebar-card .location-info-item a:hover {
  color: #763d76;
}

/* SIDEBAR BUTTONS - ULTRA SPECIFIC TO OVERRIDE EVERYTHING */
.location-sidebar-card .location-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 20px !important;
  padding-top: 16px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  text-align: center !important;
}

.location-sidebar-card .location-actions .btn {
  width: 100% !important;
  justify-content: center !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  text-align: center !important;
  cursor: pointer !important;
}

.location-sidebar-card .location-actions .btn i {
  font-size: 16px !important;
  margin: 0 !important;
}

.location-sidebar-card .location-actions .btn-primary {
  background: linear-gradient(135deg, #763d76 0%, #8b4a8b 100%) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(118, 61, 118, 0.25) !important;
}

.location-sidebar-card .location-actions .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(118, 61, 118, 0.35) !important;
  background: linear-gradient(135deg, #8b4a8b 0%, #763d76 100%) !important;
  color: white !important;
}

.location-sidebar-card .location-actions .btn-secondary {
  background: white !important;
  color: #763d76 !important;
  border: 2px solid #763d76 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

.location-sidebar-card .location-actions .btn-secondary:hover {
  background: #763d76 !important;
  color: white !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(118, 61, 118, 0.25) !important;
}

/* Simple features grid */
.location-features {
  margin-top: 40px;
}

.location-features-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  margin-top: 24px;
}

.feature-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #008dd0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.feature-item i {
  font-size: 36px;
  color: #763d76;
  margin-bottom: 12px;
}

.feature-item h4 {
  margin-bottom: 8px;
  color: #1a1a1a;
  font-size: 18px;
}

.feature-item p {
  font-size: 15px;
  color: #5a5a5a;
  margin: 0;
}

/* Location Services */
.location-services {
  margin-top: 40px;
}

.services-list {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  margin-top: 24px;
}

.service-card {
  background: #fff;
  border: 2px solid #f3f4f6;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: #008dd0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.service-card h4 {
  color: #763d76;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
}

.service-card p {
  font-size: 15px;
  color: #5a5a5a;
  margin: 0;
  line-height: 1.5;
}

/* Gallery */
.facility-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: 2fr 1fr;
}

.gallery-main img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 12px;
}

.gallery-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

.gallery-grid img {
  width: 100%;
  height: 173px;
  object-fit: cover;
  border-radius: 10px;
}

@media (max-width: 980px) {
  .facility-gallery {
    grid-template-columns: 1fr;
  }
  .gallery-main img {
    height: 300px;
  }

  .location-providers-grid {
    grid-template-columns: 1fr;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .location-features-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }

  .location-sidebar-card {
    padding: 20px !important;
  }
}

@media (max-width: 768px) {
  .location-overview-grid {
    grid-template-columns: 1fr;
  }

  .location-sidebar-card .location-actions .btn {
    padding: 12px 18px !important;
    font-size: 14px !important;
  }

  .location-sidebar-card {
    padding: 16px !important;
  }

  .location-sidebar-card h3 {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .location-sidebar-card .location-info-details {
    gap: 14px;
  }
}

/* Text utilities */
.text-secondary {
  color: #5a5a5a;
}

/* Force left alignment for location sidebar - override any centering from styles.css */
.location-sidebar-card,
.location-sidebar-card *:not(.location-actions):not(.location-actions *) {
  text-align: left !important;
}

.location-sidebar-card .location-actions,
.location-sidebar-card .location-actions * {
  text-align: center !important;
}

/* Section Heading */
.section-heading {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

/* Providers */
.location-providers-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.provider-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.provider-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.provider-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.provider-info {
  width: 100%;
}

.provider-info h3 {
  color: #763d76;
  font-size: 20px;
  margin-bottom: 4px;
  font-weight: 600;
}

.provider-specialty {
  color: #1a1a1a;
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 16px;
}

.provider-focus {
  color: #5a5a5a;
  font-size: 14px;
  margin-bottom: 16px;
}

.provider-availability {
  color: #0a7a33;
  font-weight: 700;
}

/* Directions */
.directions-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr 1fr;
}

.directions-map img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 12px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.tab-btn {
  /* relies on your site button defaults; only shape here */
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
}

.tab-btn.active {
  background: #f2f4f7;
}

.tab-content[hidden] {
  display: none;
}

.transport-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

/* Resources + CTA */
.resources-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.resource-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 14px;
}

.location-cta .cta-buttons,
.cta-section .cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #763d76 0%, #8b4a8b 100%);
  padding: 80px 5%;
  text-align: center;
  color: white;
}

.cta-content h2 {
  color: white;
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  font-weight: 600;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 20px;
  max-width: 800px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-section {
    padding: 60px 5%;
  }
}
