:root {
    --mp-main-color: #c0580c;
    --mp-hover-color: #e0700a;
    --mp-text-color: #222;
    --mp-text-gray: #555;
    --mp-background-gray-lightest: #f9f9f9;
}

.mapboxgl-ctrl-attrib-inner {
    display: none;
}
.mapboxgl-ctrl-bottom-left {
    display: none;
}
.mapboxgl-ctrl-bottom-right {
    display: none;
}
.mapboxgl-popup {
    width: 280px;
}
.mapboxgl-popup-content {
    padding: 0;
    line-height: 1.6;
    border-radius: 10px;
    font-size: 14px;
    overflow: hidden;
}
.mapboxgl-popup-content .markerPro--header {
    font-weight: 700;
    padding: 0px 0 0;
    display: flex;
    flex-direction: column;
}
.mapboxgl-ctrl-group:not(:empty) {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.mp-close {
    font-size: 20px;
    z-index: 20;
    background-color: #fff;
    border-radius: 0 0 0 10px;
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    cursor: pointer;
}
.mp-close:hover {
    background-color: #fff;
}
.mapbox-gl-back .mapboxgl-ctrl-icon {
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTZweCIgaGVpZ2h0PSIxNnB4IiB2aWV3Qm94PSIwIDAgMTYgMTYiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0xIDZWMTVINlYxMUM2IDkuODk1NDMgNi44OTU0MyA5IDggOUM5LjEwNDU3IDkgMTAgOS44OTU0MyAxMCAxMVYxNUgxNVY2TDggMEwxIDZaIiBmaWxsPSIjMDAwMDAwIi8+Cjwvc3ZnPg==");
}
.marker {
    background: linear-gradient(180deg, #cf6609, #c00);
    box-shadow: 0 16px 60px 0 rgba(0, 0, 0, 0.08),
        0 6px 12px 0 rgba(0, 0, 0, 0.1);
    background-size: cover;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: width 0.2s ease-out, height 0.2s ease-out;
    border: 1px solid #fff;
}
.marker::before {
    position: absolute;
    border-radius: 100%;
    content: "";
    width: 100%;
    height: 100%;
    background-image: var(--photo);
    background-position: 50%;
    background-size: cover;
    transition: opacity 0.5s ease-out;
    opacity: 0;
}
.marker:not(.no-hover):hover {
    width: 64px;
    height: 64px;
    z-index: 100;
}
.marker:not(.no-hover):hover::before {
    opacity: 1;
}
.marker.no-post {
    background: linear-gradient(180deg, #89a9cd 0, #485f81);
}
.cluster::after {
    content: attr(data-cardinality);
    color: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    height: 100%;
    font-size: 12px;
    font-weight: 700;
    transition: font-size 0.2s ease-out;
}
.cluster:hover::after {
    font-size: 32px;
}
.mapbox--postCover {
    border-radius: 5px;
}
.footer--map {
    border-radius: 10px;
    margin-bottom: 20px;
    overflow: hidden;
    height: 550px;
}
.markerpro-filter-bar {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    padding: 7px 9px;
    display: flex;
    gap: 8px;
}
.markerpro-filter-btn {
    border: 0;
    font-size: 12px;
    background-color: var(--mp-background-gray-lightest);
    padding: 5px 12px;
    border-radius: 10px;
    cursor: pointer;
}
.markerpro-filter-btn.active,
.markerpro-filter-btn:hover {
    background-color: var(--mp-hover-color);
    color: #fff;
}
.markerpro-filter-btn.active {
    cursor: not-allowed;
    background-color: var(--mp-main-color);
}
.markerPro--years {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.markerpro-year {
    font-size: 12px;
    background-color: var(--mp-background-gray-lightest);
    border-radius: 999rem;
    line-height: 1;
    padding: 3px 12px;
    border-radius: 999rem;
    margin-right: 8px;
    margin-top: 8px;
    user-select: none;
}
.markerPro--cover {
    height: 100px;
    width: 100%;
    object-fit: cover;
}
.markerPro--content {
    padding-top: 5px;
}
.markerPro--link:hover {
    text-decoration: underline;
    color: var(--mp-hover-color);
}
.markerPro--link a:focus-visible {
    outline: none;
    border-radius: 3px;
}
.markerPro--name {
    font-weight: 600;
    padding: 12px 12px 0;
    display: flex;
}
.markerPro--content {
    font-size: 12px;
    color: var(--mp-text-gray);
    padding: 0 12px 12px;
}
.markerPro--posts {
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 16px;
    display: grid;
}
.markerPro--posts .distance::before {
    content: "·";
    margin-left: 4px;
    margin-right: 4px;
}
.markerPro--location {
    display: flex;
    align-items: center;
}
.markerPro--location svg {
    margin-right: 5px;
}

.markerPro--post {
    box-shadow: none;
    transition: 1s background-position;
    background-color: #f2f4f6;
    background-image: var(--background);
    color: #fff;
    padding: 30px 15px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
    min-width: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none !important;
    padding-top: 80px;
}
.markerPro--post::before {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 5%,
        rgba(0, 0, 0, 0.65)
    );
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 5px;
}
.markerPro--post:hover {
    background-position: bottom;
}
.markerPro--title {
    position: relative;
    margin: 3px 0;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    font-size: 16px;
}
.markerPro--meta {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    position: relative;
}
.markerPro--location {
    background-color: #c0580c;
    font-size: 12px;
    color: #fff;
    border-radius: 0 5px 0 5px;
    line-height: 1.4;
    padding: 1px 5px;
    position: absolute;
    top: 0;
    right: 0;
    font-size: 12px;
    background-color: rgba(0, 0, 0, 0.56);
    border-radius: 999rem;
    top: 10px;
    right: 10px;
    padding: 2px 8px;
}
.markerPro--addonTitle {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}
.mapboxgl-popup {
    padding-bottom: 8px;
}
.mapboxgl-popup .mp-popup {
    position: relative;
    min-width: 220px;
}
.mapboxgl-popup .mp-popup .mp-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 26px;
    height: 26px;
    border: 0;
    background: #222;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    line-height: 26px;
    font-size: 16px;
    font-weight: 600;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mapboxgl-popup .mp-popup .mp-close:hover {
    background: #000;
}
.mapboxgl-popup .mp-popup .markerPro--cover {
    margin-top: 6px;
}
.mapboxgl-popup .mp-popup .markerPro--years {
    margin-top: 6px;
}
.markerpro-stats,
.markerpro-year-stats {
    position: absolute;
    right: 10px;
    bottom: 10px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    padding: 8px 10px;
    border-radius: 6px;
    display: flex;
    gap: 10px;
    backdrop-filter: blur(4px);
    z-index: 3;
}
.markerpro-year-stats {
    left: 10px;
    right: auto;
    max-width: 150px;
    flex-wrap: wrap;
}
.markerpro-year-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    opacity: 0.75;
}
.markerpro-year-stats span em {
    font-style: normal;
}
.markerpro-year-stats span strong {
    font-size: 13px;
    color: #fff;
}
.markerpro-year-stats span.active {
    opacity: 1;
    font-weight: 600;
}
.markerpro-year-stats span.total {
    margin-left: 4px;
    opacity: 1;
    font-weight: 600;
}
.markerpro-year-stats span.total strong {
    color: #4dd2ff;
}
.markerpro-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    opacity: 0.75;
}
.markerpro-stats span.active {
    opacity: 1;
    font-weight: 600;
}
.markerpro-stats span strong {
    font-size: 13px;
    color: #fff;
}
.markerpro-stats span.total {
    margin-left: 4px;
    opacity: 1;
    font-weight: 600;
}
.markerpro-stats span.total strong {
    color: #4dd2ff;
}
@media (prefers-color-scheme: dark) {
    .mapboxgl-popup .mp-popup .mp-close {
        background: #fff 22;
        color: #fff;
    }
    .mapboxgl-popup .mp-popup .mp-close:hover {
        background: #fff 44;
    }
    .markerpro-stats {
        background: rgba(30, 30, 30, 0.7);
    }
}
