.gp-nearby-widget {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
  padding: 24px;
  margin: 24px 0;
}

.gp-nearby-widget__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.gp-nearby-widget__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.12);
  color: #c65a1d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gp-nearby-widget__title {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
  font-weight: 700;
  color: #132238;
}

.gp-nearby-widget__subtitle,
.gp-nearby-widget__status {
  margin: 4px 0 0;
  font-size: 14px;
  color: #5b6677;
}

.gp-nearby-widget__status.is-error {
  color: #c0392b;
}

.gp-nearby-widget__head-side {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.gp-nearby-widget__head-pills {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.gp-nearby-widget__head-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: #445265;
  font-size: 12px;
  font-weight: 700;
}

.gp-nearby-widget__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}

.gp-nearby-widget__landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.gp-nearby-widget__landing-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fffaf6 100%);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.gp-nearby-widget__landing-kicker {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.06);
  color: #445265;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gp-nearby-widget__landing-card strong {
  color: #132238;
  font-size: 17px;
  line-height: 1.35;
}

.gp-nearby-widget__landing-card p {
  margin: 0;
  color: #5b6677;
  font-size: 14px;
  line-height: 1.65;
}

.gp-nearby-widget__legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.gp-nearby-widget__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5b6677;
  font-size: 12px;
  font-weight: 700;
}

.gp-nearby-widget__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.gp-nearby-widget__legend-dot--store { background: #0f766e; }
.gp-nearby-widget__legend-dot--ad { background: #ea580c; }
.gp-nearby-widget__legend-dot--job { background: #1d4ed8; }
.gp-nearby-widget__legend-dot--event { background: #6d28d9; }

.gp-nearby-widget__quicklinks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gp-nearby-widget__quicklinks a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  color: #132238;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.gp-nearby-widget__quicklinks a:hover {
  border-color: rgba(255, 107, 44, 0.28);
  color: #ff6b2c;
}

.gp-nearby-widget__snapshot {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 14px;
}

.gp-nearby-widget__snapshot-card {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.gp-nearby-widget__snapshot-card strong {
  color: #132238;
  font-size: 24px;
  line-height: 1;
}

.gp-nearby-widget__snapshot-card span {
  color: #526173;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gp-nearby-widget__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.gp-nearby-widget__filter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #ffffff;
  color: #132238;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.gp-nearby-widget__filter.is-active {
  border-color: rgba(255, 107, 44, 0.28);
  background: rgba(255, 107, 44, 0.12);
  color: #c65a1d;
}

.gp-nearby-widget__map-shell {
  margin-top: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 16px;
}

.gp-nearby-widget__map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.gp-nearby-widget__map-head strong {
  color: #132238;
  font-size: 16px;
}

.gp-nearby-widget__map-head span {
  color: #5b6677;
  font-size: 13px;
}

.gp-nearby-widget__map {
  min-height: 340px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #edf3fa;
}

.gp-nearby-widget__badge,
.gp-nearby-widget__meta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #ff6b2c;
  background: rgba(255, 107, 44, 0.12);
}

.gp-nearby-widget__skeleton {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gp-nearby-widget__skeleton span {
  display: block;
  height: 144px;
  border-radius: 20px;
  background: linear-gradient(90deg, rgba(214, 221, 232, 0.65) 25%, rgba(241, 244, 248, 0.95) 50%, rgba(214, 221, 232, 0.65) 75%);
  background-size: 200% 100%;
  animation: gpNearbyPulse 1.4s ease infinite;
}

.gp-nearby-widget__section + .gp-nearby-widget__section {
  margin-top: 22px;
}

.gp-nearby-widget__section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gp-nearby-widget__section-head h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #132238;
}

.gp-nearby-widget__section-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: rgba(19, 34, 56, 0.06);
  color: #445265;
  font-size: 12px;
  font-weight: 800;
}

.gp-nearby-widget__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gp-nearby-widget__card {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gp-nearby-widget__card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 107, 44, 0.2);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.1);
}

.gp-nearby-widget__card-media {
  height: 120px;
  background: radial-gradient(circle at top left, rgba(255, 107, 44, 0.18), rgba(19, 34, 56, 0.04));
}

.gp-nearby-widget__card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gp-nearby-widget__card-media--placeholder::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 107, 44, 0.14), rgba(19, 34, 56, 0.04));
}

.gp-nearby-widget__card-body {
  padding: 16px;
}

