/* ==========================================================================
   RSDC Locations Module
   ========================================================================== */

.hub-wrap,
.loc-wrap {
  font-family: "DM Sans", sans-serif;
  color: #1a2733;
}

.hub-wrap {
  width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
}

/* Hub - Hero */
.hub-hero {
  background: linear-gradient(135deg, #0e2a47 0%, #163d5f 100%);
  padding: 64px 24px 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hub-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(0, 184, 169, 0.07);
  pointer-events: none;
}

.hub-hero__inner {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.hub-hero__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #00b8a9;
  background: rgba(0, 184, 169, 0.13);
  border: 1px solid rgba(0, 184, 169, 0.28);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.hub-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 14px;
}

.hub-hero p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 32px;
}

.hub-hero__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 12px;
  text-decoration: none;
  transition: 0.2s ease;
}

.hub-hero__phone:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Hub - Breadcrumb */
.hub-breadcrumb {
  background: #eaf4fb;
  border-bottom: 1px solid #d8e6ec;
  padding: 0 24px;
  font-size: 12.5px;
  color: #5a6a78;
}

.hub-breadcrumb__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 11px 0;
}

.hub-breadcrumb a {
  color: #0d6e6e;
  text-decoration: none;
}

.hub-breadcrumb a:hover {
  text-decoration: underline;
}

.hub-breadcrumb span {
  margin: 0 7px;
  opacity: 0.4;
}

/* Hub - Stats */
.hub-stats {
  background: #fff;
  border-bottom: 1px solid #d8e6ec;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.hub-stat-item {
  padding: 18px 36px;
  text-align: center;
  border-right: 1px solid #d8e6ec;
}

.hub-stat-item:last-child {
  border-right: none;
}

.hub-stat-num {
  font-size: 1.7rem;
  font-weight: 700;
  color: #0d6e6e;
  line-height: 1;
  margin-bottom: 4px;
}

.hub-stat-lbl {
  font-size: 12px;
  color: #5a6a78;
}

/* Hub - Cards */
.hub-section {
  padding: 64px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hub-section h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: #0e2a47;
  margin: 0 0 8px;
}

.hub-section__sub {
  color: #5a6a78;
  font-size: 15px;
  margin-bottom: 40px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.hub-card {
  background: #fff;
  border: 1px solid #d8e6ec;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.hub-card:hover {
  box-shadow: 0 8px 32px rgba(14, 42, 71, 0.14);
  transform: translateY(-4px);
  border-color: #1a8f8f;
}

.hub-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #e6f5f5, #c5e8e8);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  position: relative;
}

.hub-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hub-card__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a8f8f;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 12px;
}

.hub-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hub-card__name {
  font-size: 1.08rem;
  font-weight: 700;
  color: #0e2a47;
  margin: 0 0 4px;
}

.hub-card__suburb {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1a8f8f;
  margin-bottom: 14px;
}

.hub-card__details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.hub-card__row {
  font-size: 13.5px;
  color: #5a6a78;
  line-height: 1.5;
}

.hub-card__row a {
  color: #0d6e6e;
}

.hub-card__footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid #d8e6ec;
  display: flex;
  gap: 10px;
}

.hub-card__btn {
  flex: 1;
  text-align: center;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.hub-card__btn--primary {
  background: #0d6e6e;
  color: #fff;
}

.hub-card__btn--primary:hover {
  background: #0b5c5c;
}

.hub-card__btn--outline {
  background: #e6f5f5;
  color: #0d6e6e;
}

.hub-card__btn--outline:hover {
  background: #cce9e9;
}

/* Hub - Map */
.hub-map-section {
  background: #f7fafb;
  border-top: 1px solid #d8e6ec;
  padding: 56px 24px;
}

.hub-map-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.hub-map-section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0e2a47;
  margin: 0 0 6px;
}

.hub-map-section p {
  color: #5a6a78;
  margin-bottom: 22px;
}

.hub-map-embed {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #d8e6ec;
  box-shadow: 0 2px 16px rgba(14, 42, 71, 0.08);
}

