:root {
    --primary-color: #0284c7;
    --primary-dark: #0369a1;
    --primary-light: #e0f2fe;
    --accent-color: #059669;
    --dark-bg: #0f172a;
    --card-bg: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --tersedia-color: #10B981;
    --booking-color: #F59E0B;
    --terbangun-color: #EF4444;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
}

/* Glassmorphism Navigation */
.navbar-glass {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-gradient {
    background: radial-gradient(circle at 10% 20%, rgb(240, 249, 255) 0%, rgb(255, 255, 255) 90%);
    position: relative;
    overflow: hidden;
}

/* Interactive Siteplan Stage */
.siteplan-viewport {
    position: relative;
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.15), 0 0 1px 1px rgba(15, 23, 42, 0.05);
    user-select: none;
}

.siteplan-canvas-wrapper {
    position: relative;
    width: 100%;
    transform-origin: 0 0;
    cursor: grab;
    transition: transform 0.05s ease-out;
}

.siteplan-canvas-wrapper:active {
    cursor: grabbing;
}

.siteplan-img {
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
}

/* Kavling Interactive Markers / Polygons */
.kavling-overlay-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto;
}

.kavling-box {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    font-weight: 800;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
    font-size: var(--kavling-font-size, 10px);
    font-family: var(--kavling-font-family, inherit);
    line-height: 1;
    overflow: hidden;
    padding: 1px;
    transform: rotate(var(--rot, 0deg));
}

.kavling-box:hover {
    transform: rotate(var(--rot, 0deg)) scale(1.08) translateZ(0);
    z-index: 50;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border-color: #ffffff;
}

.kavling-box.active {
    transform: rotate(var(--rot, 0deg)) scale(1.12);
    z-index: 60;
    box-shadow: 0 0 0 4px #38bdf8, 0 12px 30px rgba(0, 0, 0, 0.5);
}

/* Status Specific Styles */
.kavling-tersedia {
    background-color: rgba(16, 185, 129, 0.75);
}
.kavling-tersedia:hover {
    background-color: rgba(16, 185, 129, 0.95);
}

.kavling-booking {
    background-color: rgba(245, 158, 11, 0.8);
}
.kavling-booking:hover {
    background-color: rgba(245, 158, 11, 0.98);
}

.kavling-terbangun {
    background-color: rgba(239, 68, 68, 0.8);
}
.kavling-terbangun:hover {
    background-color: rgba(239, 68, 68, 0.98);
}

/* Siteplan Floating Controls */
.siteplan-floating-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(8px);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.siteplan-control-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 16px;
}

.siteplan-control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #38bdf8;
}

/* Badge & Indicator */
.badge-status-tersedia {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.badge-status-booking {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}

.badge-status-terbangun {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Stats Counter Cards */
.stat-card {
    border-radius: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e2e8f0;
}
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.08);
}

/* Pulse animation for available plots */
@keyframes softPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.pulse-hint {
    animation: softPulse 2.5s infinite ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
