
/******************************
 * Font imports and CSS Reset
 ******************************/
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700&family=Inter:wght@500;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
}

/******************************
 * Container
 ******************************/
.jet-finder-container {
    width: 100%;
    margin: 0 auto;
}

/******************************
 * Header Section
 ******************************/
.jetfinder-header {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F8F8 100%);
    padding: 32px 0 0;
    position: relative;
}

/* Logo */
.jetfinder-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 40px;
    letter-spacing: 1.6px;
    line-height: 1.22;
    color: #B3916D;
    margin-bottom: 40px;
    text-align: center;
}

/* Search Filters */
.search-filters {
    display: flex;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 30px;
}

/* Divider Line */
.line-1-22 {
    border: none;
    border-top: 1px solid #D4D4D4;
    margin: 0;
    width: 100%;
}

/* Filter Boxes */
.filter-box {
    flex: 1;
    background-color: #FFFFFF;
    border: 1px solid rgba(169, 169, 169, 0.56);
    border-radius: 22px;
    padding: 6px 16px;
    box-shadow: 0px 1px 2.9px -2px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
}

.filter-box:hover {
    border-color: rgba(169, 169, 169, 0.8);
    box-shadow: 0px 2px 6px -2px rgba(0, 0, 0, 0.3);
}

.filter-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #434343;
    line-height: 1;
    position: relative;
    top: 2px; /* Move the title down by adjusting its position */
    margin-bottom: -2px; /* Compensate for the movement to keep overall height the same */
}

.filter-placeholder {
    position: relative;
    margin-top: 0;
}

/* Filter Inputs */
.filter-placeholder input[type="text"],
.filter-placeholder select {
    width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 9px;
    line-height: 1;
    color: #777777;
    border: none;
    background: transparent;
    outline: none;
    padding: 0;
    margin: 0;
    height: 14px;
}

.filter-placeholder select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23000000' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 20px;
    padding-right: 24px;
    cursor: pointer;
}

.filter-placeholder input::placeholder,
.filter-placeholder select option:first-child {
    color: #777777;
}

/******************************
 * Aircraft Grid Section
 ******************************/
.grid-section {
    background-color: #FFFFFF;
    width: 100%;
    padding-top: 40px;
 	padding-bottom: 40px;
}

.jets-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Aircraft Cards */
.jet-card {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced from 12px for tighter vertical spacing */
    cursor: pointer;
}

.jet-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.jet-card img:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.jet-info {
    padding: 0 8px; /* Added horizontal padding to inset text from image edge */
}

.jet-info h3 {
    margin: 0;
    font-size: 14px; 
    color: #333;
    font-weight: 600;
    line-height: 1.2;
}

.jet-info p {
    margin: 2px 0 0;
    font-size: 12px; /* Reduced from 14px */
    color: #666;
    line-height: 1.2;
}

/******************************
 * Load More Button
 ******************************/
.load-more-container {
    text-align: center;
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    background-color: #FFFFFF;
}

.load-more-button {
    background-color: #333;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.load-more-button:hover {
    background-color: #555;
}

.load-more-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/******************************
 * Responsive Design
 ******************************/

/* Desktop only styles */
@media (min-width: 769px) {
    .mobile-filter-button {
        display: none;
    }
}

@media (max-width: 1440px) {
    /* Your existing media query content */
}

@media (max-width: 1024px) {
    /* Your existing media query content */
}

@media (max-width: 768px) {
    /* Change grid to 2 columns */
    .jets-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 15px;
    }
    
    /* Adjust card styling for smaller screens */
    .jet-card img {
        height: 150px;
    }
    
    .jet-info h3 {
        font-size: 12px;
    }
    
    .jet-info p {
        font-size: 10px;
    }
    
    /* Hide desktop filters */
    .search-filters {
        display: none;
    }
    
    /* Add mobile filter button */
    .mobile-filter-button {
        display: block;
        margin: 15px auto 30px;
        background-color: #FFFFFF;
        border: 1px solid rgba(169, 169, 169, 0.56);
        border-radius: 22px;
        padding: 12px 20px;
        padding-left: 40px; /* Make room for the icon */
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 14px;
        color: #434343;
        box-shadow: 0px 1px 2.9px -2px rgba(0, 0, 0, 0.5);
        width: calc(100% - 30px);
        max-width: 300px;
        text-align: left;
        position: relative;
        cursor: pointer;
    }

    .mobile-filter-button::before {
        content: "";
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 16px;
        height: 16px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23434343'><path d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .mobile-filter-button::after {
        content: "";
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        background-image: url("data:image/svg+xml;utf8,<svg fill='%23000000' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
    
    /* Adjust logo size on mobile */
    .jetfinder-logo {
        font-size: 30px;
        margin-bottom: 20px;
    }
  
    .mobile-filter-modal {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #FFFFFF;
        z-index: 1000;
        overflow-y: auto;
        padding: 20px;
        padding-top: 60px; /* Add padding to the top */
    }

    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        position: relative;
        z-index: 1001; /* Ensure it's above the rest of the modal content */
    }

    .mobile-filter-header h2 {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
        font-size: 24px;
        color: #B3916D;
        margin: 0;
    }

    .mobile-filter-close {
        background: none;
        border: none;
        font-size: 24px;
        color: #333;
        cursor: pointer;
        padding: 0;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-filter-section {
        margin-bottom: 20px;
        border-bottom: 1px solid #EEEEEE;
        padding-bottom: 20px;
    }

    .mobile-filter-title {
        font-family: 'Inter', sans-serif;
        font-weight: 700;
        font-size: 16px;
        color: #333;
        margin: 0 0 15px 0;
        position: relative;
        cursor: pointer;
        padding-right: 20px;
    }

    .mobile-filter-title::after {
        content: "";
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        width: 12px;
        height: 12px;
        background-image: url("data:image/svg+xml;utf8,<svg fill='%23000000' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }

    .mobile-filter-section.active .mobile-filter-title::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .mobile-filter-options {
        display: none;
    }

    .mobile-filter-section.active .mobile-filter-options {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-filter-option {
        padding: 12px 15px;
        border-radius: 4px;
        background-color: #F5F5F5;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 14px;
        color: #333;
        cursor: pointer;
        transition: background-color 0.2s ease;
    }

    .mobile-filter-option:hover {
        background-color: #EEEEEE;
    }

    .mobile-filter-option.selected {
        background-color: #333;
        color: #FFFFFF;
    }

    .mobile-filter-options input[type="text"] {
        width: 100%;
        padding: 12px 15px;
        border: 1px solid #CCCCCC;
        border-radius: 4px;
        font-family: 'Inter', sans-serif;
        font-size: 14px;
    }

    .mobile-filter-actions {
        display: flex;
        gap: 10px;
        margin-top: 30px;
        position: sticky;
        bottom: 20px;
        background-color: #FFFFFF;
        padding-top: 10px;
    }

    .mobile-filter-actions button {
        flex: 1;
        padding: 12px;
        border-radius: 4px;
        font-family: 'Inter', sans-serif;
        font-weight: 500;
        font-size: 14px;
        cursor: pointer;
    }

    #mobile-apply-filters {
        background-color: #333;
        color: #FFFFFF;
        border: none;
    }

    #mobile-reset-filters {
        background-color: #FFFFFF;
        color: #333;
        border: 1px solid #CCCCCC;
    }
}
    
    /* Adjust card styling for smaller screens */
    .jet-card img {
        height: 150px;
    }
    
    .jet-info h3 {
        font-size: 12px;
    }
    
    .jet-info p {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    /* Your existing media query content */
}