/* 
 * PusatPropertyID - Global Class Premium Theme
 * Theme: Luxury Gold & Dark Navy
 * Author: AI Assistant (Senior Frontend Engineer)
 */

:root {
    /* Color Palette */
    --primary-navy: #0f172a;
    --secondary-navy: #1e293b;
    --accent-gold: #d4af37;
    --accent-gold-light: #f3e5ab;
    --accent-gold-dark: #b8941f;
    --text-white: #f8fafc;
    --text-muted: #94a3b8;
    --bg-light: #f1f5f9;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --container-padding: 20px;
    --section-spacing: 80px;

    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-smooth: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--primary-navy);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    cursor: pointer;
    border: none;
    font-size: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-gold), var(--accent-gold-dark));
    color: var(--primary-navy);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
}

.btn-outline:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 20px 0;
}

header.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    transition: var(--transition-fast);
}

header.scrolled .logo img {
    height: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    color: var(--text-white);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gold);
    transition: var(--transition-fast);
}

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

.mobile-menu-btn {
    display: none;
    color: var(--text-white);
    font-size: 24px;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    animation: zoomOut 20s infinite alternate;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.4), var(--primary-navy));
    z-index: -1;
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}


/* ===== AUTH PAGES (Login/Register) ===== */
.auth-body {
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-container {
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 1200px;
    display: flex;
    min-height: 700px;
}

/* Left Side - Image Slider */
.auth-image {
    flex: 1;
    position: relative;
    background: var(--primary-navy);
    display: none;
    /* Hidden on mobile */
    overflow: hidden;
}

@media (min-width: 992px) {
    .auth-image {
        display: block;
    }
}

.auth-slider {
    height: 100%;
    width: 100%;
}

.auth-slide {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.auth-slide.active {
    opacity: 1;
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.8));
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 60px;
    color: white;
}

.auth-quote {
    position: relative;
    z-index: 2;
}

.auth-quote h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.auth-quote p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 80%;
}

/* Right Side - Form */
.auth-form-container {
    flex: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.auth-header {
    margin-bottom: 40px;
}

.auth-logo {
    width: 60px;
    margin-bottom: 20px;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary-navy);
    margin-bottom: 10px;
}

.auth-subtitle {
    color: var(--text-muted);
}

/* Floating Labels */
.form-floating {
    position: relative;
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    background: white;
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    outline: none;
}

.form-label {
    position: absolute;
    top: 16px;
    left: 20px;
    color: #94a3b8;
    pointer-events: none;
    transition: all 0.2s ease;
    background: transparent;
    padding: 0 4px;
}

.form-control:focus~.form-label,
.form-control:not(:placeholder-shown)~.form-label {
    top: -10px;
    left: 16px;
    font-size: 0.85rem;
    color: var(--accent-gold);
    background: white;
    font-weight: 600;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 20px;
    top: 16px;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s;
}

.password-toggle:hover {
    color: var(--primary-navy);
}

/* Buttons */
.btn-auth {
    width: 100%;
    padding: 16px;
    background: var(--primary-navy);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.btn-auth:hover {
    background: var(--accent-gold);
    color: var(--primary-navy);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-google {
    width: 100%;
    padding: 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 500;
    color: var(--primary-navy);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #cbd5e1;
}

.auth-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.auth-link {
    color: var(--accent-gold);
    font-weight: 600;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.forgot-password {
    display: block;
    text-align: right;
    margin-top: -10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    text-decoration: none;
}

.forgot-password:hover {
    color: var(--primary-navy);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin-bottom: 25px;
    color: #94a3b8;
    font-size: 0.9rem;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.divider::before {
    margin-right: 15px;
}

.divider::after {
    margin-left: 15px;
}

/* Quick Filter (Floating Search) */
.quick-filter {
    position: relative;
    margin-top: -50px;
    z-index: 10;
    padding-bottom: 50px;
}

.filter-container {
    background: var(--secondary-navy);
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--accent-gold);
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-white);
    font-family: var(--font-body);
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.1);
}

/* Section Styling */
section {
    padding: var(--section-spacing) 0;
}

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

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--secondary-navy);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition-fast);
    position: relative;
    opacity: 0;
    /* For scroll animation */
    transform: translateY(30px);
}

.property-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-gold);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.card-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    gap: 10px;
}

