.grid-item-animate {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.map-marker-container {
    transform: translate(-50%, -100%) !important;
}

#map div.cluster img {
    display: none !important;
}

.altamira-cluster {
    width: 36px !important;
    height: 36px !important;
    background-color: #1563df !important;
    border: 2px solid #ffffff !important;
    color: #ffffff !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    -webkit-backface-visibility: hidden !important;
    backface-visibility: hidden !important;
    box-sizing: content-box !important;
    background-clip: content-box !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    cursor: pointer !important;
    transition: transform 0.2s ease !important;
    transform: translate(-50%, -50%);
    z-index: 100 !important;
}

.altamira-cluster:hover {
    transform: translate(-50%, -50%) scale(1.15) !important;
    background-color: #0c4eb8 !important;
}

.altamira-cluster span {
    font-size: 15px !important;
    font-weight: bold !important;
    font-family: Arial, sans-serif !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.altamira-cluster::before,
.altamira-cluster::after {
    position: absolute !important;
    content: "" !important;
    top: -2px !important;
    bottom: -2px !important;
    right: -2px !important;
    left: -2px !important;
    border-radius: 50% !important;
    -webkit-animation: ripple 2s infinite !important;
    animation: ripple 2s infinite !important;
    z-index: -1 !important;
}

.altamira-cluster::before {
    -webkit-animation-delay: 0.6s !important;
    animation-delay: 0.6s !important;
}

.altamira-cluster::after {
    -webkit-animation-delay: 0.2s !important;
    animation-delay: 0.2s !important;
}

.altamira-infobox-mobile {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    position: relative;
    font-family: Arial, sans-serif;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.altamira-infobox-mobile .img-wrap {
    position: relative;
    width: 100%;
    height: 130px;
}

.altamira-infobox-mobile .img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.altamira-infobox-mobile .infoBox-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(18, 33, 63, 0.8) !important;
    color: #fff !important;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    font-size: 12px;
}

.altamira-infobox-mobile .infoBox-close:hover {
    background: #4df0ff !important;
    color: #12213F !important;
}

.altamira-infobox-mobile .content-wrap {
    padding: 12px 15px 15px 15px;
}

.altamira-infobox-mobile .title {
    color: #12213F;
    font-size: 16px;
    font-weight: 900;
    margin: 0 0 4px 0;
}

.altamira-infobox-mobile .address {
    font-size: 11px;
    color: #666;
    margin: 0 0 12px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.altamira-infobox-mobile .details-row {
    display: flex;
    justify-content: space-between;
    background: #f4f5f7;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #333;
    margin-bottom: 12px;
}

.altamira-infobox-mobile .btn-detalles {
    display: block;
    width: 100%;
    text-align: center;
    color: #12213F;
    font-weight: bold;
    font-size: 14px;
    text-decoration: none;
    padding: 5px 0 0 0;
}

.altamira-infobox-mobile .btn-detalles:hover {
    color: #4df0ff;
}

.infobox-logo-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}

.infobox-logo-overlay img {
    width: 110px !important;
    height: auto !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
}

.map-listing-item .inner-box {
    border-radius: 12px !important; /* Ajusta el nivel de curva de la tarjeta completa */
    overflow: hidden !important;    /* ESTA ES LA MAGIA: Corta cualquier cosa (como la imagen) que intente salirse de la curva */
}

/* Refuerzo directo a la imagen por si acaso */
.map-listing-item .image-box img {
    border-top-left-radius: 12px !important;
    border-bottom-left-radius: 12px !important;
}
