/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Golden Wheat Palette */
    --golden-wheat-dark: #988561;
    --golden-wheat: #b9a779;
    --golden-wheat-light: #edebe0;
    
    /* Forest Palette */
    --forest-dark: #002623;
    --forest: #054239;
    --forest-light: #428177;
    
    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #054239 0%, #428177 100%);
    --golden-gradient: linear-gradient(135deg, #988561 0%, #b9a779 100%);
    --header-gradient: linear-gradient(135deg, #002623 0%, #054239 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f7f3;
    color: #333;
    line-height: 1.6;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--golden-wheat-light);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
    border: 2px solid var(--golden-wheat-light);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--golden-gradient);
}

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

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 15px;
    height: 300px;
}

.property-card {
    animation: fadeInUp 0.6s ease-out;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--header-gradient);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0,38,35,0.3);
    border-bottom: 3px solid var(--golden-wheat);
    animation: headerSlideDown 0.8s ease-out;
}

@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(185, 167, 121, 0.4);
    border: 3px solid var(--golden-wheat);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo img:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(185, 167, 121, 0.6);
    border-color: var(--golden-wheat-light);
    cursor: pointer;
}

.logo h1 {
    color: var(--golden-wheat-light);
    font-size: 1.8rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.nav-link {
    color: var(--golden-wheat-light);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(185,167,121,0.2);
    border-color: var(--golden-wheat);
    transform: translateY(-2px);
}

.admin-btn {
    background: var(--golden-gradient);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(152,133,97,0.3);
    border: 2px solid transparent;
}

.admin-btn:hover {
    background: linear-gradient(135deg, #988561 0%, #b9a779 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(152,133,97,0.4);
    border-color: var(--golden-wheat-light);
}

/* Hero */
.hero {
    background: var(--primary-gradient);
    color: var(--golden-wheat-light);
    text-align: center;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(185,167,121,0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(185,167,121,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.hero h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 2px 15px rgba(0,0,0,0.4);
    color: var(--golden-wheat-light);
}

.hero p {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 300;
    letter-spacing: 0.5px;
}

/* Properties Section */
.properties {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--forest);
    margin-bottom: 40px;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--golden-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.section-title:hover::after {
    width: 120px;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    padding: 10px 0;
}

/* Property Card */
.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,38,35,0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    border: 1px solid rgba(66,129,119,0.1);
    position: relative;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(185,167,121,0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.property-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(185,167,121,0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0,38,35,0.25),
                0 0 60px rgba(185,167,121,0.2);
    border-color: var(--golden-wheat);
}

.property-card:hover::after {
    width: 400px;
    height: 400px;
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.badge-sale {
    background: linear-gradient(135deg, var(--golden-wheat-dark) 0%, var(--golden-wheat) 100%);
    color: white;
    box-shadow: 0 2px 10px rgba(152,133,97,0.3);
}

.badge-rent {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 10px rgba(66,129,119,0.3);
}

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

.property-image-container {
    position: relative;
    overflow: hidden;
}

.property-info {
    padding: 20px;
}

.property-title {
    font-size: 1.25rem;
    color: var(--forest);
    margin-bottom: 10px;
    font-weight: 700;
}

.property-location {
    color: var(--forest);
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    background: linear-gradient(135deg, rgba(66,129,119,0.05), rgba(185,167,121,0.05));
    padding: 8px 12px;
    border-radius: 6px;
}

.property-description {
    color: #555;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--forest-light);
    font-weight: bold;
    font-size: 1.1rem;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--golden-wheat-light);
}

/* Office Contact Display */
.property-contact > div {
    background: linear-gradient(135deg, rgba(66,129,119,0.08), rgba(185,167,121,0.08));
    border-radius: 12px;
    border: 1px solid rgba(66,129,119,0.15);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.property-contact a {
    color: var(--forest-light);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.property-contact a:hover {
    color: var(--forest);
    text-decoration: underline;
}

.no-properties {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 1.2rem;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 50px rgba(0,38,35,0.3);
    border: 2px solid rgba(185,167,121,0.2);
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--forest);
    z-index: 10;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--golden-wheat-light);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: var(--golden-wheat-dark);
    background: var(--golden-wheat);
    transform: scale(1.1);
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-info {
    padding: 25px;
}

.modal-title {
    font-size: 1.5rem;
    color: var(--forest);
    margin-bottom: 15px;
    font-weight: 700;
}

.modal-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.modal-location {
    color: #666;
    margin-bottom: 15px;
    font-size: 1rem;
}

.modal-description {
    color: #555;
    line-height: 1.8;
    margin-bottom: 20px;
}

.modal-contact {
    background: var(--primary-gradient);
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(5,66,57,0.3);
    transition: all 0.3s ease;
}

.modal-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5,66,57,0.4);
}

.modal-contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.modal-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.modal-contact-btn.call-btn {
    background: #ff6b35;
    color: white;
}

.modal-contact-btn.call-btn:hover {
    background: #e55a2b;
    transform: translateY(-2px);
}

.modal-contact-btn.whatsapp-btn {
    background: #25d366;
    color: white;
}

.modal-contact-btn.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-2px);
}

/* Map Modal Styles */
#mapModal .modal-content {
    max-width: 900px;
}

