  #map-container {
        padding: 6px;
        border-width: 1px;
        border-style: solid;
        border-color: #ccc #ccc #999 #ccc;
        -webkit-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
        -moz-box-shadow: rgba(64, 64, 64, 0.5) 0 2px 5px;
        box-shadow: rgba(64, 64, 64, 0.1) 0 2px 5px;
        width: 600px;
      }

      #map {
        width: 100%;
        height: 800px;
      }

       .custom-clustericon {
        background: var(--cluster-color);
        color: #fff;
        border-radius: 100%;
        font-weight: bold;
        font-size: 15px;
        display: flex;
        align-items: center;
      }

      .custom-clustericon::before,
      .custom-clustericon::after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;

        transform: translate(-50%, -50%);
        top: 50%;
        left: 50%;
        background: var(--cluster-color);
        opacity: 0.2;
        border-radius: 100%;
      }

      .custom-clustericon::before {
        padding: 7px;
      }

      .custom-clustericon::after {
        padding: 14px;
      }

      .custom-clustericon-1 {
        --cluster-color: #00a2d3;
      }

      .custom-clustericon-2 {
        --cluster-color: #ff9b00;
      }

      .custom-clustericon-3 {
        --cluster-color: #ff6969;
      }



.infobox-wrapper > img {
    opacity: 1;
    filter: drop-shadow(1px 1px 5px #FFF);
    -moz-transition: 0.4s;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    position: absolute !important;
    right: 8px;
    top: 12px;
    z-index: 2;
}
.infobox-wrapper > img:hover {
    filter: drop-shadow(1px 1px 3px #FFF);
    opacity: 1;
}
.infobox-wrapper .infobox-inner {
    -moz-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
    background: #fff;
    border-top: 6px solid #9b2730;
    font-size: 12px;
    position: relative;
    margin-bottom: 50px;
    width: 250px;
}
.infobox-wrapper .infobox-inner:after {
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 6px 6px 0 6px;
    border-color: #fff transparent transparent transparent;
    position: absolute;
    left: 119px;
    content: "";
    bottom: -6px;
}
.infobox-wrapper .infobox-inner .infobox-image {
    width: 250px;
    height: auto;
    overflow: hidden;
    position: relative;
}
.infobox-wrapper .infobox-inner .infobox-image:after {
    background: -moz-linear-gradient(
        top,
        transparent 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    background: -webkit-gradient(
        linear,
        left top,
        left bottom,
        color-stop(50%, transparent),
        color-stop(100%, rgba(0, 0, 0, 0.75))
    );
    background: -webkit-linear-gradient(
        top,
        transparent 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    background: -o-linear-gradient(
        top,
        transparent 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    background: -ms-linear-gradient(
        top,
        transparent 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.75) 100%
    );
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 );
    display: block;
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}
.infobox-wrapper .infobox-inner .infobox-image img {
    width: 100%;
}
.infobox-wrapper .infobox-inner .infobox-image .infobox-price {
    -moz-border-radius: 2px;
    -webkit-border-radius: 2px;
    border-radius: 2px;
    -moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    -webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.3);
    background-color: #9b2730;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 7px;
    position: absolute;
    bottom: 8px;
    left: 8px;
    z-index: 2;
}
.infobox-wrapper .infobox-inner .infobox-title {
    font-size: 12px;
    font-weight: normal;
}
.infobox-wrapper .infobox-inner .infobox-title a {
    color: #9b2730;
}
.infobox-wrapper .infobox-inner .infobox-description {
    padding: 8px;
}
.infobox-wrapper .infobox-inner .infobox-location {
    filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=50);
    opacity: 0.9;
    font-size: 12px;
}
.infobox-wrapper .infobox-inner .fa {
    color: #9b2730;
    float: right;
    font-size: 18px;
    margin-top: 4px;
}

.marker-hover {
    opacity: 0.5;
}
.marker-style {
    border: 3px solid #e2372f;
    text-align: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    margin-left: -17px !important;
    margin-top: -46px !important;
}
.marker-style img {
    position: absolute !important;
    top: -1px !important;
    bottom: 0px !important;
    right: 0px;
    left: 0px;
    margin: auto !important;
}

/* Modern map hover card */
.map-card {
    width: 320px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.18);
    display: flex;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #111827;
    overflow: hidden;
}

.map-card__image {
    height: 180px;
    padding: 5px;
    background-color: #ffffff;
    position: relative;
}

.map-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 0 0 1px #000;
}

.map-card__image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f7f8fa;
}

.map-card__placeholder-circle {
    width: 200px;
    height: 200px;
    border-radius: 9999px;
    background-color: rgba(148, 163, 184, 0.12);
    box-shadow: 0 0 10px -5px #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-card__placeholder-emoji {
    font-size: 120px;
    line-height: 1;
    opacity: 0.9;
}

/* Rating badge on homepage map card (bottom-left over image) */
.map-card__rating-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 4px 11px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #fbbf24;
}

.map-card__rating-badge-value {
    font-size: 12px;
    color: #fef9c3;
    font-weight: 600;
}

/* Shared layered star rendering (supports half-stars) */
.rating-stars {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.rating-stars-base,
.rating-stars-fill {
    letter-spacing: 2px;
}

.rating-stars-base {
    color: rgba(248, 250, 252, 0.25);
}

.rating-stars-fill {
    position: absolute;
    left: 0;
    top: 0;
    white-space: nowrap;
    overflow: hidden;
    color: #fbbf24;
}

/* Map card: slightly bigger stars (~+30%) */
.map-card__rating-badge .rating-stars {
    font-size: 17px;
}

.map-card__body {
    padding: 12px 16px 8px 16px;
    background-color: #ffffff;
}

.map-card__price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.map-card__price {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.map-card__label-small {
    font-size: 12px;
    color: #9ca3af;
    margin-left: auto;
}

.map-card__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
}

.map-card__meta {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    margin-left: 4px;
}

.map-card__description {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-clamp: 2;
}

.map-card__address {
    font-size: 13px;
    color: #9ca3af;
}

.map-card__ad {
    height: 50px;
    background-color: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 11px;
    color: #9ca3af;
    background-image: url('/themes/aukcionai/images/320x50_placeholder.gif');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.map-card__footer {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background-color: #ffffff;
    border-top: 1px solid #e5e7eb;
}

.map-card__btn {
    padding: 12px 8px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.map-card__btn--ghost {
    background-color: #ffffff;
    color: #374151;
    border-right: 1px solid #e5e7eb;
}

.map-card__btn--primary {
    background-color: #ffffff;
    color: #374151;
    border-right: 1px solid #e5e7eb;
}

.map-card__btn:hover {
    background-color: #f3f4f6;
}

.map-card__btn-icon {
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.map-card-triangle {
    /* actual position/borders are set from JS */
}

/* Loading state card when data is being fetched */
.map-card--loading {
    align-items: center;
    justify-content: center;
    min-height: 420px;
}

.map-card-loading-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 24px 16px;
}

.map-card-loading-spinner {
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    border: 3px solid #e5e7eb;
    border-top-color: #0e7490;
    animation: map-card-spin 0.8s linear infinite;
}

.map-card-loading-text {
    font-size: 13px;
    color: #6b7280;
}

@keyframes map-card-spin {
    to { transform: rotate(360deg); }
}
