.country-page {
  background: var(--paper);
}

.country-hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  color: var(--paper);
  background:
    radial-gradient(circle at 78% 18%, rgba(201, 155, 82, 0.18), transparent 26%),
    linear-gradient(125deg, var(--wine-deep), var(--wine) 58%, #68263b);
}

.country-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.country-hero h1 {
  margin-bottom: 25px;
}

.country-hero h1 em,
.country-list-section h2 em,
.country-cta h2 em {
  color: var(--gold-light);
}

.country-lead {
  max-width: 760px;
  margin-bottom: 34px;
  color: rgba(255, 253, 249, 0.83);
  font-size: 19px;
}

.country-search {
  max-width: 780px;
  padding: 20px;
  border: 1px solid rgba(234, 217, 187, 0.28);
  border-radius: 20px;
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 26px 70px rgba(21, 5, 12, 0.34);
}

.country-search label {
  display: block;
  margin: 0 0 9px;
  color: var(--wine);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.country-search-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 60px;
  padding: 6px 6px 6px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.country-search-row > span {
  color: var(--gold-deep);
  font-size: 27px;
  line-height: 1;
}

.country-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 17px;
}

.country-search input::placeholder {
  color: #93878a;
}

.country-search button {
  min-height: 46px;
  padding: 11px 19px;
  border: 0;
  border-radius: 10px;
  background: var(--gold);
  color: var(--wine-deep);
  cursor: pointer;
  font-weight: 850;
}

.quick-country-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 19px;
  color: rgba(255, 253, 249, 0.72);
  font-size: 12px;
}

.quick-country-links button {
  padding: 7px 11px;
  border: 1px solid rgba(234, 217, 187, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.quick-country-links button:hover {
  background: rgba(255, 255, 255, 0.13);
}

.country-result {
  max-width: 780px;
  margin-top: 18px;
  padding: 20px 22px;
  border: 1px solid rgba(234, 217, 187, 0.35);
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.1);
  color: var(--paper);
  backdrop-filter: blur(10px);
}

.country-result.success {
  border-color: rgba(234, 217, 187, 0.6);
  background: rgba(201, 155, 82, 0.15);
}

.country-result.not-found {
  border-color: rgba(255, 255, 255, 0.25);
}

.country-result strong {
  display: block;
  margin-bottom: 4px;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 500;
}

.country-result p {
  margin: 0;
  color: rgba(255, 253, 249, 0.82);
}

.country-orbit {
  position: absolute;
  border: 1px solid rgba(234, 217, 187, 0.14);
  border-radius: 50%;
  pointer-events: none;
}

.country-orbit-one {
  width: 560px;
  height: 560px;
  right: -140px;
  top: -250px;
}

.country-orbit-two {
  width: 410px;
  height: 410px;
  right: 40px;
  bottom: -320px;
}

.country-list-section {
  background: var(--paper);
}

.country-section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 44px;
}

.country-section-heading h2 {
  margin-bottom: 0;
}

.country-section-heading h2 em {
  color: var(--wine);
}

.country-section-heading > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 17px;
}

.country-filter-status {
  min-height: 25px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
}

.country-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.country-card {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 28px rgba(53, 16, 29, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.country-card:hover,
.country-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(201, 155, 82, 0.62);
  box-shadow: 0 14px 34px rgba(53, 16, 29, 0.11);
}

.country-card span {
  font-size: 28px;
  line-height: 1;
}

.country-card strong {
  font-size: 14px;
  line-height: 1.3;
}

.country-empty {
  grid-column: 1 / -1;
  padding: 42px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
}

.country-explainer {
  padding-top: 18px;
  background: var(--paper);
}

.country-explainer-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--paper);
  background:
    radial-gradient(circle at 16% 50%, rgba(201, 155, 82, 0.2), transparent 32%),
    linear-gradient(135deg, var(--wine-deep), var(--wine));
  box-shadow: var(--shadow);
}

.country-explainer-icon {
  min-height: 100%;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--gold-light);
  font-family: Georgia, serif;
  font-size: 88px;
}

.country-explainer-card > div:last-child {
  padding: 54px 58px;
}

.country-explainer-card h2 {
  font-size: clamp(38px, 4vw, 58px);
}

.country-explainer-card p:last-child {
  max-width: 800px;
  margin-bottom: 0;
  color: rgba(255, 253, 249, 0.78);
  font-size: 17px;
}

.country-cta {
  padding: 100px 0;
  color: var(--paper);
  background: var(--wine-deep);
}

.country-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 55px;
}

.country-cta h2 {
  margin-bottom: 17px;
}

.country-cta p:last-child {
  margin-bottom: 0;
  color: rgba(255, 253, 249, 0.72);
  font-size: 17px;
}

.country-cta .button {
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .country-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .country-section-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .country-cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .country-nav {
    display: none;
  }

  .country-hero {
    padding: 65px 0 64px;
  }

  .country-lead {
    font-size: 17px;
  }

  .country-search {
    padding: 14px;
  }

  .country-search-row {
    grid-template-columns: auto 1fr;
  }

  .country-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .quick-country-links {
    align-items: flex-start;
  }

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

  .country-explainer-card {
    grid-template-columns: 1fr;
  }

  .country-explainer-icon {
    min-height: 150px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .country-explainer-card > div:last-child {
    padding: 34px 25px 40px;
  }

  .country-cta {
    padding: 72px 0;
  }

  .country-cta .button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .country-grid {
    grid-template-columns: 1fr;
  }

  .country-card {
    min-height: 68px;
  }
}
