/* Modern CSS Reset and Variables */
:root {
    --primary: #0f4c81;
    --primary-dark: #0a355c;
    --secondary: #5b6b7a;
    --accent: #c69b3c;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    --light: #f8fafc;
    --dark: #122033;
    --gray: #94a3b8;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(15, 76, 129, 0.12), 0 2px 4px -1px rgba(15, 76, 129, 0.08);
    --shadow-lg: 0 16px 40px -20px rgba(10, 53, 92, 0.35);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: linear-gradient(180deg, #f8fafc 0%, #eef4f8 100%);
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    color: white;
    text-decoration: none;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 0.25rem;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
}

.brand-tag {
    font-size: 0.8rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.hero {
    background: linear-gradient(135deg, rgba(15, 76, 129, 0.97), rgba(10, 53, 92, 0.95));
    color: white;
    padding: 4.5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.3fr 0.9fr;
    gap: 2rem;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hero-copy h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

.hero-copy p {
    font-size: 1.05rem;
    max-width: 620px;
    opacity: 0.92;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn-light {
    background: white;
    color: var(--primary-dark);
}

.btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    background: transparent;
}

.hero-card {
    background: rgba(255, 255, 255, 0.97);
    color: var(--dark);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.hero-card-logo {
    width: 100%;
    max-height: 160px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.hero-card-body h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-dark);
}

.contact-section {
    padding: 0 0 3rem;
    margin-top: -1rem;
}

.contact-card {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
    padding: 2rem;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 1.5rem;
    align-items: center;
}

.contact-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.contact-card h2 {
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
    color: var(--primary-dark);
}

.contact-list {
    list-style: none;
    margin-top: 1rem;
    display: grid;
    gap: 0.6rem;
    color: var(--secondary);
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: flex-start;
    min-height: 180px;
    justify-content: center;
}

.contact-highlight i {
    font-size: 1.8rem;
    color: var(--accent);
}

/* Main Container */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

/* Property Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.property-location {
    color: var(--secondary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.detail {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.owner-info {
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 1rem;
}

.owner-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.owner-contact {
    color: var(--secondary);
    font-size: 0.9rem;
}

/* Inquiry Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-lg);
}

.modal-large {
    max-width: 1000px;
    width: 95%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.property-modal-body {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 1.5rem;
}

.property-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.property-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
}

.property-detail-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-detail-info .property-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

.property-detail-info .property-location,
.property-detail-info .property-owner,
.property-detail-info .property-contact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
}

.property-detail-info .property-description {
    color: var(--dark);
    line-height: 1.7;
}

.property-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.property-features .detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    color: var(--secondary);
}

.property-modal-body .property-detail-info {
    max-height: 600px;
    overflow-y: auto;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--secondary);
}

/* Form Styles */
.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--dark);
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-block {
    width: 100%;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Admin Styles */
.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 2rem 2rem;
    color: white;
}

.sidebar-logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    border-radius: 50%;
    background: white;
    padding: 0.25rem;
}

.sidebar-company {
    font-weight: 700;
    font-size: 0.95rem;
}

.sidebar-subtitle {
    font-size: 0.8rem;
    color: var(--gray);
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: var(--dark);
    color: white;
    padding: 2rem 0;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li a {
    display: block;
    padding: 1rem 2rem;
    color: white;
    text-decoration: none;
    transition: background 0.3s;
}

.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: var(--primary);
}

.admin-main {
    flex: 1;
    padding: 2rem;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.table-container {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    background: var(--light);
    font-weight: 600;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-new {
    background: #dbeafe;
    color: var(--primary);
}

.status-contacted {
    background: #fef3c7;
    color: var(--warning);
}

.status-closed {
    background: #dcfce7;
    color: var(--success);
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.login-box {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 400px;
}

/* Utility Classes */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mt-2 { margin-top: 2rem; }
.hidden { display: none; }

/* Responsive Design */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .admin-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
}