/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;      /* Lionsgate brand gold */
    --secondary-color: #262626;    /* Dark gray for contrast */
    --accent-color: #d4af37;       /* Same as primary for brand consistency */
    --text-dark: #333333;          /* Softer dark text */
    --text-light: #757575;         /* Muted gray for secondary text */
    --bg-light: #f8f8f8;           /* Soft off-white background */
    --white: #ffffff;
    --card-bg: #ffffff;
    --input-bg: #f5f5f5;           /* Light gray input background */
    --input-border: #e0e0e0;       /* Subtle input borders */
    --btn-hover-bg: #d4af37;       /* Brand gold for hover states */
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.06);  /* Softer shadows */
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 25px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --dark-bg: #1a1a1a;            /* Dark mode background */
    --dark-card: #2a2a2a;          /* Dark mode card background */
    --dark-text: #e0e0e0;          /* Dark mode text color */
}

/* Language Selector */
.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-left: 1rem;
    flex-shrink: 0;
}

.lang-btn {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.875rem;
    border-radius: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 45px;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

body.dark-mode .lang-btn {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

body.dark-mode .lang-btn:hover,
body.dark-mode .lang-btn.active {
    background: var(--primary-color);
    color: var(--secondary-color);
}

/* Service Cards in Hero Section */
.cards-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1rem 1rem 0;
    max-width: 900px;
    margin: 0.75rem auto 0;
    justify-content: center;
}

.service-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
    cursor: pointer;
    max-width: 260px;
    margin: 0 auto;
    text-decoration: none;
    display: block;
}

.service-card:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.5);
    border-color: var(--primary-color);
    box-shadow: 0 6px 35px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.35rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
    color: var(--white);
    margin-bottom: 0.35rem;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.service-card p {
    color: rgba(255, 255, 255, 1);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

/* Logo Link Styles */
.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

/* Agent Icon Styles */
.agent-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    transition: var(--transition);
    color: var(--primary-color) !important;
}

.agent-link i {
    font-size: 1.2rem;
}

.agent-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
}

/* Dark mode styles for agent icon */
body.dark-mode .agent-link {
    color: var(--primary-color) !important;
}

body.dark-mode .agent-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color) !important;
}

.logo a:hover {
    opacity: 0.9;
}

/* Responsive Styles for New Components */
@media (max-width: 1024px) {
    .cards-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.5rem 1rem 1rem;
    }

    .service-card {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 0.5rem;
    }
    
    .service-card {
        padding: 1rem;
    }

    .card-icon {
        font-size: 1.75rem;
    }

    .service-card h3 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.85rem;
    }

    /* Better mobile container padding */
    .container {
        padding: 0 1rem;
    }

    /* Fix navbar height on mobile */
    .navbar {
        height: 70px;
    }

    .nav-wrapper {
        padding: 0.75rem 0;
        height: 70px;
        align-items: center;
    }

    /* Adjust hero section for mobile */
    .hero {
        min-height: 100vh;
        padding-top: 0;
        margin-top: 70px;
    }

    .hero-content {
        padding: 2rem 1rem;
        margin-top: 0;
    }

    /* Fix section overlaps on mobile */
    section {
        padding-top: 1rem;
        margin-top: 0;
    }

    /* Ensure proper spacing for first section after hero */
    .hero + section {
        margin-top: 2rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* Property cards on mobile */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .property-card {
        margin: 0 auto;
        max-width: 100%;
    }

    /* Section spacing */
    section {
        padding: 3rem 0;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    /* Service highlights */
    .service-highlights {
        gap: 0.75rem;
    }

    .highlight-row {
        flex-direction: column;
        gap: 0.5rem;
        font-size: 0.85rem;
    }

    .highlight-row span {
        white-space: normal;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cards-wrapper {
        grid-template-columns: 1fr;
        max-width: 100%;
        padding: 1rem;
    }

    .service-card {
        padding: 1.5rem 1rem;
    }

    /* Hero section for very small screens */
    .hero-content h1 {
        font-size: 1.75rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    /* Full width buttons */
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    /* Container padding for tiny screens */
    .container {
        padding: 0 0.75rem;
    }

    /* Section headers */
    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }
}

/* Dark Mode Colors */
body.dark-mode {
    --text-dark: #f7e38f;
    --text-light: #c4c4c4;
    --bg-light: #1a1a1a;
    --white: #222222;
    --card-bg: #2a2a2a;
    --input-bg: #333333;
    --input-border: #444444;
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.7);
    --section-bg: #1e1e1e;  /* New darker background for sections */
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
    background: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #222222;
    box-shadow: var(--shadow);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

/* Dashboard navbar brand */
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    transition: var(--transition);
}

/* Theme Toggle Button */
.theme-toggle {
    background: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--secondary-color);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.theme-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

body.dark-mode .theme-toggle {
    background: var(--secondary-color);
    color: var(--primary-color);
}

body.dark-mode .theme-toggle i::before {
    content: "\f185"; /* sun icon */
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.95), rgba(200, 161, 101, 0.85)),
                url('https://images.unsplash.com/photo-1582407947304-fd86f028f716?w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-top: 0;
    padding: 0;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 800px;
    z-index: 1;
    padding: 2rem 1rem;
    margin-top: 70px; /* Account for fixed navbar */
}

.hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--accent-color);
    animation: fadeInUp 1s ease 0.2s backwards;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.4s backwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.95);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    animation: fadeInUp 1s ease 0.6s backwards;
}

/* Service Highlights Styles */
.service-highlights {
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    animation: fadeInUp 1s ease 0.8s backwards;
}

.highlight-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0.5rem 0;
    flex-wrap: wrap;
}

.highlight-row span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: var(--transition);
}

.highlight-row span:hover {
    transform: translateY(-2px);
    background: rgba(0, 0, 0, 0.4);
}

.highlight-row i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .highlight-row {
        gap: 1rem;
        padding: 0 1rem;
    }
    
    .highlight-row span {
        font-size: 0.85rem;
        padding: 0.2rem 0.6rem;
    }
}

@media (max-width: 480px) {
    .highlight-row {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .service-highlights {
        margin-top: 1.5rem;
    }
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: var(--transition);
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: var(--accent-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
}

.btn-accent:hover {
    background: #ffe380;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    width: 100%;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-block {
    width: 100%;
}

/* Search Section */
.search-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.05) 0%, 
        rgba(248, 248, 248, 0.8) 50%, 
        rgba(212, 175, 55, 0.05) 100%);
    margin-top: -50px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

body.dark-mode .search-section {
    background: linear-gradient(135deg, 
        rgba(212, 175, 55, 0.1) 0%, 
        rgba(26, 26, 26, 0.9) 50%, 
        rgba(212, 175, 55, 0.1) 100%);
}

.search-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                0 0 60px rgba(212, 175, 55, 0.1),
                inset 0 0 0 1px rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.search-box:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15),
                0 0 80px rgba(212, 175, 55, 0.15),
                inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

body.dark-mode .search-box {
    background: rgba(42, 42, 42, 0.6);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3),
                0 0 60px rgba(212, 175, 55, 0.15),
                inset 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.search-box h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    text-align: center;
}

