.ccps-athlete-map-container {
    display: flex;
    gap: 0;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    height: 500px;
}

#ccps-athlete-map {
    width: 75%;
    height: 100%;
    min-height: 500px;
    box-shadow: var(--shadow-sm);
}

.ccps-athlete-list {
    width: 25%;
    background: var(--primary-ultra-light);
    overflow-y: auto;
    min-height: 100%;
}

.ccps-athlete-list h3 {
    font-size: var(--text-l);
    color: var(--primary);
    font-weight: bold;
    text-align: center;
    display: none;
}

.ccps-athlete-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ccps-athlete-list li {
    padding: var(--space-xs);
    border-bottom: 1px solid var(--primary);
    cursor: pointer;
    background-color: var(--primary-light-trans-50);
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    font-size: var(--text-s);
}

.ccps-athlete-list li:last-child {
    border-bottom: none;
}

.ccps-athlete-list li:hover {
    background-color: var(--primary-trans-70);
    color: var(--white-trans-70);
}

.ccps-athlete-list li:hover strong {
    color: var(--white);
}

.ccps-athlete-list li.active {
    background-color: var(--primary-light);
    border-left: 3px solid var(--primary-dark);
}

.ccps-athlete-list li strong {
    display: block;
    color: var(--primary-dark);
    font-size: var(--text-m);
    font-weight: bold;
}

.ccps-athlete-list li em {
    color: var(--primary-dark-trans-70);
    font-style: normal;
    font-size: var(--text-s);
}

.ccps-athlete-info {
    padding: var(--space-s);
    max-width: 300px;
    padding-top: 0px;
}

.ccps-athlete-info h3 {
    margin: 0 0 var(--space-xs) 0;
    font-size: var(--text-m);
    color: var(--primary);
    font-weight: bold;
}

.ccps-athlete-info p {
    font-size: var(--text-s);
    margin: var(--space-2xs) 0;
    color: var(--primary-dark-trans-70);
}

.ccps-athlete-info strong {
    font-weight: bold;
    color: var(--primary-dark);
}

/* Google Maps Info Window Customization */
.gm-style .gm-style-iw-c {
    padding: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-m);
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    padding: 0;
}

.gm-style .gm-style-iw-t::after {
    background: linear-gradient(45deg, var(--white) 50%, transparent 51%, transparent 100%);
    box-shadow: var(--shadow-s);
}

/* Marker Animation */
@keyframes markerDrop {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.gm-marker {
    animation: markerDrop var(--transition-normal) ease-out;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .ccps-athlete-map-container {
        flex-direction: column;
        gap: var(--space-m);
        height: unset;
    }

    #ccps-athlete-map {
        width: 100%;
        min-height: 300px;
        order: 2;
        scroll-margin-top: var(--space-m);
    }

    .ccps-athlete-list {
        width: 100%;
        height: auto;
        max-height: 750px;
        order: 1;
        border: 1px solid var(--primary);
        border-radius: var(--radius);
        background: var(--primary-ultra-light);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    }

    .ccps-athlete-list h3 {
        display: block;
        padding: var(--space-xs) 0;
        margin: 0;
        border-bottom: 1px solid var(--primary);
        position: sticky;
        top: 0;
        background: var(--primary-ultra-light);
        z-index: 1;
    }

    .ccps-athlete-info {
        max-width: 100%;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    #ccps-athlete-map {
        min-height: 250px;
    }

    .ccps-athlete-list {
        height: 500px; /* Shorter height on smaller devices */
    }

    .ccps-athlete-list li {
        padding: var(--space-xs);
    }

    .ccps-athlete-list li strong {
        font-size: var(--text-s);
    }

    .ccps-athlete-list li em {
        font-size: var(--text-xs);
    }
} 