/* Locations page (/location/). Template: "Locations Archive Page". Markup for cards/FAQ: inc/avesta-locations.php. px only (root font is 62.5%). */

body.avesta-la-page { background: linear-gradient(180deg, #d9e7f3 0, #eaf2f9 520px, #fbfcfe 900px) !important; }

/* hero: room for the photo + stats card */
.avesta-lp.avesta-la__hero { padding: clamp(8px, 1.5vw, 16px) 0 0 !important; }
.avesta-lp .avesta-la__hero .avesta-lp__crumbs { padding-top: 10px; }
.avesta-lp .avesta-la__hero .avesta-lp__hero-grid { margin-top: 18px; }
.avesta-lp .avesta-la__hero .avesta-lp__h1 { font-size: clamp(32px, 4.2vw, 50px); }

/* section rhythm */
.avesta-lp.avesta-la__sec { padding-block: clamp(44px, 6vw, 84px) 0 !important; }
.avesta-lp.avesta-la__sec--last { padding-bottom: clamp(44px, 6vw, 84px) !important; }

/* clinic cards: 3 + 2 on desktop, 2 columns on tablets, 1 on phones */
.avesta-la__cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.avesta-la__card { grid-column: span 2; background: #fff; border-radius: 20px; box-shadow: var(--lp-shadow-card, 0 8px 24px rgba(10, 34, 41, .06)); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
.avesta-la__card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(10, 34, 41, .14); }
.avesta-la__card:nth-child(4) { grid-column: 2 / span 2; }
.avesta-la__card:nth-child(5) { grid-column: 4 / span 2; }
.avesta-la__ph { display: block; aspect-ratio: 16 / 10; background: #dbe6ef; overflow: hidden; }
.avesta-la__ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.avesta-la__card:hover .avesta-la__ph img { transform: scale(1.03); }
.avesta-la__body { padding: 22px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.avesta-la__body h3 { font: 700 26px/1.15 var(--lp-head, 'Gentium Plus', Georgia, serif); margin: 0 0 6px; color: var(--lp-text, #0c1a27); }
.avesta-la__body h3 a { color: inherit; text-decoration: none; }
.avesta-la__body h3 a:hover { color: var(--lp-primary-dark, #1a5565); }
.avesta-la__tag { margin: 0 0 14px; font-size: 15.5px; line-height: 1.45; color: var(--lp-muted, rgba(12, 26, 39, .66)); }
.avesta-la__meta { list-style: none; margin: 0 0 16px; padding: 14px 0; border-top: 1px solid var(--lp-neutral, #e2e8ee); border-bottom: 1px solid var(--lp-neutral, #e2e8ee); display: grid; gap: 10px; }
.avesta-la__meta li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; color: #1d2b39; }
.avesta-la__meta a { color: var(--lp-primary-dark, #1a5565); font-weight: 800; text-decoration: none; }
.avesta-la__ic { width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--lp-primary, #32a3c3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.avesta-la__serving-k { margin: 0 0 8px; font: 800 11.5px/1 var(--lp-body, 'Karla', sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--lp-primary-dark, #1a5565); }
.avesta-la__areas { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.avesta-la__areas li { font-size: 13.5px; line-height: 1; padding: 7px 11px; border-radius: 999px; background: var(--lp-ultra-light, #ebf7fa); color: var(--lp-primary-dark, #1a5565); font-weight: 600; }
.avesta-la__btns { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; margin-top: auto; }
.avesta-lp .avesta-la__btns .avesta-lp__btn { min-height: 46px; padding: 0 12px; font-size: 15px; width: 100%; }
.avesta-la__vet { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 14.5px; color: var(--lp-primary-dark, #1a5565); text-decoration: none; border-bottom: 2px solid rgba(50, 163, 195, .35); width: fit-content; }
.avesta-la__vet:hover { border-color: var(--lp-primary-dark, #1a5565); }

/* what every clinic offers */
.avesta-lp .avesta-la__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.avesta-lp .avesta-la__tile { background: #fff; border-radius: 16px; box-shadow: var(--lp-shadow-card); padding: 26px; }
.avesta-lp .avesta-la__tile .avesta-lp__card-ico { margin-bottom: 14px; }
.avesta-lp .avesta-la__tile h3 { font-size: 22px; line-height: 1.2; margin-bottom: 8px; }
.avesta-lp .avesta-la__tile p { color: var(--lp-muted); font-size: 16px; }

/* coverage + veterans */
.avesta-lp .avesta-la__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.avesta-lp .avesta-la__panel { border-radius: 20px; padding: clamp(24px, 3.5vw, 40px); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.avesta-lp .avesta-la__panel--a { background: var(--lp-ultra-light); }
.avesta-lp .avesta-la__panel--b { background: var(--lp-ultra-dark); color: #fff; }
.avesta-lp .avesta-la__panel h3 { font-size: clamp(24px, 2.4vw, 30px); line-height: 1.15; margin: 0; color: inherit; }
.avesta-lp .avesta-la__panel--b h3 { color: #fff; }
.avesta-lp .avesta-la__panel p { font-size: 16.5px; line-height: 1.6; margin: 0; }
.avesta-lp .avesta-la__panel--a p { color: #33485c; }
.avesta-lp .avesta-la__panel--b p { color: rgba(255, 255, 255, .86); }
.avesta-lp .avesta-la__panel .avesta-lp__btn { margin-top: 10px; }

/* FAQ */
.avesta-lp .avesta-la__faq, .avesta-lp .brxe-text.avesta-la__faq, .avesta-la__faq { max-width: 860px !important; margin: 0 auto !important; margin-inline: auto !important; display: grid !important; gap: 10px !important; width: 100% !important; }
.avesta-la__qa { background: #fff; border-radius: 14px; box-shadow: var(--lp-shadow-card, 0 8px 24px rgba(10, 34, 41, .06)); overflow: hidden; }
.avesta-la__qa summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font: 800 17.5px/1.4 var(--lp-body, 'Karla', sans-serif); color: var(--lp-text, #0c1a27); position: relative; }
.avesta-la__qa summary::-webkit-details-marker { display: none; }
.avesta-la__qa summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--lp-primary, #32a3c3); line-height: 1; }
.avesta-la__qa[open] summary::after { content: "\2212"; }
.avesta-la__qa[open] summary { color: var(--lp-primary-dark, #1a5565); }
.avesta-la__qa > div { padding: 0 22px 20px; font-size: 16.5px; line-height: 1.7; color: #33485c; }
.avesta-la__qa a { color: var(--lp-primary-dark, #1a5565); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.avesta-la__qa summary:focus-visible { outline: 3px solid var(--lp-primary-dark, #1a5565); outline-offset: -3px; border-radius: 14px; }

@media (max-width: 1000px) {
  .avesta-la__cards { grid-template-columns: repeat(2, 1fr); }
  .avesta-la__card, .avesta-la__card:nth-child(4), .avesta-la__card:nth-child(5) { grid-column: auto; }
  .avesta-la__card:nth-child(5) { grid-column: 1 / -1; max-width: calc(50% - 11px); margin-inline: auto; }
  .avesta-lp .avesta-la__tiles { grid-template-columns: 1fr; }
  .avesta-lp .avesta-la__duo { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .avesta-la__cards { grid-template-columns: 1fr; }
  .avesta-la__card:nth-child(5) { grid-column: auto; max-width: none; }
  .avesta-la__btns { grid-template-columns: 1fr; }
  .avesta-la__qa summary { font-size: 16.5px; padding: 16px 50px 16px 18px; }
  .avesta-la__qa > div { padding: 0 18px 18px; }
}


/* --- Treatments & Conditions Hub Enhancements --- */
.avesta-la__card-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--lp-primary-dark, #1a5565);
  background: var(--lp-ultra-light, #ebf7fa);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  width: fit-content;
}

/* 4-column responsive grid for 8 condition cards */
.avesta-la__cards--4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.avesta-la__cards--4col .avesta-la__card {
  grid-column: auto !important;
}

@media (max-width: 1100px) {
  .avesta-la__cards--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .avesta-la__cards--4col {
    grid-template-columns: 1fr;
  }
}