.gp-nearby-widget__card-kind,
.gp-nearby-map-popup__kind {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gp-nearby-widget__card-kind {
  margin-bottom: 10px;
}

.gp-nearby-widget__card-kind--store,
.gp-nearby-map-popup__kind--store {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.gp-nearby-widget__card-kind--ad,
.gp-nearby-map-popup__kind--ad {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.gp-nearby-widget__card-kind--job,
.gp-nearby-map-popup__kind--job {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.gp-nearby-widget__card-kind--event,
.gp-nearby-map-popup__kind--event {
  background: rgba(109, 40, 217, 0.12);
  color: #6d28d9;
}

.gp-nearby-widget__card-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #132238;
}

.gp-nearby-widget__card-meta {
  min-height: 40px;
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: #657286;
}

.gp-nearby-widget__card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gp-nearby-widget__card-link {
  color: #132238;
  font-weight: 700;
  text-decoration: none;
}

.gp-nearby-widget__card-link:hover {
  color: #ff6b2c;
}

.gp-nearby-widget--sidebar {
  padding: 20px;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.gp-nearby-widget--sidebar .gp-nearby-widget__title {
  font-size: 22px;
}

.gp-nearby-widget--sidebar .gp-nearby-widget__subtitle {
  max-width: 56ch;
}

.gp-nearby-widget--sidebar .gp-nearby-widget__map-shell {
  padding: 14px;
}

.gp-nearby-widget--sidebar .gp-nearby-widget__map {
  min-height: 300px;
}

.gp-nearby-map-marker {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px 999px 999px 4px;
  transform: rotate(-45deg);
  border: 3px solid #ffffff;
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.2);
}

.gp-nearby-map-marker span {
  transform: rotate(45deg);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.gp-nearby-map-marker--store {
  background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.gp-nearby-map-marker--ad {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.gp-nearby-map-marker--job {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.gp-nearby-map-marker--event {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.gp-nearby-map-marker--me {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
}

.leaflet-popup-content-wrapper .gp-nearby-map-popup {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.leaflet-popup-content-wrapper .gp-nearby-map-popup--me {
  display: block;
}

.gp-nearby-map-popup__media {
  width: 76px;
  height: 76px;
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(circle at top left, rgba(255, 107, 44, 0.18), rgba(19, 34, 56, 0.04));
}

.gp-nearby-map-popup__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gp-nearby-map-popup__media--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gp-nearby-map-popup__media--fallback span {
  color: #ff6b2c;
  font-size: 24px;
  font-weight: 800;
}

.gp-nearby-map-popup__body h4 {
  margin: 0 0 6px;
  color: #132238;
  font-size: 17px;
  line-height: 1.25;
}

.gp-nearby-map-popup__meta {
  margin: 0;
  color: #657286;
  font-size: 13px;
  line-height: 1.5;
}

.gp-nearby-map-popup__chips {
  margin-top: 10px;
}

.gp-nearby-map-popup__chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 107, 44, 0.12);
  color: #ff6b2c;
  font-size: 12px;
  font-weight: 700;
}

.gp-nearby-map-popup__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin-top: 12px;
  padding: 0 12px;
  border-radius: 10px;
  background: #132238;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.gp-nearby-portal-links {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 24px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.06);
}

.gp-nearby-portal-links__intro h3 {
  margin: 0 0 8px;
  color: #132238;
  font-size: 28px;
  line-height: 1.15;
}

.gp-nearby-portal-links__intro p {
  margin: 0;
  color: #526173;
  font-size: 15px;
  line-height: 1.7;
}

.gp-nearby-portal-links__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gp-nearby-portal-links__card {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
}

.gp-nearby-portal-links__card strong {
  color: #132238;
  font-size: 18px;
  line-height: 1.25;
}

.gp-nearby-portal-links__card span {
  color: #526173;
  font-size: 14px;
  line-height: 1.6;
}

.gp-nearby-portal-links__card--store {
  background: linear-gradient(180deg, #ffffff 0%, #f0f9ff 100%);
}

.gp-nearby-portal-links__card--job {
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
}

.gp-nearby-portal-links__card--event {
  background: linear-gradient(180deg, #ffffff 0%, #fff7ed 100%);
}

.gp-nearby-portal-links__card--registry {
  background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

@keyframes gpNearbyPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 782px) {
  .gp-nearby-widget {
    padding: 18px;
    border-radius: 22px;
  }

  .gp-nearby-widget__landing-grid {
    grid-template-columns: 1fr;
  }

  .gp-nearby-widget__snapshot {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-nearby-portal-links__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gp-nearby-widget__toolbar,
  .gp-nearby-widget__head {
    flex-direction: column;
  }

  .gp-nearby-widget__head-side,
  .gp-nearby-widget__quicklinks {
    justify-items: start;
  }

  .gp-nearby-widget__map-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .gp-nearby-widget__head-pills,
  .gp-nearby-widget__quicklinks {
    justify-content: flex-start;
  }

  .gp-nearby-widget__quicklinks a {
    min-height: 38px;
  }

  .gp-nearby-widget__skeleton {
    grid-template-columns: 1fr;
  }

  .gp-nearby-widget__map {
    min-height: 280px;
  }

  .leaflet-popup-content-wrapper .gp-nearby-map-popup {
    grid-template-columns: 1fr;
  }

  .gp-nearby-map-popup__media {
    width: 100%;
    height: 120px;
  }

  .gp-nearby-widget__section-head h4,
  .gp-nearby-widget__section-head span {
    margin-bottom: 0;
  }
}

@media (max-width: 560px) {
  .gp-nearby-widget {
    padding: 16px;
    border-radius: 20px;
  }

  .gp-nearby-widget__grid {
    grid-template-columns: 1fr;
  }

  .gp-nearby-widget__snapshot,
  .gp-nearby-portal-links__grid {
    grid-template-columns: 1fr;
  }

  .gp-nearby-widget__section-head {
    align-items: flex-start;
  }

  .gp-nearby-widget__card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .gp-nearby-widget__card-link {
    min-height: 38px;
  }
}
