/* Proxy Grove — Locations hub + country pages */

.pg-loc-page {
  overflow-x: clip;
}

.pg-loc-page .pg-rp-hero__inner {
  grid-template-columns: 1fr;
  max-width: 48rem;
}

.pg-loc-search {
  position: relative;
  margin-top: 1.75rem;
  max-width: 36rem;
}

.pg-loc-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.15rem;
  color: #13009a;
  pointer-events: none;
}

.pg-loc-search__input {
  width: 100%;
  min-height: 3.4rem;
  padding: 0.85rem 1.15rem 0.85rem 3rem;
  border-radius: 1rem;
  border: 1px solid rgb(19 0 154 / 0.16);
  background: color-mix(in srgb, #fff 92%, rgb(19 0 154 / 0.04));
  box-shadow: 0 10px 40px rgb(19 0 154 / 0.08);
  font: inherit;
  font-size: 1rem;
  color: var(--color-text-body);
}

.pg-loc-search__input:focus {
  outline: none;
  border-color: rgb(19 127 21 / 0.55);
  box-shadow: 0 0 0 4px rgb(19 127 21 / 0.14), 0 12px 40px rgb(19 0 154 / 0.1);
}

.pg-loc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}

.pg-loc-filter {
  appearance: none;
  min-height: 2.15rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgb(19 0 154 / 0.14);
  background: #fff;
  color: var(--color-text-heading);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pg-loc-filter:hover,
.pg-loc-filter:focus-visible {
  border-color: rgb(19 127 21 / 0.45);
  background: rgb(19 127 21 / 0.06);
  outline: none;
}

.pg-loc-filter.is-active {
  border-color: transparent;
  background: #13009a;
  color: #fff;
}

.pg-loc-count {
  margin: 0.85rem 0 0;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.pg-loc-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .pg-loc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .pg-loc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .pg-loc-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.pg-loc-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  min-height: 5.25rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pg-loc-card:hover {
  transform: translateY(-2px);
  color: inherit;
}

.pg-loc-card:focus-visible {
  outline: 2px solid #137f15;
  outline-offset: 3px;
}

.pg-loc-card__flag {
  width: 2.75rem;
  height: 2.05rem;
  border-radius: 0.4rem;
  overflow: hidden;
  border: 1px solid rgb(19 0 154 / 0.12);
  background: rgb(19 0 154 / 0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pg-loc-card__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-loc-card__flag-fallback {
  font-size: 1.35rem;
  line-height: 1;
}

.pg-loc-card__name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--color-text-heading);
}

.pg-loc-card__meta {
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.pg-loc-card__arrow {
  width: 1.15rem;
  height: 1.15rem;
  color: rgb(19 0 154 / 0.35);
  transition: transform 0.2s ease, color 0.2s ease;
}

.pg-loc-card:hover .pg-loc-card__arrow {
  color: #137f15;
  transform: translateX(3px);
}

.pg-loc-empty {
  text-align: center;
  padding: 2.5rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px dashed rgb(19 0 154 / 0.18);
  background: rgb(19 0 154 / 0.03);
  max-width: 28rem;
  margin: 0 auto;
}

.pg-loc-empty__title {
  margin: 0 0 0.35rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-loc-empty__desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.pg-loc-loading {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Country detail */
.pg-loc-country-hero {
  padding: 1.5rem 0 2rem;
}

.pg-loc-country-hero__inner {
  display: grid;
  gap: 1.25rem;
  align-items: center;
}

@media (min-width: 768px) {
  .pg-loc-country-hero__inner {
    grid-template-columns: auto 1fr;
    gap: 1.75rem;
  }
}

.pg-loc-country-hero__flag {
  width: 5.5rem;
  height: 4rem;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgb(19 0 154 / 0.12);
  box-shadow: 0 12px 32px rgb(19 0 154 / 0.1);
  background: #fff;
}

.pg-loc-country-hero__flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-loc-country-hero__title {
  margin: 0.35rem 0 0.5rem;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(1.85rem, 3.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--color-text-heading);
  line-height: 1.15;
}

.pg-loc-country-hero__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.pg-loc-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgb(19 0 154 / 0.08);
  color: #13009a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pg-loc-product-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pg-loc-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pg-loc-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pg-loc-product {
  display: block;
  padding: 1.15rem 1.2rem;
  border-radius: 1rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease;
}

.pg-loc-product:hover {
  transform: translateY(-2px);
  color: inherit;
}

.pg-loc-product:focus-visible {
  outline: 2px solid #137f15;
  outline-offset: 3px;
}

.pg-loc-product__title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-loc-product__desc {
  margin: 0;
  font-size: 0.84rem;
  color: var(--color-text-muted);
}

.pg-loc-related-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pg-loc-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pg-loc-related-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 479px) {
  .pg-loc-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .pg-loc-filter {
    flex: 0 0 auto;
  }
}

/* —— Premium country landing —— */
.pg-loc-country-hero__lead {
  margin: 0.75rem 0 0;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-body);
}

.pg-loc-country-hero__actions {
  margin-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.pg-loc-intro {
  max-width: 44rem;
  display: grid;
  gap: 0.95rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-body);
}

.pg-loc-intro a {
  color: #13009a;
  font-weight: 600;
}

.pg-loc-product-grid--rich {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pg-loc-product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.3rem;
  border-radius: 1.15rem;
  border: 1px solid rgb(19 0 154 / 0.1);
  background: color-mix(in srgb, var(--color-surface-raised) 94%, transparent);
  box-shadow: 0 10px 28px rgb(19 0 154 / 0.05);
}

.pg-loc-product-card__title {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-loc-product-card__desc {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--color-text-body);
  flex: 1;
}

.pg-loc-product-card__label {
  margin: 1rem 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #137f15;
}

.pg-loc-product-card__best {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.3rem;
  font-size: 0.875rem;
  color: var(--color-text-body);
}

.pg-loc-product-card__best li::before {
  content: "• ";
  color: #13009a;
}

.pg-loc-product-card__cta {
  margin-top: 1.15rem;
  align-self: flex-start;
}

.pg-loc-benefit-grid,
.pg-loc-usecase-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .pg-loc-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pg-loc-usecase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .pg-loc-benefit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .pg-loc-usecase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.pg-loc-benefit,
.pg-loc-usecase {
  padding: 1.15rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgb(19 0 154 / 0.09);
  background: color-mix(in srgb, var(--color-surface-raised) 94%, transparent);
}

.pg-loc-benefit__title,
.pg-loc-usecase__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-loc-benefit__desc,
.pg-loc-usecase__desc {
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-text-body);
}

.pg-loc-recommend-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 1rem;
  border: 1px solid rgb(19 0 154 / 0.1);
}

