/* Global Branches Map - Frontend Styles */

.gbm-map-container {
    position: relative;
    width: 100%;
    height: 600px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.gbm-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(30, 60, 114, 0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gbm-loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.gbm-loader {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #ffffff;
    border-radius: 50%;
    animation: gbm-spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes gbm-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gbm-loading-text {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin: 0;
}

#gbm-globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
}

#gbm-globe-canvas:active {
    cursor: grabbing;
}

/* Branch Tooltip Styles */
.gbm-branch-tooltip {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 320px;
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    pointer-events: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gbm-branch-tooltip.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.gbm-branch-tooltip h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e3c72;
    line-height: 1.3;
}

.gbm-address {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.gbm-contact-info {
    margin-bottom: 15px;
}

.gbm-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: #555;
}

.gbm-contact-item:last-child {
    margin-bottom: 0;
}

.gbm-contact-icon {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    fill: #1e3c72;
    flex-shrink: 0;
}

.gbm-contact-item a {
    color: #1e3c72;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gbm-contact-item a:hover {
    color: #2a5298;
    text-decoration: underline;
}

.gbm-social-media {
    display: flex;
    gap: 12px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.gbm-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.gbm-social-link:hover {
    background: #1e3c72;
    transform: translateY(-2px);
}

.gbm-social-link:hover .gbm-social-icon {
    fill: white;
}

.gbm-social-icon {
    width: 16px;
    height: 16px;
    fill: #666;
    transition: fill 0.2s ease;
}

/* Branch Points on Globe */
.gbm-branch-point {
    position: absolute;
    width: 12px;
    height: 12px;
    background: #ffd700;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    animation: gbm-pulse 2s infinite;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    z-index: 100;
}

.gbm-branch-point:hover {
    animation-play-state: paused;
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8);
}

@keyframes gbm-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 215, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 215, 0, 0);
    }
}

/* Controls Info */
.gbm-controls-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 100;
}

.gbm-controls-info p {
    margin: 0;
    line-height: 1.4;
}

/* Error Message */
.gbm-error-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(220, 53, 69, 0.9);
    color: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    z-index: 1000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gbm-map-container {
        height: 400px;
        border-radius: 8px;
        margin: 15px 0;
    }
    
    .gbm-branch-tooltip {
        max-width: 280px;
        min-width: 240px;
        padding: 15px;
    }
    
    .gbm-branch-tooltip h3 {
        font-size: 16px;
    }
    
    .gbm-controls-info {
        bottom: 10px;
        left: 10px;
        padding: 8px 12px;
        font-size: 11px;
    }
    
    .gbm-social-media {
        gap: 8px;
    }
    
    .gbm-social-link {
        width: 28px;
        height: 28px;
    }
    
    .gbm-social-icon {
        width: 14px;
        height: 14px;
    }
}

@media (max-width: 480px) {
    .gbm-map-container {
        height: 350px;
    }
    
    .gbm-branch-tooltip {
        max-width: 240px;
        min-width: 200px;
        padding: 12px;
    }
    
    .gbm-branch-tooltip h3 {
        font-size: 15px;
    }
    
    .gbm-address {
        font-size: 13px;
    }
    
    .gbm-contact-item {
        font-size: 12px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .gbm-branch-tooltip {
        background: rgba(30, 30, 30, 0.95);
        color: #e0e0e0;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .gbm-branch-tooltip h3 {
        color: #4a90e2;
    }
    
    .gbm-address {
        color: #b0b0b0;
    }
    
    .gbm-contact-item {
        color: #c0c0c0;
    }
    
    .gbm-contact-item a {
        color: #4a90e2;
    }
    
    .gbm-contact-item a:hover {
        color: #6bb6ff;
    }
    
    .gbm-social-link {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .gbm-social-link:hover {
        background: #4a90e2;
    }
    
    .gbm-social-icon {
        fill: #c0c0c0;
    }
}

