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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.44; /* Reduced by 10% from 1.6 */
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1080px; /* Reduced by 10% from 1200px */
    margin: 0 auto;
    padding: 0 18px; /* Reduced by 10% from 20px */
}

/* Header Styles - Modern Design */
header {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: linear-gradient(135deg, rgba(255,255,255,0.98) 0%, rgba(248,249,250,0.98) 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(0);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13.5px 0; /* Reduced by 10% from 15px */
    transition: padding 0.3s ease;
    flex-wrap: wrap;
}

header.scrolled .container {
    padding: 10.8px 0; /* Reduced by 10% from 12px */
}

.logo h1 {
    color: #2c3e50;
    font-size: 21.6px; /* Reduced by 10% from 24px */
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8.1px; /* Reduced by 10% from 9px */
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.45px; /* Reduced by 10% from -0.5px */
    text-shadow: 0 1.8px 3.6px rgba(52, 152, 219, 0.1); /* Reduced by 10% */
}

.logo h1 i {
    color: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    padding: 7px; /* Increased by 10% from 6px (previously reduced by 30% from 8px) */
    border-radius: 9px; /* Increased by 10% from 8px (previously reduced by 30% from 12px) */
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    font-size: 15px; /* Increased by 10% from 14px (previously reduced by 30% from 20px) */
    -webkit-text-fill-color: white;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

nav ul {
    display: flex;
    list-style: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(248,249,250,0.1));
    backdrop-filter: blur(10px);
    border-radius: 35.1px; /* Reduced by 10% from 39px */
    padding: 6.3px; /* Reduced by 10% from 7px */
    box-shadow: 0 3.6px 18px rgba(0, 0, 0, 0.05); /* Reduced by 10% */
    border: 1px solid rgba(255, 255, 255, 0.2);
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

nav ul li {
    margin: 0 4px;
    display: flex;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: #34495e;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 6.3px; /* Reduced by 10% from 7px */
    padding: 8.1px 13.5px; /* Reduced by 10% from 9px 15px */
    border-radius: 25.2px; /* Reduced by 10% from 28px */
    position: relative;
    overflow: hidden;
    font-size: 0.666rem; /* Reduced by 10% from 0.74rem */
    letter-spacing: 0.27px; /* Reduced by 10% from 0.3px */
    white-space: nowrap;
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s;
}

nav ul li a:hover::before {
    left: 100%;
}

/* Language switcher positioning */
.language-switcher {
    display: flex;
    align-items: center;
    margin-left: 10px;
}

/* DWG Map Button Special Styling */
#dwg-map-link {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.15), rgba(76, 175, 80, 0.15));
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(76, 175, 80, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

#dwg-map-link i {
    color: #4CAF50;
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.1rem;
    animation: mapPulse 3s ease-in-out infinite;
}

@keyframes mapPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

#dwg-map-link:hover {
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.25), rgba(76, 175, 80, 0.25));
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(76, 175, 80, 0.25),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
}

#dwg-map-link:hover i {
    animation: mapBounce 0.6s ease;
}

@keyframes mapBounce {
    0%, 20%, 60%, 100% { transform: scale(1); }
    40% { transform: scale(1.2); }
    80% { transform: scale(1.1); }
}

#dwg-map-link:active {
    transform: translateY(0);
    background: linear-gradient(135deg, rgba(46, 125, 50, 0.3), rgba(76, 175, 80, 0.3));
}

#dwg-map-link[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    z-index: 1000;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

nav ul li a:hover::before {
    left: 100%;
}

nav ul li a:hover {
    color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
}

/* RTL hover effects */
html[lang="ar"] nav ul li a:hover,
html[lang="ku"] nav ul li a:hover {
    color: #3498db;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(41, 128, 185, 0.1));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.2);
}

.language-switcher {
    display: flex;
    align-items: center;
}

.language-switcher select {
    padding: 10px 16px;
    border-radius: 25px;
    border: 2px solid rgba(52, 152, 219, 0.3);
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(248,249,250,0.9));
    backdrop-filter: blur(10px);
    color: #34495e;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
    font-size: 0.9rem;
}

.language-switcher select:focus {
    border-color: #3498db;
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(52, 152, 219, 0.3);
}

.btn-login {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white !important;
    padding: 10px 20px;
    border-radius: 35px;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-login:hover::before {
    left: 100%;
}

.btn-login:hover {
    background: linear-gradient(135deg, #2980b9, #1a2530);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(52, 152, 219, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-register {
    background: linear-gradient(135deg, #27ae60, #2d5530);
    color: white !important;
    padding: 10px 20px;
    border-radius: 35px;
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-register::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s;
}

.btn-register:hover::before {
    left: 100%;
}

.btn-register:hover {
    background: linear-gradient(135deg, #229954, #1e3d24);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(39, 174, 96, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Mobile Header Improvements */
@media (max-width: 768px) {
    /* Mobile Header Improvements */
    header {
        padding: 0;
    }
    
    header .container {
        flex-direction: column;
        padding: 9px 0; /* Reduced by 10% from 10px */
        gap: 10.8px; /* Reduced by 10% from 12px */
    }
    
    .logo h1 {
        font-size: 21.6px; /* Reduced by 10% from 24px */
        text-align: center;
        margin: 0;
    }
    
    .logo h1 i {
        font-size: 16.2px; /* Reduced by 10% from 18px */
        padding: 5.4px; /* Reduced by 10% from 6px */
    }
    
    nav ul {
        margin-top: 0;
        flex-wrap: wrap;
        justify-content: center;
        padding: 3.6px; /* Reduced by 10% from 4px */
        width: 100%;
        max-width: none;
    }
    
    nav ul li {
        margin: 1.8px; /* Reduced by 10% from 2px */
        flex: 0 0 auto;
    }
    
    nav ul li a {
        font-size: 0.72rem; /* Reduced by 10% from 0.8rem */
        padding: 7.2px 10.8px; /* Reduced by 10% from 8px 12px */
        border-radius: 18px; /* Reduced by 10% from 20px */
        white-space: nowrap;
    }
    
    .language-switcher {
        margin: 0;
        margin-left: 4.5px; /* Reduced by 10% from 5px */
    }
    
    .language-switcher select {
        padding: 7.2px 14.4px; /* Reduced by 10% from 8px 16px */
        font-size: 0.765rem; /* Reduced by 10% from 0.85rem */
        min-width: 108px; /* Reduced by 10% from 120px */
    }
    
    .btn-login, .btn-register {
        padding: 7.2px 14.4px; /* Reduced by 10% from 8px 16px */
        font-size: 0.72rem; /* Reduced by 10% from 0.8rem */
        border-radius: 18px; /* Reduced by 10% from 20px */
        min-width: auto;
        white-space: nowrap;
    }
    
    /* Hero section adjustments for mobile header */
    .hero {
        margin-top: 0;
        padding-top: 108px; /* Reduced by 10% from 120px */
    }
}

@media (max-width: 480px) {
    /* Extra small mobile header adjustments */
    header .container {
        padding: 7.2px 0; /* Reduced by 10% from 8px */
        gap: 7.2px; /* Reduced by 10% from 8px */
    }
    
    .logo h1 {
        font-size: 18px; /* Reduced by 10% from 20px */
    }
    
    .logo h1 i {
        font-size: 14.4px; /* Reduced by 10% from 16px */
        padding: 3.6px; /* Reduced by 10% from 4px */
    }
    
    nav ul {
        padding: 1.8px; /* Reduced by 10% from 2px */
        gap: 1.8px; /* Reduced by 10% from 2px */
    }
    
    nav ul li {
        margin: 0.9px; /* Reduced by 10% from 1px */
    }
    
    nav ul li a {
        font-size: 0.675rem; /* Reduced by 10% from 0.75rem */
        padding: 5.4px 9px; /* Reduced by 10% from 6px 10px */
        border-radius: 13.5px; /* Reduced by 10% from 15px */
    }
    
    .language-switcher select {
        padding: 5.4px 10.8px; /* Reduced by 10% from 6px 12px */
        font-size: 0.675rem; /* Reduced by 10% from 0.75rem */
        min-width: 90px; /* Reduced by 10% from 100px */
    }
    
    .btn-login, .btn-register {
        padding: 5.4px 10.8px; /* Reduced by 10% from 6px 12px */
        font-size: 0.675rem; /* Reduced by 10% from 0.75rem */
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    height: 90vh; /* Reduced by 10% from 100vh */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 0;
}

.hero-content h2 {
    font-size: 3.15rem; /* Reduced by 10% from 3.5rem */
    margin-bottom: 18px; /* Reduced by 10% from 20px */
    font-weight: 700;
    text-shadow: 0 1.8px 3.6px rgba(0, 0, 0, 0.3); /* Reduced by 10% */
}

.hero-content p {
    font-size: 1.26rem; /* Reduced by 10% from 1.4rem */
    margin-bottom: 27px; /* Reduced by 10% from 30px */
    max-width: 630px; /* Reduced by 10% from 700px */
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1.1rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1a2530);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.5);
}

/* Search Section - Modernized Design */
.search-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.9));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxkZWZzPjxwYXR0ZXJuIGlkPSJwYXR0ZXJuIiB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHBhdHRlcm5Vbml0cz0idXNlclNwYWNlT25Vc2UiIHBhdHRlcm5UcmFuc2Zvcm09InJvdGF0ZSg0NSkiPjxjaXJjbGUgY3g9IjIwIiBjeT0iMjAiIHI9IjAuNSIgZmlsbD0icmdiYSgyNTUsIDI1NSwgMjU1LCAwLjEpIi8+PC9wYXR0ZXJuPjwvZGVmcz48cmVjdCB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDAlIiBmaWxsPSJ1cmwoI3BhdHRlcm4pIi8+PC9zdmc+') fixed;
    opacity: 0.2;
}

.search-section h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2.5rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.8s ease-out;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.search-section h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    margin: 15px auto 0;
    border-radius: 2px;
}

