:root {
    --primary-color: #0B2A46;
    --accent-color: #D4AF37;
    --accent-hover: #b8952b;
    --text-main: #1A202C;
    --text-muted: #4A5568;
    --bg-light: #F9FAFB;
    --white: #FFFFFF;
    --wa-color: #25D366;
    --wa-hover: #128C7E;
    --transition: all 0.3s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
    --radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-variant-numeric: lining-nums;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: var(--white);
    padding: 20px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo h1 {
    font-size: 28px;
    font-weight: 700;
}

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

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
}

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

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

.header-nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.header-nav .nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.header-nav .nav-link:hover {
    color: var(--accent-color);
}

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

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

/* Hero Slider Section */
.hero-section {
    position: relative;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

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

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

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content-text {
    text-align: center;
    color: var(--white);
    padding: 0 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    font-family: 'Playfair Display', serif;
    animation: fadeInUp 1s ease-out;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quote Banner */
.quote-banner {
    padding: 60px 0;
    background-color: var(--primary-color);
    text-align: center;
}

.quote-banner.dark-banner {
    background-color: #081e33;
}

.typewriter-quote {
    font-size: 24px;
    font-weight: 400;
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    min-height: 36px;
    display: inline-block;
    border-right: 2px solid var(--accent-color);
    padding-right: 5px;
    animation: blinkCursor 0.75s step-end infinite;
}

@media (max-width: 768px) {
    .typewriter-quote {
        font-size: 18px;
    }
}

@keyframes blinkCursor {
    from, to { border-color: transparent }
    50% { border-color: var(--accent-color) }
}

/* Profile Section */
.profile-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
}

.profile-container {
    display: block;
}

.profile-image {
    position: relative;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

.profile-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: var(--radius);
    display: block;
}

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--accent-color);
    color: var(--white);
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow-md);
    border: 5px solid var(--white);
}

.experience-badge .years {
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    font-family: 'Playfair Display', serif;
}

.experience-badge .text {
    font-size: 12px;
    text-align: center;
    font-weight: 500;
    margin-top: 4px;
}

.profile-content {
    padding: 0;
}

.profile-title {
    font-size: 48px;
    margin-bottom: 8px;
}

.profile-subtitle {
    font-size: 20px;
    color: var(--accent-color);
    margin-bottom: 24px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.profile-text-scroll {
    margin-bottom: 30px;
    color: var(--text-muted);
}

.profile-text-scroll::-webkit-scrollbar {
    width: 6px;
}

.profile-text-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.profile-text-scroll::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

.profile-text-scroll p {
    margin-bottom: 16px;
}

.social-media {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    text-decoration: none;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.05);
}

.social-icon:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
}

/* Properties Section */
.properties-section {
    padding: 80px 0;
}

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