.search-form {
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-group {
    display: flex;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1),
                0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

body.dark-mode .form-group input,
body.dark-mode .form-group select {
    background: rgba(42, 42, 42, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--primary-color);
}

body.dark-mode .form-group input::placeholder {
    color: rgba(212, 175, 55, 0.5);
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group select:focus {
    background: rgba(42, 42, 42, 0.7);
    border-color: var(--primary-color);
}

.form-group button.btn-primary {
    width: 100%;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #c9a044 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.form-group button.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #c9a044 0%, var(--primary-color) 100%);
}

.form-group button.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.form-group button.btn-primary i {
    font-size: 1.1rem;
}

/* Section Styling */
section {
    padding: 5rem 0;
    position: relative;
}

.properties-section,
.about-section {
    background: linear-gradient(to bottom, 
        rgba(248, 248, 248, 0.5) 0%, 
        rgba(255, 255, 255, 0.3) 100%);
}

body.dark-mode .properties-section,
body.dark-mode .about-section {
    background: linear-gradient(to bottom, 
        rgba(26, 26, 26, 0.5) 0%, 
        rgba(34, 34, 34, 0.3) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.results-counter {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    animation: slideInDown 0.5s ease;
}

body.dark-mode .results-counter {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.1) 100%);
    border-color: rgba(212, 175, 55, 0.4);
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Coming Soon Message */
.coming-soon-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(212, 175, 55, 0.3);
    backdrop-filter: blur(10px);
}

.coming-soon-message i {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.coming-soon-message h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.coming-soon-message p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

body.dark-mode .coming-soon-message {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(42, 42, 42, 0.3) 100%);
    border-color: rgba(212, 175, 55, 0.4);
}

body.dark-mode .coming-soon-message h3 {
    color: var(--primary-color);
}

/* No Results Message */
.no-results-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    border: 2px dashed rgba(231, 76, 60, 0.3);
    backdrop-filter: blur(10px);
}

.no-results-message i {
    font-size: 4rem;
    color: #e74c3c;
    margin-bottom: 1.5rem;
}

.no-results-message h3 {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

.no-results-message p {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.no-results-message .btn {
    margin-top: 1rem;
}

body.dark-mode .no-results-message {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15) 0%, rgba(42, 42, 42, 0.3) 100%);
    border-color: rgba(231, 76, 60, 0.4);
}

body.dark-mode .no-results-message h3 {
    color: #e74c3c;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.property-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    opacity: 1;
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white);
}

.property-badge.sale {
    background: #27ae60;
}

.property-badge.rent {
    background: #3498db;
}

.property-favorite {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--secondary-color);
}

.property-favorite:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

body.dark-mode .property-favorite {
    background: rgba(42, 42, 42, 0.95);
    color: var(--primary-color);
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-price span {
    font-size: 1rem;
    color: var(--text-light);
}

.property-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.property-location {
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--input-border);
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Services Section */
.services-section {
    background: #f2f2f2;  /* Slightly darker than bg-light for contrast */
}

body.dark-mode .services-section {
    background: var(--section-bg);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--secondary-color);
}

body.dark-mode .service-icon {
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.about-lead {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
}

.about-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tourist Packages Section */
.packages-section {
    background: #f2f2f2;
    padding: 5rem 0;
}

body.dark-mode .packages-section {
    background: var(--section-bg);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.package-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.package-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

.package-price {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.package-content {
    padding: 1.5rem;
}

.package-title {
    font-size: 1.4rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.package-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.package-features {
    margin: 1rem 0;
    padding-top: 1rem;
    border-top: 1px solid var(--input-border);
}


.package-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0;
}

.package-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--input-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.package-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.package-location i {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
        padding: 1rem;
    }

    .package-image {
        height: 180px;
    }

    .package-title {
        font-size: 1.2rem;
    }

    .package-price {
        font-size: 1rem;
        padding: 8px 16px;
    }
}

/* Contact Section */
.contact-section {
    background: #f2f2f2;  /* Consistent with services section */
}

body.dark-mode .contact-section {
    background: var(--section-bg);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.contact-card p {
    color: var(--text-light);
}

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

/* Map title spacing and typography */
.map-title {
    margin: 0 0 1rem;
    font-size: 1.2rem;
    color: var(--text-dark);
}

/* Responsive map height */
@media (max-width: 768px) {
    .contact-form-wrapper iframe {
        height: 360px;
    }
}

@media (max-width: 480px) {
    .contact-form-wrapper iframe {
        height: 300px;
    }
}


/* Footer */
.footer {
    background: #222222;  /* Matching navbar color */
    color: var(--white);
    padding: 3rem 0 1rem;
    border-top: 3px solid var(--primary-color);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.footer-logo img {
    height: 40px;
    filter: none;
}

.footer-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.footer-col h4 {
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-col ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.7);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: #222222;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow);
        padding: 2rem 0;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 0;
        padding: 0.75rem 0;
        width: 100%;
    }

    .nav-menu a {
        display: block;
        padding: 0.5rem 1rem;
        font-size: 1.1rem;
    }

    .nav-toggle {
        display: flex;
        order: 2;
    }

    .language-selector {
        order: 3;
        margin: 0;
        margin-left: auto;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        order: 4;
    }

    .logo {
        order: 1;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .nav-wrapper {
        padding: 0.75rem 0;
    }

    .logo img {
        height: 40px;
    }

    .language-selector {
        gap: 0.25rem;
    }

    .lang-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        min-width: 38px;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
}

/* Agent Login Styles */
.login-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 2rem;
    padding-top: 70px; /* Account for fixed navbar */
    overflow: hidden; /* Prevent scrolling */
}

.login-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
    padding: 2.5rem;
    max-height: calc(100vh - 140px); /* Fit within viewport */
}

.login-header {
    text-align: center;
    margin-bottom: 1rem;
}

.login-header i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.login-header h1 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
}


