/* ═══════════════════════════════════════════════════════════
   3D SNOW — Green & gold falling particles across full page
   ═══════════════════════════════════════════════════════════ */

.un-snow {
    position: fixed;
    inset: 0;
    z-index: 99;
    pointer-events: none;
    overflow: hidden;
    perspective: 800px;
    transform-style: preserve-3d;
}

.un-flake {
    position: absolute;
    width: var(--s);
    height: var(--s);
    left: var(--x);
    top: -10px;
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
    animation: snowFall var(--d) linear infinite;
    animation-delay: var(--del);
}

.un-flake-green {
    background: radial-gradient(circle, #B8D4A8 0%, #93AC80 40%, #7B9669 100%);
    box-shadow:
        0 0 8px rgba(123, 150, 105, 0.8),
        0 0 18px rgba(123, 150, 105, 0.5),
        0 0 35px rgba(123, 150, 105, 0.3),
        0 0 60px rgba(147, 172, 128, 0.15);
}

.un-flake-gold {
    background: radial-gradient(circle, #FFE44D 0%, #FFD700 40%, #D4AF37 100%);
    box-shadow:
        0 0 8px rgba(255, 215, 0, 0.8),
        0 0 18px rgba(212, 175, 55, 0.5),
        0 0 35px rgba(212, 175, 55, 0.3),
        0 0 60px rgba(255, 215, 0, 0.15);
}

@keyframes snowFall {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, var(--z)) scale(0.4);
    }
    5% {
        opacity: 1;
        transform: translate3d(calc(var(--drift) * 0.1), 5vh, var(--z)) scale(1);
    }
    25% {
        opacity: 0.9;
        transform: translate3d(calc(var(--drift) * 0.5), 25vh, var(--z)) scale(0.95);
    }
    50% {
        opacity: 0.7;
        transform: translate3d(var(--drift), 50vh, var(--z)) scale(0.85);
    }
    75% {
        opacity: 0.45;
        transform: translate3d(calc(var(--drift) * 0.7), 75vh, var(--z)) scale(0.7);
    }
    100% {
        opacity: 0;
        transform: translate3d(calc(var(--drift) * 0.4), 105vh, var(--z)) scale(0.5);
    }
}

/* Larger flakes shimmer */
.un-flake-gold[style*="--s:5px"],
.un-flake-gold[style*="--s:6px"] {
    animation: snowFall var(--d) linear infinite, snowShimmer 2s ease-in-out infinite;
    animation-delay: var(--del), 0s;
}

.un-flake-green[style*="--s:5px"],
.un-flake-green[style*="--s:6px"] {
    animation: snowFall var(--d) linear infinite, snowShimmer 3s ease-in-out infinite;
    animation-delay: var(--del), 0s;
}

@keyframes snowShimmer {
    0%, 100% { filter: brightness(1) drop-shadow(0 0 3px currentColor); }
    50%      { filter: brightness(1.8) drop-shadow(0 0 8px currentColor); }
}

/* Accessibility — respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .un-snow { display: none !important; }
}

/* ═══════════════════════════════════════════════════════════
   HERO — Modern dark hero with ambient glow & dot grid
   ═══════════════════════════════════════════════════════════ */

/* ── Hero Background Video ── */
.un-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.un-hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(180deg, rgba(42, 51, 38, 0.85) 0%, rgba(42, 51, 38, 0.6) 40%, rgba(42, 51, 38, 0.85) 100%),
        linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, transparent 60%);
}

@media (prefers-reduced-motion: reduce) {
    .un-hero-video { display: none; }
}

