/* ============================================
   LOCATIONS PAGE - MAP REDESIGN
   ============================================ */

body {
    background: radial-gradient(1200px 800px at 20% -10%, #0f172a 0%, rgba(15,23,42,0) 60%),
        radial-gradient(900px 700px at 110% 10%, #1e293b 0%, rgba(30,41,59,0) 60%),
        #0b0d10;
    background-repeat: no-repeat, no-repeat, no-repeat;
    background-color: #0b0d10;
}

.site-header .brand-name .crypto {
    color: #1E58B0;
}

.locations-section {
    margin-top: 24px;
}

.locations-header {
    text-align: center;
    margin-bottom: 48px;
}

.locations-header .section-title {
    font-size: clamp(36px, 5vw, 56px);
    margin-bottom: 16px;
    color: #ffffff;
}

.locations-header .subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Map Container */
.map-container {
    margin-bottom: 40px;
}

.map-mobile-toolbar {
    display: none;
}

.map-mobile-hint {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.map-mobile-chips {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.map-mobile-chips::-webkit-scrollbar {
    display: none;
}

.map-chip {
    flex: 0 0 auto;
    border: 1px solid rgba(104,160,255,0.22);
    background: rgba(8,10,14,0.82);
    color: rgba(255,255,255,0.88);
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.map-chip.is-active,
.map-chip:hover,
.map-chip:focus-visible {
    background: rgba(30,88,176,0.25);
    border-color: rgba(157,195,255,0.9);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(157,195,255,0.18);
    outline: none;
}

.world-map-wrapper {
    position: relative;
    background: linear-gradient(180deg, rgba(30,88,176,0.05) 0%, rgba(8,10,14,0.8) 100%);
    border: 1px solid rgba(30,88,176,0.2);
    border-radius: 24px;
    padding: 20px;
    overflow: hidden;
}

.world-map-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(30,88,176,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30,88,176,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.world-map {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 4px 20px rgba(0,0,0,0.3));
}

.world-map-host {
    position: relative;
    z-index: 1;
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    color: var(--muted);
}

.world-map-detailed {
    width: 100%;
    height: auto;
    display: block;
}

.country-shape {
    cursor: pointer;
    outline: none;
}

.country-shape path {
    fill: rgba(30,88,176,0.16);
    stroke: rgba(104,160,255,0.28);
    stroke-width: 1.15;
    vector-effect: non-scaling-stroke;
    transition: fill 0.2s ease, stroke 0.2s ease, filter 0.2s ease;
}

.country-shape:hover path,
.country-shape.is-hovered path {
    fill: rgba(30,88,176,0.4);
    stroke: #68a0ff;
    filter: drop-shadow(0 0 8px rgba(104,160,255,0.25));
}

.country-shape.is-selected path {
    fill: rgba(30,88,176,0.62);
    stroke: #9dc3ff;
    filter: drop-shadow(0 0 12px rgba(157,195,255,0.38));
}

.country-shape:focus-visible path {
    stroke: #9dc3ff;
    stroke-width: 2;
}

.continent-label-layer {
    pointer-events: none;
}

.continent-label {
    fill: rgba(255,255,255,0.9);
    font-family: 'Poppins', 'Inter', sans-serif;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: 0.04em;
    paint-order: stroke;
    stroke: rgba(8,10,14,0.85);
    stroke-width: 8px;
    stroke-linejoin: round;
}

/* Map Regions */
.map-region {
    cursor: pointer;
    transition: all 0.3s ease;
}

.region-path {
    fill: rgba(30,88,176,0.15);
    stroke: rgba(30,88,176,0.4);
    stroke-width: 1.5;
    transition: all 0.3s ease;
}

.map-region:hover .region-path,
.map-region.active .region-path {
    fill: rgba(30,88,176,0.35);
    stroke: var(--brand);
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(30,88,176,0.5));
}

.region-dot {
    fill: var(--brand);
    transition: all 0.3s ease;
    filter: drop-shadow(0 0 8px rgba(30,88,176,0.8));
}

.map-region:hover .region-dot,
.map-region.active .region-dot {
    r: 8;
    filter: drop-shadow(0 0 15px rgba(30,88,176,1));
}

.region-label {
    fill: var(--text);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.map-region:hover .region-label,
.map-region.active .region-label {
    opacity: 1;
    font-weight: 700;
}

/* Connection Lines Animation */
.connection-lines line {
    animation: dash 20s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

/* Map Pulse Effect */
.map-pulse {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(30,88,176,0.6) 0%, rgba(30,88,176,0) 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, left 0.5s ease, top 0.5s ease;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s ease-out infinite;
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* Regions Grid */
.regions-grid {
    display: grid;
    margin-bottom: 40px;
}

.europe-country-list {
    gap: 20px;
    padding: 28px;
    background: var(--card);
    border: var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
}

.europe-country-list[hidden] {
    display: none !important;
}

.country-list-header h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: var(--text);
}

.country-list-header p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.country-search {
    position: relative;
}

.country-search i {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 18px;
    pointer-events: none;
}

.country-search input {
    width: 100%;
    padding: 14px 18px 14px 46px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    color: var(--text);
    font: inherit;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.country-search input::placeholder {
    color: var(--muted);
}

.country-search input:focus {
    outline: none;
    border-color: rgba(30,88,176,0.4);
    box-shadow: 0 0 0 4px rgba(30,88,176,0.12);
    background: rgba(255,255,255,0.05);
}

.country-search-empty {
    margin: 0;
    color: var(--muted);
}

.country-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.country-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: var(--text);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.country-list-item:hover,
.country-list-item:focus-visible {
    background: rgba(30,88,176,0.1);
    border-color: rgba(30,88,176,0.35);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(0,0,0,0.2);
    outline: none;
}

.country-list-item.active {
    background: linear-gradient(135deg, rgba(30,88,176,0.18), rgba(30,88,176,0.05));
    border-color: var(--brand);
    color: #ffffff;
    box-shadow: 0 0 0 1px rgba(104,160,255,0.2), 0 18px 30px rgba(0,0,0,0.2);
}

/* Region Detail Panel */
.region-detail-panel {
    background: var(--card);
    border: var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    overflow: hidden;
    transition: all 0.4s ease;
}

.region-detail-empty {
    padding: 48px;
    text-align: center;
}

.detail-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30,88,176,0.2), rgba(30,88,176,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.detail-icon i {
    font-size: 36px;
    color: var(--brand);
}

.detail-icon.active {
    background: linear-gradient(135deg, #10b981, #059669);
}

.detail-icon.active i {
    color: white;
}

.region-detail-empty h3 {
    font-size: 1.5rem;
    margin: 0 0 12px 0;
    color: var(--text);
}

.region-detail-empty p {
    color: var(--muted);
    margin: 0 0 32px 0;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.global-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand);
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Region Detail Content */
.region-detail-content {
    padding: 40px;
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-header .detail-icon {
    margin: 0;
    width: 64px;
    height: 64px;
}

.detail-header .detail-icon i {
    font-size: 28px;
}

.region-name {
    font-size: 1.75rem;
    margin: 0;
    color: var(--text);
}

.region-description {
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.contact-options {
    display: grid;
    gap: 12px;
}

.contact-locations {
    display: grid;
    gap: 18px;
    margin-top: 8px;
}

.contact-location {
    display: grid;
    gap: 14px;
    padding: 20px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025)),
        rgba(8,10,14,0.72);
    border: 1px solid rgba(104,160,255,0.18);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.18);
}

.location-name {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #ffffff;
}

.contact-location .contact-list {
    margin: 0;
}

.contact-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-option:hover {
    background: rgba(30,88,176,0.1);
    border-color: rgba(30,88,176,0.3);
    transform: translateX(4px);
}

.contact-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: rgba(30,88,176,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i,
.contact-icon svg {
    font-size: 20px;
    color: var(--brand);
}

.contact-icon.whatsapp {
    background: rgba(37,211,102,0.15);
}

.contact-icon.whatsapp i {
    color: #25d366;
}

.contact-icon.signal {
    background: rgba(58,129,239,0.15);
}

.contact-icon.telegram {
    background: rgba(0,136,204,0.15);
}

.contact-icon.telegram i {
    color: #0088cc;
}

.contact-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-option > i:last-child {
    color: var(--muted);
    font-size: 18px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-option:hover > i:last-child {
    opacity: 1;
}

/* Trust Section */
.trust-section {
    margin-top: 80px;
    padding: 48px 0;
}

.trust-header {
    text-align: center;
    margin-bottom: 40px;
}

.trust-header h2 {
    font-size: 2rem;
    margin: 0 0 8px 0;
    color: var(--text);
}

.trust-header p {
    color: var(--muted);
    margin: 0;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.trust-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--card);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    transition: transform 0.3s ease;
}

.trust-card:hover {
    transform: translateY(-4px);
}

.trust-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(30,88,176,0.2), rgba(30,88,176,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.trust-icon i {
    font-size: 28px;
    color: var(--brand);
}

.trust-card h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: var(--text);
}

.trust-card p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--muted);
}

/* Responsive Design */
@media (max-width: 768px) {
    .locations-header {
        margin-bottom: 32px;
    }

    .map-container {
        margin-bottom: 32px;
    }

    .map-mobile-toolbar {
        display: block;
        margin-bottom: 14px;
    }
    
    .world-map-wrapper {
        padding: 6px;
        border-radius: 16px;
    }

    .world-map-host {
        min-height: 0;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        aspect-ratio: 2000 / 857;
    }

    .continent-label {
        font-size: 100px;
        stroke-width: 12px;
        letter-spacing: 0.02em;
    }

    .world-map-detailed {
        width: 100%;
        height: auto;
    }
    
    .europe-country-list {
        padding: 24px 20px;
    }

    .country-list {
        grid-template-columns: 1fr;
    }
    
    .region-detail-empty,
    .region-detail-content {
        padding: 32px 24px;
    }
    
    .global-stats {
        gap: 24px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .contact-option {
        padding: 14px 16px;
    }

    .contact-location {
        padding: 16px;
        border-radius: 16px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .trust-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .map-container {
        margin-left: -8px;
        margin-right: -8px;
    }

    .map-mobile-hint {
        font-size: 0.88rem;
    }

    .map-chip {
        padding: 9px 14px;
        font-size: 0.88rem;
    }

    .continent-label {
        font-size: 80px;
        stroke-width: 10px;
    }

    .trust-grid {
        grid-template-columns: 1fr;
    }
    
    .global-stats {
        flex-direction: column;
        gap: 20px;
    }
}
