
/* ===== SEARCH FORM STYLING ===== */
.search-form-container,
.rent-search-form,
.holiday-search-form,
.student-search-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.form-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.form-section h3 {
    font-size: 1.1rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3 i {
    color: var(--primary-color);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px; /* Reduced gap */
}

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

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px; /* Reduced margin */
}

/* Featured Toggle Standardized Style - Mapped to Amenity Checkbox Style */
.featured-toggle,
.amenity-checkbox,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
    margin-top: 5px;
    min-height: 50px; /* Consistent height */
    width: fit-content; /* Prevent stretching */
    cursor: pointer; /* Make entire box clickable */
}

.featured-toggle:hover,
.amenity-checkbox:hover,
.checkbox-item:hover {
    border-color: var(--primary-color);
    background-color: #f8f9fa;
}

.featured-toggle input[type="checkbox"],
.amenity-checkbox input[type="checkbox"],
.checkbox-item input[type="checkbox"] {
    margin-right: 0; /* Gap handles spacing */
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
    border: none;
    padding: 0;
    flex-shrink: 0; /* Prevent squishing with long text */
}

.featured-toggle label,
.amenity-checkbox label,
.checkbox-item label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}
/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group input,
.form-group select {
    height: 50px;
    padding: 0 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #fff;
}

.form-group input:focus,
.form-group select:focus,
.custom-select-trigger:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    transform: translateY(-1px);
}

/* Date Range Picker */
.date-range-picker {
    display: flex;
    align-items: center;
    gap: 15px;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.date-input {
    flex: 1;
}

.nights-display {
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Price Range Inputs */
.price-inputs {
    display: flex;
    gap: 15px;
}

.price-input {
    flex: 1;
}

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #666;
}

.btn-outline:hover {
    border-color: #bbb;
    background-color: #f8f9fa;
    color: #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .date-range-picker {
        flex-direction: column;
        align-items: stretch;
    }
    
    .nights-display {
        text-align: center;
        align-self: center;
    }
    
    .form-actions {
        flex-direction: column-reverse;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}

/* ===== CUSTOM LOCATION DROPDOWN ===== */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    width: 100%;
}

.custom-select-trigger {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 22px;
    font-size: 16px;
    font-weight: 400;
    color: #333;
    height: 50px;
    line-height: 50px;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-select-trigger:hover {
    border-color: var(--primary-color);
}

.custom-select-trigger:after {
    content: '\f078'; /* FontAwesome chevron-down */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 12px;
    color: #999;
    transition: transform 0.3s;
}

.custom-select.open .custom-select-trigger:after {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    display: block;
    top: 100%;
    left: 0;
    right: 0;
    border: 1px solid #eee;
    border-top: 0;
    background: #fff;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 100;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    top: 100%;
    animation: fadeInDown 0.3s ease-out forwards;
}

.custom-option {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 22px;
    font-size: 15px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-bottom: 1px solid #f5f5f5;
}

.custom-option:last-of-type {
    border-bottom: none;
}

.custom-option:hover {
    background-color: #f9f9f9;
    color: var(--primary-color);
    padding-left: 28px; /* Slight slide effect */
}

.custom-option.selected {
    color: var(--white);
    background-color: var(--primary-color);
}

.option-count {
    font-size: 14px;
    color: #3498db; /* Blue color */
    font-weight: 600;
}

.option-count span {
    color: #999;
    font-weight: 400;
    font-size: 12px;
    margin-left: 4px;
}

.custom-option:hover .option-count {
    color: #2980b9;
}

.custom-option.selected .option-count,
.custom-option.selected .option-count span {
    color: rgba(255,255,255,0.9);
}

/* Back button style */
.custom-option.back-option {
    background-color: #f0f2f5;
    color: #666;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
}
.custom-option.back-option:hover {
    background-color: #e4e6eb;
}
.custom-option.back-option i {
    margin-right: 8px;
}

/* Scrollbar */
.custom-options::-webkit-scrollbar {
    width: 6px;
}
.custom-options::-webkit-scrollbar-track {
    background: #f1f1f1; 
}
.custom-options::-webkit-scrollbar-thumb {
    background: #ccc; 
    border-radius: 3px;
}
.custom-options::-webkit-scrollbar-thumb:hover {
    background: #bbb; 
}

/* ===== PROPERTY TYPE TABS ===== */
.property-type-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.property-type-tab {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #f8f9fa;
    color: #555;
    border-radius: 50px; /* Pill shape */
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.property-type-tab i {
    margin-right: 8px;
    font-size: 1.1em;
}

.property-type-tab:hover {
    background-color: #e9ecef;
    color: #333;
    transform: translateY(-2px);
}

.property-type-tab.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

/* Responsive adjustment */
@media (max-width: 768px) {
    .property-type-tabs {
        justify-content: center;
    }
    
    .property-type-tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