#propertyMap {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.leaflet-container {
    border-radius: 15px;
    z-index: 1;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px;
    text-align: center;
}

.leaflet-popup-content {
    margin: 15px;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 768px) {
    #mapModal .modal-content {
        max-width: 95%;
        margin: 10px;
    }
    
    #propertyMap {
        height: 300px !important;
    }
}

.modal-images-gallery {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 10px 0;
}

.gallery-thumb {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    border-color: var(--forest-light);
    box-shadow: 0 2px 10px rgba(66,129,119,0.2);
}

/* Footer */
.footer {
    background: var(--header-gradient);
    color: var(--golden-wheat-light);
    padding: 60px 20px 25px;
    margin-top: 50px;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--golden-wheat);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--golden-wheat), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 35px;
    border-bottom: 2px solid rgba(255,255,255,0.15);
    position: relative;
}

.footer-content::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--golden-wheat), transparent);
    animation: expandLine 2s ease-in-out infinite;
}

@keyframes expandLine {
    0%, 100% { width: 100px; opacity: 0.5; }
    50% { width: 300px; opacity: 1; }
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.footer-logo {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    margin-bottom: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.1) rotate(5deg);
}

.footer-info h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--golden-wheat-light) 0%, var(--golden-wheat) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.footer-location {
    opacity: 0.95;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(185,167,121,0.15);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(185,167,121,0.3);
}

.footer-contact h4 {
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.contact-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: 2px solid rgba(255,255,255,0.2);
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-btn::after {
    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.5s;
}

.contact-btn:hover::after {
    left: 100%;
}

.contact-btn:hover::before {
    width: 300px;
    height: 300px;
}

.call-btn {
    background: linear-gradient(135deg, #d4a856 0%, #b9a779 100%);
    color: white;
}

.call-btn:hover {
    background: linear-gradient(135deg, #b9a779 0%, #988561 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(185,167,121,0.5);
    border-color: rgba(255,255,255,0.4);
}

.whatsapp-btn {
    background: var(--primary-gradient);
    color: white;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #002623 0%, #054239 100%);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(5,66,57,0.5);
    border-color: rgba(255,255,255,0.4);
}

.btn-icon {
    font-size: 1.2rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 25px;
}

.footer-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--golden-wheat), transparent);
    margin: 0 auto 20px;
    border-radius: 3px;
    animation: expandDivider 2s ease-in-out infinite;
}

@keyframes expandDivider {
    0%, 100% { width: 80px; }
    50% { width: 200px; }
}

.footer-legal {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 15px 0;
}

