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

:root {
    --royal-blue: #1a56db;
    --dark-blue: #0e3a8a;
    --light-blue: #dbeafe;
    --green: #22c55e;
    --gold: #fbbf24;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --white: #ffffff;
    --black: #1e293b;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: #f8fafc;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: var(--white);
    padding: 14px 0;
    box-shadow: 0 4px 15px rgba(26,86,219,0.25);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.25s;
}

.mobile-menu-btn:hover {
    background: rgba(255,255,255,0.25);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 40px;
}

.header-right {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.logo svg {
    width: 38px;
    height: 38px;
    fill: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
}

.header-nav {
    display: flex;
    gap: 8px;
}

.header-nav-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 8px;
    transition: all 0.25s;
}

.header-nav-link:hover {
    color: white;
    background: rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.header-nav-link.active {
    background: rgba(255,255,255,0.2);
}

/* User Badge */
.user-badge {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--royal-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
}

.user-badge-btn {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.user-badge-btn:hover .user-badge {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: scale(1.05);
}

/* Dropdown Styles */
.dropdown {
    position: relative;
}

.dropdown-btn {
    background: rgba(255,255,255,0.18);
    color: white;
    border: 1px solid rgba(255,255,255,0.35);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dropdown-btn:hover {
    background: rgba(255,255,255,0.28);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.18);
    min-width: 220px;
    overflow: hidden;
    display: none;
    z-index: 1001;
    border: 1px solid #e2e8f0;
}

.dropdown-menu.active {
    display: block;
    animation: slideDown 0.2s ease-out;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 18px;
    color: var(--black);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: #f0f9ff;
    color: var(--royal-blue);
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--royal-blue);
    stroke-width: 2;
    fill: none;
}

/* Buttons */
.btn {
    padding: 10px 22px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.25s;
}

.btn-primary {
    background-color: var(--white);
    color: var(--royal-blue);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.btn-primary:hover {
    background-color: #f0f9ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-outline {
    background-color: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.7);
}

.btn-outline:hover {
    background-color: rgba(255,255,255,0.18);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-blue {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-blue:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,86,219,0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s;
}

.btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

/* Dashboard Styles */
.dashboard-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.dashboard-nav {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    height: fit-content;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-nav a {
    display: block;
    padding: 12px 16px;
    color: var(--black);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.dashboard-nav a:hover {
    background: var(--light-gray);
}

.dashboard-nav a.active {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
}

.dashboard-content {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.dashboard-content h2 {
    margin-bottom: 25px;
    color: var(--black);
    font-weight: 800;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--light-gray);
    padding: 14px 16px;
    text-align: left;
    font-weight: 700;
    color: var(--black);
    border-bottom: 2px solid #e2e8f0;
}

.table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    font-weight: 500;
}

.table tr:hover td {
    background: #f8fafc;
}

/* Table Container for Responsive */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dashboard-content .table-responsive {
    margin: 0 -30px -30px -30px;
}

.dashboard-content .table-responsive .table {
    margin: 0;
}

/* Responsive Dashboard */
@media (max-width: 900px) {
    .dashboard-container {
        grid-template-columns: 1fr;
    }

    .dashboard-nav {
        display: flex;
        overflow-x: auto;
        gap: 8px;
        padding: 12px;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 transparent;
    }

    .dashboard-nav::-webkit-scrollbar {
        height: 4px;
    }

    .dashboard-nav::-webkit-scrollbar-track {
        background: transparent;
    }

    .dashboard-nav::-webkit-scrollbar-thumb {
        background-color: #cbd5e1;
        border-radius: 4px;
    }

    .dashboard-nav a {
        white-space: nowrap;
        margin-bottom: 0;
        padding: 8px 12px;
        font-size: 14px;
    }

    .form-container.auth-form {
        width: min(90%, 420px);
        min-width: 0;
        padding: 20px;
    }

    .dashboard-content .table-responsive {
        margin: 0 -20px -20px -20px;
    }

    .table th,
    .table td {
        padding: 10px 12px;
        font-size: 14px;
    }

    .table td a {
        display: inline-block;
        margin: 2px;
        padding: 4px 8px;
        font-size: 11px;
    }
}

@media (max-width: 600px) {
    .dashboard-content {
        padding: 20px;
    }

    .dashboard-nav {
        padding: 10px;
        gap: 6px;
    }

    .dashboard-nav a {
        padding: 6px 10px;
        font-size: 13px;
    }

    .dashboard-content .table-responsive {
        margin: 0 -20px -20px -20px;
    }

    .table th,
    .table td {
        padding: 8px 10px;
        font-size: 13px;
    }

    .table td a {
        display: block;
        margin: 4px 0;
        padding: 6px 10px;
        font-size: 12px;
        text-align: center;
    }

    .table td {
        vertical-align: top;
    }
}

/* Home Container */
.home-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.main-content {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 25px;
    width: 100%;
    min-width: 0;
    grid-auto-flow: dense;
}

/* For smaller screens in desktop view - hide right sidebar, show horizontal section */
@media (max-width: 1100px) and (min-width: 769px) {
    .main-content {
        grid-template-columns: 280px 1fr;
        gap: 40px; /* Add more gap between left sidebar and main content in tablet view */
    }
    
    .sidebar-right {
        display: none !important; /* Hide right sidebar in tablet view */
    }
    
    /* Show horizontal sidebar in tablet view */
    .horizontal-sidebar {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr); /* 3 columns like footer */
        gap: 15px; /* Reduced gap for more width */
        margin-top: 30px;
        margin-bottom: 5px; /* Very small margin-bottom for minimal gap before footer */
        width: 100%; /* Full width */
        padding: 30px 40px; /* Container padding */
        box-sizing: border-box;
        background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%); /* Light blue gradient background */
        border-radius: 12px;
        border: 2px solid #bae6fd;
    }
    
    .horizontal-sidebar .sidebar-card {
        background: white;
        border: 1px solid #e0e7ff;
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
    }
    
    .horizontal-sidebar .sidebar-title {
        color: white;
        border-bottom: 2px solid #93c5fd;
    }
    
    .horizontal-sidebar .sidebar-card {
        width: 100%;
        height: auto;
        min-height: 200px;
    }
    
    .horizontal-sidebar .feature-list {
        padding: 15px;
    }
    
    .horizontal-sidebar .tip-card {
        padding: 15px;
    }
    
    .horizontal-sidebar .tip-img {
        width: 100%;
        height: 120px;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 10px;
    }
    
    /* Property grid - 3 columns in tablet view */
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* Footer font sizes for tablet view */
    .footer-logo {
        font-size: 18px;
    }
    
    .footer-logo svg {
        width: 28px;
        height: 28px;
    }
    
    .footer-desc {
        font-size: 13px;
    }
    
    .footer-col h4 {
        font-size: 14px;
    }
    
    .footer-col ul li a {
        font-size: 13px;
    }
    
    .footer-bottom {
        font-size: 13px;
    }
    
    /* Reduce footer size in tablet view */
    .footer .container {
        padding: 25px 20px;
    }
    
    .footer-grid {
        gap: 18px;
        margin-bottom: 20px;
    }
    
    .footer-logo {
        margin-bottom: 8px;
    }
    
    .footer-col h4 {
        margin-bottom: 12px;
    }
    
    .footer-col ul li {
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        padding-top: 18px;
    }
}

/* Hide horizontal sidebar */
.horizontal-sidebar {
    display: none;
}

/* Hide sidebar in desktop view for specific pages */
.no-sidebar-desktop .sidebar-left {
    display: none;
}

.no-sidebar-desktop .main-content {
    grid-template-columns: 1fr;
}

/* Show sidebar in mobile view when hidden in desktop */
@media (max-width: 768px) {
    .desktop-hidden {
        display: flex !important;
    }

    .no-sidebar-desktop .main-content {
        grid-template-columns: 1fr;
    }

    .no-sidebar-desktop .sidebar-left {
        display: flex;
        position: fixed;
        top: 60px;
        left: -300px;
        width: 300px;
        height: calc(100vh - 60px);
        background: white;
        z-index: 1002;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        padding: 20px 20px 60px 20px;
        transition: left 0.3s ease;
    }

    .no-sidebar-desktop .sidebar-left.active {
        left: 0;
    }
}

.listing-container .main-content {
    grid-template-columns: 280px 1fr; /* Only 2 columns for listing page */
}

/* Sidebar */
.sidebar-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 280px;
    width: 280px;
}

