@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #ff9a9e 0%, #fecfef 99%, #fecfef 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-color: #ffffff;
    --text-muted: #e2e8f0;
    --card-bg: rgba(28, 28, 30, 0.6);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background: url('background.png') no-repeat center center/cover;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Changed to flex column for sticky footer */
    overflow-x: hidden;
    position: relative;
    padding-left: 80px; /* Space for fixed sidebar */
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 32, 39, 0.7);
    /* Dark overlay */
    z-index: -1;
}

.container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
    perspective: 1000px;
    margin: 0 auto;
    /* Added for centering when not flex */
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    animation: float 6s ease-in-out infinite;
}

.card:hover {
    transform: translateY(-5px);
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

p.subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.input-wrapper {
    position: relative;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid border-radius;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.input-wrapper:focus-within {
    background: rgba(255, 255, 255, 0.1);
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

select,
input {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    appearance: none;
}

select option {
    background: #2c3e50;
    color: #fff;
}

button {
    width: 100%;
    padding: 1rem;
    margin-top: 1rem;
    border: none;
    border-radius: 12px;
    background: var(--primary-gradient);
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

button:active {
    transform: translateY(1px);
}

#result {
    margin-top: 2rem;
    padding: 1.5rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.5s ease;
    display: none;
    /* Hidden by default */
}

#result.visible {
    opacity: 1;
    transform: translateY(0);
    display: block;
}

#result h2 {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Background blob animations */
.blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.6;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: #764ba2;
    animation: moveBlob 10s infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: #667eea;
    animation: moveBlob 15s infinite alternate-reverse;
}

@keyframes moveBlob {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(50px, 50px);
    }
}

/* New Login Page Styles - Dark/Neon Theme */
.login-container {
    max-width: 400px;
    padding: 1rem;
}

.login-card {
    background: #1a1a1a;
    /* Dark background */
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: #fff;
    position: relative;
    animation: fadeIn 0.5s ease-out;
    text-align: center;
}

.close-btn {
    display: none;
    /* Removed as requested */
}

/* Header */
.login-card h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #6a5acd, #9370db);
    /* Purple Gradient */
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.login-card .subtitle {
    display: none;
}

.login-card label {
    display: none;
}

/* Input Styling */
.login-card .form-group {
    margin-bottom: 1rem;
}

.login-card .input-wrapper {
    border-radius: 8px;
    overflow: hidden;
    border: none;
}

/* Specific Input Colors */
#email {
    background: #e6e6fa;
    /* Light lavender/white-ish */
    color: #333;
    border: 2px solid transparent;
}

#password {
    background: #333;
    /* Dark grey */
    color: #fff;
    border: 2px solid #444;
}

.login-card input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.login-card input:focus {
    border-color: #6a5acd;
}

/* Buttons */
.login-card button {
    margin-top: 0;
    border-radius: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1.1rem;
    padding: 1rem;
    cursor: pointer;
    border: none;
    width: 100%;
}

