.marker {
	background-color: transparent;
	background-image: var(--marker-image);
	background-size: contain;
	width: 50px;
	height: 50px;
	/* border-radius: 50%; */
	cursor: pointer;
	transition: opacity .5s ease, top .5s ease;
	top: -25px;
}

.marker.show-marker {
    opacity: 1;
    pointer-events: auto;
}
.marker.hide-marker {
	top: -45px;
    opacity: 0 !important;
    pointer-events: none;
}

/* Mapbox Popup Styling - Match Card Overlay */
.mapboxgl-popup-content {
    padding: 0 !important;
    background: white !important;
    border-radius: 8px;
    overflow: visible !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 280px !important;
}

.peer-popup-container {
    position: relative;
    width: 280px;
    padding-top: 66.666%;
    overflow: hidden;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
}

.peer-popup-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,0.7));
    z-index: 2;
}

.peer-popup-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    color: white;
    text-align: left;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.peer-popup-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
    text-decoration: none;
    color: white;
    display: block;
    cursor: pointer;
}

.peer-popup-title:hover {
    text-decoration: underline;
}

.peer-popup-details {
    font-size: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.peer-popup-details span {
    margin: 0;
    padding: 0;
}

/* Ensure Mapbox popup wrapper displays correctly */
.mapboxgl-popup {
    max-width: 320px !important;
}

.mapboxgl-popup-close-button {
    right: 8px;
    top: 8px;
    z-index: 10;
}
mapboxgl-ctrl-bottom-right {
    display: none;
}