.sidebar-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 300px;
    width: 300px;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    overflow: visible;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
}

.sidebar-title {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 14px 18px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.3px;
}

.category-group {
    padding: 14px 18px;
    border-bottom: 1px solid #f1f5f9;
}

.category-group:last-of-type {
    border-bottom: none;
}

.category-group h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--royal-blue);
    margin-bottom: 12px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.subcategory-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--black);
    text-decoration: none;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.subcategory-item:hover {
    color: var(--royal-blue);
}

.cat-icon {
    width: 16px;
    height: 16px;
    fill: var(--royal-blue);
}

.sidebar-card-green .sidebar-title {
    background: linear-gradient(135deg, var(--green) 0%, #16a34a 100%);
}

.post-ad-promo {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px;
    margin-bottom: 12px;
}

.post-ad-promo svg {
    width: 42px;
    height: 42px;
    background: #ecfdf5;
    padding: 10px;
    border-radius: 12px;
    fill: var(--green);
}

.post-ad-promo h4 {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 4px;
}

.post-ad-promo p {
    font-size: 13px;
    color: var(--gray);
}

.btn-post-ad {
    display: block;
    margin: 0 12px 15px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
    transition: all 0.25s;
    position: relative;
    z-index: 1;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-post-ad:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 18px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 500;
}

.feature-list svg {
    width: 20px;
    height: 20px;
    stroke: var(--royal-blue);
    stroke-width: 2.5;
    fill: none;
    flex-shrink: 0;
}

/* Tip Card */
.tip-card {
    padding: 18px;
}

.tip-img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 14px;
}