.hub-map-embed iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* Hub - CTA */
.hub-cta {
  background: linear-gradient(135deg, #0e2a47 0%, #163d5f 100%);
  padding: 72px 24px;
  text-align: center;
}

.hub-cta__inner {
  max-width: 580px;
  margin: 0 auto;
}

.hub-cta h2 {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin: 0 0 12px;
}

.hub-cta p {
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 30px;
}

.hub-cta__btns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-cta__btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hub-cta__btn--white {
  background: #fff;
  color: #0e2a47;
}

.hub-cta__btn--outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.38);
}

/* Single location page */
.loc-wrap {
  width: min(100%, 1200px);
  margin: 0 auto;
  padding: 20px 24px 64px;
  box-sizing: border-box;
}

.loc-breadcrumb {
  font-size: 13px;
  color: #556472;
  margin-bottom: 18px;
}

.loc-breadcrumb a {
  color: #0d6e6e;
  text-decoration: none;
}

.loc-breadcrumb span {
  margin: 0 8px;
  opacity: 0.45;
}

.loc-hero {
  background: linear-gradient(135deg, #0e2a47 0%, #163d5f 100%);
  border-radius: 20px;
  padding: 34px 28px;
  color: #fff;
  margin-bottom: 24px;
}

.loc-hero__label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #00b8a9;
  background: rgba(0, 184, 169, 0.14);
  border: 1px solid rgba(0, 184, 169, 0.3);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.loc-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  line-height: 1.2;
}

.loc-hero p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 760px;
  line-height: 1.7;
}

.loc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.loc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 10px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
}

.loc-btn--primary {
  background: #00b8a9;
  color: #08323f;
}

.loc-btn--ghost {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.loc-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}

.loc-info-card {
  background: #fff;
  border: 1px solid #d8e6ec;
  border-radius: 16px;
  padding: 20px;
}

.loc-info-card h2 {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: #0e2a47;
}

.loc-info-card ul {
  margin: 0;
  padding-left: 18px;
  color: #4f5e6b;
}

.loc-info-card li {
  margin-bottom: 8px;
  line-height: 1.55;
}

.loc-info-card a {
  color: #0d6e6e;
}

.loc-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.loc-chip {
  border: 1px solid #c8dde5;
  background: #f4fafc;
  color: #0e2a47;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 500;
}

.loc-team {
  margin-bottom: 26px;
}

.loc-team h2,
.loc-map h2,
.loc-faq h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
  color: #0e2a47;
}

.loc-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.loc-doctor {
  background: #fff;
  border: 1px solid #d8e6ec;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
}

.loc-doctor__img {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 10px;
  background: #e7f4f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #0d6e6e;
  font-weight: 700;
  font-size: 24px;
}

.loc-doctor__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loc-doctor h3 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: #0e2a47;
}

.loc-doctor p {
  margin: 0;
  font-size: 13px;
  color: #5a6a78;
}

.loc-map {
  margin-bottom: 26px;
}

.loc-map__frame {
  border: 1px solid #d8e6ec;
  border-radius: 16px;
  overflow: hidden;
}

.loc-map__frame iframe {
  width: 100%;
  height: 380px;
  border: none;
  display: block;
}

.loc-faq-list {
  border: 1px solid #d8e6ec;
  border-radius: 14px;
  overflow: hidden;
}

.loc-faq-item + .loc-faq-item {
  border-top: 1px solid #d8e6ec;
}

.loc-faq-q {
  width: 100%;
  border: 0;
  background: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #0e2a47;
  cursor: pointer;
}

.loc-faq-q[aria-expanded="true"] {
  background: #f4fafc;
}

.loc-faq-a {
  display: none;
  padding: 0 16px 14px;
  background: #f4fafc;
}

.loc-faq-a p {
  margin: 0;
  color: #4f5e6b;
  line-height: 1.7;
}

.loc-faq-item.is-open .loc-faq-a {
  display: block;
}

@media (max-width: 860px) {
  .loc-info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hub-stat-item {
    padding: 14px 18px;
    border-bottom: 1px solid #d8e6ec;
  }

  .hub-section,
  .hub-map-section {
    padding: 44px 20px;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .loc-wrap {
    padding: 16px 16px 50px;
  }

  .loc-hero {
    padding: 24px 18px;
  }
}