/* Login Responsive Design */
@media (max-width: 768px) {
    .login-card {
        max-width: 100%;
        margin: 1rem;
        padding: 2rem;
        max-height: calc(100vh - 120px);
    }

    .login-section {
        padding: 1rem;
        padding-top: 70px; /* Account for fixed navbar */
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
        max-height: calc(100vh - 100px);
    }
    
    .login-section {
        padding: 0.5rem;
        padding-top: 70px; /* Account for fixed navbar */
    }
    
    .login-form input {
        width: 90%;
    }
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid var(--primary-color);
}

.demo-credentials h3 {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.demo-credentials p {
    margin: 0.25rem 0;
    font-size: 0.875rem;
    color: #666;
}

.demo-credentials code {
    background: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    color: var(--primary-color);
    font-weight: 500;
}

/* Agent Dashboard Styles */
.dashboard-section {
    padding-top: 100px;
    padding-bottom: 2rem;
    min-height: 100vh;
    background: #f8f9fa;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.dashboard-header h1 {
    color: var(--secondary-color);
}

.dashboard-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.currency-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.currency-selector label {
    font-weight: 500;
    color: var(--secondary-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.currency-select {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    background: white;
    color: var(--secondary-color);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.95rem;
}

.currency-select:hover {
    background: var(--primary-color);
    color: white;
}

.currency-select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.input-with-currency {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-currency input {
    padding-right: 60px;
}

.currency-indicator {
    position: absolute;
    right: 15px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.85rem;
    pointer-events: none;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    margin-right: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), #ffd966);
    color: var(--secondary-color);
}

.stat-info h3 {
    font-size: 2rem;
    color: var(--secondary-color);
    margin: 0;
}

.stat-info p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.listings-container {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.listings-container h2 {
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

.table-responsive {
    overflow-x: auto;
}

.listings-table {
    width: 100%;
    border-collapse: collapse;
}

.listings-table thead {
    background: var(--secondary-color);
    color: white;
}

.listings-table th,
.listings-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.listings-table th {
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
}

.btn-edit,
.btn-delete {
    padding: 0.5rem 0.75rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    margin: 0 0.25rem;
}

.btn-edit {
    background: #3498db;
    color: var(--white);
}

.btn-edit:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-delete {
    background: #e74c3c;
    color: var(--white);
}

.btn-delete:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.listing-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.badge-apartment {
    background: #e3f2fd;
    color: #1976d2;
}

.badge-villa {
    background: #f3e5f5;
    color: #7b1fa2;
}

.badge-office {
    background: #fff3e0;
    color: #f57c00;
}

.badge-land {
    background: #e8f5e9;
    color: #388e3c;
}

.badge-sale {
    background: #fff3cd;
    color: #856404;
}

.badge-rent {
    background: #d1ecf1;
    color: #0c5460;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-pending {
    background: #fff3cd;
    color: #856404;
}

.badge-sold {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.btn-edit {
    color: #0066cc;
}

.btn-edit:hover {
    background: #e3f2fd;
}

.btn-delete {
    color: #dc3545;
}

.btn-delete:hover {
    background: #f8d7da;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
}

.modal-content {
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 10px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.close-modal {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    font-size: 2rem;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.close-modal:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

#editListingForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#editListingForm input[type="text"],
#editListingForm input[type="number"],
#editListingForm input[type="date"],
#editListingForm select {
    padding: 0.875rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--input-bg);
}

#editListingForm input:focus,
#editListingForm select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
}

#editListingForm textarea {
    grid-column: 1 / -1;
    padding: 0.875rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 0.95rem;
    min-height: 100px;
    resize: vertical;
}

#edit_real_estate_fields,
#edit_airbnb_fields,
#edit_travel_fields {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

#editListingForm button {
    grid-column: 1 / -1;
    margin-top: 1rem;
}

#editFormMsg {
    grid-column: 1 / -1;
    margin-top: 1rem;
    text-align: center;
    font-weight: 600;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    color: var(--secondary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: var(--secondary-color);
}

.listing-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.listing-form .form-group {
    margin-bottom: 1.5rem;
}

.listing-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: 0.9rem;
}

.listing-form input,
.listing-form select,
.listing-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.listing-form input:focus,
.listing-form select:focus,
.listing-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(247, 227, 143, 0.1);
}

.listing-form small {
    display: block;
    margin-top: 0.25rem;
    color: #666;
    font-size: 0.8rem;
}

/* Drag and Drop Zone Styles */
.drop-zone {
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: #fafafa;
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background: #fff9e6;
}

.drop-zone.dragover {
    border-color: var(--primary-color);
    background: #fff9e6;
    border-style: solid;
}

.drop-zone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.drop-zone-content i {
    font-size: 3rem;
    color: var(--primary-color);
}

.drop-zone-content p {
    color: #666;
    font-size: 0.95rem;
    margin: 0;
}

.image-preview {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 4px;
    object-fit: contain;
}

.remove-image-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.remove-image-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Gallery Previews */
.gallery-previews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    padding: 10px;
    width: 100%;
}

