/* LATINOMOST Custom Styles */

:root {
    --primary-orange: #FEA067;
    --secondary-orange: #F9C2A7;
    --light-beige: #E9D5CC;
    --sage-green: #84B5A5;
    --teal-accent: #35A89B;
    --dark-teal: #0B7785;
}

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

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

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

/* Mobile Menu Animation */
#hamburger span {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: center;
}

#hamburger:hover span:nth-child(1) {
    transform: rotate(45deg) translate(10px, 10px);
}

#hamburger:hover span:nth-child(2) {
    opacity: 0;
}

#hamburger:hover span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    animation: slideDown 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Property Cards */
.property-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

.property-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Image Lazy Loading */
img[loading="lazy"] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* Navigation Links */
.nav-link {
    position: relative;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-orange), var(--teal-accent));
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-orange), var(--teal-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .nav-link::after {
        display: none;
    }
    
    .property-card img {
        height: 200px;
    }
}

/* Fade in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Color Palette Usage */
.text-primary { color: var(--primary-orange); }
.text-accent { color: var(--teal-accent); }
.bg-primary { background-color: var(--primary-orange); }
.bg-accent { background-color: var(--teal-accent); }
.border-primary { border-color: var(--primary-orange); }

/* Scroll to Top Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-orange), var(--teal-accent));
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

#scrollTopBtn:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Filter UI Styles */
.filters-container {
    max-height: 500px;
    overflow-y: auto;
}

.filters-container.hidden {
    display: none;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group select,
.filter-group input {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.filter-group select:hover,
.filter-group input:hover {
    border-color: var(--primary-orange);
}

.filter-group select:focus,
.filter-group input:focus {
    transform: translateY(-2px);
}

/* Search Input with Icon */
#search-input {
    padding-left: 40px;
    font-size: 16px;
}

#search-input::placeholder {
    color: #999;
}

/* Results info styling */
#results-count {
    font-weight: 700;
    font-size: 1.125rem;
}

/* Responsive Filters */
@media (max-width: 768px) {
    .filters-container {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 100;
        background: rgba(0, 0, 0, 0.5);
        display: none; /* This will be overridden by :not(.hidden) block below */
        padding: 20px;
        margin: 0;
        border-radius: 0;
        max-height: 100vh;
        overflow-y: auto;
    }

    .filters-container:not(.hidden) {
        display: block;
        animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* This rule refines the .filters-container appearance for mobile,
       it will override the background/border-radius/position from the previous block
       when it's specifically for the actual filter content. */
    .filters-container {
        background: white;
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 100;
        max-height: 90vh;
        overflow-y: auto;
        border: none;
        padding: 24px 16px;
    }


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

    .filter-group {
        margin-bottom: 16px;
    }

    #search-input {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .filters-container {
        padding: 20px 12px;
    }

    .filter-group select,
    .filter-group input {
        font-size: 16px;
    }
}
