/* Maps Page Specific Styles */
/* Maps Page Specific Styles */
.maps-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
    /* Centered as requested */
}

.map-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--card-border-color);
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 200px;
    /* Fixed width for better centering */
}

.map-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-color: var(--accent-color);
}

.map-icon {
    width: 100%;
    /* Fully fill */
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    /* Cover crop */
    margin-bottom: 10px;
    border-radius: 8px;
    display: block;
}

.map-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Map Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Dark semi-transparent background */
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    /* High z-index */
    backdrop-filter: blur(5px);
}

/* Modal Content - No Container/Border as requested */
.map-modal-content {
    background: transparent;
    padding: 0;
    border: none;
    box-shadow: none;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    /* Allow close button to be outside if needed */
}

.map-modal-header {
    display: none;
    /* Hide header/title in modal as requested "Just the image popup" */
}

.map-modal-body {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-modal-body img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    /* Add shadow to image itself */
    display: block;
}

.modal-close {
    display: none;
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2001;
}

.modal-close:hover {
    color: var(--accent-color);
}

.map-modal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--card-border-color);
}

.map-modal-header h2 {
    color: var(--accent-color);
    margin: 0;
    font-size: 28px;
}

.map-modal-body {
    padding: 10px;
}

.map-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.modal-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: var(--text-color);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 1001;
}

.modal-close:hover {
    color: var(--accent-color);
}

/* Loading indicator */
.loading-indicator {
    text-align: center;
    padding: 40px;
    color: var(--text-color);
    font-size: 16px;
}

/* Tab content styling */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Player tabs styling */
.player-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--card-border-color);
    justify-content: center;
}

.tab-link {
    padding: 12px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    opacity: 0.7;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.tab-link:hover {
    opacity: 1;
}

.tab-link.active {
    opacity: 1;
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

.tab-content-container {
    padding: 0;
}