/* ============================================================
   VetPro — stockists.css
   Section 14: Where to Buy — hero, filter bar, grid, cards,
               CTA banner, map modal, responsive
   ============================================================ */

/* ── Hero ─────────────────────────────────────────────────── */
.stockists-hero {
  position: relative;
  background: linear-gradient(105deg, #0369a1 0%, #0ea5e9 55%, var(--clr-secondary) 100%);
  padding: 80px 24px 100px;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.stockists-hero__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.stockists-hero__blob--tr {
  top: -64px; right: -64px;
  width: 256px; height: 256px;
  background: radial-gradient(circle, rgba(238,31,41,.18) 0%, transparent 70%);
  filter: blur(32px);
}
.stockists-hero__blob--bl {
  bottom: 0; left: -40px;
  width: 192px; height: 192px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 70%);
  filter: blur(24px);
}

.stockists-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.stockists-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  margin-bottom: 20px;
}

.stockists-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.1;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.2));
}

.stockists-hero__accent { color: #7dd3fc; }

.stockists-hero__subtitle {
  font-size: 1.05rem;
  color: rgba(224,242,254,.9);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.68;
  font-weight: 500;
}

.stockists-hero__wave {
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 60px;
  fill: #f0f9ff;
  pointer-events: none;
}

/* ── Filter bar (below hero) ─────────────────────────────── */
.stockists-filter-bar {
  background: linear-gradient(180deg, #f0f9ff 0%, #fff 100%);
  padding: 36px 0 16px;
}

/* ── Toolbar ──────────────────────────────────────────────── */
.stockists-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.stockists-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.stockists-search-icon {
  position: absolute;
  left: 16px; top: 50%;
  transform: translateY(-50%);
  width: 16px; height: 16px;
  color: #94a3b8;
  pointer-events: none;
}

.stockists-search {
  width: 100%;
  padding: 12px 16px 12px 46px;
  border: 2px solid rgba(14,165,233,.25);
  border-radius: 16px;
  font-size: .9rem;
  font-family: inherit;
  background: #fff;
  color: #1e293b;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: border-color .2s, box-shadow .2s;
}
.stockists-search::placeholder { color: #94a3b8; }
.stockists-search:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

.stockists-city-select {
  padding: 12px 16px;
  border: 2px solid rgba(14,165,233,.2);
  border-radius: 16px;
  font-size: .9rem;
  font-family: inherit;
  background: #fff;
  color: #1e293b;
  min-width: 160px;
  cursor: pointer;
  outline: none;
  box-shadow: 0 1px 4px rgba(0,0,0,.05);
  transition: border-color .2s, box-shadow .2s;
}
.stockists-city-select:focus {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,.12);
}

/* ── Meta / result count ──────────────────────────────────── */
.stockists-meta {
  font-size: .82rem;
  color: #64748b;
  margin-bottom: 0;
  min-height: 1.2em;
}

/* ── Grid section ─────────────────────────────────────────── */
.stockists-grid-section {
  background: #fff;
  padding: 24px 0 56px;
}

.stockists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

/* ── Card ─────────────────────────────────────────────────── */
.stockist-card {
  background: #fff;
  border: 2px solid rgba(14,165,233,.15);
  border-radius: 20px;
  padding: 22px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.stockist-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.13);
  transform: translateY(-5px);
  border-color: rgba(14,165,233,.35);
}
.stockist-card:focus-within {
  outline: 2px solid #0ea5e9;
  outline-offset: 2px;
}

.stockist-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.stockist-card__name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #1e293b;
}

.stockist-card__city-badge {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(14,165,233,.1);
  color: #0369a1;
  border: 1px solid rgba(14,165,233,.2);
  white-space: nowrap; flex-shrink: 0;
}

.stockist-card__address {
  font-size: .85rem; color: #64748b;
  display: flex; align-items: flex-start; gap: 4px; line-height: 1.4;
}