.gallery-preview-item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio */
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #ddd;
    background: #f8f9fa;
}

.gallery-preview-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-gallery-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(255, 0, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
    font-size: 12px;
}

.remove-gallery-btn:hover {
    background: rgba(255, 0, 0, 1);
    transform: scale(1.1);
}

/* Amenities Checkboxes */
.amenities-section {
    grid-column: 1 / -1;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 8px;
    border: 2px solid var(--input-border);
}

.amenities-section > label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.amenities-section > label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.amenities-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    padding: 10px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
}

.checkbox-label:hover {
    background: #f8f9fa;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.checkbox-label span {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.btn-outline {
    background: white;
    color: var(--secondary-color);
    border: 1px solid #ddd;
}

.btn-outline:hover {
    background: #f8f9fa;
    border-color: var(--secondary-color);
}

/* Dark mode adjustments for dashboard */
.dark-mode .dashboard-section {
    background: var(--dark-bg);
}

.dark-mode .stat-card,
.dark-mode .listings-container,
.dark-mode .modal-content {
    background: var(--dark-card);
    color: var(--dark-text);
}

.dark-mode .listings-table thead {
    background: var(--secondary-color);
}

.dark-mode .listings-table td {
    border-bottom-color: #333;
}

.dark-mode .modal-header {
    border-bottom-color: #333;
}

.dark-mode .modal-actions {
    border-top-color: #333;
}

.dark-mode .login-card {
    background: var(--dark-card);
    color: var(--dark-text);
}

.dark-mode .demo-credentials {
    background: #2a2a2a;
}

/* Responsive adjustments for dashboard */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .dashboard-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .currency-selector {
        justify-content: space-between;
    }

    #addListingBtn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 98%;
        max-width: none;
        margin: 1rem auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .listings-table {
        font-size: 0.85rem;
    }

    .listings-table th,
    .listings-table td {
        padding: 0.75rem 0.5rem;
    }

