 :root {
    --primary-color: #D2222A;
    --primary-hover: #b71c1c;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #f4f7f6;
    --sidebar-width: 260px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-width);
    background: white;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: var(--transition);
}

.brand {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.logo-svg {
    width: 90px;
    height: auto;
    margin-bottom: 10px;
}

.nav-links {
    list-style: none;
    padding: 20px 0;
    flex-grow: 1;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    display: flex;
    align-items: center;
    padding: 15px 25px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: #fff0f0;
    color: var(--primary-color);
    border-left: 4px solid var(--primary-color);
}

.nav-links i {
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

/* MAIN CONTENT */
.main-content {
    margin-left: var(--sidebar-width);
    flex-grow: 1;
    padding: 30px;
    width: calc(100% - var(--sidebar-width));
}

/* HERO & SEARCH */
.hero-filter {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    margin-bottom: 30px;
}

.hero-filter h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
}

.filter-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-color);
}

.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* PROPERTY GRID */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: var(--transition);
    position: relative;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    z-index: 10;
}

.card-img {
    height: 200px;
    background-color: #ddd;
    position: relative;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.address {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.address i {
    color: var(--primary-color);
    margin-right: 5px;
}

.features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 15px;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* SECTIONS, CONTACT, ADMIN */
.section {
    display: none;
    animation: fadeIn 0.5s;
}

.section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.contact-container,
.admin-panel {
    background: white;
    padding: 40px;
    border-radius: 12px;
    max-width: 800px;
    margin: 0 auto;
}

.admin-panel {
    border: 2px dashed var(--primary-color);
}

.contact-intro,
.lead-paragraph {
    margin-top: 15px;
    line-height: 1.6;
}

.contact-form,
.admin-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-box {
    background: white;
    padding: 20px;
    border-radius: 8px;
}

.service-icon {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.admin-title {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.two-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.three-cols {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}

/* MOBILE NAV TOGGLE */
.menu-toggle {
    display: none;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1100;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 70px 15px 15px 15px;
    }

    .menu-toggle {
        display: block;
    }
}