.tip-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.7;
}

/* Contact Card */
.sidebar-card-blue .sidebar-title {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
}

/* Contact Page Styles */
.contact-page-container {
    width: 100%;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.2);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-header p {
    font-size: 14px;
    opacity: 0.95;
}

.contact-form-card {
    background: white;
    padding: 35px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
}

.contact-form-card h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 25px;
    text-align: center;
}

.contact-form-card .form-group {
    margin-bottom: 20px;
}

.contact-form-card label {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    display: block;
}

.contact-form-card .form-control {
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s;
}

.contact-form-card .form-control:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.1);
}

.contact-form-card textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* About Page Styles */
.about-page-container {
    width: 100%;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.2);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.about-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.about-header p {
    font-size: 14px;
    opacity: 0.95;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.about-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s;
}

.about-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.about-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.about-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.about-section p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.about-details {
    margin-top: 20px;
}

.about-details h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    text-align: center;
}

/* About Page Responsive */
@media (max-width: 1100px) and (min-width: 769px) {
    .about-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .about-icon {
        width: 45px;
        height: 45px;
    }
    
    .about-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-header {
        padding: 20px;
    }
    
    .about-header h1 {
        font-size: 20px;
    }
    
    .about-header p {
        font-size: 14px;
    }
    
    .about-section {
        padding: 20px;
    }
    
    .about-icon {
        width: 40px;
        height: 40px;
    }
    
    .about-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .about-details h2 {
        font-size: 20px;
    }
}

/* How It Works Page Styles */
.how-it-works-container {
    width: 100%;
}

.how-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.2);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.how-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.how-header p {
    font-size: 14px;
    opacity: 0.95;
}

.steps-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.step-item {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s;
    position: relative;
}

.step-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.step-number {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(26, 86, 219, 0.3);
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.step-item h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.step-item p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.how-details {
    margin-top: 20px;
}

.how-details h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    text-align: center;
}

/* Help Center Page Styles */
.help-center-container {
    width: 100%;
}

.help-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.2);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.help-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.help-header p {
    font-size: 14px;
    opacity: 0.95;
}

.help-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.help-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s;
}

.help-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.help-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.help-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.help-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.help-section p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.help-details {
    margin-top: 20px;
}

.help-details h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    text-align: center;
}

/* How It Works & Help Center Responsive */
@media (max-width: 1100px) and (min-width: 769px) {
    .steps-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .help-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .step-item, .help-section {
        padding: 20px;
    }
    
    .step-icon, .help-icon {
        width: 45px;
        height: 45px;
    }
    
    .step-icon svg, .help-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .steps-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .help-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .how-header, .help-header {
        padding: 20px;
    }
    
    .how-header h1, .help-header h1 {
        font-size: 20px;
    }
    
    .how-header p, .help-header p {
        font-size: 14px;
    }
    
    .step-item, .help-section {
        padding: 20px;
    }
    
    .step-icon, .help-icon {
        width: 40px;
        height: 40px;
    }
    
    .step-icon svg, .help-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .how-details h2, .help-details h2 {
        font-size: 20px;
    }
}

