/*
 * HID Extension — Store Locator Stylesheet
 *
 * Brand palette quick ref:
 *   Green   #67BD50  Black  #2A2A2A  White  #FFFFFF
 *   Brown   #673E2E  Pink   #EF5D97  Purple #8658A3
 *   Yellow  #FEC52B
 * Tints:
 *   Light Ash  #F0F6E7  Light Pink  #FDEEF5  Deep Ash  #F6EFF6
 *   Yellow Tint #FFFACC  Green Track #D6EAC8
 */

/* ── Box sizing ───────────────────────────────────────────────────────────── */
.hid-store-locator-wrap,
.hid-store-locator-wrap * {
  box-sizing: border-box;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hid-hero {
  background: #f0f6e7;
  padding: 80px 24px;
  text-align: center;
}

.hid-hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hid-hero h1 {
  font-size: 52px;
  font-weight: 800;
  color: #2a2a2a;
  line-height: 1.1;
  margin: 0 0 16px;
}

.hid-hero p {
  font-size: 16px;
  color: #9e9e9e;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}


.hid-cta-divider {
  border: none;
  border-top: 1px solid #d6eac8;
  margin: 16px 0;
}

/* ── Main layout ──────────────────────────────────────────────────────────── */
.hid-store-locator-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.hid-locator-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── Controls row ─────────────────────────────────────────────────────────── */
.hid-locator-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ── Search input ─────────────────────────────────────────────────────────── */
.hid-search-wrap {
  position: relative;
}

.hid-locator-search {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid #d6eac8;
  border-radius: 8px;
  font-size: 14px;
  color: #2a2a2a;
  outline: none;
  transition: border-color 0.2s;
}

.hid-locator-search:focus {
  border-color: #67bd50;
}

.hid-search-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 18px;
  color: #9e9e9e;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.hid-search-clear:hover {
  color: #2a2a2a;
}

/* ── Filter dropdowns ─────────────────────────────────────────────────────── */
.hid-locator-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hid-filter-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.hid-filter-select {
  flex: 1;
  min-width: 140px;
  padding: 7px 10px;
  border: 1px solid #d6eac8;
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
  font-weight: 600;
  color: #2a2a2a;
  cursor: pointer;
  appearance: auto;
  transition: border-color 0.15s;
}

.hid-filter-select:focus {
  outline: none;
  border-color: #67bd50;
  box-shadow: 0 0 0 2px rgba(103, 189, 80, 0.2);
}

/* ── Result count ─────────────────────────────────────────────────────────── */
.hid-locator-count {
  font-size: 13px;
  color: #9e9e9e;
}

/* ── Distributor grid ─────────────────────────────────────────────────────── */
.hid-locator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  position: relative;
  min-height: 120px;
}

/* Loading state — fade grid and show spinner */
.hid-locator-grid.hid-locator-loading {
  opacity: 0.45;
  pointer-events: none;
}

.hid-loading-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border: 4px solid #d6eac8;
  border-top-color: #67bd50;
  border-radius: 50%;
  animation: hid-spin 0.7s linear infinite;
  z-index: 10;
}

@keyframes hid-spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}



/* ── Empty / error state ──────────────────────────────────────────────────── */
.hid-empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #9e9e9e;
  grid-column: 1 / -1;
}

.hid-empty-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 12px;
}

.hid-empty-state h3 {
  color: #2a2a2a;
  margin: 0 0 8px;
}

/* ── Pagination ───────────────────────────────────────────────────────────── */
.hid-locator-pagination {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.hid-pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}

.hid-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d6eac8;
  background: #ffffff;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hid-page-btn:hover:not([disabled]) {
  background: #f0f6e7;
  border-color: #67bd50;
}

.hid-page-btn.hid-page-active {
  background: #67bd50;
  border-color: #67bd50;
  color: #ffffff;
  cursor: default;
}

.hid-page-btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.hid-prev-btn,
.hid-next-btn {
  font-size: 18px;
}

.hid-page-ellipsis {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #9e9e9e;
}

/* ── CTA buttons (ordering guide) ─────────────────────────────────────────── */
.hid-btn-primary {
  display: inline-block;
  background: #67bd50;
  color: #ffffff;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  margin-right: 8px;
  transition: background 0.2s;
}

.hid-btn-primary:hover {
  background: #58a643;
  color: #ffffff;
}