.badge {
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-tersedia {
    background: var(--success);
    color: white;
}

.badge-terjual {
    background: #ef4444;
    color: white;
}

.card-price {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--accent-gold);
    color: var(--primary-navy);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 18px;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-white);
}

.card-features {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.feature-item i {
    color: var(--accent-gold);
    margin-right: 5px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.9)), url('../../assets/images/city-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item h3 {
    font-size: 3rem;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

.stat-item p {
    color: var(--text-white);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #020617;
    padding-top: 80px;
    border-top: 1px solid var(--glass-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 25px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-links a:hover {
    color: var(--accent-gold);
    padding-left: 10px;
}

.copyright {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 14px;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--accent-gold);
    color: var(--primary-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-fast);
}

.float-btn:hover {
    transform: scale(1.1);
}

.float-btn.whatsapp {
    background: #25d366;
    color: white;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomOut {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
        /* Implement mobile menu JS toggle */
    }

    .mobile-menu-btn {
        display: block;
    }

    .filter-container {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }
}

/* ===== HEADER COMPONENT ===== */

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-dark) 100%);
    color: var(--primary-navy);
    padding: 8px 0;
    font-size: 14px;
    font-weight: 600;
    position: relative;
    z-index: 1001;
    height: 40px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.announcement-bar.hidden {
    transform: translateY(-100%);
}

.announcement-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.announcement-link {
    color: var(--primary-navy);
    text-decoration: underline;
    margin-left: 10px;
}

.announcement-close {
    background: none;
    border: none;
    color: var(--primary-navy);
    cursor: pointer;
    padding: 4px;
}

/* Navbar Main */
.navbar {
    position: fixed;
    top: 40px;
    /* Height of announcement bar */
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: transparent;
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.hidden {
    transform: translateY(-100%);
}

.navbar.no-announcement {
    top: 0;
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.navbar__logo {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.navbar__logo-img {
    height: 50px;
    width: 50px;
    border-radius: 12px;
    border: 2px solid var(--accent-gold);
    object-fit: cover;
    transition: var(--transition-fast);
}

.navbar.scrolled .navbar__logo-img {
    height: 40px;
    width: 40px;
}

.navbar__logo-text h1 {
    font-size: 1.2rem;
    color: var(--accent-gold);
    margin: 0;
    font-family: var(--font-heading);
}

.navbar__logo-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* Navigation Links */
.navbar__nav {
    display: flex;
    gap: 5px;
}

.navbar__list {
    display: flex;
    gap: 5px;
    align-items: center;
}

.navbar__item {
    position: relative;
}

.navbar__link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.navbar__link:hover,
.navbar__link.active {
    color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

.navbar__link i {
    font-size: 0.8rem;
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.navbar__item:hover .navbar__link i {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.navbar__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    min-width: 220px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar__item:hover .navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar__dropdown-link {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-muted);
    transition: var(--transition-fast);
    gap: 10px;
}

.navbar__dropdown-link:hover {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
    padding-left: 25px;
}

/* Mega Menu */
.navbar__dropdown.mega-menu {
    width: 800px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 25px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.navbar__item:hover .navbar__dropdown.mega-menu {
    transform: translateX(-50%) translateY(0);
}

.mega-menu__section h4 {
    color: var(--text-white);
    font-size: 1rem;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 5px;
    display: inline-block;
}

/* Header Actions */
.navbar__actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.navbar__action-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.navbar__action-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.navbar__action-btn.primary {
    background: var(--accent-gold);
    color: var(--primary-navy);
    border-color: var(--accent-gold);
    font-weight: 600;
}

.navbar__action-btn.primary:hover {
    background: var(--accent-gold-dark);
    border-color: var(--accent-gold-dark);
}

/* Mobile Toggle */
.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.navbar__toggle span {
    width: 25px;
    height: 2px;
    background: var(--accent-gold);
    transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: var(--primary-navy);
    z-index: 1002;
    padding: 20px;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-left: 1px solid var(--glass-border);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-menu__close {
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-menu__link {
    display: block;
    padding: 15px 0;
    color: var(--text-white);
    border-bottom: 1px solid var(--glass-border);
    font-size: 1.1rem;
}

.mobile-menu__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.mobile-menu__overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive */
@media (max-width: 1024px) {
    .navbar__nav {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }

    .navbar__actions .action-text {
        display: none;
    }
}