.copyright {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(185,167,121,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3rem;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    border: 2px solid rgba(185,167,121,0.3);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.social-icon:hover {
    background: var(--golden-gradient);
    transform: translateY(-5px) scale(1.1) rotate(360deg);
    box-shadow: 0 8px 25px rgba(185,167,121,0.5);
    border-color: var(--golden-wheat-light);
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-legal {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}

/* Floating Contact Buttons */
.floating-buttons {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.float-btn::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.5s;
}

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

.float-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(0,0,0,0.4);
}

.whatsapp-float {
    background: var(--primary-gradient);
}

.whatsapp-float:hover {
    box-shadow: 0 12px 35px rgba(5,66,57,0.5);
}

.call-float {
    background: linear-gradient(135deg, #d4a856 0%, #b9a779 100%);
}

.call-float:hover {
    box-shadow: 0 12px 35px rgba(185,167,121,0.5);
}

.submit-btn {
    background: var(--golden-gradient);
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(152,133,97,0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #988561 0%, #b9a779 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(152,133,97,0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h2 {
        font-size: 1.6rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .nav {
        justify-content: center;
    }
}

/* ============================================
   Mobile Responsive Improvements
   ============================================ */

@media (max-width: 768px) {
    /* Header */
    .header {
        padding: 10px 0;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
    
    .logo h1 {
        font-size: 1.2rem;
    }
    
    .nav {
        width: 100%;
        justify-content: center;
        gap: 8px;
    }
    
    .nav-link {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .submit-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 40px 15px;
    }
    
    .hero h2 {
        font-size: 1.4rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Property Cards */
    .property-card {
        margin: 0 auto;
        max-width: 100%;
    }
    
    .property-image {
        height: 180px;
    }
    
    .property-info {
        padding: 15px;
    }
    
    .property-title {
        font-size: 1.1rem;
    }
    
    .property-description {
        font-size: 0.9rem;
    }
    
    /* Modal */
    .modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .modal-image {
        height: 250px;
    }
    
    .modal-info {
        padding: 20px 15px;
    }
    
    .modal-title {
        font-size: 1.3rem;
    }
    
    .modal-contact-buttons {
        flex-direction: column;
    }
    
    .modal-contact-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Footer */
    .footer {
        padding: 30px 15px 15px;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-logo {
        width: 50px;
        height: 50px;
    }
    
    .footer-info h3 {
        font-size: 1.2rem;
    }
    
    .contact-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
    }
    
    /* Floating Buttons */
    .floating-buttons {
        bottom: 15px;
        left: 15px;
    }
    
    .float-btn {
        width: 50px;
        height: 50px;
    }
    
    /* Admin Panel Mobile */
    .admin-main {
        padding: 20px 15px;
    }
    
    .admin-title {
        font-size: 1.4rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dash-card {
        padding: 20px 15px;
    }
    
    .dash-icon {
        font-size: 1.8rem;
    }
    
    .dash-number {
        font-size: 1.6rem;
    }
    
    .form-card {
        padding: 20px 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .property-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .property-item-image {
        width: 100%;
        height: 150px;
    }
    
    .property-item-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .btn-sm {
        flex: 1;
        text-align: center;
    }
    
    .settings-container {
        grid-template-columns: 1fr;
    }
    
    .settings-card {
        padding: 20px 15px;
    }
    
    /* Mobile Navigation Menu */
    .mobile-menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1001;
        background: rgba(255,255,255,0.2);
        border: none;
        border-radius: 8px;
        width: 45px;
        height: 45px;
        cursor: pointer;
        padding: 10px;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 25px;
        height: 3px;
        background: white;
        margin: 6px 0;
        border-radius: 2px;
        transition: 0.3s;
    }
    
    .mobile-nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0,0,0,0.9);
        z-index: 1000;
        padding-top: 80px;
    }
    
    .mobile-nav-menu.active {
        display: block;
    }
    
    .mobile-nav-menu a {
        display: block;
        padding: 15px 30px;
        color: white;
        text-decoration: none;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .mobile-nav-menu a:hover {
        background: rgba(255,255,255,0.1);
    }
    
    .mobile-nav-menu .close-mobile {
        position: absolute;
        top: 20px;
        left: 20px;
        font-size: 2rem;
        color: white;
        cursor: pointer;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1rem;
    }
    
    .hero h2 {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .nav-link {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
}

/* ============================================
   Admin Panel Styles - Premium Design
   ============================================ */

.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.admin-header .logo h1 {
    font-size: 1.3rem;
}

.admin-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

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

.btn-logout {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-logout:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(238, 90, 90, 0.4);
}

.admin-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - 80px);
}

.sidebar {
    background: linear-gradient(180deg, #1e1e2e 0%, #2d2d44 100%);
    padding: 30px 15px;
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    margin-bottom: 8px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 14px 20px;
    border-radius: 12px;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.sidebar-menu a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: white;
    transform: translateX(5px);
}

.sidebar-menu a.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.admin-main {
    padding: 35px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    overflow-y: auto;
}

.admin-title {
    color: #1e1e2e;
    margin-bottom: 30px;
    font-size: 1.8rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
}

.admin-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

/* Form Styles */
.form-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 800px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--forest);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
    background: white;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23054239' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 15px center;
    padding-left: 40px;
}

.form-group select:focus {
    outline: none;
    border-color: var(--forest-light);
    box-shadow: 0 0 0 3px rgba(66,129,119,0.1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--forest-light);
    box-shadow: 0 0 0 3px rgba(66,129,119,0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(5,66,57,0.3);
    border: 2px solid transparent;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #002623 0%, #054239 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(5,66,57,0.4);
    border-color: var(--forest-light);
}

.btn-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a5a 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.3);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(238, 90, 90, 0.4);
}

/* Properties List in Admin */
.properties-list {
    margin-top: 30px;
}

.property-item {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.property-item-image {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.property-item-info {
    flex: 1;
}

.property-item-title {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 5px;
}

.property-item-type {
    font-size: 0.85rem;
    color: #666;
}

.property-item-actions {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Image Preview */
.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.image-preview {
    position: relative;
    width: 100px;
    height: 80px;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.remove-image {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Login Page */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-page::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.login-page::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.login-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.login-logo {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo img {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    margin-bottom: 12px;
}

.login-logo h2 {
    color: var(--forest);
    font-size: 1.6rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.login-logo p {
    color: #666;
    font-size: 0.95rem;
}

/* Logout Button */
.btn-logout {
    background: rgba(255,255,255,0.15);
    color: white;
    border: 1px solid rgba(255,255,255,0.4);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s;
}

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

/* Dashboard Cards */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

.dash-card {
    background: white;
    border-radius: 20px;
    padding: 30px 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.dash-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    opacity: 0.1;
    transform: translate(30%, -30%);
}

.dash-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.dash-total { 
    border-right: 5px solid #667eea;
}
.dash-total::before {
    background: #667eea;
}

.dash-sale { 
    border-right: 5px solid #ff6b35;
}
.dash-sale::before {
    background: #ff6b35;
}

.dash-rent { 
    border-right: 5px solid #25d366;
}
.dash-rent::before {
    background: #25d366;
}

.dash-icon {
    font-size: 2.2rem;
}

.dash-info {
    display: flex;
    flex-direction: column;
}

.dash-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    line-height: 1;
}

.dash-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 5px;
}

/* Dashboard Recent */
.dashboard-recent {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.recent-title {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
}

/* Submit Property Page */
.submit-section {
    padding: 50px 0;
    background: var(--golden-wheat-light);
    min-height: calc(100vh - 200px);
}

.submit-header {
    text-align: center;
    margin-bottom: 40px;
}

.submit-header h2 {
    color: var(--forest);
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.submit-header p {
    color: #666;
    font-size: 1.1rem;
}

.required {
    color: #e74c3c;
}

.form-hint {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
}

.form-notice {
    background: rgba(66,129,119,0.1);
    border-right: 4px solid var(--forest-light);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.form-notice p {
    margin: 5px 0;
    color: var(--forest);
    font-weight: 500;
}

.form-notice a {
    color: var(--forest-light);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.form-notice a:hover {
    color: var(--forest);
    text-decoration: underline;
}

.btn-large {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

/* Pending Properties */
.pending-item {
    border-right: 4px solid #ff9800;
}

.property-owner {
    font-size: 0.9rem;
    color: #666;
    margin: 5px 0;
}

.property-desc {
    font-size: 0.85rem;
    color: #555;
    margin-top: 8px;
}

.pending-badge {
    background: #ff6b35;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    margin-right: 5px;
}

/* Settings Styles */
.settings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 25px;
}

.settings-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.settings-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(0,0,0,0.1);
}

.settings-card.danger-zone {
    border: 2px solid #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
}

.settings-title {
    color: #1e1e2e;
    font-size: 1.15rem;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.settings-group {
    margin-bottom: 20px;
}

.settings-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.settings-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #fafafa;
}

.settings-input:focus {
    border-color: #667eea;
    outline: none;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.setting-hint {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Toggle Switch */
.toggle-label {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-weight: normal !important;
    padding: 12px 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s;
}

.toggle-label:hover {
    background: #f0f2f5;
}

.toggle-label input {
    display: none;
}

.toggle-switch {
    width: 54px;
    height: 28px;
    background: linear-gradient(135deg, #ccc 0%, #bbb 100%);
    border-radius: 14px;
    position: relative;
    transition: all 0.3s;
    flex-shrink: 0;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.toggle-label input:checked + .toggle-switch {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.toggle-label input:checked + .toggle-switch::after {
    transform: translateX(26px);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px 15px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s;
}

.stat-item:hover {
    transform: scale(1.02);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
    margin-top: 5px;
}

/* Responsive Admin */
@media (max-width: 768px) {
    .admin-container {
        grid-template-columns: 1fr;
    }
    
    .sidebar {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .property-item {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .settings-container {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Dark Mode Styles
   ============================================ */

body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e4e4e4;
}

body.dark-mode .admin-main {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 100%);
}

body.dark-mode .settings-card,
body.dark-mode .form-card,
body.dark-mode .dashboard-recent,
body.dark-mode .property-item {
    background: #1e1e2e;
    color: #e4e4e4;
}

body.dark-mode .property-item-title,
body.dark-mode .recent-title,
body.dark-mode .settings-title,
body.dark-mode .admin-title {
    color: #e4e4e4;
}

body.dark-mode .property-item-type,
body.dark-mode .property-owner,
body.dark-mode .property-desc,
body.dark-mode .stat-label,
body.dark-mode .dash-label,
body.dark-mode .setting-hint {
    color: #a0a0a0;
}

body.dark-mode input,
body.dark-mode textarea,
body.dark-mode select {
    background: #2d2d44;
    border-color: #3d3d5c;
    color: #e4e4e4;
}

body.dark-mode input:focus,
body.dark-mode textarea:focus,
body.dark-mode select:focus {
    border-color: #667eea;
    background: #363654;
}

body.dark-mode .toggle-label {
    background: #2d2d44;
    color: #e4e4e4;
}

body.dark-mode .toggle-label:hover {
    background: #363654;
}

body.dark-mode .stat-item {
    background: linear-gradient(135deg, #2d2d44 0%, #363654 100%);
}

body.dark-mode .dash-number {
    color: #e4e4e4;
}

body.dark-mode .sidebar-menu a {
    color: #a0a0a0;
}

body.dark-mode .sidebar-menu a:hover {
    background: rgba(102, 126, 234, 0.3);
}

body.dark-mode .login-card {
    background: #1e1e2e;
}

body.dark-mode .login-logo h2 {
    color: #e4e4e4;
}

body.dark-mode .login-logo p {
    color: #a0a0a0;
}

/* Professional Success Message Styles */
.success-animation {
    text-align: center;
    padding: 20px;
    animation: fadeInUp 0.6s ease-out;
}

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

.success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: scaleIn 0.5s ease-out 0.2s both;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-animation h3 {
    color: #155724;
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.success-animation p {
    color: #155724;
    margin-bottom: 15px;
    font-size: 1rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 12px 20px;
    border-radius: 25px;
    margin: 15px 0;
    border: 2px solid #28a745;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
}

.badge-icon {
    font-size: 1.3rem;
}

.status-badge span:last-child {
    font-weight: 600;
    color: #155724;
}

.small-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 10px;
    font-style: italic;
}

/* Enhanced Alert Styles */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    animation: slideInDown 0.4s ease-out;
}

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

/* ============================================
   Mobile Responsive Design
   ============================================ */

/* Mobile Devices (max-width: 768px) */
@media (max-width: 768px) {
    
    /* Header adjustments */
    .header {
        padding: 15px 0;
        position: relative; /* Changed from sticky for better mobile compatibility */
        min-height: 80px; /* Ensure minimum height */
    }
    
    .header .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    /* Logo container */
    .logo {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 12px;
        width: 100%;
        animation: none;
    }
    
    /* Smaller logo on mobile */
    .logo img {
        width: 70px;
        height: 70px;
        display: block; /* Ensure it displays */
    }
    
    .logo h1 {
        font-size: 1.4rem;
        margin: 0;
        white-space: nowrap; /* Prevent text wrapping */
    }
    
    /* Navigation adjustments */
    .nav {
        width: 100%;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
        margin: 0;
    }
    
    .nav-link {
        padding: 8px 14px;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .admin-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    /* Hero section */
    .hero {
        padding: 40px 15px;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    /* Properties grid */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    /* Property cards */
    .property-card {
        margin-bottom: 15px;
    }
    
    /* Disable hover effects on mobile */
    .property-card:hover {
        transform: none;
    }
    
    .property-card::after {
        display: none;
    }
    
    /* Section titles */
    .section-title {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    /* Submit form */
    .submit-section {
        padding: 30px 15px;
    }
    
    .form-group {
        padding: 0 10px;
    }
    
    /* Map container */
    #map {
        height: 300px;
    }
    
    /* Buttons */
    button, .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* Small Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    
    /* Even smaller logo */
    .logo img {
        width: 60px;
        height: 60px;
    }
    
    .logo h1 {
        font-size: 1.1rem;
    }
    
    /* Hero */
    .hero {
        padding: 30px 10px;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .hero p {
        font-size: 0.9rem;
    }
    
    /* Cards */
    .property-card {
        border-radius: 10px;
    }
    
    .property-image {
        height: 150px;
    }
    
    .property-info {
        padding: 15px;
    }
    
    .property-title {
        font-size: 1.1rem;
    }
    
    /* Forms */
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Disable all complex animations */
    .property-card::before {
        display: none;
    }
}

/* Landscape orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        padding: 30px 20px;
    }
    
    .header {
        padding: 8px 0;
    }
    
    .logo img {
        width: 50px;
        height: 50px;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .logo img:hover {
        transform: none;
    }
    
    .property-card:hover {
        transform: none;
    }
    
    .nav-link:hover,
    .nav-link.active {
        transform: none;
    }
    
    .admin-btn:hover {
        transform: none;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
