/* Countries list page */

.countries-page__head {
    max-width: 40rem;
    margin: 0 auto 2.5rem;
}

.countries-page__title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
    color: hsl(var(--heading-color));
}

.countries-page__lead {
    font-size: 0.95rem;
    line-height: 1.6;
    color: hsl(var(--body-color) / 0.75);
    margin-bottom: 1.5rem;
}

.dark .countries-page__lead {
    color: hsl(var(--white) / 0.65);
}

.countries-page__search {
    position: relative;
    max-width: 28rem;
}

.countries-page__search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.15rem;
    color: hsl(var(--base));
    pointer-events: none;
    z-index: 1;
}

.countries-page__search-input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem !important;
    border-radius: 999px !important;
    border: 1px solid hsl(var(--dark) / 0.1) !important;
    background: hsl(var(--white) / 0.9) !important;
    margin-bottom: 0 !important;
    box-shadow: 0 4px 24px hsl(var(--dark) / 0.06);
}

.dark .countries-page__search-input {
    background: hsl(var(--white) / 0.06) !important;
    border-color: hsl(var(--white) / 0.12) !important;
    color: hsl(var(--white) / 0.92) !important;
}

.dark .countries-page__search-input::placeholder {
    color: hsl(var(--white) / 0.5);
}

.countries-page__search-input:focus {
    border-color: hsl(var(--base) / 0.45) !important;
    box-shadow: 0 0 0 3px hsl(var(--base) / 0.12);
}

.countries-page__no-results {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: hsl(var(--body-color) / 0.7);
}

@media (max-width: 576px) {
    .countries-page__search-input {
        border-radius: 14px !important;
    }
}
