:root {
    --primary: #2c3e50;
    --accent: #e74c3c;
    --secondary: #3498db;
    --light: #ecf0f1;
    --dark: #2c3e50;
}

body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    padding-top: 56px;
}

.navbar {
    background-color: var(--light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .nav-item .nav-link {
    color: rgb(94, 94, 94);
}

.navbar-nav .nav-item .nav-link.active {
    font-weight: bold;
    color: rgb(0, 0, 0);
}

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80");
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0;
    margin-bottom: 40px;
}

.property-card {
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
}

.property-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
}

.btn .btn-primary {
    background-color: #ba212d;
    border-color: #ba212d;
}

.btn-primary:hover {
    background-color: #90262eff;
    border-color: #90262eff;
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background-color: var(--primary);
    color: white;
}

.section-title {
    position: relative;
    margin-bottom: 40px;
    padding-bottom: 15px;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: var(--secondary);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--accent);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.corner-ribbon {
    position: absolute;
    top: 10px;
    left: -45px;
    width: 150px;
    padding: 8px 0;
    background: #ffd700;
    color: #fff;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    transform: rotate(-45deg);
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    letter-spacing: 1px;
}

.pm-action-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--pm-transition);
}

.pm-action-view {
    background-color: var(--pm-info);
}

.pm-action-edit {
    background-color: var(--pm-success);
}

.pm-action-delete {
    background-color: var(--pm-danger);
}

.top-property {
    background: #ffd700;
}

.hot-property {
    background: #ff8300;
}

.sold-property {
    background: #f00;
}

footer {
    background-color: var(--light);
    color: rgb(0, 0, 0);
    padding: 60px 0 30px;
}

.service-card {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin-bottom: 30px;
}

.search-widget {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
}

/* Hide desktop collapse button & show our mobile button */
.mobile-menu-btn {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    margin-left: 10px;
    cursor: pointer;
    display: none;
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: block;
    }

    /* Hide full navbar in mobile (only show brand + icon) */
    .navbar-nav,
    .nav-item.dropdown {
        display: none !important;
    }
}

/* Overlay behind sidebar */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9998;
}

/* Sidebar container */
.modern-sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 260px;
    height: 100%;
    background: rgba(44, 62, 80, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    padding: 25px 20px;
    transition: 0.35s ease;
    z-index: 9999;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 15px 15px 0;
}

/* Sidebar opened */
.modern-sidebar.open {
    left: 0;
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* User section */
.sidebar-user {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    gap: 12px;
}

.sidebar-user .user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

/* Menu */
.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    margin-bottom: 12px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
    color: #ecf0f1;
    font-size: 16px;
    transition: 0.25s;
}

.sidebar-menu a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateX(4px);
}

/* Modern Animated Hamburger */
.hamburger {
    width: 38px;
    height: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 4px;
    background: #6d6666;
    border-radius: 4px;
    transition: 0.35s ease;
}