/* Legal Pages (Privacy Policy, Terms & Conditions) Styles */
.legal-page-container {
    width: 100%;
}

.legal-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.2);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.legal-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.legal-header p {
    font-size: 14px;
    opacity: 0.95;
}

.legal-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.legal-content.terms-grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Terms page specific styling - 6 cards in 2 rows */
.legal-content.terms-grid .legal-section {
    min-height: 180px;
}

.legal-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s;
}

.legal-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.legal-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legal-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.legal-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.legal-section p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

.legal-details {
    margin-top: 20px;
}

.legal-details h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
    text-align: center;
}

/* Sitemap Page Styles */
.sitemap-page-container {
    width: 100%;
}

.sitemap-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px 20px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.2);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.sitemap-header h1 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sitemap-header p {
    font-size: 14px;
    opacity: 0.95;
}

.sitemap-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.sitemap-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s;
}

.sitemap-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.sitemap-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sitemap-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.sitemap-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
}

.sitemap-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.sitemap-section ul li {
    margin-bottom: 8px;
}

.sitemap-section ul li a {
    color: var(--royal-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.sitemap-section ul li a:hover {
    color: var(--dark-blue);
    text-decoration: underline;
}

/* Legal Pages & Sitemap Responsive */
@media (max-width: 1100px) and (min-width: 769px) {
    .legal-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .legal-content.terms-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .sitemap-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .legal-section, .sitemap-section {
        padding: 20px;
    }
    
    .legal-icon, .sitemap-icon {
        width: 45px;
        height: 45px;
    }
    
    .legal-icon svg, .sitemap-icon svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 768px) {
    .legal-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .legal-content.terms-grid {
        grid-template-columns: 1fr;
    }
    
    .sitemap-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .legal-header, .sitemap-header {
        padding: 20px;
    }
    
    .legal-header h1, .sitemap-header h1 {
        font-size: 20px;
    }
    
    .legal-header p, .sitemap-header p {
        font-size: 14px;
    }
    
    .legal-section, .sitemap-section {
        padding: 20px;
    }
    
    .legal-icon, .sitemap-icon {
        width: 40px;
        height: 40px;
    }
    
    .legal-icon svg, .sitemap-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .legal-details h2 {
        font-size: 20px;
    }
}

/* Contact Cards for Sidebar */
.contact-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: all 0.3s;
    margin-bottom: 20px;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.contact-card h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* Contact Sidebar Header */
.contact-sidebar-header {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 25px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.2);
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.contact-sidebar-header p {
    font-size: 14px;
    opacity: 0.95;
    margin: 0;
}

/* Hide working hours in desktop view */
.working-hours-card {
    display: none;
}

/* Show contact sidebar in desktop view for specific pages */
@media (min-width: 769px) {
    .home-container .contact-sidebar {
        display: flex !important;
        flex-direction: column;
        gap: 15px;
    }
}

/* Contact Page Responsive */
@media (max-width: 1100px) and (min-width: 769px) {
    .contact-header h1 {
        font-size: 20px;
    }
    
    .contact-header p {
        font-size: 14px;
    }
    
    .contact-form-card {
        padding: 30px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon svg {
        width: 22px;
        height: 22px;
    }
    
    /* For contact page, keep 3-column layout in tablet view */
    .contact-page-container .main-content {
        grid-template-columns: 280px 1fr 280px !important;
    }
    
    .contact-page-container .sidebar-right {
        display: flex !important;
    }
    
    .contact-sidebar-header {
        padding: 20px;
    }
    
    .contact-sidebar-header h3 {
        font-size: 20px;
    }
    
    .contact-sidebar-header p {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .contact-header {
        padding: 30px 20px;
    }
    
    .contact-header h1 {
        font-size: 20px;
    }
    
    .contact-header p {
        font-size: 14px;
    }
    
    .contact-form-card {
        padding: 25px 20px;
    }
    
    .contact-form-card h2 {
        font-size: 20px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-icon svg {
        width: 20px;
        height: 20px;
    }
    
    /* Show contact details below form in mobile view */
    .contact-page-container .main-content {
        grid-template-columns: 1fr;
    }
    
    .contact-page-container .content-center {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-sidebar {
        display: none !important;
    }
    
    .contact-sidebar .contact-card {
        margin-bottom: 15px;
    }
    
    .contact-sidebar-header {
        padding: 20px;
    }
    
    .contact-sidebar-header h3 {
        font-size: 20px;
    }
    
    .contact-sidebar-header p {
        font-size: 14px;
    }
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
}

.contact-item svg {
    width: 18px;
    height: 18px;
    stroke: var(--royal-blue);
    stroke-width: 2;
}

/* Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #34d399;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #f87171;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-close {
    top: 20px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-content .btn {
    text-align: center;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #1f2937;
}

.modal-body {
    padding: 20px;
}

.contact-info-display {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-info-item {
    padding: 15px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-info-item .contact-info-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 8px;
}

.contact-info-item .contact-info-value {
    color: #1f2937;
    font-size: 16px;
    font-weight: 500;
}

.contact-seller-link {
    color: #1e40af;
    text-decoration: none;
    font-weight: 500;
}

.contact-seller-link:hover {
    text-decoration: underline;
    color: #1e3a8a;
}

/* Profile Page Styles */
.profile-container {
    max-width: 1200px;
    margin: 30px auto;
}

.profile-header {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(26, 86, 219, 0.2);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: white;
    color: var(--royal-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-info h1 {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
}

.profile-email,
.profile-mobile,
.profile-joined {
    margin: 4px 0;
    font-size: 14px;
    opacity: 0.95;
}

.profile-sections {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.profile-section h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e5e7eb;
}

.profile-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.profile-property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.profile-property-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.profile-property-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.profile-property-info {
    padding: 15px;
}

.profile-property-category {
    font-size: 12px;
    color: var(--gray);
    margin-bottom: 8px;
}

.profile-property-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--black);
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-property-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--royal-blue);
    margin-bottom: 8px;
}

.profile-property-location {
    font-size: 13px;
    color: var(--gray);
}

.no-profile-properties {
    text-align: center;
    padding: 40px;
    color: var(--gray);
    font-size: 16px;
    background: #f9fafb;
    border-radius: 8px;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.hero-bg-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

.hero-search-only {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    padding: 30px 40px 25px;
    overflow: hidden;
}

/* Mobile filter button positioned at bottom of hero */
.hero-banner .mobile-filter-toggle {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: auto;
    min-width: 200px;
    margin: 0;
    display: none;
    white-space: nowrap;
    flex-shrink: 0;
    max-width: 90%;
}

.hero-banner .mobile-filter-toggle:hover {
    transform: translateX(-50%);
}

@media (max-width: 768px) {
    .hero-banner .mobile-filter-toggle {
        display: flex !important;
        white-space: nowrap;
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
    }
}

.hero-search-only .search-row {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
}

.hero-search-only .search-row {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-bar-container .search-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    align-items: center;
}

.search-bar-container .search-row:last-child .btn-search {
    grid-column: auto;
    width: auto;
}

.search-input, .search-select {
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 13px;
    outline: none;
    flex: 1 1 120px;
    min-width: 110px;
    font-weight: 500;
    transition: all 0.2s;
    background: white;
}

.search-input:focus, .search-select:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.btn-search {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s;
    white-space: nowrap;
    box-shadow: 0 3px 10px rgba(26,86,219,0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(26,86,219,0.45);
}

.btn-search svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 2.5;
    fill: none;
}

/* Properties Section */
.properties-section {
    background: transparent;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 800;
}

.view-all {
    color: var(--royal-blue);
    font-weight: 700;
    text-decoration: none;
    font-size: 14px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.see-more-container {
    text-align: center;
    margin-top: 25px;
}

.see-more-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

.see-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 86, 219, 0.4);
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.25s;
    border: 1px solid #e2e8f0;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.property-image-wrapper {
    position: relative;
    height: 130px;
    overflow: hidden;
}

.property-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease-out;
}

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

.property-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, rgba(26,86,219,0.98) 0%, rgba(14,58,138,0.98) 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(26,86,219,0.4);
}

.btn-report {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: black;
    border: none;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-report:hover {
    background: #f0f0f0;
}
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.property-info {
    padding: 10px;
}

.property-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 12px;
    margin-bottom: 8px;
}

.property-location svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--gray);
    stroke-width: 2;
}

.property-price {
    font-size: 17px;
    font-weight: 700;
    color: var(--royal-blue);
    margin-bottom: 8px;
}

.property-meta {
    display: flex;
    gap: 14px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--gray);
    font-weight: 500;
}