/* Primary Button (Green) */
.primary-btn.red-btn {
    background: linear-gradient(90deg, #4ade80, #22c55e);
    /* Green Gradient */
    color: white;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}

.primary-btn.red-btn:hover {
    filter: brightness(110%);
    background: linear-gradient(90deg, #4ade80, #22c55e);
}

/* Toggle Button (Link style) */
.toggle-btn {
    background: transparent;
    color: #aaa;
    text-transform: none;
    font-weight: normal;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.toggle-btn:hover {
    color: #fff;
    text-decoration: underline;
}

/* Divider */
.divider {
    text-align: left;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #fff;
    font-weight: 600;
}

.divider span {
    background: transparent;
    padding: 0;
    color: #fff;
}

.divider::before {
    display: none;
}

/* Social Login */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.social-btn {
    background: linear-gradient(90deg, #6a5acd, #7b68ee) !important;
    /* Purple Gradient */
    color: white !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: transform 0.2s;
    font-size: 1rem !important;
    padding: 0.8rem !important;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(106, 90, 205, 0.4);
}

/* Footer Links */
.footer-links {
    margin-top: 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    color: #fff;
    line-height: 1.4;
}

.footer-links p {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #9370db;
    /* Purple link */
    text-decoration: none;
    font-weight: 600;
}

.footer-links .terms {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #bbb;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- Dashboard Styles --- */

.dashboard-body {
    display: flex;
    flex-direction: column;
    /* Flex column for sticky footer */
    background: #f0f2f5;
    /* Light background for dashboard */
    background-image: none;
    /* Remove login background */
    color: #333;
    font-family: 'Outfit', sans-serif;
}

.dashboard-body::before {
    display: none;
    /* Remove dark overlay */
}

/* Professional Dashboard Header */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background: linear-gradient(90deg, #4b6cb7 0%, #182848 100%);
    /* Deep blue professional gradient */
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.dashboard-header .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 10;
}

.dashboard-header nav {
    display: flex;
    align-items: center;
    gap: 0;
    /* Gap handled by padding/margins for separators */
    z-index: 10;
}

.dashboard-header nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    padding: 0 1.5rem;
    position: relative;
    transition: color 0.3s;
}

/* Vertical Separators */
.dashboard-header nav a:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 15px;
    /* Height of the separator */
    width: 1px;
    background-color: rgba(255, 255, 255, 0.3);
}

.dashboard-header nav a:hover {
    color: white;
}

/* Remove button style from logout to match list */
.logout-btn {
    border: none;
    padding: 0 1.5rem;
    background: transparent;
}

.logout-btn:hover {
    background: transparent;
    text-decoration: underline;
}

/* Dashboard Content */
.dashboard-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
}

.welcome-section h1 {
    font-size: 2.5rem;
    color: #2d3748;
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 0.5rem;
}

.welcome-section p {
    color: #718096;
    font-size: 1.2rem;
    margin-bottom: 3rem;
}

/* Action Cards */
.action-cards-container {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.action-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    width: 350px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.action-card h2 {
    color: #2d3748;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.action-card p {
    color: #718096;
    margin-bottom: 1.5rem;
}

.card-illustration {
    margin-bottom: 2rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #f7fafc; */
    width: 100%;
    border-radius: 12px;
}

.card-illustration img {
    max-width: 80%;
    max-height: 100%;
    object-fit: contain;
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 0.8rem 0;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: filter 0.2s;
}

.primary-btn {
    background: #48bb78;
    color: white;
}

.secondary-btn {
    background: #ed8936;
    color: white;
}

.rent-btn {
    background: #007bff;
    color: white;
}

.btn:hover {
    filter: brightness(110%);
}

/* Quick Links */
.quick-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 3rem;
    flex-wrap: wrap;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    min-width: 120px;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-link:hover {
    background: #f7fafc;
    transform: translateY(-2px);
}

.quick-link .icon {
    font-size: 2rem;
}

.quick-link span:last-child {
    font-weight: 500;
    color: #4a5568;
}

/* Responsive */
@media (max-width: 768px) {
    .action-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
    }

    .quick-links {
        gap: 1rem;
    }
}

/* --- Dark Footer Design --- */
.app-footer {
    background-color: #21252d; /* dark background matching image */
    color: #8a94a6; /* subdued gray for text */
    padding: 4rem 5% 2rem;
    margin-top: auto; /* Pushes footer to the bottom */
    width: 100%;
}

/* Ensure content has some bottom margin so it doesn't touch the footer */
.estimator-layout {
    margin-bottom: 5rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
}

.footer-column h2,
.footer-column h3 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.brand-column h2 {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.brand-column p {
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 320px;
}

.links-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.links-column a {
    color: #8a94a6;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.links-column a:hover {
    color: #ffffff;
}

.contact-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
}

.contact-item .icon {
    font-size: 1.1rem;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid #333945;
    text-align: center;
    font-size: 0.85rem;
    color: #718096;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* --- Hero Banner Section --- */
.about-hero {
    position: relative;
    width: 100%;
    min-height: 480px;
    background-image: url('/static/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 3rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(26, 32, 44, 0.85) 0%, rgba(45, 55, 72, 0.6) 100%);
    z-index: 1;
}

.about-hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    max-width: 800px;
    color: #ffffff;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.about-hero-content p {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.about-hero-buttons {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.about-hero-btn {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary-hero {
    background: #0066ff;
    color: #ffffff;
}

.btn-primary-hero:hover {
    background: #0052cc;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 102, 255, 0.4);
}

.btn-secondary-hero {
    background: #ffffff;
    color: #0066ff;
}

.btn-secondary-hero:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .about-hero-content h1 {
        font-size: 2.2rem;
    }
    .about-hero-content p {
        font-size: 1rem;
    }
}


/* ─── ESTIMATOR LAYOUT (two-column) ─────────────────────────────────────────── */
.estimator-layout {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    max-width: 1300px;
    padding: 2rem;
    margin: 40px auto;
    /* Added margin for space */
}

.estimator-layout .container {
    flex-shrink: 0;
    margin: 0;
    /* Reset container margin inside layout */
}

/* ─── MAP PANEL ───────────────────────────────────────────────────────────────── */
.map-panel {
    flex: 1;
    min-width: 320px;
    max-width: 720px;
    background: rgba(28, 28, 30, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.map-panel.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: all;
}

.map-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.map-icon {
    font-size: 2rem;
}

.map-panel-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #ffffff;
    background: none;
    -webkit-text-fill-color: unset;
    margin-bottom: 0.2rem;
}

.map-panel-header p {
    font-size: 0.88rem;
    color: #a0aec0;
    margin: 0;
}

#map {
    width: 100%;
    height: 420px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10;
    /* Ensure map is above blobs and clickable */
}

/* ─── Map Stats Bar ─── */
.map-stats {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    color: #a0aec0;
    text-align: center;
}

/* ─── Custom map pin ─── */
.map-pin {
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.7);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.target-map-pin {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b) !important;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 65, 108, 0.8) !important;
    cursor: pointer;
    transition: transform 0.15s ease;
    z-index: 1000 !important;
}