.search-box {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.search-box input {
    flex: 1;
    padding: 25px 30px;
    border: none;
    font-size: 17px;
    outline: none;
    background: transparent;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 500;
}

.search-box input::placeholder {
    color: #95a5a6;
    font-weight: 400;
}

.search-box input:focus {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 0 0 2px rgba(52, 152, 219, 0.3);
}

.search-box select {
    padding: 25px 30px;
    border: none;
    font-size: 17px;
    outline: none;
    background: rgba(248, 249, 250, 0.6);
    border-left: 1px solid rgba(221, 221, 221, 0.3);
    border-right: 1px solid rgba(221, 221, 221, 0.3);
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-width: 200px;
    position: relative;
}

.search-box select:hover {
    background: rgba(236, 240, 241, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-box select:focus {
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        inset 0 0 0 2px rgba(52, 152, 219, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.05);
}

.search-box button {
    padding: 25px 40px;
    border: none;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    cursor: pointer;
    font-weight: 700;
    font-size: 17px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-box button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.search-box button:hover::before {
    left: 100%;
}

.search-box button:hover {
    background: linear-gradient(135deg, #2980b9, #1a2530);
    transform: translateY(-3px);
    box-shadow: 
        0 8px 25px rgba(52, 152, 219, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.1);
}

.search-box button:active {
    transform: translateY(-1px);
    box-shadow: 
        0 4px 15px rgba(52, 152, 219, 0.3),
        0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Properties Section */
.properties-section {
    padding: 72px 0; /* Reduced by 10% from 80px */
}

.properties-section h2 {
    text-align: center;
    margin-bottom: 45px; /* Reduced by 10% from 50px */
    color: #2c3e50;
    font-size: 1.98rem; /* Reduced by 10% from 2.2rem */
    position: relative;
    animation: fadeInDown 0.8s ease-out;
}

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

.no-properties {
    text-align: center;
    font-style: italic;
    color: #7f8c8d;
    grid-column: 1 / -1;
    font-size: 1.2rem;
    padding: 30px;
}

/* Property card entrance animation */
.property-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.property-card:nth-child(1) { animation-delay: 0.1s; }
.property-card:nth-child(2) { animation-delay: 0.2s; }
.property-card:nth-child(3) { animation-delay: 0.3s; }
.property-card:nth-child(4) { animation-delay: 0.4s; }
.property-card:nth-child(5) { animation-delay: 0.5s; }
.property-card:nth-child(6) { animation-delay: 0.6s; }
.property-card:nth-child(7) { animation-delay: 0.7s; }
.property-card:nth-child(8) { animation-delay: 0.8s; }
.property-card:nth-child(9) { animation-delay: 0.9s; }
.property-card:nth-child(10) { animation-delay: 1.0s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    width: 100%;
    padding: 20px 0;
}

.property-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    transform: translateY(0);
}

.property-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(52, 152, 219, 0.3);
    z-index: 10;
}

.property-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

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

.property-price-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.property-price-overlay:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.6);
}

.property-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.9));
}

.property-info h3 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 1.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    position: relative;
    padding-bottom: 8px;
}

.property-info h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    border-radius: 3px;
}

.property-info p {
    margin-bottom: 8px;
    color: #7f8c8d;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
}

.property-info p i {
    color: #3498db;
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.property-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 15px 0;
    padding: 15px;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(236, 240, 241, 0.8));
    border-radius: 12px;
    border-left: 4px solid #3498db;
    flex-grow: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.property-details p {
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.property-details p:hover {
    color: #3498db;
    transform: translateX(5px);
}

.property-details p i {
    color: #3498db;
    margin-right: 5.6px; /* Reduced by 30% from 8px */
    width: 12.6px; /* Reduced by 30% from 18px */
    text-align: center;
    font-size: 0.6545rem; /* Reduced by 30% from 0.935rem */
}

/* Property Detail Modal Styles */
.property-detail-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(105px, 1fr)); /* Reduced by 30% from 150px */
    gap: 10.5px; /* Reduced by 30% from 15px */
    margin: 11.9px 0; /* Reduced by 30% from 17px */
    padding: 11.9px; /* Reduced by 30% from 17px */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 8.925px; /* Reduced by 30% from 12.75px */
    border-left: 3.5px solid #3498db; /* Reduced by 30% from 5px */
}

