/* --- TMCH Ultimate Refinement: Hero & Map --- */

/* 1. Hero Refinement: "Huevo" Image */
.huevo.img-huevo {
    width: 100%;
    max-width: 300px;
    /* Mobile base */
    height: 250px;
    /* Fixed height to prevent jump */
    object-fit: contain;
    margin-top: 2rem !important;
    transition: transform 0.5s ease, opacity 0.3s ease;
}

@media (min-width: 992px) {
    .huevo.img-huevo {
        max-width: 330px !important;
        height: 330px;
        margin-left: 0 !important;
        /* Move toward Left */
        margin-right: auto !important;
        margin-top: 8rem !important;
        /* Move Down, under buttons */
        position: relative;
        left: -20px;
        /* Precise left nudge to align under header CTA */
    }

    .huevo.img-huevo:hover {
        transform: scale(1.08) rotate(-2deg);
        /* Dynamic premium hover */
    }
}

/* 2. Map Professionalization (40px Micro-Icons) */
.tmch-custom-marker {
    background: transparent !important;
    border: none !important;
}

.premium-marker.micro {
    position: relative;
    width: 100%;
    height: 100%;
}

.marker-pin {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: absolute;
    top: 0;
    left: 4px;
}

.marker-pin i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 16px;
}

/* MILIMETRIC SYNC: Shadow and Pulse */
.marker-pulse {
    position: absolute;
    width: 14px;
    height: 6px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    bottom: -3px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    animation: tmch-pulse-final 2s infinite;
    z-index: 1;
}

.marker-shadow {
    position: absolute;
    width: 10px;
    height: 4px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    filter: blur(1.5px);
    z-index: 0;
}

@keyframes tmch-pulse-final {
    0% {
        transform: translateX(-50%) scale(0.5);
        opacity: 0.8;
    }

    70% {
        transform: translateX(-50%) scale(3.5);
        opacity: 0;
    }

    100% {
        transform: translateX(-50%) scale(3.5);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .marker-pin {
        width: 22px;
        height: 22px;
        left: 1.5px;
    }

    .marker-pin i {
        font-size: 10px;
    }

    .marker-pulse {
        width: 8px;
        height: 3px;
        bottom: -1px;
    }
}

/* Category Colors */
.premium-marker.island .marker-pin {
    background: #00bcd4;
}

.premium-marker.beach .marker-pin {
    background: #f39c12;
}

.premium-marker.nature .marker-pin {
    background: #27ae60;
}

.premium-marker.mar .marker-pin {
    background: #2980b9;
}

.premium-marker.urban .marker-pin {
    background: #9b59b6;
}

.premium-marker.hiking .marker-pin {
    background: #e74c3c;
}

/* 3. Popup UI & CTA Buttons */
.map-popup.glass {
    background: rgba(13, 17, 23, 0.98) !important;
    backdrop-filter: blur(15px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(139, 195, 74, 0.4);
    color: #fff;
    min-width: 160px;
}

.popup-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}

.button-red {
    background: #ff0000 !important;
    color: #fff !important;
    border-radius: 6px;
    font-size: 11px !important;
    padding: 6px 10px !important;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
}

.button-outline {
    background: transparent !important;
    border: 1px solid var(--primary-color) !important;
    color: var(--primary-color) !important;
    border-radius: 6px;
    font-size: 11px !important;
    padding: 6px 10px !important;
    text-align: center;
    font-weight: bold;
}

/* 4. Recenter Control Styling */
.recenter-control button {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    border: 1px solid var(--primary-color);
    padding: 8px 15px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
    backdrop-filter: blur(5px);
    margin: 10px;
    transition: all 0.3s ease;
}

.recenter-control button:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(139, 195, 74, 0.4);
}