.countries-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.countries-page *,
.countries-page *::before,
.countries-page *::after {
    box-sizing: border-box;
}

.countries-page .logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.countries-page #language-picker-widget {
    text-align: center;
    margin-bottom: 40px;
}

.countries-page #language-picker-widget .lpw-select2 .select2-selection--single {
    background: #6e586b;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 30px;
    height: auto;
    padding: 10px 16px;
    outline: none;
    min-width: 220px;
}
.countries-page #language-picker-widget .lpw-select2 .select2-selection--single .select2-selection__rendered {
    color: #fff;
    font-size: 15px;
    padding: 0;
    line-height: 1.4;
}
.countries-page #language-picker-widget .lpw-select2 .select2-selection--single .select2-selection__arrow {
    display: none;
}
.lpw-select2-dropdown {
    background: #6e586b !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 10px !important;
}
.lpw-select2-dropdown .select2-search--dropdown { padding: 6px; }
.lpw-select2-dropdown .select2-search--dropdown .select2-search__field {
    background: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    color: #333;
    outline: none;
    padding: 6px 10px;
    width: 100%;
    box-sizing: border-box;
}
.lpw-select2-dropdown .select2-search--dropdown .select2-search__field::placeholder { color: #999; }
.lpw-select2-dropdown .select2-results__option { color: #fff; font-size: 14px; padding: 7px 14px; }
.lpw-select2-dropdown .select2-results__option--highlighted[aria-selected] { background: rgba(255,255,255,0.2) !important; color: #fff !important; }
.lpw-select2-dropdown .select2-results__option[aria-selected=true] { background: rgba(255,255,255,0.1); }
.lpw-select2-dropdown .select2-results { max-height: 320px; overflow-y: auto; }

@media (max-width: 576px) {
    .countries-page #language-picker-widget .lpw-select2.select2-container,
    .countries-page #language-picker-widget .lpw-select2 .select2-selection--single { width: 100% !important; box-sizing: border-box; }
    .lpw-select2-dropdown { position: fixed !important; left: 0 !important; right: 0 !important; width: 100% !important; border-radius: 0 !important; }
}

.countries-page .countries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.countries-page .country-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(110, 88, 107, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.countries-page .country-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(110, 88, 107, 0.2);
}

.countries-page .country-link {
    text-decoration: none;
    color: #6e586b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px 30px;
    flex: 1;
}

.countries-page .country-emoji {
    font-size: 60px;
    margin-bottom: 20px;
    display: block;
}

.countries-page .country-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.countries-page .country-link:hover .country-title {
    color: #f1d6df;
}

.countries-page .stylist-count {
    font-size: 14px;
    color: #999;
    font-weight: 400;
}

.countries-page .cities-btn-wrapper {
    width: 100%;
    border-top: 1px solid #f0f0f0;
}

.countries-page .cities-btn {
    background: transparent;
    color: #6e586b;
    border: none;
    padding: 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.countries-page .cities-btn:hover {
    background: #f1d6df;
    color: #6e586b;
}

.countries-page .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    animation: cpFadeIn 0.3s ease;
}

.countries-page .modal.active {
    display: block;
}

@keyframes cpFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.countries-page .modal-content {
    background-color: white;
    margin: 40px auto;
    padding: 50px;
    border-radius: 20px;
    max-width: 900px;
    position: relative;
    animation: cpSlideIn 0.3s ease;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
}

@keyframes cpSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.countries-page .close {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 35px;
    font-weight: 300;
    color: #6e586b;
    cursor: pointer;
    transition: color 0.3s ease;
}

.countries-page .close:hover {
    color: #f1d6df;
}

.countries-page .modal-title {
    color: #6e586b;
    font-size: 32px;
    margin-bottom: 20px;
    font-weight: 700;
}

.countries-page .modal-title-link {
    color: #6e586b;
    text-decoration: none;
}

.countries-page .modal-title-link:hover {
    color: #f1d6df;
}

.countries-page .modal-top-tags {
    display: flex;
    gap: 12px;
    margin-bottom: 25px;
}

.countries-page .modal-top-tag {
    display: inline-block;
    background: #f1d6df;
    color: #6e586b;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.countries-page .modal-top-tag:hover {
    background: #6e586b;
    color: white;
    transform: scale(1.05);
}

.countries-page .modal-intro {
    color: #666;
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.countries-page .section-title {
    color: #6e586b;
    font-size: 22px;
    margin: 30px 0 20px;
    font-weight: 600;
}

.countries-page .tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.countries-page .tag {
    display: inline-block;
    background: #f1d6df;
    color: #6e586b;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.countries-page .tag:hover {
    background: #6e586b;
    color: white;
    transform: scale(1.05);
}

.countries-page .routine-btn {
    display: inline-block;
    background: #6e586b;
    color: white;
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.countries-page .routine-btn:hover {
    background: #f1d6df;
    color: #6e586b;
    transform: scale(1.05);
}

/* Standalone mode (com siteaccess) */
body.countries-standalone {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #ffffff 100%);
    min-height: 100vh;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .countries-page .modal-content {
        margin: 10px;
        padding: 25px 15px;
    }

    .countries-page .countries-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .countries-page .country-link {
        padding: 20px 15px 15px;
    }

    .countries-page .country-emoji {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .countries-page .country-title {
        font-size: 16px;
    }

    .countries-page .modal-title {
        font-size: 24px;
    }
}

@media (max-width: 400px) {
    .countries-page .countries-grid {
        grid-template-columns: 1fr;
    }
}