.section-header h2 {
    font-size: 40px;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.property-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.property-img-wrapper {
    overflow: hidden;
    position: relative;
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--white);
    z-index: 10;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Category Colors */
.property-badge[data-category="available"] { background-color: #22c55e; }
.property-badge[data-category="sold-out"] { background-color: #ef4444; }
.property-badge[data-category="booked"] { background-color: #f59e0b; }
.property-badge[data-category="block"] { background-color: #64748b; }
.property-badge[data-category="booking-fee"] { background-color: #8b5cf6; }
.property-badge[data-category="under-contract"] { background-color: #0ea5e9; }
.property-badge[data-category="ready-stock"] { background-color: #10b981; }
.property-badge[data-category="indent"] { background-color: #f97316; }
.property-badge[data-category="show-unit"] { background-color: #ec4899; }
.property-badge[data-category="hot-deal"] { background-color: #ef4444; animation: pulseBadge 1s infinite; }
.property-badge[data-category="last-unit"] { background-color: #dc2626; animation: pulseBadge 1s infinite; }
.property-badge[data-category="flash-sale"] { background-color: #f43f5e; animation: pulseBadge 0.5s infinite; }
.property-badge[data-category="hidden"] { background-color: #94a3b8; display: none; }
.property-badge[data-category="pending-approval"] { background-color: #eab308; }

.property-content {
    padding: 24px;
}

.property-title {
    font-size: 22px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.property-price-tag, .modal-price-tag {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--white);
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    animation: bouncePrice 2s infinite ease-in-out;
}

.modal-price-tag {
    font-size: 20px;
    padding: 8px 16px;
    margin-bottom: 20px;
}

@keyframes bouncePrice {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.property-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    width: 100%;
}

.btn-wa {
    background: var(--wa-color);
    color: var(--white);
}

.btn-wa:hover {
    background: var(--wa-hover);
}

.btn-wa-large {
    background: var(--wa-color);
    color: var(--white);
    padding: 16px 32px;
    font-size: 16px;
    margin-top: 20px;
}

.btn-wa-large:hover {
    background: var(--wa-hover);
}

/* Floating WhatsApp */
.floating-wa {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: var(--wa-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    animation: vibrate 2s infinite;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.floating-wa:hover {
    transform: scale(1.1);
    animation: none;
}

@keyframes vibrate {
    0% { transform: scale(1) rotate(0deg); }
    10% { transform: scale(1.1) rotate(-5deg); }
    20% { transform: scale(1.1) rotate(5deg); }
    30% { transform: scale(1.1) rotate(-5deg); }
    40% { transform: scale(1.1) rotate(5deg); }
    50% { transform: scale(1) rotate(0deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 42, 70, 0.8);
    backdrop-filter: blur(5px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.property-modal-content {
    background: var(--white);
    width: 90%;
    max-width: 1000px;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .property-modal-content {
    transform: translateY(0) scale(1);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    color: var(--primary-color);
}

.close-modal:hover {
    background: var(--primary-color);
    color: var(--white);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100%;
    overflow-y: auto;
}

.modal-gallery {
    position: relative;
    background: #000;
    min-height: 400px;
    display: flex;
    flex-direction: column;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    flex-grow: 1;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-color);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: var(--transition);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.slider-btn:hover {
    background: var(--white);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent-color);
    transform: scale(1.2);
}

.modal-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.modal-info .modal-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.modal-desc {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    flex-grow: 1;
    overflow-y: auto;
    margin-bottom: 30px;
    padding-right: 10px;
}

.modal-desc::-webkit-scrollbar { width: 6px; }
.modal-desc::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.modal-desc::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 4px; }

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: var(--text-muted);
}
.empty-state i {
    font-size: 48px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* Footer */
footer {
    background: var(--primary-color);
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    padding: 50px 0;
    margin-top: 40px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color), #081e33);
    color: var(--white);
    text-align: center;
    border-radius: 20px;
    margin: 0 24px 60px 24px;
    box-shadow: var(--shadow-lg);
}

.cta-title {
    font-size: 40px;
    color: var(--white);
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.btn-vibrate {
    animation: vibrateCTA 2s infinite;
    display: inline-flex;
    justify-content: center;
}

@keyframes vibrateCTA {
    0% { transform: scale(1); }
    10% { transform: scale(1.05) rotate(-2deg); }
    20% { transform: scale(1.05) rotate(2deg); }
    30% { transform: scale(1.05) rotate(-2deg); }
    40% { transform: scale(1.05) rotate(2deg); }
    50% { transform: scale(1); }
    100% { transform: scale(1); }
}

/* Articles Section */
.articles-section {
    padding: 60px 0 100px 0;
    background-color: var(--bg-light);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.article-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.article-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.article-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.article-card-tags {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 8px;
}

.article-card-title {
    font-size: 20px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.article-card-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex-grow: 1;
}

.article-read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
}

.article-read-more:hover {
    color: var(--accent-color);
    gap: 10px;
}

/* Responsive */
@media (max-width: 992px) {
    .profile-container {
        grid-template-columns: 1fr;
    }
    .modal-body {
        grid-template-columns: 1fr;
        grid-template-rows: 300px auto;
    }
    .modal-gallery {
        min-height: 300px;
    }
    .property-modal-content {
        max-height: 95vh;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    .profile-title {
        font-size: 32px;
    }
    .profile-image img {
        height: 300px;
    }
    .experience-badge {
        width: 100px;
        height: 100px;
        bottom: -15px;
        right: -15px;
        padding: 15px;
    }
    .experience-badge .years {
        font-size: 24px;
    }
    .section-header h2 {
        font-size: 32px;
    }
    .profile-section, .properties-section, .quote-banner, .articles-section {
        padding: 40px 0;
    }
    .cta-section {
        padding: 40px 20px;
        margin: 0 15px 40px 15px;
    }
    .cta-title {
        font-size: 28px;
    }
    .mobile-menu-btn {
        display: block;
    }
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
        gap: 15px;
        border-top: 1px solid #f1f1f1;
    }
    .header-nav.active {
        display: flex;
    }
    .admin-btn {
        width: 100%;
        justify-content: center;
    }
    .logo h1 {
        font-size: 20px;
    }
    .logo img {
        height: 30px !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    .typewriter-quote {
        font-size: 16px;
    }
    .profile-container {
        gap: 40px;
    }
    .floating-wa {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}