.hid-btn-secondary {
  display: inline-block;
  background: #673e2e;
  color: #ffffff;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}

.hid-btn-secondary:hover {
  background: #4e2e22;
  color: #ffffff;
}

/* ── Responsive — 768px (tablet) ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hid-hero h1 {
    font-size: 34px;
  }

  .hid-hero {
    padding: 60px 20px;
  }

}

/* ── Responsive — 600px (mobile) ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .hid-filter-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hid-locator-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive — 480px (small mobile) ───────────────────────────────────── */
@media (max-width: 480px) {
  .hid-hero h1 {
    font-size: 26px;
  }

  .hid-hero {
    padding: 40px 16px;
  }

  .hid-store-locator-wrap {
    padding: 16px;
  }

}

/* ── Reduced motion ───────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hid-locator-search,
  .hid-page-btn,
  .hid-btn-primary,
  .hid-btn-secondary {
    transition: none;
    animation: none;
  }

  .hid-loading-spinner {
    animation: none;
    border-color: #67bd50;
    opacity: 0.6;
  }
}

/* ── 1.4.1 Hero eyebrow badge ─────────────────────────────────────────────── */
.hid-hero-eyebrow {
  display: inline-block; background: #67BD50; color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 14px;
  border-radius: 20px; margin-bottom: 16px;
}

/* ── 1.4.2 CTA strip ──────────────────────────────────────────────────────── */
.hid-partners-cta-strip { background: #f0f6e7; padding: 32px 24px; text-align: center; border-top: 1px solid #d6eac8; }
.hid-partners-cta-inner { max-width: 760px; margin: 0 auto; }
.hid-partners-cta-strip p { font-size: 15px; color: #2a2a2a; margin: 0 0 16px; }
.hid-partners-cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hid-cta-btn {
  display: inline-block; padding: 10px 22px; border-radius: 6px;
  font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity 0.18s ease;
}
.hid-cta-btn:hover { opacity: 0.88; }
.hid-cta-btn--primary { background: #67BD50; color: #fff; }
.hid-cta-btn--wa      { background: #25d366; color: #fff; }

/* ── 1.4.3 Country dropdown with search icon + state tiles ───────────────── */
.hid-filter-country-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.hid-filter-country-icon {
  position: absolute;
  left: 10px;
  font-size: 14px;
  pointer-events: none;
  color: #6b7280;
  line-height: 1;
}
.hid-filter-select--country {
  padding-left: 30px;
  min-width: 180px;
}

/* ── 1.4.4 Prompt styles ──────────────────────────────────────────────────── */
.hid-locator-prompt { text-align: center; padding: 48px 24px; color: #6b7280; font-size: 15px; }
.hid-locator-prompt p { margin: 0; }

/* ── 1.4.5 3-column card grid ────────────────────────────────────────────── */
.hid-locator-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 0; }
@media (max-width: 900px) { .hid-locator-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .hid-locator-grid { grid-template-columns: 1fr; } }

/* ── 1.4.6 Partner card ──────────────────────────────────────────────────── */
.hid-partner-card {
  background: #fff; border-radius: 10px; box-shadow: 0 2px 8px rgba(0,0,0,0.07);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.hid-partner-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.13); transform: translateY(-3px); }
.hid-partner-card--featured { box-shadow: 0 2px 8px rgba(103,189,80,0.2); border: 1.5px solid #67BD50; }
.hid-partner-card__type-strip { height: 5px; width: 100%; }
.hid-strip-salon         { background: #EF5D97; }
.hid-strip-pharmacy      { background: #3b82f6; }
.hid-strip-beauty_store  { background: #8658A3; }
.hid-strip-supermarket   { background: #f59e0b; }
.hid-strip-distributor   { background: #67BD50; }
.hid-strip-online_store  { background: #06b6d4; }
.hid-partner-card__body {
  padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.hid-partner-card__featured-badge {
  display: inline-block; font-size: 11px; font-weight: 700;
  color: #67BD50; letter-spacing: 0.05em; text-transform: uppercase;
}
.hid-partner-card__name { font-size: 16px; font-weight: 700; color: #2a2a2a; margin: 0; line-height: 1.3; }
.hid-partner-card__address { font-size: 13px; color: #374151; margin: 0; line-height: 1.45; }
.hid-partner-card__location { font-size: 12px; color: #9aa0a6; margin: 0; }
.hid-partner-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; }
.hid-type-badge {
  display: inline-block; font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 20px; text-transform: capitalize; letter-spacing: 0.02em;
}
.hid-badge-salon         { background: #fdeef5; color: #c0226b; }
.hid-badge-pharmacy      { background: #eff6ff; color: #1d4ed8; }
.hid-badge-beauty_store  { background: #f5f0ff; color: #6d28d9; }
.hid-badge-supermarket   { background: #fffbeb; color: #b45309; }
.hid-badge-distributor   { background: #f0fdf4; color: #15803d; }
.hid-badge-online_store  { background: #ecfeff; color: #0e7490; }
.hid-card-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 5px;
  font-size: 13px; font-weight: 600; text-decoration: none; transition: opacity 0.18s ease;
}
.hid-card-btn:hover { opacity: 0.82; }
.hid-call-btn    { background: #2a2a2a; color: #fff !important; }
.hid-wa-card-btn { background: #25d366; color: #fff !important; }
/* Inline SVG icons inherit the button text colour (fixes the dark-on-dark emoji). */
.hid-card-btn__icon { width: 14px; height: 14px; fill: currentColor; flex-shrink: 0; }

/* ── 1.4.7 Empty state ───────────────────────────────────────────────────── */
.hid-partners-empty { grid-column: 1 / -1; text-align: center; padding: 60px 24px; color: #6b7280; }
.hid-partners-empty__icon { font-size: 48px; margin-bottom: 16px; }
.hid-partners-empty h3 { font-size: 18px; font-weight: 700; color: #2a2a2a; margin: 0 0 8px; }
.hid-partners-empty p  { font-size: 14px; margin: 0; }