/* ── Hero Container ── */
.un-hero-fp {
    min-height: 100vh;
    background: var(--earth-900);
    padding: 110px 24px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ── Ambient gradient blobs ── */
.un-hero-fp::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(600px circle at 25% 25%, rgba(90, 122, 78, 0.05) 0%, transparent 60%),
        radial-gradient(500px circle at 75% 65%, rgba(90, 122, 78, 0.03) 0%, transparent 50%),
        radial-gradient(800px circle at 50% 90%, rgba(90, 122, 78, 0.02) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ── Modern dot grid (replaces line grid) ── */
.un-hero-fp-grid {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: radial-gradient(rgba(90, 122, 78, 0.15) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
}

/* ══════════════════════════════════════════════════════════
   3D OVERLAY — Floating orbs, particles & light rays
   ══════════════════════════════════════════════════════════ */

.un-3d-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    perspective: 1200px;
}

/* ── Floating Gradient Orbs ── */
.un-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    will-change: transform, opacity;
    animation: orbFloat linear infinite, orbFade ease-in-out infinite;
}

.un-orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(90, 122, 78, 0.18) 0%, rgba(90, 122, 78, 0) 70%);
    top: 10%;
    left: -5%;
    animation-duration: 20s, 8s;
    animation-delay: 0s, 0s;
}

.un-orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(196, 125, 78, 0.15) 0%, rgba(196, 125, 78, 0) 70%);
    top: 60%;
    right: -8%;
    animation-duration: 25s, 10s;
    animation-delay: -5s, -3s;
}

.un-orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(166, 138, 99, 0.12) 0%, rgba(166, 138, 99, 0) 70%);
    bottom: 15%;
    left: 30%;
    animation-duration: 22s, 12s;
    animation-delay: -8s, -2s;
}

.un-orb-4 {
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(212, 168, 48, 0.14) 0%, rgba(212, 168, 48, 0) 70%);
    top: 25%;
    right: 20%;
    animation-duration: 18s, 9s;
    animation-delay: -12s, -4s;
}

@keyframes orbFloat {
    0%   { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
    25%  { transform: translate3d(60px, -40px, 30px) rotateX(5deg) rotateY(-5deg); }
    50%  { transform: translate3d(-30px, 50px, -20px) rotateX(-3deg) rotateY(8deg); }
    75%  { transform: translate3d(-50px, -30px, 40px) rotateX(7deg) rotateY(-3deg); }
    100% { transform: translate3d(0, 0, 0) rotateX(0deg) rotateY(0deg); }
}

@keyframes orbFade {
    0%, 100% { opacity: 0.5; }
    50%      { opacity: 1; }
}

/* ── Ambient Light Rays ── */
.un-ray {
    position: absolute;
    width: 2px;
    background: linear-gradient(180deg, rgba(90, 122, 78, 0.15) 0%, transparent 100%);
    opacity: 0;
    animation: rayPulse ease-in-out infinite;
    transform-origin: top center;
}

.un-ray-1 {
    height: 60%;
    top: -5%;
    left: 25%;
    transform: rotate(-15deg);
    animation-duration: 6s;
    animation-delay: 0s;
}

.un-ray-2 {
    height: 50%;
    top: -5%;
    right: 30%;
    transform: rotate(12deg);
    animation-duration: 8s;
    animation-delay: -3s;
}

@keyframes rayPulse {
    0%, 100% { opacity: 0; transform: rotate(var(--ray-rot, 0deg)) scaleY(0.6); }
    50%      { opacity: 0.4; transform: rotate(var(--ray-rot, 0deg)) scaleY(1); }
}

.un-ray-1 { --ray-rot: -15deg; }
.un-ray-2 { --ray-rot: 12deg; }

/* ── Drifting Particles ── */
.un-particles {
    position: absolute;
    inset: 0;
}

.un-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--gold-500);
    border-radius: 50%;
    left: var(--x);
    bottom: -10px;
    opacity: 0;
    animation: particleDrift var(--d) ease-in-out infinite;
    animation-delay: var(--del);
    box-shadow: 0 0 6px rgba(90, 122, 78, 0.4);
}

.un-particle:nth-child(odd) {
    width: 2px;
    height: 2px;
    background: var(--gold-400);
}

.un-particle:nth-child(3n) {
    width: 4px;
    height: 4px;
    box-shadow: 0 0 10px rgba(90, 122, 78, 0.5);
}

