:root {
    --marker-default-color: #2C4188;
}

.marker-icon {
    width: 50px;
    height: 50px;
    fill: var(--marker-default-color);
}

.marker {
    align-items: center;
    background-color: transparent;
    border-radius: 50%;
    color: #263238;
    font-size: 14px;
    gap: 15px;
    height: 30px;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease-out;
    width: 30px;
}

.marker .icon {
    align-items: center;
    display: flex;
    justify-content: center;
    color: #FFFFFF;
}

.marker .icon svg {
    height: 37px;
    width: auto;
    fill: var(--marker-default-color);
}


.marker .address {
    color: #9E9E9E;
    font-size: 10px;
    margin-bottom: 10px;
    margin-top: 5px;
}

.marker .features {
    align-items: flex-end;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.marker .features > div {
    align-items: center;
    background: #F5F5F5;
    border-radius: 5px;
    border: 1px solid #ccc;
    display: flex;
    font-size: 10px;
    gap: 5px;
    padding: 5px;
}

/*
 * marker styles in highlighted state.
 */


.marker.highlight::after {
    border-top: 9px solid #FFFFFF;
    content: '';
    position: absolute;
    bottom: -20px; /* Adjust distance from bottom */
    left: 50%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #fff;
    transform: translateX(-50%);
    top: 100%;
    transition: all 0.3s ease-out;
    z-index: 1;
}


.marker.highlight .icon svg {
    width: 50px;
    height: 50px;
}


.marker.highlight .details {
    display: block;
}

.marker.highlight {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
    width: 300px;
    height: 282px;
    transition: all 0.3s ease-out;
}

.marker .icon {
    display: flex;
}

.marker.highlight .icon {
    display: none;
}

.marker .details {
    display: none;
    z-index: 2000000000;
}

.marker-image {
    width: 100%;
    height: 200px;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.map-link {
    position: inherit;
}

.highlight-z-index {
    z-index: 2000000000 !important;
}

.marker-title {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(255, 255, 255, 0.6);
    padding: 2px 10px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: auto;
    white-space: nowrap;
    color: var(--marker-default-color);
}

.marker.highlight .marker-title {
    display: none;
}

.marker-listing-content {
    background: #fff;
    padding: 20px 20px;
    z-index: 20;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.marker-listing-title h4 {
    font-size: 16px;
    text-align: left;
    font-weight: 500;
    color: #22a836;
    z-index: 1;
    position: relative;
    background-color: #FFFFFF;
    width: fit-content;
}

a.marker-listing-content {
    display: inline-block;
    color: inherit;
    text-decoration: none;
}

.marker-rating {
    display: flex; /* Make the marker-rating element a flex container */
    align-items: center; /* Align inner elements vertically within the container */
    position: absolute;
    left: 0; /* Position it on the left side */
    width: 100%;
    top: 160px;
    padding: 15px 20px;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(6, 27, 65, 0) 0%, rgba(6, 27, 65, 0.95) 100%);
}

.marker-rating i {
    color: #F9B90F
}

.marker-listing-content svg {
    width: 25px;
    position: absolute;
    left: 80%;
    fill: #dadada;
}


