/* V21: Google map and review carousel */
.clinic-map-panel{margin-top:22px;background:#fff;border:1px solid #d6e5fa;border-radius:22px;overflow:hidden;box-shadow:0 12px 32px #112b5b10}.clinic-map-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;background:linear-gradient(120deg,#edf6ff,#e3fbf7)}.clinic-map-head h3{margin:0 0 4px}.clinic-map-head p{margin:0;font-size:.9rem}.clinic-map-frame{display:block;width:100%;height:clamp(290px,34vw,440px);border:0}.google-review-section{background:linear-gradient(125deg,#eff6ff,#fff 55%,#e8fbf8)}
.gr-shell{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(16px,3vw,32px);align-items:center;padding:clamp(16px,3vw,28px);background:#fff;border:1px solid #d6e5fa;border-radius:22px;box-shadow:0 14px 40px #112b5b0d}
.gr-shell [hidden]{display:none!important}
.gr-summary{min-width:0;display:grid;gap:10px;justify-items:start;align-content:center}
.gr-source{display:block;width:auto;height:18px;margin:10px 10px 5px}
.gr-score{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-weight:700;color:var(--navy)}
.gr-rating{font-size:1.9rem;line-height:1}
.gr-count,.gr-status{margin:0;color:#455b70}
.gr-status{font-size:.95rem}
.gr-note{margin:0;max-width:20ch;font-size:.85rem;color:#455b70}
.gr-summary-stars,.gr-stars{color:#9a5b00;letter-spacing:.06em;font-size:1.05rem}
.gr-track{display:flex;align-items:stretch;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;padding:3px 2px 8px}
.gr-motion-ready .gr-summary .btn{animation:gr-review-pulse 2.8s ease-in-out infinite}
.gr-motion-ready .gr-summary .btn:hover,.gr-motion-ready .gr-summary .btn:focus-visible{animation-play-state:paused}
@keyframes gr-review-pulse{0%,100%{box-shadow:0 0 0 0 #1478ca00}50%{box-shadow:0 0 0 4px #1478ca30;background-color:#ecf7ff}}
@media(prefers-reduced-motion:reduce){.gr-motion-ready .gr-summary .btn{animation:none}}
.gr-card{flex:0 0 calc((100% - 28px)/3);box-sizing:border-box;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:10px;scroll-snap-align:start;padding:16px;background:#f5f9ff;border:1px solid #d9e5f6;border-radius:14px;overflow-wrap:anywhere}
.gr-author{display:flex;align-items:center;gap:10px;font-weight:700;max-width:100%}
.gr-avatar{width:42px;height:42px;flex:0 0 42px;border-radius:50%;background:#dceaff;color:#23496d;display:grid;place-items:center;overflow:hidden}
.gr-avatar img{width:100%;height:100%;object-fit:cover}
.gr-meta{display:block;font-weight:400;font-size:.85rem;color:#4c6277}
.gr-text{white-space:pre-wrap;line-height:1.55;margin:0;color:#253745}
.gr-card a,.gr-extra-attributions a{color:#0754a8;text-decoration:underline;text-underline-offset:2px}
.gr-card .gr-review-link{font-size:.88rem;margin-top:auto}
.gr-controls{display:flex;justify-content:flex-end;gap:8px;margin-top:6px}
.gr-controls button{border:1px solid #bdd4f0;background:#fff;color:#0754a8;border-radius:50%;width:44px;height:44px;cursor:pointer;font-size:1.35rem;line-height:1}
.gr-controls .gr-motion{width:auto;border-radius:999px;padding:0 14px;font-size:.9rem}
.gr-controls button:hover:not(:disabled){background:#0754a8;color:#fff}
.gr-controls button:disabled{opacity:.45;cursor:default}
.gr-track:focus-visible,.gr-controls button:focus-visible{outline:2px solid #0754a8;outline-offset:2px}
.gr-extra-attributions{display:flex;gap:10px;flex-wrap:wrap;margin-top:8px;font-size:.85rem}
@media(max-width:1020px){.gr-card{flex-basis:calc((100% - 14px)/2)}}
@media(max-width:700px){.gr-shell{grid-template-columns:minmax(0,1fr)}.gr-card{flex-basis:min(85%,340px)}}
@media(max-width:600px){.clinic-map-head{padding:16px;align-items:flex-start;flex-direction:column}}

/* V22: location cards and map, paired on home and contact pages only */
.clinic-location-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,3fr);gap:20px;align-items:stretch}
.clinic-location-layout>.location-grid{grid-template-columns:minmax(0,1fr);grid-auto-rows:1fr;gap:16px;min-width:0}
.clinic-location-layout .location{min-width:0;padding:clamp(18px,2vw,28px)}
.clinic-location-layout>.clinic-map-panel{margin:0;min-width:0;display:flex;flex-direction:column}
.clinic-location-layout .clinic-map-head{flex-wrap:wrap;padding:18px 22px;gap:12px}
.clinic-location-layout .clinic-map-frame{flex:1 1 300px;min-height:300px;height:auto;width:100%}
@media(max-width:800px){.clinic-location-layout{grid-template-columns:minmax(0,1fr);gap:16px}.clinic-location-layout>.location-grid{grid-auto-rows:auto}.clinic-location-layout .clinic-map-frame{flex:none;height:clamp(280px,65vw,380px);min-height:0}.clinic-location-layout .clinic-map-head{padding:16px}}

@media (max-width:700px) {
  .home-page .gr-summary {
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:6px 10px;
  }
  .home-page .gr-source {
    height:16px;
    margin:10px 10px 5px;
  }
  .home-page .gr-rating {
    font-size:1.4rem;
  }
  .home-page .gr-summary-stars {
    font-size:.9rem;
  }
  .home-page .gr-note {
    max-width:none;
  }
  .home-page .gr-summary .btn {
    grid-column:1 / -1;
  }
  .home-page .clinic-location-layout .clinic-map-frame {
    height:clamp(230px,59vw,340px);
  }
}
@media (max-width:360px) {
  .home-page .gr-summary {
    grid-template-columns:1fr;
  }
}