@keyframes particleDrift {
    0% {
        opacity: 0;
        transform: translate3d(0, 0, 0) scale(0.5);
    }
    10% {
        opacity: 0.7;
        transform: translate3d(10px, -60px, 20px) scale(1);
    }
    50% {
        opacity: 0.4;
        transform: translate3d(-20px, -50vh, 10px) scale(0.8);
    }
    90% {
        opacity: 0.1;
        transform: translate3d(15px, -90vh, -10px) scale(0.4);
    }
    100% {
        opacity: 0;
        transform: translate3d(0, -100vh, 0) scale(0.2);
    }
}

/* ── Floorplan 3D Tilt Effect ── */
.un-floorplan-container {
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.un-floorplan-container.un-tilt-active {
    will-change: transform;
    transition: none;
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .un-orb,
    .un-ray,
    .un-particle {
        animation: none !important;
        opacity: 0 !important;
    }
    .un-floorplan-container {
        transform: none !important;
    }
}

/* ── Hero Header ── */
.un-hero-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 36px;
}

.un-hero-header .un-tag { margin-bottom: 16px; }
.un-hero-header .un-title { margin-bottom: 16px; }


/* ══════════════════════════════════════════════════════════
   INTERACTIVE FLOOR PLAN
   ══════════════════════════════════════════════════════════ */

/* ── Floor Plan Container ── */
.un-floorplan-container {
    background: var(--earth-900);
    border-radius: var(--radius-2xl);
    padding: 32px 20px;
    border: 1px solid rgba(90, 122, 78, 0.15);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: visible;
    position: relative;
    z-index: 2;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(90, 122, 78, 0.1) inset;
}

.un-fp-svg {
    width: 100%;
    max-width: 960px;
    display: block;
    margin: 0 auto;
    overflow: visible;
}

/* ── Suite Groups — Base State ── */
.un-fp-suite {
    cursor: pointer;
    transition: transform 0.35s var(--ease-out-expo),
                filter 0.35s ease;
    transform-origin: center center;
    will-change: transform, filter;
}

.un-fp-suite .un-fp-top,
.un-fp-suite .un-fp-right,
.un-fp-suite .un-fp-front {
    transition: fill 0.3s ease, stroke 0.3s ease, stroke-width 0.3s ease;
}

.un-fp-suite .un-fp-label-price {
    transition: opacity 0.25s ease;
}

/* ── Suite Groups — Hover State ── */
.un-fp-suite:not(.un-fp-leased):hover {
    transform: translate(0, -5px);
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
    z-index: 10;
}

.un-fp-suite:not(.un-fp-leased):hover .un-fp-top {
    fill: var(--fp-hover);
}

.un-fp-suite:not(.un-fp-leased):hover .un-fp-right {
    fill: var(--fp-hover);
    opacity: 0.7;
}

.un-fp-suite:not(.un-fp-leased):hover .un-fp-label-price {
    opacity: 0.9;
}

.un-fp-suite:not(.un-fp-leased):hover .un-fp-label-sqft {
    opacity: 0;
}

/* ── Suite Groups — Selected State ── */
.un-fp-selected {
    transform: translate(0, -7px) !important;
    filter: drop-shadow(0 0 18px var(--fp-glow)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.45)) !important;
}

.un-fp-selected .un-fp-top {
    fill: var(--fp-hover) !important;
    stroke: var(--gold-100) !important;
    stroke-width: 2 !important;
}

.un-fp-selected .un-fp-right {
    fill: var(--fp-hover) !important;
    opacity: 0.75;
}

.un-fp-selected .un-fp-label-price {
    opacity: 1 !important;
}

.un-fp-selected .un-fp-label-sqft {
    opacity: 0 !important;
}

/* ── Leased Suites ── */
.un-fp-leased {
    opacity: 0.3;
    cursor: pointer;
}

.un-fp-leased:hover {
    opacity: 0.5;
    transform: translate(0, -2px);
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.2));
}