.property-meta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--gray);
    stroke-width: 2;
}

.btn-view-details {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: all 0.25s;
}

.btn-view-details:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,86,219,0.4);
}

.detail-container {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.detail-top {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}

.detail-right {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

@media (min-width: 1101px) {
    .detail-top {
        grid-template-columns: minmax(0, 760px) minmax(0, 1fr);
        align-items: start;
    }
}

.gallery {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.gallery-main {
    width: 100%;
    height: clamp(220px, 26vw, 360px);
    background: #0b1530;
    position: relative;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-main .btn-report {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.gallery-main .btn-report:hover {
    background: #f0f0f0;
}

.gallery-thumbs {
    display: flex;
    gap: 10px;
    padding: 12px;
    overflow-x: auto;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.thumb {
    width: 88px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
    flex: 0 0 auto;
}

.thumb:hover {
    border-color: var(--royal-blue);
    transform: translateY(-1px);
}

.property-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 22px;
    align-items: start;
}

.detail-info {
    background: white;
    border-radius: 16px;
    padding: 26px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.detail-breadcrumb {
    color: var(--gray);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.2px;
    margin-bottom: 10px;
}

.detail-sep {
    margin: 0 6px;
    color: #94a3b8;
}

.detail-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--black);
    margin-bottom: 12px;
    line-height: 1.2;
}

.detail-price {
    color: var(--royal-blue);
    font-size: 30px;
    font-weight: 900;
    margin-bottom: 18px;
}

.detail-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.meta-label {
    font-size: 12px;
    font-weight: 800;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.meta-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.detail-section {
    margin-top: 18px;
}

.detail-section-title {
    font-size: 16px;
    font-weight: 900;
    margin-bottom: 8px;
    color: #0f172a;
}

.detail-section-text {
    color: #334155;
    font-weight: 500;
    line-height: 1.7;
}

.contact-box {
    background: white;
    border-radius: 16px;
    padding: 22px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    position: sticky;
    top: 95px;
}

.btn-contact-toggle {
    width: 100%;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 14px;
    text-align: center;
}

.contact-details {
    display: none;
    margin-top: 10px;
}

.contact-details.active {
    display: block;
}

.contact-title {
    font-size: 16px;
    font-weight: 900;
    color: var(--royal-blue);
    margin-bottom: 14px;
}

.contact-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.contact-row:last-child {
    border-bottom: none;
}

.contact-label {
    color: #64748b;
    font-weight: 800;
    font-size: 13px;
    white-space: nowrap;
}

.contact-value {
    color: #0f172a;
    font-weight: 700;
    font-size: 13px;
    word-break: break-word;
    text-align: right;
}

/* Contact Section for Property Detail */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.contact-box {
    padding: 20px;
    background: #f9fafb;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.contact-title {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 15px;
}

.contact-details {
    display: none;
    margin-top: 15px;
}

.contact-details.show {
    display: block;
}

.message-form .form-group {
    margin-bottom: 15px;
}

.message-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.message-form .form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

.message-form .form-control[readonly] {
    background: #f3f4f6;
    color: #6b7280;
}

@media (max-width: 768px) {
    .contact-section {
        grid-template-columns: 1fr;
    }
}

.detail-section-header {
    margin-top: 10px;
}

/* Ad Space */
.ad-space {
    background: var(--light-gray);
    padding: 15px;
    text-align: center;
    margin: 0;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    margin-top: 45px;
    padding-top: 0;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.1);
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 20px;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.footer-logo svg {
    width: 34px;
    height: 34px;
    fill: white;
}

.footer-desc {
    color: rgba(255,255,255,0.95);
    font-size: 14px;
    line-height: 1.8;
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
}

.social-links a:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.footer-col h4 {
    color: white;
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 16px;
}

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

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

.footer-col ul li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: white;
}

.newsletter {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.newsletter p {
    color: rgba(255,255,255,0.95);
    font-size: 14px;
}

.newsletter-input {
    padding: 11px 16px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
}

.btn-subscribe {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1.5px solid rgba(255,255,255,0.35);
    padding: 11px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-subscribe:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    font-weight: 500;
}

/* Post Property Page Styles */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
}

.form-container {
    background: white;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin: 0 auto;
    border: 1px solid #e2e8f0;
}

.form-container.auth-form {
    width: min(32%, 420px);
    min-width: 300px;
    padding: 25px;
}

.form-container.auth-form .btn {
    width: auto;
    min-width: 130px;
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
}

.form-row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
    min-width: 250px;
}

.form-container h2 {
    font-size: 28px;
    color: #1e293b;
    margin-bottom: 20px;
    font-weight: 800;
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.1);
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    font-size: 13px;
}

.alert-success {
    background: #d1fae5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Mobile Overlay */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}



/* Mobile Filter Toggle Button */
.mobile-filter-toggle {
    display: none;
    width: 100%;
    background: linear-gradient(135deg, var(--royal-blue) 0%, var(--dark-blue) 100%);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
    transition: all 0.3s;
}

.mobile-filter-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26,86,219,0.4);
}

.mobile-filter-toggle svg {
    flex-shrink: 0;
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .hero-search-only .search-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-bar-container .search-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-bar-container .search-row:last-child .btn-search {
        grid-column: auto;
    }
}

@media (max-width: 900px) {
    .hero-search-only .search-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-bar-container .search-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-bar-container .search-row:last-child .btn-search {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    .hero-search-only .search-row {
        grid-template-columns: 1fr;
    }

    .search-bar-container .search-row {
        grid-template-columns: 1fr;
    }

    .search-bar-container .search-row:last-child .btn-search {
        grid-column: auto;
    }
}

@media (max-width: 1100px) {
    .main-content {
        grid-template-columns: 250px 1fr;
    }
    .header-nav {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
        gap: 22px;
    }
}

@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    .sidebar-right {
        display: none;
    }
}

@media (max-width: 1024px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .see-more-btn {
        padding: 10px 24px;
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .sidebar-right[style*="flex-direction:row"] {
        flex-direction: column !important;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: block;
    }

    /* Header positioning fix */
    .header-content {
        position: relative;
        padding: 8px 12px;
        gap: 10px;
    }

    /* Logo size reduction on mobile */
    .logo {
        font-size: 18px;
        font-weight: 700;
    }

    .logo svg {
        width: 28px;
        height: 28px;
    }

    .header-left {
        gap: 15px;
    }

    .header-right {
        position: relative;
        display: flex;
        gap: 6px;
        align-items: center;
        flex-wrap: nowrap;
        z-index: 10;
    }

    /* Mobile buttons styling - more compact */
    .header-right .btn {
        padding: 5px 10px;
        font-size: 11px;
        white-space: nowrap;
        min-width: auto;
    }

    .header-right .btn svg {
        width: 14px;
        height: 14px;
    }

    /* Desktop/Mobile visibility */
    .desktop-only {
        display: flex;
    }

    .mobile-only {
        display: none !important;
    }

    /* Mobile auth badge - completely hidden on desktop */
    .mobile-auth-badge {
        display: none !important;
    }

    /* Show mobile badge on mobile, hide desktop buttons */
    @media (max-width: 768px) {
        .desktop-only {
            display: none !important;
        }

        .mobile-only {
            display: flex !important;
        }

        .mobile-auth-badge {
            display: flex !important;
            background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
            color: white;
            padding: 6px 16px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            text-decoration: none;
            align-items: center;
            justify-content: center;
            gap: 6px;
            white-space: nowrap;
            box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
            text-align: center;
        }

        .mobile-auth-badge svg {
            width: 14px;
            height: 14px;
            flex-shrink: 0;
        }
    }

    /* Extra safety - ensure mobile badge is hidden on all desktop sizes */
    @media (min-width: 769px) {
        .mobile-auth-badge {
            display: none !important;
        }

        .mobile-only {
            display: none !important;
        }
    }

    /* Hide button text on very small screens, keep icons */
    @media (max-width: 480px) {
        .header-right .btn {
            padding: 6px 8px;
            font-size: 10px;
        }

        .logo {
            font-size: 16px;
        }

        .logo svg {
            width: 24px;
            height: 24px;
        }

        .mobile-auth-badge {
            padding: 5px 10px;
            font-size: 10px;
        }
    }

    /* Mobile Filter Toggle Button */
    .mobile-filter-toggle {
        display: flex;
    }

    /* Filter layout for mobile - 2 lines */
    .hero-search-only .search-row,
    .search-bar-container .search-row {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .hero-search-only .search-row .search-select,
    .search-bar-container .search-row .search-select,
    .hero-search-only .search-row .search-input,
    .search-bar-container .search-row .search-input {
        font-size: 13px;
        padding: 8px 10px;
    }

    .search-bar-container .search-row:last-child .btn-search {
        grid-column: auto;
        width: auto;
    }

    /* Hero search mobile layout - 4 columns in 2 rows */
    .hero-search-only .search-row {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 3px;
        width: 100%;
        max-width: 100%;
    }

    .hero-search-only .search-row .search-select {
        font-size: 11px;
        padding: 8px 5px;
        min-width: 0;
        height: 36px;
    }

    .hero-search-only .search-row:last-child .btn-search {
        grid-column: 4;
        width: 100%;
        font-size: 11px;
        padding: 8px 5px;
        min-width: 0;
        height: 36px;
    }

    /* Hide hero search by default on mobile */
    .hero-search-only {
        display: none;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
        padding: 10px;
        z-index: 5;
    }

    .hero-search-only.active {
        display: block;
    }

    /* Hide filter button when search is active */
    .hero-banner .mobile-filter-toggle.active {
        display: none !important;
    }

    /* Adjust hero banner for mobile */
    .hero-banner {
        min-height: 300px;
    }

    .hero-bg-img {
        height: 300px;
    }

    /* Hide search bar by default on mobile */
    #searchBarContainer {
        display: none;
    }

    #searchBarContainer.active {
        display: block;
    }

    /* Adjust hero banner for mobile when filter is hidden */
    .hero-banner {
        min-height: 300px;
    }

    .hero-bg-img {
        height: 300px;
    }

    .sidebar-close-btn {
        display: none;
        position: absolute;
        top: 15px;
        right: 15px;
        background: var(--royal-blue);
        color: white;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
        z-index: 10;
    }
    
    .sidebar-close-btn:hover {
        background: var(--dark-blue);
        transform: rotate(90deg);
    }
    
    .sidebar-left.active .sidebar-close-btn {
        display: flex;
    }

    /* Hide desktop sidebar in grid */
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .sidebar-left {
        position: fixed;
        top: 60px;
        left: -300px;
        width: 300px;
        height: calc(100vh - 60px);
        background: white;
        z-index: 1002;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0,0,0,0.15);
        padding: 20px 20px 60px 20px;
        transition: left 0.3s ease;
    }
    
    .sidebar-left.active {
        left: 0;
    }
    
    /* Hide horizontal sidebar in mobile view */
    .horizontal-sidebar {
        display: none !important;
    }

    /* Listing container specific mobile fix */
    .listing-container .main-content {
        grid-template-columns: 1fr;
    }

    /* Home container padding adjustment for mobile */
    .home-container {
        padding: 20px 10px;
    }

    /* Logo adjustment */
    .logo {
        font-size: 20px;
    }

    .logo svg {
        width: 30px;
        height: 30px;
    }

    /* Header buttons adjustment */
    .btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .footer .container {
        padding: 28px 18px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 22px;
    }
    
    /* Fix container padding for auth forms in mobile view */
    .container {
        padding: 30px 12px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .newsletter-input {
        width: 100%;
    }

    .property-grid {
        grid-template-columns: 1fr;
    }

    .see-more-container {
        margin-top: 20px;
    }

    .see-more-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
    }

    .hero-bg-img {
        height: 280px;
    }

    .hero-search-only {
        padding: 20px;
    }

    .form-container {
        padding: 24px;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row .form-group {
        min-width: auto;
    }

    .detail-meta {
        grid-template-columns: 1fr;
    }

    .property-detail {
        grid-template-columns: 1fr;
    }

    .contact-box {
        position: static;
    }
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 2001;
    padding: 10px;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 30px;
    padding: 15px 20px;
    border: none;
    cursor: pointer;
    z-index: 2001;
    border-radius: 50%;
    transition: background 0.3s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.4);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Lightbox mobile styles */
@media (max-width: 768px) {
    .lightbox-img {
        max-width: 95%;
        max-height: 85%;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 24px;
        padding: 10px 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}