.map-pin:hover,
.target-map-pin:hover {
    transform: scale(1.4);
}

/* ─── Leaflet popup overrides ─── */
.map-popup {
    font-family: 'Outfit', sans-serif;
    min-width: 200px;
}

.popup-address {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

.popup-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.3rem;
}

.popup-details {
    font-size: 0.8rem;
    color: #888;
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .estimator-layout {
        flex-direction: column;
        align-items: center;
    }

    .estimator-layout .container {
        margin: 0 auto;
        /* Recenter container */
    }

    .map-panel {
        width: 100%;
        max-width: 500px;
        transform: translateY(30px);
    }

    .map-panel.active {
        transform: translateY(0);
    }

    #map {
        height: 300px;
    }
}

/* ─── Language Switcher ─── */
.lang-switcher-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.lang-switcher {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    width: auto;
    appearance: menulist;
}

.lang-switcher:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.lang-switcher option {
    background: #182848;
    color: #fff;
}

/* ─── APP SIDEBAR ─── */
.app-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
    gap: 2rem;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: #4a5568;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    text-decoration: none;
}

.sidebar-item:hover, .sidebar-item.active {
    color: #0066ff;
    transform: scale(1.05);
}

.sidebar-item .icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.sidebar-item .label {
    font-size: 0.75rem;
    font-weight: 600;
}

/* ─── SIDEBAR PANELS (Slide out) ─── */
.sidebar-panel {
    position: fixed;
    top: 0;
    left: 80px;
    bottom: 0;
    width: 350px;
    background: #f8fafc;
    box-shadow: 4px 0 15px rgba(0,0,0,0.05);
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 2rem;
    overflow-y: auto;
    border-right: 1px solid #e2e8f0;
    color: #2d3748;
}

.sidebar-panel.open {
    transform: translateX(0);
}

.sidebar-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #1a202c;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 0.5rem;
}

.close-panel-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #a0aec0;
    width: auto;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.close-panel-btn:hover {
    color: #e53e3e;
    transform: none;
}

/* ─── FAVORITES CARD ─── */
.favorite-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    position: relative;
    transition: transform 0.2s;
}

.favorite-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}

.favorite-card .price {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0066ff;
    margin-bottom: 0.5rem;
}

.favorite-card .address {
    font-size: 0.9rem;
    color: #4a5568;
    margin-bottom: 0.5rem;
}

.favorite-card .details {
    font-size: 0.8rem;
    color: #718096;
}

.favorite-card .remove-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: transparent;
    border: none;
    color: #e53e3e;
    cursor: pointer;
    width: auto;
    padding: 0;
    margin: 0;
    box-shadow: none;
    font-size: 1.2rem;
}

/* ─── HEART BUTTON (Map Popup) ─── */
.favorite-toggle-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: #4a5568;
    cursor: pointer;
    margin-top: 0.8rem;
    transition: all 0.2s;
    width: 100%;
    font-weight: 600;
    box-shadow: none;
}

.favorite-toggle-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
    transform: none;
}

.favorite-toggle-btn.favorited {
    color: #e53e3e;
    border-color: #fc8181;
    background: #fff5f5;
}

/*   2     2     2       S E L L   F L O W   S P E C I F I C   S T Y L E S   2     2     2       */