/* ── Common Areas ── */
.un-fp-common { pointer-events: none; }
.un-fp-label-common { pointer-events: none; }


/* ══════════════════════════════════════════════════════════
   TOOLTIP — Clean floating card
   ══════════════════════════════════════════════════════════ */

.un-fp-tooltip {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 100;
    background: linear-gradient(145deg, rgba(42, 31, 20, 0.96), rgba(26, 19, 16, 0.98));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(184, 134, 11, 0.3);
    border-radius: 12px;
    padding: 16px 18px;
    min-width: 170px;
    max-width: 220px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(184, 134, 11, 0.08) inset;
    opacity: 0;
    transform: translateY(6px) scale(0.96);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.un-fp-tooltip.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.un-fp-tooltip-badge {
    font-family: var(--font-body);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 500;
}

.un-fp-tooltip-name {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-100);
    margin-bottom: 2px;
    line-height: 1.2;
}

.un-fp-tooltip-sqft {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--earth-300);
    margin-bottom: 10px;
}

.un-fp-tooltip-price {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-400);
    line-height: 1;
}

.un-fp-tooltip-price span {
    font-size: 11px;
    color: var(--earth-400);
    font-family: var(--font-body);
    font-weight: 400;
}

.un-fp-tooltip-leased {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--earth-400);
    text-transform: uppercase;
    padding: 6px 0 2px;
    border-top: 1px solid rgba(184, 134, 11, 0.1);
    margin-top: 6px;
}

.un-fp-tooltip-cta {
    font-family: var(--font-body);
    font-size: 9px;
    color: var(--gold-500);
    margin-top: 8px;
    letter-spacing: 0.5px;
    padding-top: 8px;
    border-top: 1px solid rgba(184, 134, 11, 0.1);
}


/* ══════════════════════════════════════════════════════════
   LEGEND, STATS, CTA BUTTONS
   ══════════════════════════════════════════════════════════ */

.un-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 24px 0;
    position: relative;
    z-index: 2;
}

.un-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--earth-400);
    font-weight: 400;
}

.un-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.un-stat-row {
    display: flex;
    gap: 48px;
    justify-content: center;
    margin-top: 32px;
    padding-top: 28px;
    border-top: 1px solid rgba(90, 122, 78, 0.1);
    position: relative;
    z-index: 2;
}

.un-stat-num {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--gold-400);
    line-height: 1;
    letter-spacing: -0.02em;
}

.un-stat-label {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--earth-400);
    margin-top: 6px;
    font-weight: 400;
}

.un-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}


/* ══════════════════════════════════════════════════════════
   SCROLL INDICATOR
   ══════════════════════════════════════════════════════════ */

.un-scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: heroBounce 2.5s ease-in-out infinite;
    opacity: 0.5;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.un-scroll-indicator:hover { opacity: 1; }

.un-scroll-indicator-text {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--earth-400);
    font-weight: 400;
}

.un-scroll-indicator svg {
    color: var(--gold-500);
}

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

.un-scroll-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

/* ── Dark Video Hero Overrides ── */
.un-hero-fp .un-hero-fp-grid {
    opacity: 0.06;
}

.un-hero-fp .un-title {
    color: #FFF;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.un-hero-fp .un-title em {
    background: linear-gradient(135deg, #FFD700, #D4AF37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.un-hero-fp .un-desc {
    color: var(--earth-200);
}

.un-hero-fp .un-tag {
    color: #FFFFFF;
    background: rgba(255, 215, 0, 0.15);
    border-color: rgba(255, 215, 0, 0.3);
}

.un-hero-fp .un-stat-num {
    color: #FFD700;
}

.un-hero-fp .un-stat-label {
    color: var(--earth-300);
}

.un-hero-fp .un-stat-row {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.un-hero-fp .un-scroll-indicator-text {
    color: var(--earth-300);
}

.un-hero-fp .un-btn-outline {
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.3);
}

.un-hero-fp .un-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFF;
    border-color: rgba(255, 255, 255, 0.5);
}
