/* Font Imports */
@font-face {
  font-family: 'Lato';
  src: url('https://findahomeyoulove.com/mls/fonts/Lato/Lato-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('https://findahomeyoulove.com/mls/fonts/Lato/Lato-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('https://findahomeyoulove.com/mls/fonts/Lato/Lato-Black.woff2') format('woff2');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('https://findahomeyoulove.com/mls/fonts/Open_Sans/static/OpenSans-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('https://findahomeyoulove.com/mls/fonts/Open_Sans/static/OpenSans-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('https://findahomeyoulove.com/mls/fonts/Open_Sans/static/OpenSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('https://findahomeyoulove.com/mls/fonts/Open_Sans/static/OpenSans-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Open Sans';
  src: url('https://findahomeyoulove.com/mls/fonts/Open_Sans/static/OpenSans-ExtraBold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova Alt';
  src: url('https://findahomeyoulove.com/mls/fonts/Proxima_Nova/Mark Simonson - Proxima Nova Alt Regular-webfont.woff2') format('woff2'),
       url('https://findahomeyoulove.com/mls/fonts/Proxima_Nova/Mark Simonson - Proxima Nova Alt Regular-webfont.woff') format('woff'),
       url('https://findahomeyoulove.com/mls/fonts/Proxima_Nova/Mark Simonson - Proxima Nova Alt Regular-webfont.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova Alt';
  src: url('https://findahomeyoulove.com/mls/fonts/Proxima_Nova/Mark Simonson - Proxima Nova Alt Bold-webfont.woff2') format('woff2'),
       url('https://findahomeyoulove.com/mls/fonts/Proxima_Nova/Mark Simonson - Proxima Nova Alt Bold-webfont.woff') format('woff'),
       url('https://findahomeyoulove.com/mls/fonts/Proxima_Nova/Mark Simonson - Proxima Nova Alt Bold-webfont.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Proxima Nova Alt';
  src: url('https://findahomeyoulove.com/mls/fonts/Proxima_Nova/Mark Simonson - Proxima Nova Alt Black-webfont.woff2') format('woff2'),
       url('https://findahomeyoulove.com/mls/fonts/Proxima_Nova/Mark Simonson - Proxima Nova Alt Black-webfont.woff') format('woff'),
       url('https://findahomeyoulove.com/mls/fonts/Proxima_Nova/Mark Simonson - Proxima Nova Alt Black-webfont.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

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

body {
    font-family: 'Proxima Nova Alt', Arial, sans-serif;
    background-color: #F9FAFB;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation Bar */
nav {
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}

nav .top-bar {
    padding: 0.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #d3d3d3;
}

@media (max-width: 767px) {
    nav .top-bar {
        display: none;
    }
}

nav .top-bar .contact-info a {
    color: #063D9C;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Open Sans', Arial, sans-serif;
}

nav .top-bar .contact-info a:hover {
    color: #00ccff;
}

nav .top-bar .social-icons {
    display: flex;
    gap: 0.5rem;
}

nav .top-bar .social-icons a {
    width: 20px;
    height: 20px;
}

nav .top-bar .social-icons svg {
    fill: #141e28;
}

nav .top-bar .social-icons a:hover svg {
    fill: #00ccff;
}

nav .main-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 767px) {
    nav .main-bar {
        padding: 0;
    }
}

nav .main-bar .logo img {
    width: 180px;
    height: 60px;
}

nav .main-bar .nav-links {
    display: flex;
    gap: 1rem;
    position: relative;
}

nav .main-bar .nav-links > .menu-item {
    position: relative;
}

nav .main-bar .nav-links > .menu-item > a {
    color: #141e28;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.9rem;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 600;
}

nav .main-bar .nav-links > .menu-item > a:hover {
    color: #00ccff;
}

nav .main-bar .nav-links .submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    z-index: 1000;
}

nav .main-bar .nav-links .submenu a {
    color: #141e28;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    display: block;
    padding: 0.5rem 1rem;
    text-transform: none;
}

nav .main-bar .nav-links .submenu a:hover {
    color: #00ccff;
    background-color: #f5f5f5;
}

nav .main-bar .nav-links .menu-item:hover .submenu {
    display: block;
}

nav .main-bar .menu-toggle {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    color: #141e28;
}

nav .main-bar .menu-toggle svg {
    width: 24px;
    height: 24px;
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
    padding: 2rem 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

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

.mobile-menu .close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    background: none;
    border: none;
}

.mobile-menu .close-btn svg {
    width: 20px;
    height: 20px;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu ul li {
    margin-bottom: 1rem;
}

.mobile-menu ul li a {
    color: #141e28;
    text-decoration: none;
    font-size: 1rem;
    font-family: 'Open Sans', Arial, sans-serif;
}

.mobile-menu ul li .submenu {
    display: none;
    margin-top: 0.5rem;
    padding-left: 1rem;
}

.mobile-menu ul li .submenu.active {
    display: block;
}

.mobile-menu ul li .submenu a {
    color: #141e28;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'Open Sans', Arial, sans-serif;
    font-weight: 400;
    display: block;
    padding: 0.3rem 0;
}

.mobile-menu ul li .submenu a:hover {
    color: #00ccff;
}

@media (max-width: 767px) {
    nav .main-bar .nav-links {
        display: none;
    }
    nav .main-bar .menu-toggle {
        display: block;
    }
}

/* Form Container */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    overflow-x: clip;
}

@media (max-width: 767px) {
    .form-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
}

.form-container form {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Form Flex Layout */
.main-form-flex, .advanced-form-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-form-flex .city-select {
    width: 100%;
}

.main-form-flex .main-form-row,
.advanced-form-flex .advanced-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.main-form-flex .main-form-row > div,
.advanced-form-flex .advanced-form-row > div {
    flex: 1 0 23%;
    min-width: 0;
    padding: 0 0.25rem;
}

@media (min-width: 768px) {
    .main-form-flex .city-select {
        flex: 1 0 100%;
    }
    .main-form-flex .main-form-row > div {
        flex: 1 0 23%;
        padding: 0 0.25rem;
    }
    .advanced-form-flex .advanced-form-row > div {
        flex: 1 0 23%;
        padding: 0 0.25rem;
    }
}

@media (max-width: 767px) {
    .main-form-flex .city-select,
    .main-form-flex .main-form-row > div,
    .advanced-form-flex .advanced-form-row > div {
        flex: 1 0 100%;
        max-width: 100%;
        padding: 0;
    }
}

/* Form Elements */
label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

select, input[type="text"], input[type="number"] {
    width: 100%;
    max-width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #111827;
    background-color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

select:focus, input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.5);
}

select option:checked {
    background-color: #3b82f6;
    color: #ffffff;
}

select option:disabled {
    color: #9ca3af;
}

@media (max-width: 767px) {
    select, input[type="text"], input[type="number"] {
        background-color: #f9fafb;
        font-size: 0.875rem;
        padding: 0.625rem;
    }
}

/* Advanced Search Toggle */
.advanced-toggle {
    color: #2563eb;
    font-weight: 500;
    text-decoration: none;
}

.advanced-toggle:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

/* Buttons */
button {
    padding: 0.75rem 1.5rem;
    background-color: #2563eb;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.2s;
}

button:hover {
    background-color: #1d4ed8;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listings-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Listing Card */
.listing-card {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.listing-card a {
    text-decoration: none;
    display: block;
}

.listing-card img {
    width: 100%;
    height: 12rem;
    object-fit: cover;
}

.listing-card .content {
    padding: 1rem;
}

.listing-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.listing-card p {
    color: #4b5563;
    font-size: 0.875rem;
}

.listing-card .address {
    color: #1f2937;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 2rem 0;
}

.pagination a, .pagination span {
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.25rem;
    text-decoration: none;
    color: #4b5563;
}

.pagination a:hover {
    background-color: #f9fafb;
}

.pagination span {
    color: #9ca3af;
    cursor: not-allowed;
}

.pagination .text {
    font-size: 0.875rem;
    color: #4b5563;
}

/* Footer Section */
.footer-section {
    background-color: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin-top: 1.5rem;
    text-align: center;
}

.footer-section p {
    color: #6b7280;
    font-size: 0.875rem;
}

.footer-section img {
    max-width: 16rem;
    margin: 1rem auto;
}

/* Pre-Footer */
.pre-footer {
    background-color: #191C20;
    color: #fff;
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pre-footer .social-icons {
    display: flex;
    gap: 0.5rem;
}

.pre-footer .social-icons a {
    width: 20px;
    height: 20px;
}

.pre-footer .social-icons svg {
    fill: #fff;
}

.pre-footer .social-icons a:hover svg {
    fill: #a8b5ff;
}

/* Footer */
footer {
    background-color: #111111;
    color: #fff;
    width: 100%;
    padding: 1rem 1rem;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

footer .middle-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

footer .middle-section .west-usa-img img {
    width: 140px;
    height: 142px;
}

footer .middle-section {
    line-height: 1.6em;
}

footer .middle-section a {
    color: #A8B5FF;
    text-decoration: none;
}

footer .middle-section a:hover {
    color: #ffffff;
}

footer .middle-section p {
    color: #fff;
    font-family: 'Proxima Nova Alt', Arial, sans-serif;
    font-size: 0.9rem;
}

footer .bottom-section {
    text-align: left;
    font-size: 0.9rem;
    border-top: 1px solid #666666;
    padding-top: 1rem;
}

footer .bottom-section .contact-info a {
    color: #a8b5ff;
    text-decoration: none;
}

footer .bottom-section .contact-info a:hover {
    color: #fff;
}

@media (max-width: 767px) {
    footer .bottom-section {
        text-align: center;
    }
}

@media (min-width: 768px) {
    footer .container {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    footer .middle-section {
        width: 100%;
    }

    footer .bottom-section {
        width: 100%;
    }
}