/* Custom styles for Palmesta Rental Community */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

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

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Thin line decorative element */
.thin-line {
    height: 1px;
    background: linear-gradient(to right, transparent, #0d9488, transparent);
}

/* Property card hover effect */
.property-card {
    transition: all 0.3s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(13, 148, 136, 0.1);
}

/* Mobile menu animation */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

/* Form focus styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Button hover effects */
button[type="submit"],
a[href="#properties"],
a[href="#contact"] {
    transition: all 0.2s ease;
}

/* Print styles */
@media print {
    nav,
    .mobile-menu-btn {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .property-card:hover {
        transform: none;
        box-shadow: none;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .thin-line {
        background: #000;
    }
    
    .property-card {
        border: 2px solid #000;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* Ensure touch targets are large enough */
@media (hover: none) and (pointer: coarse) {
    a,
    button {
        min-height: 44px;
        min-width: 44px;
    }
}
