/* ==========================================================================
   VANGUARD PRESTIGE REAL ESTATE STYLING SHEET
   Fully Responsive Multi-Mode Framework with Dynamic Adaptive Values
   ========================================================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

/* Base Light and Dark Variables */
.light-mode {
    --bg-main: #fafcfd;
    --bg-header: rgba(255, 255, 255, 0.85);
    --bg-card: #ffffff;
    --text-primary: #121c2c;
    --text-secondary: #506176;
    --accent-color: #00bcd4;
    --accent-gradient: linear-gradient(135deg, #00bcd4, #2196f3);
    --border-color: #e2eff5;
    --shadow-color: rgba(0, 188, 212, 0.08);
    --badge-pabrik: #e1f5fe;
    --badge-pabrik-text: #0288d1;
    --badge-tanah: #e0f7fa;
    --badge-tanah-text: #0097a7;
    --badge-kebun: #e8f5e9;
    --badge-kebun-text: #388e3c;
}

.dark-mode {
    --bg-main: #06060c;
    --bg-header: rgba(10, 10, 22, 0.85);
    --bg-card: #111126;
    --text-primary: #f1f3f9;
    --text-secondary: #909bb2;
    --accent-color: #bb86fc;
    --accent-gradient: linear-gradient(135deg, #9c27b0, #673ab7);
    --border-color: #1e1e38;
    --shadow-color: rgba(156, 39, 176, 0.15);
    --badge-pabrik: #2c1a3a;
    --badge-pabrik-text: #e040fb;
    --badge-tanah: #122c3a;
    --badge-tanah-text: #00e5ff;
    --badge-kebun: #0c2e1b;
    --badge-kebun-text: #00e676;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    transition: background-color 0.6s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease;
    overflow-x: hidden;
}

/* Hide native cursor for smooth custom follow mouse pointer */
@media (pointer: fine) {
    body, html {
        cursor: none;
    }
}

/* Custom Interactive Cursor Implementation */
.custom-cursor {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.1s ease;
}

/* Expand custom cursor when hover over elements */
.custom-cursor.active {
    width: 55px;
    height: 55px;
    background-color: rgba(0, 188, 212, 0.1);
    border-color: var(--accent-color);
}

/* Glowing Atmosphere Background Objects */
.bg-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: var(--accent-gradient);
    filter: blur(160px);
    opacity: 0.08;
    top: -100px;
    right: -100px;
    pointer-events: none;
    border-radius: 50%;
    z-index: -1;
}

/* Responsive Container Setup */
.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Header Navbar Styles */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    padding: 20px 0;
    background-color: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.5s ease;
}

.logo {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
    font-weight: 300;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1px solid var(--accent-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-btn:hover {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 20px var(--shadow-color);
    transform: translateY(-2px);
}

.theme-toggle {
    cursor: pointer;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.theme-toggle:hover {
    transform: rotate(30deg);
}

/* Hero Section Styles */
.hero-section {
    padding: 180px 24px 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 750px;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-content h1 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    box-shadow: 0 10px 25px var(--shadow-color);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--border-color);
    transform: translateY(-2px);
}

/* Catalog Grid & Category Tab Filter Styles */
.catalog-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 32px;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab.active, .filter-tab:hover {
    background-color: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

/* Beautiful Focal Point Cards Construction Grid */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 32px;
}

.property-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-color);
    border-color: var(--accent-color);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.property-card:hover .card-image-wrapper img {
    transform: scale(1.08);
}

.badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.badge-pabrik { background-color: var(--badge-pabrik); color: var(--badge-pabrik-text); }
.badge-tanah { background-color: var(--badge-tanah); color: var(--badge-tanah-text); }
.badge-kebun { background-color: var(--badge-kebun); color: var(--badge-kebun-text); }

.card-content {
    padding: 28px;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 12px;
    height: 56px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-location {
    font-size: 0.88rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
}

.card-specs {
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 14px 0;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.card-specs strong {
    color: var(--text-primary);
}

.card-highlight {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-style: italic;
}

.card-btn {
    display: block;
    width: 100%;
    padding: 12px;
    text-align: center;
    background-color: var(--border-color);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.card-btn:hover {
    background: var(--accent-gradient);
    color: #fff;
    box-shadow: 0 5px 15px var(--shadow-color);
}

/* Admin Portal Login Styles CSS */
.login-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle at center, #0e0e24 0%, #040408 100%);
}

.login-card-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background-color: #12122c;
    border: 1px solid #252542;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.login-header h2 {
    font-size: 1.3rem;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 12px;
    color: #fff;
}

.login-header p {
    font-size: 0.85rem;
    color: #79839a;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 32px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a4b2cd;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #1a1a3a;
    border: 1px solid #2d2d54;
    border-radius: 10px;
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: #bb86fc;
}

.alert-danger {
    background-color: rgba(239, 83, 80, 0.1);
    border: 1px solid #ef5350;
    color: #ef5350;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    margin-bottom: 20px;
    text-align: center;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
}

.login-footer a {
    color: #79839a;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color 0.3s ease;
}

.login-footer a:hover {
    color: #fff;
}

.w-100 { width: 100%; }
.mt-4 { margin-top: 1.5rem; }
.text-success { color: #4caf50 !important; }
.text-muted { color: var(--text-secondary); }
.d-inline-block { display: inline-block; }

/* Dashboard Structural Rules */
.dashboard-body {
    background-color: #0b0b14;
}

.dashboard-header {
    background-color: #121226;
    border-bottom: 1px solid #1e1e38;
}

.user-badge {
    background-color: #1e1e38;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-right: 12px;
    color: #fff;
}

.logout-btn {
    text-decoration: none;
    font-size: 0.85rem;
    color: #ef5350;
    font-weight: 600;
}

.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 24px 60px 24px;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
}

.admin-card {
    background-color: #121226;
    border: 1px solid #1e1e38;
    border-radius: 20px;
    padding: 32px;
}

.admin-card h3 {
    font-size: 1.25rem;
    color: #fff;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 14px;
    border-bottom: 1px solid #1e1e38;
}

.admin-table th {
    color: #79839a;
    font-weight: 600;
}

.btn-delete {
    color: #ef5350;
    text-decoration: none;
    font-weight: 600;
}

.btn-delete:hover {
    text-decoration: underline;
}

footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 24px;
    text-align: center;
    background-color: var(--bg-card);
}

footer p {
    font-size: 0.88rem;
    color: var(--text-secondary);
}

/* Animations Framework Layout Matrix */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

/* Responsive Adaptive Viewports Media Queries */
@media (max-width: 992px) {
    .hero-content h1 { font-size: 2.8rem; }
    .admin-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    header { padding: 16px 0; }
    nav { display: none; } /* Mobile optimization approach link */
    .hero-content h1 { font-size: 2.2rem; }
    .property-grid { grid-template-columns: 1fr; }
}