/* Form Status Styles */
.form-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    display: none;
    text-align: center;
}

.form-status.success {
    display: block;
    background-color: rgba(75, 181, 67, 0.1);
    border: 1px solid #4bb543;
    color: #4bb543;
}

.form-status.error {
    display: block;
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff0000;
}

    .listing-thumbnail {
        width: 60px;
        height: 45px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 1rem auto;
    }

    .listing-form {
        padding: 1.5rem;
    }
}

/* Dashboard specific button styles */
.dashboard-header .btn-primary {
    background: var(--secondary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.dashboard-header .btn-primary:hover {
    background: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles for Hero Cards */
@media (max-width: 1024px) {
    .hero-content {
        padding: 2.5rem 1rem;
        margin-top: 70px;
    }

    .cards-wrapper {
        gap: 0.75rem;
        padding: 1rem;
    }

    .service-card {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 2rem 1rem;
        margin-top: 70px;
    }
    
    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem 0.5rem;
        gap: 0.75rem;
    }
    
    .service-card {
        padding: 1rem;
        max-width: none;
    }

    .card-icon {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .service-card h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
    }

    .service-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 1.5rem 1rem;
        margin-top: 70px;
    }

    .cards-wrapper {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .service-card {
        padding: 0.75rem;
    }

    .card-icon {
        font-size: 1.25rem;
        margin-bottom: 0.3rem;
    }

    .service-card h3 {
        font-size: 0.9rem;
        margin-bottom: 0.3rem;
    }

    .service-card p {
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .hero-title {
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .hero-description {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    /* Search Bar Mobile Styles */
    .search-section {
        padding: 2rem 0;
        margin-top: -30px;
    }

    .search-box {
        padding: 1.5rem;
        border-radius: 15px;
    }

    .search-box h2 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .form-group input,
    .form-group select,
    .form-group button.btn-primary {
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    /* Pagination Mobile Styles */
    .pagination-container {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        gap: 0.5rem;
    }

    .pagination-number {
        min-width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Pagination Styles */
.pagination-container {
    margin-top: 3rem;
    padding: 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pagination-info {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--white);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--light-gray);
    color: var(--text-light);
    border-color: var(--light-gray);
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-number {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.pagination-number:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.pagination-number.active {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

body.dark-mode .pagination-btn {
    background: rgba(42, 42, 42, 0.8);
    border-color: rgba(212, 175, 55, 0.4);
    color: var(--primary-color);
}

body.dark-mode .pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: var(--text-dark);
}

body.dark-mode .pagination-number {
    background: rgba(42, 42, 42, 0.8);
    border-color: rgba(212, 175, 55, 0.4);
}

body.dark-mode .pagination-number:hover,
body.dark-mode .pagination-number.active {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* Pagination Container */
.pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    min-height: 50px;
}

/* Pagination Current Page Indicator */
.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    margin: 0 0.25rem;
}

body.dark-mode .pagination-current {
    background: var(--primary-color);
    color: var(--text-dark);
}

/* WhatsApp Contact Bubble */
.whatsapp-bubble {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: bounce 2s infinite;
}

.whatsapp-bubble a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
}

.whatsapp-bubble a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-bubble i {
    font-size: 28px;
    color: white;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Mobile WhatsApp Bubble */
@media (max-width: 768px) {
    .whatsapp-bubble {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-bubble a {
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-bubble i {
        font-size: 24px;
    }
}

/* Image Preview Containers */
#previewRealEstate,
#previewAirbnb,
#previewTravel {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    min-height: auto;
    visibility: visible;
    opacity: 1;
}

#previewRealEstate img,
#previewAirbnb img,
#previewTravel img {
    width: 100px !important;
    height: 100px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: block !important;
}

/* Property Detail Page */
.property-detail-hero {
    position: relative;
    height: 60vh;
    min-height: 320px;
    max-height: 720px;
    overflow: hidden;
    border-bottom: 6px solid var(--primary-color);
}

.property-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.85);
}

.property-detail-badge {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid var(--primary-color);
}

.property-detail-container {
    max-width: 1200px;
    margin: -80px auto 80px;
    padding: 0 20px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid #e5e5e5;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    font-weight: 600;
    transition: var(--transition);
}

.btn-back:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.property-detail-card {
    background: #fff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: var(--shadow-lg);
    border: 1px solid #f0f0f0;
}

.property-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    border-bottom: 1px solid #eee;
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.property-detail-header h1 {
    font-size: 28px;
    margin-bottom: 6px;
}

.property-detail-location {
    color: var(--text-light);
    display: flex;
    gap: 8px;
    align-items: center;
}

.property-detail-price {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-color);
}

.property-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.feature-pill {
    background: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
}

.feature-label {
    display: block;
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-value {
    font-weight: 700;
    color: var(--secondary-color);
}

.property-description h2,
.property-amenities h2,
.property-gallery h2 {
    margin: 12px 0;
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.amenities-list .tag {
    background: #f0f0f0;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
}

.property-gallery {
    margin-top: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    background: #fafafa;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-placeholder img {
    width: 100%;
    border-radius: 12px;
}

/* Property Detail Dark Mode */
body.dark-mode .property-detail-hero img {
    filter: brightness(0.6);
}

body.dark-mode .property-detail-badge {
    background: rgba(0, 0, 0, 0.85);
    border-color: var(--primary-color);
    color: #fff;
}

body.dark-mode .property-detail-container {
    color: #e8e8e8;
}

body.dark-mode .btn-back {
    background: #161616;
    color: #f2f2f2;
    border-color: #2a2a2a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

body.dark-mode .btn-back:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

body.dark-mode .property-detail-card {
    background: #121212;
    border-color: #1f1f1f;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

body.dark-mode .property-detail-header {
    border-color: #1f1f1f;
}

body.dark-mode .property-detail-header h1,
body.dark-mode .property-detail-price,
body.dark-mode .property-detail-card h2,
body.dark-mode .property-description p,
body.dark-mode .property-amenities,
body.dark-mode .property-gallery {
    color: #f2f2f2;
}

body.dark-mode .property-detail-location,
body.dark-mode .feature-label {
    color: #b3b3b3;
}

body.dark-mode .feature-pill {
    background: #1b1b1b;
    border-color: #2a2a2a;
}

body.dark-mode .feature-value {
    color: #e6e6e6;
}

body.dark-mode .amenities-list .tag {
    background: #1c1c1c;
    color: #e6e6e6;
}

body.dark-mode .gallery-item {
    background: #1a1a1a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

@media (max-width: 768px) {
    .property-detail-hero {
        height: 40vh;
    }
    .property-detail-container {
        margin: -40px auto 60px;
    }
    .property-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Agent Login & Dashboard Styles */
.login-heading {
    text-align: center;
    color: var(--text-dark);
    margin: 2rem 0;
}

.drop-zone {
    border: 2px dashed #aaa;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-light);
}

.drop-zone:hover {
    border-color: var(--primary-color);
    background: var(--white);
}

/* Agent Login Page Styling */
.login-container {
    background: var(--white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

.login-logo {
    margin-bottom: 1.5rem;
}

.login-logo img {
    height: 60px;
    width: auto;
}

.login-subtitle {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group label i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.error-message {
    color: #e74c3c;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.75rem;
    background: #fee;
    border-radius: 8px;
    display: none;
}

.error-message:not(:empty) {
    display: block;
}

.back-home {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-home:hover {
    color: var(--primary-color);
}

body:has(#loginForm),
body.agent-login-page {
    background: linear-gradient(135deg, var(--bg-light) 0%, #e8e8e8 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#loginForm input {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--input-bg);
}

#loginForm input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.btn-login {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-login:hover {
    background: #c29d2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-login i {
    margin-right: 0.5rem;
}

/* Agent Dashboard Styling */
body:has(.dashboard-section),
body.agent-dashboard-page {
    background: var(--bg-light);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    padding: 0;
    margin: 0;
    color: var(--text-dark);
}

.dashboard-header {
    background: var(--white);
    padding: 1.5rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-logo img {
    height: 40px;
    width: auto;
}

.dashboard-logo h1 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 0;
}

.dashboard-logo h1 i {
    color: var(--primary-color);
    margin-right: 0.5rem;
}

.dashboard-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary,
.btn-logout {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #c29d2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-logout {
    background: #e74c3c;
    color: var(--white);
}

.btn-logout:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.3);
}

/* Dashboard Stats Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto 2rem;
    padding: 0 2rem;
}

.stat-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #e8c547);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--white);
}

.stat-content h3 {
    color: var(--text-light);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin: 0;
}

body:has(.dashboard-section) h1 {
    color: var(--text-dark);
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.dashboard-section {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin: 0 2rem 2rem;
}

.dashboard-section h2 {
    color: var(--text-dark);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 0.75rem;
}

.dashboard-section hr {
    border: none;
    border-top: 2px solid var(--input-border);
    margin: 3rem 0;
}

/* Dashboard Form Styling */
#createListingForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

#createListingForm input,
#createListingForm select,
#createListingForm textarea {
    padding: 0.875rem 1rem;
    border: 2px solid var(--input-border);
    border-radius: 8px;
    font-size: 0.95rem;
    transition: var(--transition);
    background: var(--input-bg);
    font-family: inherit;
}

#createListingForm input:focus,
#createListingForm select:focus,
#createListingForm textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

#createListingForm textarea {
    grid-column: 1 / -1;
    min-height: 120px;
    resize: vertical;
}

#createListingForm .drop-zone {
    grid-column: 1 / -1;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

#createListingForm #preview {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

#preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--input-border);
}

#createListingForm button,
#createListingForm .btn-primary {
    grid-column: 1 / -1;
    padding: 1rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#createListingForm button:hover,
#createListingForm .btn-primary:hover {
    background: #c29d2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

#formMsg {
    text-align: center;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-weight: 500;
}

#formMsg.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

#formMsg.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Dashboard Table Styling */
.dashboard-section table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.dashboard-section table thead {
    background: var(--primary-color);
    color: var(--white);
}

.dashboard-section table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dashboard-section table tbody tr {
    background: var(--white);
    transition: var(--transition);
}

.dashboard-section table tbody tr:nth-child(even) {
    background: var(--bg-light);
}

.dashboard-section table tbody tr:hover {
    background: #f0f0f0;
    transform: scale(1.01);
}

.dashboard-section table td {
    padding: 1rem;
    border-bottom: 1px solid var(--input-border);
    font-size: 0.9rem;
}

.dashboard-section table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive Design for Agent Pages */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .dashboard-logo {
        flex-direction: column;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: center;
    }

    .dashboard-stats {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }

    .dashboard-section {
        padding: 1.5rem;
        margin: 0 1rem 1rem;
    }

    #createListingForm {
        grid-template-columns: 1fr;
    }

    #createListingForm textarea,
    #createListingForm .drop-zone,
    #createListingForm button {
        grid-column: 1;
    }

    .dashboard-section table {
        font-size: 0.85rem;
        overflow-x: auto;
        display: block;
    }

    .dashboard-section table th,
    .dashboard-section table td {
        padding: 0.75rem 0.5rem;
    }

    .login-container {
        padding: 2rem;
    }
}

/* Airbnb Section */
.airbnb-section {
    padding: 4rem 0;
    background: var(--white);
}

.airbnb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.airbnb-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.airbnb-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.airbnb-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.airbnb-content {
    padding: 1.5rem;
}

.airbnb-price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.airbnb-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

/* Travel Packages Section */
.travel-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.travel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.travel-card {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.travel-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.travel-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.travel-content {
    padding: 1.5rem;
}

.travel-price {
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.travel-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.travel-duration {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 40px;
    cursor: pointer;
    padding: 15px 25px;
    border-radius: 5px;
    z-index: 2001;
    transition: all 0.3s;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: rgba(212, 175, 55, 0.6);
    color: black;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
    z-index: 2001;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