.pg-loc-recommend-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.pg-loc-recommend-table th,
.pg-loc-recommend-table td {
  padding: 0.9rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgb(19 0 154 / 0.08);
  vertical-align: top;
}

.pg-loc-recommend-table thead th {
  background: rgb(19 0 154 / 0.05);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--color-text-heading);
}

.pg-loc-recommend-table tbody th {
  font-weight: 700;
  color: var(--color-text-heading);
}

.pg-loc-recommend-link {
  font-weight: 600;
  color: #13009a;
  text-decoration: none;
  white-space: nowrap;
}

.pg-loc-recommend-link:hover,
.pg-loc-recommend-link:focus-visible {
  text-decoration: underline;
  outline: none;
}

.pg-loc-faq {
  display: grid;
  gap: 0.65rem;
  max-width: 44rem;
}

.pg-loc-faq__item {
  border: 1px solid rgb(19 0 154 / 0.1);
  border-radius: 0.9rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-surface-raised) 94%, transparent);
}

.pg-loc-faq__q {
  margin: 0;
}

.pg-loc-faq__trigger {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.95rem 1.05rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  color: var(--color-text-heading);
}

.pg-loc-faq__trigger:focus-visible {
  outline: 2px solid #13009a;
  outline-offset: -2px;
}

.pg-loc-faq__icon {
  flex: 0 0 auto;
  font-size: 1.1rem;
  line-height: 1;
  color: #13009a;
}

.pg-loc-faq__panel {
  padding: 0 1.05rem 1rem;
  color: var(--color-text-body);
  font-size: 0.92rem;
  line-height: 1.6;
}

.pg-loc-faq__panel p {
  margin: 0;
}

.pg-loc-card--rich {
  align-items: flex-start;
}

.pg-loc-card__desc {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}

@media (max-width: 479px) {
  .pg-loc-country-hero__title {
    font-size: 1.65rem;
  }

  .pg-loc-country-hero__actions .pg-rp-btn {
    width: 100%;
    justify-content: center;
  }
}

