@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --bg-main: #fcfbfa; /* Luxury warm white */
    --bg-surface: #ffffff;
    --border-color: #eae6e1; /* Soft warm border */
    
    --primary: #1e293b; /* Luxury deep slate */
    --accent: #b59461; /* Luxury gold/bronze */
    --accent-hover: #9c7d4d;
    --text-main: #1c1a17; /* Soft dark charcoal */
    --text-muted: #6b6661;
    --text-light: #9c9790;
    
    --success: #15803d;
    --danger: #b91c1c;
    --warning: #b45309;

    --font-sans: 'Outfit', sans-serif;
    --transition-normal: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-fast: 0.15s ease;
    
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    
    --shadow-soft: 0 4px 20px rgba(28, 26, 23, 0.05);
    --shadow-hover: 0 10px 30px rgba(181, 148, 97, 0.12);
    --shadow-sticky: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

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

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Header Navbar */
.navbar {
    height: 90px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
}

.navbar-brand .logo-icon {
    font-size: 28px;
    color: var(--accent);
}

.navbar-brand span {
    font-weight: 700;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-menu a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
}

.navbar-menu a:hover {
    color: var(--accent);
}

.navbar-cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Global Container */
.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Hero Section */
.hero-section {
    padding: 100px 0 60px 0;
    text-align: center;
    background: radial-gradient(circle at top right, rgba(181, 148, 97, 0.05), transparent 40%);
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

/* Home Filter Form */
.search-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    max-width: 1000px;
    margin: 0 auto;
}

.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) 160px;
    gap: 20px;
    align-items: flex-end;
    text-align: left;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-field label {
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    background-color: var(--bg-main);
    outline: none;
    transition: var(--transition-fast);
}

.search-input:focus {
    border-color: var(--accent);
}

/* Listings Layout */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 32px;
    padding: 60px 0 100px 0;
}

/* Property Card */
.property-card {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-normal);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(181, 148, 97, 0.3);
}

.card-img-wrapper {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.05);
}

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

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

.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.card-badge.leasehold {
    background-color: var(--accent);
}

.card-roi-badge {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--warning);
    font-weight: 700;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(181, 148, 97, 0.2);
}

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

.card-location {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-specs {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    margin-bottom: 16px;
}

.card-specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-specs .material-icons-outlined {
    font-size: 16px;
    color: var(--text-light);
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.btn-detail {
    text-decoration: none;
    color: var(--accent);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition-fast);
}

.btn-detail:hover {
    color: var(--accent-hover);
}

/* Detail Page Layout */
.detail-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 40px;
    padding: 50px 0 100px 0;
    align-items: flex-start;
}

@media (max-width: 991px) {
    .detail-layout {
        grid-template-columns: 1fr;
    }
}

/* Slideshow / Gallery */
.gallery-wrapper {
    margin-bottom: 30px;
}

.gallery-hero {
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
}

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

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.gallery-thumb-card {
    aspect-ratio: 4/3;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.gallery-thumb-card.active, .gallery-thumb-card:hover {
    border-color: var(--accent);
}

.gallery-thumb-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Specifications List */
.specs-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-icon-box {
    width: 44px;
    height: 44px;
    background-color: rgba(181, 148, 97, 0.08);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-info span {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-light);
    display: block;
}

.spec-info strong {
    font-size: 15px;
    color: var(--primary);
}

/* Description & Content */
.detail-content {
    margin-bottom: 40px;
}

.detail-content h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
}

.detail-content p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* Facilities list */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 40px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.facility-item .material-icons-outlined {
    color: var(--accent);
}

/* ROI Info Box */
.roi-card {
    background: linear-gradient(135deg, var(--primary) 0%, #0f172a 100%);
    color: white;
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.15);
    margin-bottom: 40px;
}

.roi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.roi-title {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    font-weight: 600;
}

.roi-percentage-badge {
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.roi-card p {
    color: #94a3b8;
    font-size: 15px;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Sidebar Lead Panel */
.sticky-sidebar {
    position: sticky;
    top: 130px;
}

.lead-panel {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
}

.lead-panel h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.lead-panel p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Common form components */
.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-main);
}

.form-group {
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    background-color: var(--bg-main);
    color: var(--text-main);
    outline: none;
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--accent);
}

textarea.form-control {
    resize: vertical;
    min-height: 90px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    text-decoration: none;
}

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

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

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

.btn-secondary:hover {
    background-color: #334155;
}

.btn-wa {
    background-color: #25d366;
    color: white;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.btn-wa:hover {
    background-color: #20ba5a;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Modal Popup window */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(30, 41, 59, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    z-index: 2000;
    transition: var(--transition-normal);
}

.modal.open {
    opacity: 1;
    pointer-events: auto;
}

.modal-dialog {
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 550px;
    padding: 40px;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition-normal);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.modal.open .modal-dialog {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    transition: var(--transition-fast);
}

.modal-close:hover {
    color: var(--text-main);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Alert notifications */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background-color: rgba(21, 128, 61, 0.08);
    border: 1px solid rgba(21, 128, 61, 0.15);
    color: var(--success);
}

.alert-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Section */
.footer {
    background-color: var(--primary);
    color: white;
    padding: 80px 0 40px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h2 {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 16px;
}

.footer-brand p {
    color: #94a3b8;
    max-width: 320px;
    font-size: 14px;
}

.footer-col h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 20px;
    color: white;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition-fast);
}

.footer-col ul li a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        padding: 0 24px;
        height: 80px;
    }
    .navbar-menu {
        display: none;
    }
    .hero-section h1 {
        font-size: 32px;
    }
    .hero-section p {
        font-size: 15px;
    }
    .search-panel {
        padding: 20px;
    }
    .search-grid {
        grid-template-columns: 1fr;
    }
    .container {
        padding: 0 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.material-icons-outlined {
    font-family: 'Material Symbols Outlined' !important;
}
