/* =========================================================
   Fortune One Vista - Premium Hotspots & Animations
========================================================= */

/* --- Keyframe Animations --- */
@keyframes premiumPulse {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

@keyframes premiumRipple {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

@keyframes floatBreathing {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.premium-hotspot-container {
    position: relative;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
    pointer-events: auto !important;
}

.premium-hotspot-container:hover {
    z-index: 100;
}

/* --- Navigation Hotspot (Ring) --- */
.hs-nav-ring {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    animation: premiumRipple 2.5s infinite;
    transition: var(--transition-smooth);
}
.hs-nav-ring i {
    color: #fff;
    font-size: 1.2rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.premium-hotspot-container:hover .hs-nav-ring {
    transform: scale(1.2);
    background: var(--color-primary);
    border-color: var(--color-primary);
}

/* --- Plot Status Colors (Pins) --- */
.hs-plot-pin {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 2px solid rgba(255,255,255,0.9);
    animation: premiumPulse 3s infinite;
    transition: var(--transition-smooth);
    position: relative; /* Added for ::after positioning */
}

/* Create the downward arrow */
.hs-plot-pin::after {
    content: '';
    position: absolute;
    bottom: -10px; /* Position it below the circle */
    left: 50%;
    transform: translateX(-50%);
    border-width: 10px 8px 0 8px; /* Downward triangle */
    border-style: solid;
    border-color: transparent transparent transparent transparent; /* Colored later by status classes */
}

.hs-status-available {
    background: linear-gradient(135deg, #10b981, #059669); /* Green */
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}
.hs-status-available::after { border-top-color: #059669; }

.hs-status-reserved {
    background: linear-gradient(135deg, #f59e0b, #d97706); /* Orange */
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.6);
}
.hs-status-reserved::after { border-top-color: #d97706; }

.hs-status-sold {
    background: linear-gradient(135deg, #ef4444, #dc2626); /* Red */
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}
.hs-status-sold::after { border-top-color: #dc2626; }

.hs-status-premium {
    background: linear-gradient(135deg, #fbbf24, #d4af37); /* Gold */
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    border-color: #fff;
}
.hs-status-premium::after { border-top-color: #d4af37; }

.premium-hotspot-container:hover .hs-plot-pin {
    transform: scale(1.1) translateY(-5px);
}

/* --- Floating Label / Glass Card --- */
.hs-glass-card {
    position: absolute;
    bottom: 120%; /* Position above the pin */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--color-bg-glass);
    border: 1px solid var(--color-glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 15px;
    width: max-content;
    min-width: 180px;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: var(--transition-smooth);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

/* Show card on hover */
.premium-hotspot-container:hover .hs-glass-card {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.hs-card-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 5px;
}

.hs-card-detail {
    font-size: 0.85rem;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}
.hs-card-detail span {
    color: rgba(255,255,255,0.7);
}

.hs-card-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    padding: 8px 0;
    text-align: center;
    background: var(--color-primary);
    color: var(--color-bg-dark);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    pointer-events: auto; /* Re-enable clicks for the button */
}
.hs-card-btn:hover {
    background: #fff;
}

/* --- Info / Amenity Hotspot (Diamond) --- */
.hs-info-diamond {
    width: 30px;
    height: 30px;
    background: var(--color-bg-glass);
    border: 1px solid var(--color-primary);
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    animation: floatBreathing 4s infinite ease-in-out;
    transition: var(--transition-smooth);
}
.hs-info-diamond i {
    transform: rotate(-45deg);
    color: var(--color-primary);
    font-size: 0.9rem;
}
.premium-hotspot-container:hover .hs-info-diamond {
    background: var(--color-primary);
    transform: rotate(45deg) scale(1.2);
}
.premium-hotspot-container:hover .hs-info-diamond i {
    color: var(--color-bg-dark);
}
/* =========================================================
   DIAMOND NAVIGATION HOTSPOT (From Reference)
========================================================= */

.hs-nav-diamond-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transform: translateY(-50%);
}

.hs-nav-diamond-label {
    background: #ffffff;
    color: #333333;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border-radius: 2px;
    white-space: nowrap;
    text-transform: capitalize;
    font-family: var(--font-body);
}

.hs-nav-diamond {
    width: 28px;
    height: 28px;
    border: 2px solid rgba(255, 255, 255, 0.9);
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3), inset 0 0 10px rgba(255,255,255,0.2);
    transition: var(--transition-smooth);
}

.premium-hotspot-container:hover .hs-nav-diamond {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(45deg) scale(1.1);
}

/* =========================================================
   MINIMAP POLYGON HIGHLIGHT OVERLAY
========================================================= */
.minimap-highlight-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Let clicks pass through to pins */
    z-index: 2; /* Above map bg, below pins */
}

.phase-highlight-poly {
    fill: rgba(16, 185, 129, 0.4); /* Green tint */
    stroke: rgba(16, 185, 129, 0.8);
    stroke-width: 0.5;
    transition: all 0.5s ease;
    animation: pulsePoly 3s infinite;
}

@keyframes pulsePoly {
    0% { fill: rgba(16, 185, 129, 0.3); }
    50% { fill: rgba(16, 185, 129, 0.5); }
    100% { fill: rgba(16, 185, 129, 0.3); }
}