.stockist-card__contact { display: flex; flex-direction: column; gap: 5px; }
.stockist-card__contact-link {
  display: flex; align-items: center; gap: 5px;
  font-size: .83rem; color: #374151;
  text-decoration: none; word-break: break-all;
  transition: color .2s;
}
.stockist-card__contact-link:hover { color: #0ea5e9; }

.stockist-card__notes {
  font-size: .8rem; color: #94a3b8; font-style: italic;
  border-top: 1px solid rgba(14,165,233,.1);
  padding-top: 6px;
}

.stockist-card__mapbtn {
  margin-top: auto; align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 16px;
  border: 2px solid rgba(14,165,233,.25);
  border-radius: 12px;
  background: #fff;
  color: #0369a1;
  font-size: .82rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.stockist-card__mapbtn:hover {
  background: #f0f9ff;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14,165,233,.1);
}
.stockist-card__mapbtn:disabled {
  opacity: .35;
  cursor: not-allowed;
  border-color: #e2e8f0;
  color: #94a3b8;
}

/* ── Skeleton ─────────────────────────────────────────────── */
.stockist-card--skeleton {
  pointer-events: none;
  animation: skeletonPulse 1.4s ease-in-out infinite;
}
@keyframes skeletonPulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.skel-line {
  height: 14px; border-radius: 6px;
  background: #e2e8f0; width: 100%;
}
.skel-line--title { height: 18px; width: 70%; }
.skel-line--sub   { height: 13px; }

/* ── Empty / error states ─────────────────────────────────── */
.stockists-empty,
.stockists-error {
  text-align: center; padding: 56px 20px;
  color: #94a3b8; font-size: .95rem; line-height: 1.6;
}

/* ── Pagination ───────────────────────────────────────────── */
.stockists-pagination { padding-top: 8px; }

/* ── CTA Banner ───────────────────────────────────────────── */
.st-cta-section {
  background: #fff;
  padding: 0 0 64px;
}

.st-cta-banner {
  position: relative;
  background: linear-gradient(105deg, #0ea5e9 0%, #38bdf8 60%, #0ea5e9 100%);
  border-radius: 28px;
  padding: 52px 48px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(14,165,233,.3);
}

.st-cta-banner__blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.st-cta-banner__blob--1 {
  top: -40px; left: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.1);
  filter: blur(20px);
}
.st-cta-banner__blob--2 {
  bottom: -30px; right: -30px;
  width: 180px; height: 180px;
  background: rgba(238,31,41,.2);
  filter: blur(24px);
}

.st-cta-banner__inner { position: relative; z-index: 1; }

.st-cta-banner__emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 12px;
}

.st-cta-banner__title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.st-cta-banner__sub {
  color: rgba(255,255,255,.88);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.st-cta-banner__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.st-cta-banner__btn {
  font-weight: 800;
  font-size: .88rem;
  padding: 14px 28px;
  border-radius: 16px;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
}
.st-cta-banner__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.st-cta-banner__btn--primary   { background: #fff; color: #0ea5e9; }
.st-cta-banner__btn--primary:hover { background: #f0f9ff; }
.st-cta-banner__btn--secondary { background: var(--clr-primary); color: #fff; }
.st-cta-banner__btn--secondary:hover { background: #c8121b; }

/* ── Map modal info ───────────────────────────────────────── */
.map-modal__info p       { font-size: .88rem; color: #64748b; margin-bottom: 5px; line-height: 1.5; }
.map-modal__info a       { color: #0ea5e9; text-decoration: none; }
.map-modal__info a:hover { text-decoration: underline; }
.map-info__address       { font-weight: 700; color: #1e293b !important; margin-bottom: 10px !important; }
.map-info__notes         { font-style: italic; font-size: .8rem !important; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 640px) {
  .stockists-hero        { padding: 60px 16px 80px; }
  .stockists-toolbar     { flex-direction: column; align-items: stretch; }
  .stockists-city-select { width: 100%; }
  .stockists-grid        { grid-template-columns: 1fr; }
  .stockist-card__header { flex-wrap: wrap; }
  .st-cta-banner         { padding: 36px 24px; }
  .st-cta-banner__actions { flex-direction: column; align-items: center; }
  .st-cta-banner__btn    { width: 100%; text-align: center; }
}