.property-detail-specs p {
    margin-bottom: 4.76px; /* Reduced by 30% from 6.8px */
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.property-detail-specs p i {
    color: #3498db;
    margin-right: 7px; /* Reduced by 30% from 10px */
    width: 14px; /* Reduced by 30% from 20px */
    text-align: center;
    font-size: 0.714rem; /* Reduced by 30% from 1.02rem */
}

.property-detail-info p i {
    color: #3498db;
    margin-right: 10px;
    width: 18px;
    text-align: center;
}

.property-detail-description h3 i,
.property-media h3 i {
    color: #3498db;
    margin-right: 10px;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: #3498db;
    margin: 15px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.property-status-card {
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    padding: 6px 12px;
    border-radius: 20px;
    display: inline-block;
    margin: 10px auto;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: fit-content;
}

.property-status-card.buy {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.property-status-card.sold {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.view-details {
    display: inline-block;
    margin: 10px auto;
    color: #3498db;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    padding: 12px 25px;
    border: 2px solid #3498db;
    border-radius: 30px;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(44, 62, 80, 0.1));
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
    position: relative;
    overflow: hidden;
    width: fit-content;
}

.view-details::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.view-details:hover::before {
    left: 100%;
}

.view-details:hover {
    background: linear-gradient(135deg, #3498db, #2c3e50);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

/* Contact Section */
.contact-section {
    padding: 72px 0; /* Reduced by 10% from 80px */
    background-color: #fff;
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 45px; /* Reduced by 10% from 50px */
    color: #2c3e50;
    font-size: 1.98rem; /* Reduced by 10% from 2.2rem */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 45px; /* Reduced by 10% from 50px */
}

.contact-info h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    background-color: rgba(52, 152, 219, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-item p {
    margin: 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.5;
}

.contact-item a {
    color: #3498db !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    font-size: 1.1rem;
    display: inline-block;
    padding: 5px 0;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: #2980b9 !important;
    text-decoration: none !important;
}

/* Instagram link specific styling */
.contact-item:nth-child(3) a {
    color: #E1306C !important; /* Instagram brand color */
    font-weight: 700 !important;
    text-decoration: underline !important;
    font-size: 1.2rem !important;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.contact-item:nth-child(3) a:hover {
    color: #C13584 !important; /* Darker Instagram brand color on hover */
    text-decoration: none !important;
    transform: scale(1.05);
}

.contact-map h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.map-container {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 400px;
    border: none;
}

.map-placeholder {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 2px dashed #ddd;
}

.map-placeholder p {
    margin: 10px 0;
    color: #7f8c8d;
}

/* Modern Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: auto;
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Login Modal Content - Modern Design */
#login-modal .modal-content {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    margin: 8% auto;
    padding: 0;
    border: none;
    border-radius: 24px;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    animation: loginModalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(20px);
    max-height: none;
}

@keyframes loginModalSlideIn {
    from {
        transform: translateY(-50px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Property Detail Modal Styles for Full Screen - Modern Design */
.modal-content {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 249, 250, 0.95));
    margin: 2% auto;
    padding: 30px;
    border-radius: 25px;
    width: 98%;
    max-width: none;
    position: relative;
    max-height: 96vh;
    overflow-y: auto;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 10px 30px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@keyframes slideIn {
    from { 
        transform: translateY(-50px) scale(0.95);
        opacity: 0; 
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1; 
    }
}

/* Modern Close Button */
.close,
.close-login,
.close-register,
.close-dashboard {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #7f8c8d;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    z-index: 10;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 240, 240, 0.95));
    backdrop-filter: blur(15px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 2px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.4);
    float: none;
}

.close:hover,
.close-login:hover,
.close-register:hover,
.close-dashboard:hover {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.15), rgba(231, 76, 60, 0.1));
    color: #e74c3c;
    transform: scale(1.15) rotate(90deg);
    box-shadow: 
        0 8px 25px rgba(231, 76, 60, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Property Detail - Modern Design */
.property-detail-image {
    width: 100%;
    height: 350px;
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.property-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* Property Header with Price */
.property-header {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 15px;
}

.property-detail-info h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    flex: 1;
    min-width: 200px;
}

.property-detail-info h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 2px;
}

/* Property Main Details Container */
.property-main-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

/* Property Basic Info */
.property-basic-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.property-basic-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-basic-info p strong {
    color: #2c3e50;
    min-width: 100px;
}

.property-basic-info p i {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

/* Property Area Info */
.property-area-info {
    padding: 15px 20px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.property-area-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #34495e;
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-area-info p strong {
    color: #2c3e50;
}

.property-area-info p i {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

.property-detail-specs {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.property-detail-specs p {
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.property-detail-specs p strong {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 5px;
}

.property-detail-specs p i {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    margin-bottom: 10px;
}

.property-detail-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    text-align: right;
    background: linear-gradient(135deg, #3498db, #2c3e50);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    min-width: 150px;
    flex-shrink: 0;
}

.property-status {
    font-size: 1.2rem;
    font-weight: 700;
    text-align: right;
    padding: 5px 15px;
    border-radius: 20px;
    display: inline-block;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.property-status.buy {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.property-status.sold {
    background: linear-gradient(135deg, #F44336, #D32F2F);
    color: white;
    box-shadow: 0 4px 10px rgba(244, 67, 54, 0.3);
}

.property-detail-price::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 2px;
}

.property-detail-description {
    margin: 25px 0;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #34495e;
    padding: 25px;
    background: rgba(248, 249, 250, 0.7);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.property-detail-description h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.property-detail-description h3 i {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.property-detail-description p {
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.8;
}

.property-media {
    margin: 21px 0;
}

.property-media h3 {
    margin-bottom: 14px;
    color: #2c3e50;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 7px;
}

/* Top Media Gallery - Modern Horizontal Layout */
.top-media-gallery {
    width: 100%;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.8));
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.media-items-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 20px;
    gap: 20px;
    scrollbar-width: thin;
    scrollbar-color: #3498db #f1f1f1;
}

.media-items-container::-webkit-scrollbar {
    height: 10px;
}

.media-items-container::-webkit-scrollbar-track {
    background: rgba(241, 241, 241, 0.7);
    border-radius: 5px;
}

.media-items-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 5px;
}

/* Responsive Design for Property Details */
@media (max-width: 768px) {
    .property-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .property-status {
        text-align: center;
        margin: 10px auto;
    }
    
    .property-detail-info h2 {
        font-size: 1.8rem;
    }
    
    .property-detail-price {
        font-size: 2rem;
        text-align: center;
        margin: 10px auto;
    }
    
    .property-basic-info {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .property-basic-info p {
        font-size: 1rem;
    }
    
    .property-detail-specs {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .property-detail-specs p {
        flex-direction: row;
        justify-content: flex-start;
        gap: 15px;
        text-align: left;
    }
    
    .property-detail-specs p strong {
        margin-bottom: 0;
    }
    
    .property-detail-specs p i {
        margin-bottom: 0;
    }
    
    .property-area-info {
        padding: 15px;
    }
    
    .property-area-info p {
        font-size: 1rem;
    }
    
    .property-detail-description {
        padding: 20px;
        margin: 20px 0;
    }
    
    .property-detail-description h3 {
        font-size: 1.3rem;
    }
    
    .property-detail-description p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .property-detail-info h2 {
        font-size: 1.5rem;
    }
    
    .property-detail-price {
        font-size: 1.8rem;
    }
    
    .property-basic-info {
        padding: 12px;
        gap: 12px;
    }
    
    .property-basic-info p {
        font-size: 0.95rem;
        gap: 8px;
    }
    
    .property-basic-info p strong {
        min-width: 80px;
    }
    
    .property-detail-specs {
        padding: 12px;
        gap: 12px;
    }
    
    .property-detail-specs p {
        gap: 10px;
    }
    
    .property-detail-specs p i {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .property-area-info {
        padding: 12px;
    }
    
    .property-area-info p {
        font-size: 0.95rem;
    }
    
    .property-detail-description {
        padding: 15px;
    }
    
    .property-detail-description h3 {
        font-size: 1.2rem;
    }
    
    .property-detail-description p {
        font-size: 0.95rem;
    }
}

.media-items-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2980b9, #1c6ea4);
}

.media-item-top {
    flex: 0 0 auto;
    width: 320px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 
        0 8px 25px rgba(0, 0, 0, 0.1),
        0 3px 10px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.media-item-top:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 15px 35px rgba(52, 152, 219, 0.2),
        0 8px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.media-item-top img,
.media-item-top video {
    width: 100%;
    height: 220px;
    object-fit: cover;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.media-item-top img:hover,
.media-item-top video:hover {
    transform: scale(1.05);
}

.media-item-top video {
    background: #000;
}

.no-media-top {
    text-align: center;
    padding: 50px 25px;
    color: #666;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8), rgba(255, 255, 255, 0.8));
    border-radius: 20px;
    margin-bottom: 30px;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1),
        0 5px 15px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.no-media-top i {
    font-size: 4rem;
    margin-bottom: 20px;
    color: #3498db;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.no-media-top p {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 500;
    line-height: 1.6;
}

/* Responsive Design for Top Media Gallery */
@media (max-width: 768px) {
    .media-items-container {
        padding: 10px;
        gap: 10px;
    }
    
    .media-item-top {
        width: 250px;
    }
    
    .media-item-top img,
    .media-item-top video {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .top-media-gallery {
        border-radius: 8px;
        margin-bottom: 15px;
    }
    
    .media-items-container {
        padding: 8px;
        gap: 8px;
    }
    
    .media-item-top {
        width: 200px;
    }
    
    .media-item-top img,
    .media-item-top video {
        height: 150px;
    }
    
    .no-media-top {
        padding: 40px 20px;
        border-radius: 15px;
        margin-bottom: 25px;
    }
    
    .no-media-top i {
        font-size: 3rem;
        margin-bottom: 15px;
    }
    
    .no-media-top p {
        font-size: 1.1rem;
    }
}

/* Simple Media Gallery */
.simple-media-gallery {
    background: #f8f9fa;
    border-radius: 7px; /* Reduced by 30% from 10px */
    padding: 14px; /* Reduced by 30% from 20px */
    margin: 14px 0; /* Reduced by 30% from 20px */
    box-shadow: 0 1.4px 7px rgba(0, 0, 0, 0.1); /* Reduced by 30% */
}

.media-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px; /* Reduced by 30% from 20px */
    padding-bottom: 10.5px; /* Reduced by 30% from 15px */
    border-bottom: 1.4px solid #e9ecef; /* Reduced by 30% from 2px */
}

.media-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 0.91rem; /* Reduced by 30% from 1.3rem */
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 7px; /* Reduced by 30% from 10px */
}

.media-header h4 i {
    color: #3498db;
    font-size: 1.2rem;
}

.media-price {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    padding: 7px 14px; /* Reduced by 30% from 10px 20px */
    border-radius: 17.5px; /* Reduced by 30% from 25px */
    font-weight: 700;
    font-size: 0.84rem; /* Reduced by 30% from 1.2rem */
    box-shadow: 0 2.8px 10.5px rgba(39, 174, 96, 0.3); /* Reduced by 30% */
    display: flex;
    align-items: center;
    gap: 5.6px; /* Reduced by 30% from 8px */
}

.media-price i {
    font-size: 1rem;
}

.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); /* Reduced by 30% from 300px */
    gap: 14px; /* Reduced by 30% from 20px */
}

.media-item {
    background: white;
    border-radius: 5.6px; /* Reduced by 30% from 8px */
    overflow: hidden;
    box-shadow: 0 1.4px 5.6px rgba(0, 0, 0, 0.1); /* Reduced by 30% */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.media-item:hover {
    transform: translateY(-1.4px); /* Reduced by 30% from -2px */
    box-shadow: 0 2.8px 10.5px rgba(0, 0, 0, 0.15); /* Reduced by 30% */
}

.media-item img,
.media-item video {
    width: 100%;
    height: 175px; /* Reduced by 30% from 250px */
    object-fit: cover;
    cursor: pointer;
}

.media-item img:hover {
    opacity: 0.9;
}

.media-label {
    padding: 10.5px; /* Reduced by 30% from 15px */
    background: white;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5.6px; /* Reduced by 30% from 8px */
}

.media-label i {
    color: #3498db;
    font-size: 11.2px; /* Reduced by 30% from 16px */
}

.no-media-simple {
    background: #f8f9fa;
    border-radius: 7px; /* Reduced by 30% from 10px */
    padding: 14px; /* Reduced by 30% from 20px */
    margin: 14px 0; /* Reduced by 30% from 20px */
    box-shadow: 0 1.4px 7px rgba(0, 0, 0, 0.1); /* Reduced by 30% */
}

.no-media-content {
    text-align: center;
    padding: 28px; /* Reduced by 30% from 40px */
    color: #666;
    background: white;
    border-radius: 5.6px; /* Reduced by 30% from 8px */
    border: 1.4px dashed #ddd; /* Reduced by 30% from 2px */
}

.no-media-content i {
    font-size: 1.4rem; /* Reduced by 30% from 2rem */
    margin-bottom: 7px; /* Reduced by 30% from 10px */
    color: #bbb;
}

.no-media-content p {
    margin: 0;
    font-size: 0.7rem; /* Reduced by 30% from 1rem */
}

/* Responsive Design for Simple Media Gallery */
@media (max-width: 768px) {
    .media-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .media-header h4 {
        font-size: 1.2rem;
    }
    
    .media-price {
        padding: 8px 16px;
        font-size: 1.1rem;
    }
    
    .media-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .media-item img,
    .media-item video {
        height: 200px;
    }
    
    .media-label {
        padding: 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .simple-media-gallery {
        padding: 15px;
        margin: 15px 0;
    }
    
    .media-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .media-header h4 {
        font-size: 1.1rem;
    }
    
    .media-price {
        padding: 6px 14px;
        font-size: 1rem;
    }
    
    .media-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .media-item img,
    .media-item video {
        height: 180px;
    }
    
    .media-label {
        padding: 10px;
        font-size: 0.85rem;
    }
    
    .no-media-content {
        padding: 30px 15px;
    }
    
    .no-media-content i {
        font-size: 1.5rem;
    }
    
    .no-media-content p {
        font-size: 0.9rem;
    }
}

/* Lightbox Responsive Styles */
@media (max-width: 768px) {
    .lightbox-modal div {
        max-width: 98% !important;
        max-height: 98% !important;
    }
    
    .lightbox-modal button {
        top: -40px !important;
        right: -40px !important;
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}

/* Print Styles */
@media print {
    .modern-media-gallery {
        break-inside: avoid;
        background: white !important;
        box-shadow: none !important;
    }
    
    .media-thumbnails {
        display: none;
    }
    
    .media-info {
        color: black !important;
    }
}

/* Modern Login Form */
.login-form {
    max-width: 480px;
    margin: 0 auto;
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        0 8px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

/* Subtle animated background pattern */
.login-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(155, 89, 182, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(46, 204, 113, 0.03) 0%, transparent 50%);
    pointer-events: none;
    animation: loginBgShift 20s ease-in-out infinite;
}

@keyframes loginBgShift {
    0%, 100% { transform: scale(1) rotate(0deg); }
    33% { transform: scale(1.05) rotate(1deg); }
    66% { transform: scale(0.95) rotate(-1deg); }
}

.login-form h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.login-form h2 i {
    font-size: 1.8rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 2px 4px rgba(52, 152, 219, 0.2));
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.form-group {
    margin-bottom: 28px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(52, 152, 219, 0.1);
    border-radius: 16px;
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.02),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 1;
}

.form-group input::placeholder {
    color: #bdc3c7;
    font-weight: 400;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #3498db;
    outline: none;
    background: rgba(255, 255, 255, 1);
    box-shadow: 
        0 0 0 4px rgba(52, 152, 219, 0.15),
        0 8px 24px rgba(52, 152, 219, 0.1),
        inset 0 1px 2px rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.form-group input:focus::placeholder {
    color: #95a5a6;
    transform: translateX(4px);
}

/* Modern submit button */
.login-form .btn-primary {
    width: 100%;
    padding: 18px 24px;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1abc9c 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 24px rgba(52, 152, 219, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.login-form .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.login-form .btn-primary:hover::before {
    left: 100%;
}

.login-form .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1abc9c 50%, #16a085 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 12px 32px rgba(52, 152, 219, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.login-form .btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 
        0 6px 16px rgba(52, 152, 219, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group small {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-top: 8px;
}

/* Modern Dashboard Styles */
.dashboard .modal-content {
    max-width: 98%;
    width: 98%;
    margin: 1% auto;
    padding: 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 24px;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 12px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    backdrop-filter: blur(20px);
    position: relative;
}

/* Modern Dashboard Header */
.dashboard-header-top {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.dashboard-header-top::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    animation: dashboardHeaderShimmer 15s ease-in-out infinite;
}

@keyframes dashboardHeaderShimmer {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.02) rotate(1deg); }
}

.dashboard h2 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    font-size: 2.2rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.dashboard h2 i {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 12px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: dashboardIconFloat 3s ease-in-out infinite;
}

@keyframes dashboardIconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

/* Modern Dashboard Navigation */
.dashboard-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    margin: 0;
    border: none;
    padding: 8px;
    border-radius: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: relative;
    z-index: 1;
}

.dashboard-nav::-webkit-scrollbar {
    display: none;
}

/* Force consistent button styling */
.dashboard-nav .nav-btn {
    background: none !important;
    border: none !important;
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b !important;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    outline: none;
    text-decoration: none;
    box-shadow: none !important;
    transform: none !important;
}

/* Active state - force override */
.dashboard-nav .nav-btn.active {
    color: white !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transform: translateY(-2px) !important;
    border: none !important;
}

.dashboard-nav .nav-btn.active i {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hover state - force override */
.dashboard-nav .nav-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15) !important;
}

.dashboard-nav .nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3) !important;
}

/* Reset any global button styles that might interfere */
.dashboard-nav .nav-btn * {
    color: inherit;
}

.dashboard-nav .nav-btn.active * {
    color: white !important;
}

/* Ensure proper z-index for active buttons */
.dashboard-nav .nav-btn.active {
    z-index: 10;
    position: relative;
}

.nav-btn {
    background: none;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    margin: 0 4px;
    white-space: nowrap;
    overflow: hidden;
    outline: none;
    text-decoration: none;
}

.nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    z-index: -1;
}

.nav-btn.active {
    color: white !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.nav-btn.active i {
    color: white !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.nav-btn:hover:not(.active) {
    background: rgba(102, 126, 234, 0.1) !important;
    color: #667eea !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.nav-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

.nav-btn i {
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

/* Modern Tab Content */
.tab-content {
    display: none !important;
    padding: 40px;
    background: transparent;
    animation: tabFadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block !important;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Dashboard Section Headers */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.dashboard-header h3 {
    color: #1e293b;
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-header h3 i {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.6rem;
    filter: drop-shadow(0 2px 4px rgba(102, 126, 234, 0.2));
}

/* Modern Action Buttons */
.dashboard-header .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px 28px;
    border-radius: 14px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 24px rgba(102, 126, 234, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dashboard-header .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.dashboard-header .btn-primary:hover::before {
    left: 100%;
}

.dashboard-header .btn-primary:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.dashboard-header .btn-primary:active {
    transform: translateY(0);
}

/* Modern Dashboard Search Box */
.dashboard .search-box {
    display: flex;
    max-width: 600px;
    margin: 0 0 30px 0;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.06),
        0 4px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.dashboard .search-box:focus-within {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(102, 126, 234, 0.15),
        0 6px 16px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
}

.dashboard .search-box input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    font-size: 15px;
    font-weight: 500;
    background: transparent;
    color: #1e293b;
    outline: none;
    transition: all 0.3s ease;
}

.dashboard .search-box input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.dashboard .search-box button {
    padding: 16px 24px;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.dashboard .search-box button:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Modern Table Design */
.table-container {
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.08),
        0 4px 8px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
}

.dashboard table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    background: transparent;
    font-size: 0.95rem;
}

.dashboard table th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #475569;
    font-weight: 700;
    padding: 20px 24px;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.8px;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

.dashboard table th:first-child {
    border-top-left-radius: 20px;
}

.dashboard table th:last-child {
    border-top-right-radius: 20px;
}

.dashboard table td {
    padding: 18px 24px;
    border: none;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    color: #334155;
    font-weight: 500;
    transition: all 0.3s ease;
    vertical-align: middle;
}

.dashboard table tbody tr {
    transition: all 0.3s ease;
    background: transparent;
}

.dashboard table tbody tr:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.03) 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.dashboard table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 20px;
}

.dashboard table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 20px;
}

.dashboard table tbody tr:last-child td {
    border-bottom: none;
}

/* Modern Action Buttons */
.btn-edit,
.btn-delete {
    padding: 10px 16px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-right: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-edit {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(245, 158, 11, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-edit:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(245, 158, 11, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    box-shadow: 
        0 4px 12px rgba(239, 68, 68, 0.3),
        0 2px 4px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-delete:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.4),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-edit:active,
.btn-delete:active {
    transform: translateY(0);
}

/* View Only Status */
.dashboard table td em {
    color: #64748b;
    font-style: normal;
    font-weight: 600;
    background: rgba(100, 116, 139, 0.1);
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content h2 {
        font-size: 2.8rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .contact-image {
        order: -1;
    }
}

@media (max-width: 768px) {
    /* Mobile Header Improvements */
    header {
        padding: 0;
    }
    
    header .container {
        flex-direction: column;
        padding: 8px 0; /* Increased by 10% from 7px (previously reduced by 30% from 10px) */
        gap: 9px; /* Increased by 10% from 8px (previously reduced by 30% from 12px) */
    }
    
    .logo h1 {
        font-size: 19px; /* Increased by 10% from 17px (previously reduced by 30% from 24px) */
        text-align: center;
        margin: 0;
    }
    
    .logo h1 i {
        font-size: 14px; /* Increased by 10% from 13px (previously reduced by 30% from 18px) */
        padding: 4px; /* Increased by 10% from 4px (previously reduced by 30% from 6px) */
    }
    
    nav ul {
        margin-top: 0;
        flex-wrap: wrap;
        justify-content: center;
        padding: 3px; /* Increased by 10% from 3px (previously reduced by 30% from 4px) */
        width: 100%;
        max-width: none;
    }
    
    nav ul li {
        margin: 1px; /* Increased by 10% from 1px (previously reduced by 30% from 2px) */
        flex: 0 0 auto;
    }
    
    nav ul li a {
        font-size: 0.62rem; /* Increased by 10% from 0.56rem (previously reduced by 30% from 0.8rem) */
        padding: 7px 9px; /* Increased by 10% from 6px 8px (previously reduced by 30% from 8px 12px) */
        border-radius: 15px; /* Increased by 10% from 14px (previously reduced by 30% from 20px) */
        white-space: nowrap;
    }
    
    .language-switcher {
        order: 0;
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    .language-switcher select {
        padding: 7px 12px; /* Increased by 10% from 6px 11px (previously reduced by 30% from 8px 16px) */
        font-size: 0.66rem; /* Increased by 10% from 0.60rem (previously reduced by 30% from 0.85rem) */
        min-width: 92px; /* Increased by 10% from 84px (previously reduced by 30% from 120px) */
    }
    
    .btn-login, .btn-register {
        padding: 7px 12px; /* Increased by 10% from 6px 11px (previously reduced by 30% from 8px 16px) */
        font-size: 0.62rem; /* Increased by 10% from 0.56rem (previously reduced by 30% from 0.8rem) */
        border-radius: 15px; /* Increased by 10% from 14px (previously reduced by 30% from 20px) */
        min-width: auto;
        white-space: nowrap;
    }
    
    /* Better spacing for mobile navigation */
    nav ul li:nth-child(1),
    nav ul li:nth-child(2),
    nav ul li:nth-child(3) {
        order: 1;
    }
    
    nav ul li:nth-child(4) { /* Register button */
        order: 2;
    }
    
    nav ul li:nth-child(5) { /* Login button */
        order: 3;
    }
    
    .language-switcher { /* Language selector */
        order: 0;
    }
    
    /* Hero section adjustments for mobile header */
    .hero {
        margin-top: 0;
        padding-top: 92px; /* Increased by 10% from 84px (previously reduced by 30% from 120px) */
    }
    
    .search-section {
        padding: 62px 0 46px; /* Increased by 10% from 56px 0 42px (previously reduced by 30% from 80px 0 60px) */
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 20px;
        margin: 0 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
        padding: 10px;
        background: rgba(255, 255, 255, 0.6);
    }
    
    .search-box input,
    .search-box select,
    .search-box button {
        border-radius: 15px;
        margin-bottom: 10px;
        padding: 18px;
        border: none;
        border-bottom: 1px solid rgba(221, 221, 221, 0.3);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .search-box select {
        border-left: none;
        border-right: none;
    }
    
    .search-box button {
        border-radius: 15px;
        border-bottom: none;
        background: linear-gradient(135deg, #3498db, #2c3e50);
        color: white;
        font-weight: bold;
        transition: all 0.3s;
        margin-top: 10px;
    }
    
    .search-box button:hover {
        background: linear-gradient(135deg, #2980b9, #1a2530);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    }
    
    @media (max-width: 768px) {
        header {
            padding: 0;
        }
        
        header .container {
            flex-direction: column;
            padding: 8px 0; /* Increased by 10% from 7px (previously reduced by 30% from 10px) */
            gap: 9px; /* Increased by 10% from 8px (previously reduced by 30% from 12px) */
        }
        
        .logo h1 {
            font-size: 19px; /* Increased by 10% from 17px (previously reduced by 30% from 24px) */
            text-align: center;
            margin: 0;
        }
        
        .logo h1 i {
            font-size: 14px; /* Increased by 10% from 13px (previously reduced by 30% from 18px) */
            padding: 4px; /* Increased by 10% from 4px (previously reduced by 30% from 6px) */
        }
        
        nav ul {
            margin-top: 0;
            flex-wrap: wrap;
            justify-content: center;
            padding: 3px; /* Increased by 10% from 3px (previously reduced by 30% from 4px) */
            width: 100%;
            max-width: none;
        }
        
        nav ul li {
            margin: 1px; /* Increased by 10% from 1px (previously reduced by 30% from 2px) */
            flex: 0 0 auto;
        }
        
        nav ul li a {
            font-size: 0.62rem; /* Increased by 10% from 0.56rem (previously reduced by 30% from 0.8rem) */
            padding: 7px 9px; /* Increased by 10% from 6px 8px (previously reduced by 30% from 8px 12px) */
            border-radius: 15px; /* Increased by 10% from 14px (previously reduced by 30% from 20px) */
            white-space: nowrap;
        }
        
        .language-switcher {
            order: 0;
            margin: 0;
            width: 100%;
            display: flex;
            justify-content: center;
        }
        
        .language-switcher select {
            padding: 7px 12px; /* Increased by 10% from 6px 11px (previously reduced by 30% from 8px 16px) */
            font-size: 0.66rem; /* Increased by 10% from 0.60rem (previously reduced by 30% from 0.85rem) */
            min-width: 92px; /* Increased by 10% from 84px (previously reduced by 30% from 120px) */
        }
        
        .btn-login, .btn-register {
            padding: 7px 12px; /* Increased by 10% from 6px 11px (previously reduced by 30% from 8px 16px) */
            font-size: 0.62rem; /* Increased by 10% from 0.56rem (previously reduced by 30% from 0.8rem) */
            border-radius: 15px; /* Increased by 10% from 14px (previously reduced by 30% from 20px) */
            min-width: auto;
            white-space: nowrap;
        }
        
        /* Better spacing for mobile navigation */
        nav ul li:nth-child(1),
        nav ul li:nth-child(2),
        nav ul li:nth-child(3) {
            order: 1;
        }
        
        nav ul li:nth-child(4) { /* Register button */
            order: 2;
        }
        
        nav ul li:nth-child(5) { /* Login button */
            order: 3;
        }
        
        .language-switcher { /* Language selector */
            order: 0;
        }
        
        /* Hero section adjustments for mobile header */
        .hero {
            margin-top: 0;
            padding-top: 92px; /* Increased by 10% from 84px (previously reduced by 30% from 120px) */
        }
        
        .search-section {
            padding: 62px 0 46px; /* Increased by 10% from 56px 0 42px (previously reduced by 30% from 80px 0 60px) */
        }
        
        .dashboard-header {
            flex-direction: column;
            align-items: flex-start;
        }
    }
    
    .dashboard-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        width: 100%;
    }
    
    .dashboard-notifications {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .daily-visits-notification {
        font-size: 0.85rem;
        padding: 8px 16px;
        justify-content: center;
    }
    
    .dashboard-header button {
        margin-top: 15px;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 20px;
        margin: 0 15px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    }
    
    .search-box input,
    .search-box select,
    .search-box button {
        border-radius: 0;
        margin-bottom: 0;
        padding: 18px;
        border: none;
        border-bottom: 1px solid rgba(221, 221, 221, 0.3);
        background: rgba(255, 255, 255, 0.9);
    }
    
    .search-box select {
        border-left: none;
        border-right: none;
    }
    
    .search-box button {
        border-radius: 0 0 20px 20px;
        border-bottom: none;
        background: linear-gradient(135deg, #3498db, #2c3e50);
        color: white;
        font-weight: bold;
        transition: all 0.3s;
    }
    
    .search-box button:hover {
        background: linear-gradient(135deg, #2980b9, #1a2530);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
    }
    
    /* Property grid responsive adjustments */
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .property-card {
        border-radius: 12px;
    }
    
    .property-image {
        height: 180px;
    }
    
    .property-info {
        padding: 15px;
    }
    
    .property-info h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .property-info p {
        font-size: 0.85rem;
        margin-bottom: 6px;
    }
    
    .property-details {
        gap: 10px;
        margin: 12px 0;
        padding: 12px;
    }
    
    .property-details p {
        font-size: 0.85rem;
    }
    
    .property-price {
        font-size: 1.2rem;
        margin: 12px 0;
    }
    
    .property-status-card {
        font-size: 0.9rem;
        padding: 5px 10px;
        margin: 8px auto;
    }
    
    .view-details {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    
    .close {
        right: 15px;
        top: 15px;
    }
    
    /* Map responsive styles */
    .map-container iframe {
        height: 300px;
    }
    
    /* RTL mobile fixes for Arabic and Kurdish */
    html[lang="ar"] header .container,
    html[lang="ku"] header .container {
        flex-direction: column;
        align-items: center;
        gap: 9px; /* Increased by 10% from 8px (previously reduced by 30% from 12px) */
    }
    
    html[lang="ar"] .logo h1,
    html[lang="ku"] .logo h1 {
        text-align: center;
        font-size: 19px; /* Increased by 10% from 17px (previously reduced by 30% from 24px) */
    }
    
    html[lang="ar"] nav ul,
    html[lang="ku"] nav ul {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }
    
    html[lang="ar"] nav ul li,
    html[lang="ku"] nav ul li {
        margin: 1px; /* Increased by 10% from 1px (previously reduced by 30% from 2px) */
        order: unset;
    }
    
    html[lang="ar"] nav ul li a,
    html[lang="ku"] nav ul li a {
        padding: 7px 9px; /* Increased by 10% from 6px 8px (previously reduced by 30% from 8px 12px) */
        font-size: 0.62rem; /* Increased by 10% from 0.56rem (previously reduced by 30% from 0.8rem) */
        flex-direction: row;
        gap: 4px; /* Increased by 10% from 4px (previously reduced by 30% from 6px) */
    }
    
    html[lang="ar"] .language-switcher,
    html[lang="ku"] .language-switcher {
        order: 0;
        margin: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }
    
    html[lang="ar"] .btn-login,
    html[lang="ar"] .btn-register,
    html[lang="ku"] .btn-login,
    html[lang="ku"] .btn-register {
        order: unset;
        margin: 0;
        padding: 7px 12px; /* Increased by 10% from 6px 11px (previously reduced by 30% from 8px 16px) */
        font-size: 0.62rem; /* Increased by 10% from 0.56rem (previously reduced by 30% from 0.8rem) */
    }
    
    html[lang="ar"] .nav-btn,
    html[lang="ku"] .nav-btn {
        text-align: center;
    }
    
    html[lang="ar"] .dashboard-header,
    html[lang="ku"] .dashboard-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    html[lang="ar"] .close,
    html[lang="ku"] .close {
        right: 15px;
        left: auto;
    }
}

@media (max-width: 480px) {
    /* Extra small mobile header adjustments */
    header .container {
        padding: 7px 0; /* Increased by 10% from 6px (previously reduced by 30% from 8px) */
        gap: 7px; /* Increased by 10% from 6px (previously reduced by 30% from 8px) */
    }
    
    .logo h1 {
        font-size: 15px; /* Increased by 10% from 14px (previously reduced by 30% from 20px) */
    }
    
    .logo h1 i {
        font-size: 12px; /* Increased by 10% from 11px (previously reduced by 30% from 16px) */
        padding: 3px; /* Increased by 10% from 3px (previously reduced by 30% from 4px) */
    }
    
    nav ul {
        padding: 1px; /* Increased by 10% from 1px (previously reduced by 30% from 2px) */
        gap: 1px; /* Increased by 10% from 1px (previously reduced by 30% from 2px) */
    }
    
    nav ul li {
        margin: 1px;
    }
    
    nav ul li a {
        font-size: 0.58rem; /* Increased by 10% from 0.53rem (previously reduced by 30% from 0.75rem) */
        padding: 4px 8px; /* Increased by 10% from 4px 7px (previously reduced by 30% from 6px 10px) */
        border-radius: 12px; /* Increased by 10% from 11px (previously reduced by 30% from 15px) */
    }
    
    .language-switcher select {
        padding: 4px 9px; /* Increased by 10% from 4px 8px (previously reduced by 30% from 6px 12px) */
        font-size: 0.58rem; /* Increased by 10% from 0.53rem (previously reduced by 30% from 0.75rem) */
        min-width: 77px; /* Increased by 10% from 70px (previously reduced by 30% from 100px) */
    }
    
    .btn-login, .btn-register {
        padding: 4px 9px; /* Increased by 10% from 4px 8px (previously reduced by 30% from 6px 12px) */
        font-size: 0.58rem; /* Increased by 10% from 0.53rem (previously reduced by 30% from 0.75rem) */
    }
    
    /* Hero adjustments for smaller screens */
    .hero {
        padding-top: 77px; /* Increased by 10% from 70px (previously reduced by 30% from 100px) */
    }
    
    /* Search section adjustments for smaller screens */
    .search-section {
        padding: 30px 0;
    }
    
    .search-section h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .search-box {
        margin: 0 10px;
        border-radius: 15px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.6);
    }
    
    .search-box input,
    .search-box select,
    .search-box button {
        padding: 18px;
        font-size: 16px;
        border-radius: 12px;
    }
    
    .search-box button {
        border-radius: 12px;
        margin-top: 8px;
    }
    
    /* Property grid adjustments for smaller screens */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .property-card {
        border-radius: 10px;
    }
    
    .property-image {
        height: 220px;
    }
    
    .property-info {
        padding: 12px;
    }
    
    .property-info h3 {
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .property-info p {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .property-details {
        gap: 8px;
        margin: 15px 0;
        padding: 10px;
    }
    
    .property-details p {
        font-size: 0.95rem;
    }
    
    .property-price {
        font-size: 1.5rem;
        margin: 15px 0;
    }
    
    .view-details {
        padding: 12px 25px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .btn-primary {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Container padding adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* RTL fixes for smallest screens */
    html[lang="ar"] nav ul li,
    html[lang="ku"] nav ul li {
        margin: 2px; /* Increased by 10% from 2px (previously reduced by 30% from 3px) */
    }
    
    html[lang="ar"] nav ul li a,
    html[lang="ku"] nav ul li a {
        padding: 7px 9px; /* Increased by 10% from 6px 8px (previously reduced by 30% from 8px 12px) */
        font-size: 0.66rem; /* Increased by 10% from 0.60rem (previously reduced by 30% from 0.85rem) */
    }
    
    html[lang="ar"] .language-switcher select,
    html[lang="ku"] .language-switcher select {
        padding: 7px 9px; /* Increased by 10% from 6px 8px (previously reduced by 30% from 8px 12px) */
        font-size: 0.62rem; /* Increased by 10% from 0.56rem (previously reduced by 30% from 0.8rem) */
    }
    
    /* Map responsive styles for smallest screens */
    .map-container iframe {
        height: 250px;
    }
}

/* Arabic Language Styles */
html[lang="ar"] body {
    direction: rtl;
    font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header RTL Styles for Arabic */
html[lang="ar"] header .container {
    flex-direction: row-reverse;
}

html[lang="ar"] .logo h1 {
    text-align: right;
}

html[lang="ar"] nav ul {
    padding-right: 0;
    flex-direction: row-reverse;
}

html[lang="ar"] nav ul li {
    margin-left: 4px;
    margin-right: 0;
}

html[lang="ar"] nav ul li a {
    gap: 8px;
    flex-direction: row-reverse;
}

html[lang="ar"] nav ul li a::before {
    right: -100%;
    left: auto;
}

html[lang="ar"] nav ul li a:hover::before {
    right: 100%;
    left: auto;
}

html[lang="ar"] .language-switcher {
    margin-left: 0;
    margin-right: 20px;
    order: 1;
}

html[lang="ar"] .btn-register {
    margin-right: 0;
    margin-left: 15px;
    order: 3;
}

html[lang="ar"] .btn-login {
    order: 2;
}

html[lang="ar"] .btn-login::before {
    right: -100%;
    left: auto;
}

html[lang="ar"] .btn-login:hover::before {
    right: 100%;
    left: auto;
}

html[lang="ar"] .btn-register::before {
    right: -100%;
    left: auto;
}

html[lang="ar"] .btn-register:hover::before {
    right: 100%;
    left: auto;
}

/* Dashboard and Content RTL Styles */
html[lang="ar"] .dashboard-header {
    flex-direction: row-reverse;
}

html[lang="ar"] .dashboard-nav {
    padding-right: 0;
}

html[lang="ar"] table th,
html[lang="ar"] table td {
    text-align: right;
}

html[lang="ar"] .form-group label {
    text-align: right;
    display: block;
}

html[lang="ar"] .search-box {
    flex-direction: row-reverse;
}

html[lang="ar"] .search-box input,
html[lang="ar"] .search-box button {
    border-radius: 0;
}

html[lang="ar"] .search-box input {
    border-radius: 0 50px 50px 0;
}

html[lang="ar"] .search-box button {
    border-radius: 50px 0 0 50px;
}

html[lang="ar"] .contact-item {
    flex-direction: row-reverse;
}

html[lang="ar"] .contact-item i {
    margin-left: 20px;
    margin-right: 0;
}

/* Property card RTL styles */
html[lang="ar"] .property-info {
    text-align: right;
}

html[lang="ar"] .property-info p {
    text-align: right;
}

html[lang="ar"] .property-info p i {
    margin-left: 8px;
    margin-right: 0;
}

html[lang="ar"] .property-details p i {
    margin-left: 8px;
    margin-right: 0;
}

/* View Section Styles */
.view-section {
    padding: 66.64px 0; /* Increased by 12% from 59.5px */
    background-color: #f8f9fa;
}

.view-section h2 {
    text-align: center;
    margin-bottom: 39.2px; /* Increased by 12% from 35px */
    color: #2c3e50;
    font-size: 1.666rem; /* Increased by 12% from 1.4875rem */
    font-weight: 700;
}

/* Registration Requests Styles */
.pending-count {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.status-pending {
    background: #f39c12;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-approved {
    background: #27ae60;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-rejected {
    background: #e74c3c;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.btn-approve {
    background: #27ae60;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 5px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-approve:hover {
    background: #229954;
    transform: translateY(-1px);
}

.btn-reject {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.btn-reject:hover {
    background: #c0392b;
    transform: translateY(-1px);
}

/* Dashboard Header Styles */
.dashboard-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.dashboard-header-top h2 {
    margin: 0;
}

.dashboard-notifications {
    display: flex;
    align-items: center;
    gap: 20px;
}

.daily-visits-notification {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    animation: pulseNotification 2s infinite;
}

.daily-visits-notification:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

.daily-visits-notification i {
    font-size: 1.1rem;
}

.daily-visits-notification strong {
    color: #fff;
    font-size: 1.1rem;
}

@keyframes pulseNotification {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.btn-logout {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
}

.btn-logout:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(231, 76, 60, 0.4);
}

/* Kurdish Language Styles */
html[lang="ku"] body {
    direction: rtl;
    font-family: 'Amiri', 'Arial Unicode MS', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Header RTL Styles for Kurdish */
html[lang="ku"] header .container {
    flex-direction: row-reverse;
}

html[lang="ku"] .logo h1 {
    text-align: right;
}

html[lang="ku"] nav ul {
    padding-right: 0;
    flex-direction: row-reverse;
}

html[lang="ku"] nav ul li {
    margin-left: 4px;
    margin-right: 0;
}

html[lang="ku"] nav ul li a {
    gap: 8px;
    flex-direction: row-reverse;
}

html[lang="ku"] nav ul li a::before {
    right: -100%;
    left: auto;
}

html[lang="ku"] nav ul li a:hover::before {
    right: 100%;
    left: auto;
}

html[lang="ku"] .language-switcher {
    margin-left: 0;
    margin-right: 20px;
    order: 1;
}

html[lang="ku"] .btn-register {
    margin-right: 0;
    margin-left: 15px;
    order: 3;
}

html[lang="ku"] .btn-login {
    order: 2;
}

html[lang="ku"] .btn-login::before {
    right: -100%;
    left: auto;
}

html[lang="ku"] .btn-login:hover::before {
    right: 100%;
    left: auto;
}

html[lang="ku"] .btn-register::before {
    right: -100%;
    left: auto;
}

html[lang="ku"] .btn-register:hover::before {
    right: 100%;
    left: auto;
}

/* Dashboard and Content RTL Styles */
html[lang="ku"] .dashboard-header {
    flex-direction: row-reverse;
}

html[lang="ku"] .dashboard-nav {
    padding-right: 0;
}

html[lang="ku"] table th,
html[lang="ku"] table td {
    text-align: right;
}

html[lang="ku"] .form-group label {
    text-align: right;
    display: block;
}

html[lang="ku"] .search-box {
    flex-direction: row-reverse;
}

html[lang="ku"] .search-box input,
html[lang="ku"] .search-box button {
    border-radius: 0;
}

html[lang="ku"] .search-box input {
    border-radius: 0 50px 50px 0;
}

html[lang="ku"] .search-box button {
    border-radius: 50px 0 0 50px;
}

html[lang="ku"] .contact-item {
    flex-direction: row-reverse;
}

html[lang="ku"] .contact-item i {
    margin-left: 20px;
    margin-right: 0;
}

html[lang="ku"] .media-header {
    flex-direction: row-reverse;
}

html[lang="ku"] .property-details {
    text-align: right;
}

html[lang="ku"] .property-info {
    text-align: right;
}

html[lang="ku"] .property-info p {
    text-align: right;
}

html[lang="ku"] .property-info p i {
    margin-left: 8px;
    margin-right: 0;
}

html[lang="ku"] .property-details p i {
    margin-left: 8px;
    margin-right: 0;
}

/* Mobile Menu Enhancements */
.mobile-header-wrapper {
    position: relative;
}



.map-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.map-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e293b 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.map-header p {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}



/* Interactive Map Iframe Container */
.map-iframe-container {
    position: relative;
    width: 100%;
    height: 600px;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.viewer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.5s ease;
}

.viewer-loading {
    text-align: center;
    color: #1e293b;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(76, 175, 80, 0.2);
    border-left-color: #4CAF50;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Interactive Map Placeholder */
.interactive-map-placeholder {
    width: 100%;
    height: 600px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.map-interface {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.map-header-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.map-header-controls h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}



.map-overlay-info {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.zoom-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    pointer-events: auto;
}

.zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #1e293b;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.zoom-btn:hover {
    background: rgba(76, 175, 80, 0.9);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.map-legend {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    min-width: 200px;
    pointer-events: auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.map-legend h4 {
    margin: 0 0 10px 0;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: #64748b;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.map-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(248, 249, 250, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.85rem;
    color: #64748b;
}

.status-info {
    display: flex;
    gap: 20px;
    align-items: center;
}

.status-info span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-btn {
    background: rgba(76, 175, 80, 0.1);
    color: #2E7D32;
    border: 1px solid rgba(76, 175, 80, 0.2);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-btn:hover {
    background: rgba(76, 175, 80, 0.2);
    transform: translateY(-1px);
}

.map-viewer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(76, 175, 80, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(52, 152, 219, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 420px;
    position: relative;
    z-index: 1;
}

.placeholder-content {
    text-align: center;
    max-width: 500px;
}

.placeholder-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #1e293b 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.placeholder-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.6;
}

.map-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 20px;
    color: #2E7D32;
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.info-item i {
    color: #4CAF50;
}

#view-dwg-preview {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 8px 24px rgba(76, 175, 80, 0.3),
        0 4px 8px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

#view-dwg-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

#view-dwg-preview:hover::before {
    left: 100%;
}

#view-dwg-preview:hover {
    background: linear-gradient(135deg, #45a049 0%, #2d5a2d 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 32px rgba(76, 175, 80, 0.4),
        0 6px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Mobile responsive styles for map viewer */
@media (max-width: 768px) {
    .map-header h2 {
        font-size: 2.2rem;
    }
    
    .map-controls {
        flex-direction: column;
        align-items: center;
    }
    
    .map-controls .btn-primary,
    .map-controls .btn-secondary {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .map-viewer {
        padding: 25px;
        margin: 0 10px;
    }
    
    .map-info {
        flex-direction: column;
        align-items: center;
    }
    
    .info-item {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }
}

/* Mobile menu toggle styles */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #2c3e50;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
}

/* Enhanced mobile navigation animation */
@media (max-width: 768px) {
    nav ul {
        animation: slideDown 0.3s ease-out;
    }
}

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

/* Mobile header stability improvements */
@media (max-width: 768px) {
    header {
        min-height: auto;
        overflow: hidden;
    }
    
    header .container {
        min-height: 60px;
        position: relative;
    }
    
    /* Better button organization */
    .nav-buttons-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        justify-content: center;
        width: 100%;
        order: 2;
    }
    
    /* Prevent header jumping */
    .logo {
        flex-shrink: 0;
    }
    
    nav {
        width: 100%;
        flex-shrink: 0;
    }
}

/* Mobile Login Form Enhancements */
@media (max-width: 768px) {
    #login-modal .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 440px;
        border-radius: 20px;
    }
    
    .login-form {
        padding: 30px 24px;
        border-radius: 20px;
    }
    
    .login-form h2 {
        font-size: 1.7rem;
        margin-bottom: 32px;
    }
    
    .form-group {
        margin-bottom: 24px;
    }
    
    .form-group input {
        padding: 16px 18px;
        font-size: 16px;
        border-radius: 14px;
    }
    
    .login-form .btn-primary {
        padding: 16px 20px;
        font-size: 1rem;
        border-radius: 14px;
    }
    
    .close-login {
        top: 16px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    #login-modal .modal-content {
        margin: 3% auto;
        width: 96%;
        border-radius: 18px;
    }
    
    .login-form {
        padding: 24px 20px;
        border-radius: 18px;
    }
    
    .login-form h2 {
        font-size: 1.5rem;
        margin-bottom: 28px;
    }
    
    .form-group input {
        padding: 14px 16px;
        border-radius: 12px;
    }
    
    .login-form .btn-primary {
        padding: 14px 18px;
        font-size: 0.95rem;
        border-radius: 12px;
    }
}

/* Additional Login Form Polish */
.login-form .form-group:last-of-type {
    margin-bottom: 32px;
}

/* Loading state for login button */
.login-form .btn-primary.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-form .btn-primary.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: loginSpin 1s linear infinite;
}

@keyframes loginSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Dashboard Notifications */
.dashboard-notifications {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.daily-visits-notification {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    color: white;
    padding: 12px 20px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 
        0 4px 12px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    animation: visitsPulse 2s infinite;
}

.daily-visits-notification:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(255, 255, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.daily-visits-notification i {
    font-size: 1rem;
    opacity: 0.9;
}

.daily-visits-notification strong {
    color: white;
    font-size: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

@keyframes visitsPulse {
    0%, 100% {
        transform: scale(1);
    }
}

/* Media Carousel Styles */
.media-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-media {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.carousel-slide video {
    background: #000;
    outline: none;
}

.media-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 3;
}

.media-counter {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.media-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.media-type {
    background: rgba(52, 152, 219, 0.8);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-nav:hover {
    background: rgba(52, 152, 219, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

.carousel-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.carousel-close:hover {
    background: rgba(231, 76, 60, 0.8);
    transform: scale(1.1);
}

.carousel-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 0 0 12px 12px;
}

.thumbnail {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    opacity: 1;
    border-color: #3498db;
    transform: scale(1.1);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 1.2rem;
}

/* Photo preview container for edit transaction modal */
.photo-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    border: 1px dashed #dee2e6;
}

.photo-preview-container img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.photo-preview-container img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Button styles for viewing photos */
.btn-view-photos {
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.btn-view-photos:hover {
    background: linear-gradient(135deg, #8e44ad, #7d3c98);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(155, 89, 182, 0.3);
}

.btn-view-photos i {
    font-size: 16px;
}

/* Photo gallery modal styles */
.photo-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

/* Responsive Design for Media Carousel */
@media (max-width: 768px) {
    .media-carousel {
        height: 400px;
        border-radius: 10px;
    }
    
    .media-info-overlay {
        padding: 15px;
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .media-counter,
    .media-type {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
    
    .media-title {
        font-size: 1rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-nav.prev {
        left: 10px;
    }
    
    .carousel-nav.next {
        right: 10px;
    }
    
    .carousel-close {
        width: 35px;
        height: 35px;
        top: 10px;
        right: 10px;
    }
    
    .thumbnail {
        width: 60px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .media-carousel {
        height: 300px;
        margin-bottom: 20px;
    }
    
    .media-info-overlay {
        padding: 10px;
    }
    
    .media-title {
        font-size: 0.9rem;
    }
    
    .media-counter,
    .media-type {
        font-size: 0.7rem;
        padding: 3px 8px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
    }
    
    .thumbnail {
        width: 50px;
        height: 38px;
    }
}

/* Remove old top media gallery styles since we're replacing them */
.top-media-gallery,
.media-items-container,
.media-item-top {
    display: none;
}

@keyframes visitsPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

.btn-logout {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
    box-shadow: 
        0 6px 20px rgba(239, 68, 68, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Welcome Message */
.dashboard .modal-content > p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 30px 40px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    font-weight: 500;
}

/* Modern Dashboard Mobile Responsive */
@media (max-width: 768px) {
    .dashboard .modal-content {
        width: 95%;
        margin: 2% auto;
        border-radius: 20px;
    }
    
    .dashboard-header-top {
        padding: 24px 20px;
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .dashboard h2 {
        font-size: 1.8rem;
    }
    
    .dashboard-notifications {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .daily-visits-notification,
    .btn-logout {
        justify-content: center;
        width: 100%;
        padding: 12px 16px;
    }
    
    .dashboard-nav {
        padding: 6px;
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .nav-btn {
        padding: 12px 16px;
        font-size: 0.9rem;
        flex: 1;
        min-width: calc(50% - 8px);
        justify-content: center;
    }
    
    .tab-content {
        padding: 24px 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .dashboard-header h3 {
        font-size: 1.5rem;
        justify-content: center;
    }
    
    .dashboard .search-box {
        max-width: none;
        border-radius: 14px;
    }
    
    .dashboard .modal-content > p {
        margin: 20px;
        padding: 20px;
        font-size: 1rem;
        border-radius: 14px;
    }
    
    .table-container {
        border-radius: 16px;
        overflow-x: auto;
    }
    
    .dashboard table th,
    .dashboard table td {
        padding: 14px 16px;
        font-size: 0.85rem;
    }
    
    .btn-edit,
    .btn-delete {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin-right: 6px;
    }
}

@media (max-width: 480px) {
    .dashboard .modal-content {
        width: 98%;
        border-radius: 16px;
    }
    
    .dashboard-header-top {
        padding: 20px 16px;
    }
    
    .dashboard h2 {
        font-size: 1.6rem;
    }
    
    .nav-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        min-width: 100%;
    }
    
    .tab-content {
        padding: 20px 16px;
    }
    
    .dashboard-header h3 {
        font-size: 1.3rem;
    }
    
    .dashboard .search-box {
        border-radius: 12px;
    }
    
    .dashboard .search-box input,
    .dashboard .search-box button {
        padding: 14px 16px;
    }
}

/* Enhanced Web-Based Map Viewer */
.web-map-container {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    margin: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.web-map-header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.web-map-header h3 {
    margin: 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-info {
    display: flex;
    gap: 20px;
    font-size: 0.9rem;
    color: #bdc3c7;
}

.interactive-map-interface {
    background: #f8f9fa;
}

.map-toolbar {
    background: white;
    padding: 15px 20px;
    border-bottom: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.tool-group {
    display: flex;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    padding: 6px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-tool {
    padding: 10px 16px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.map-tool.active {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px;
    border-radius: 12px;
}

.zoom-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
}

.zoom-btn:hover {
    background: #3498db;
    color: white;
}

.zoom-display {
    padding: 0 12px;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    font-size: 0.9rem;
}

.map-canvas-wrapper {
    position: relative;
    height: 600px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
}

.interactive-canvas {
    width: 100%;
    height: 100%;
    cursor: grab;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.coordinates-display {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #2c3e50;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.layer-panel {
    position: absolute;
    top: 60px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    pointer-events: auto;
}

.layer-item {
    margin-bottom: 12px;
}

.layer-item label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #2c3e50;
}

.map-legend {
    background: white;
    border-radius: 16px;
    padding: 25px;
    margin: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.legend-category h5 {
    margin: 0 0 12px 0;
    color: #34495e;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: #2c3e50;
}

.legend-color {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.map-status-bar {
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-status {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 600px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    margin: 20px;
    border-radius: 16px;
}

.loading-content {
    text-align: center;
    max-width: 400px;
}

.loading-animation {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.loading-circle {
    width: 12px;
    height: 12px;
    background: #3498db;
    border-radius: 50%;
    animation: loadingBounce 1.4s infinite ease-in-out both;
}

@keyframes loadingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

