/* Modern Styles for Beds24 Plugin - Stylish Rental Theme v3 (Layout Focused) */

/* Import Google Fonts - Inter */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Bases & Container --- */
.beds24box,
.beds24searchbox,
.B24agency_searchbox {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    background: #ffffff !important;
    border: 1px solid #f3f4f6 !important;
    border-radius: 24px !important;
    /* Super rounded modern look */
    padding: 20px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    color: #1a202c !important;
}

/* Wrapper alignment */
.B24agency_searchbox_inner {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 16px !important;
    align-items: flex-end !important;
}

/* Headings */
.beds24box h2,
.B24agency_searchbox h2 {
    width: 100% !important;
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 1.5rem !important;
    text-align: left !important;
}

/* --- Form Grid Layout --- */

/* Location / Category 1 */
.B24agency_searchitem.agency_searchitem1 {
    flex: 1 1 200px !important;
    margin: 0 !important;
}

/* Date Pickers Container */
.B24agency_searchitem2 {
    flex: 2 1 280px !important;
    margin: 0 !important;
}

.B24checkinselect {
    display: flex !important;
    gap: 8px !important;
}

.B24checkinselect select {
    flex: 1 !important;
}

/* Nights & Guests - Grouped visually */
.B24agency_searchitem3,
.B24agency_searchitem4 {
    flex: 0 1 120px !important;
    margin: 0 !important;
}

/* --- Input Styling --- */
.B24_searchbox input,
.B24_searchbox select,
.B24agency_searchbox input:not([type="checkbox"]),
.B24agency_searchbox select,
.beds24searchbox select {
    display: block !important;
    width: 100% !important;
    height: 50px !important;
    /* Consistent height */
    padding: 0 1rem 0 1rem !important;
    font-size: 0.95rem !important;
    line-height: 50px !important;
    color: #111827 !important;
    background-color: #f3f4f6 !important;
    /* Light gray background */
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    transition: all 0.2s !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    font-weight: 500 !important;
}

/* Labels embedded feel */
.B24checkintext,
.B24checkouttext,
.B24guesttext,
.B24agency_searchitem label {
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    display: block !important;
}

/* Focus States */
.B24_searchbox input:focus,
.B24_searchbox select:focus,
.B24agency_searchbox select:focus,
.B24agency_searchbox input:focus {
    background-color: #ffffff !important;
    box-shadow: 0 0 0 2px #000000 !important;
    outline: none !important;
}

/* --- Search Button --- */
.B24buttondiv {
    flex: 0 0 auto !important;
    margin: 0 !important;
    align-self: flex-end !important;
}

.beds24_bookbutton,
.B24button,
.B24button input[type="submit"] {
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 32px !important;
    font-weight: 600 !important;
    color: white !important;
    background: #000000 !important;
    border-radius: 12px !important;
    /* Matches inputs */
    border: none !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    transition: transform 0.1s !important, background-color 0.2s !important;
    margin: 0 !important;
    width: auto !important;
    /* Auto width on desktop */
}

.beds24_bookbutton:hover,
.B24button:hover {
    background: #333 !important;
    transform: scale(1.02) !important;
}

/* --- Advanced Search Toggle --- */
.B24advancedsearchmore {
    width: 100% !important;
    text-align: center !important;
    margin-top: 10px !important;
}

.B24advancedsearchmore a {
    font-size: 0.85rem !important;
    color: #6b7280 !important;
    text-decoration: none !important;
    border-bottom: 1px dotted #9ca3af !important;
}

/* --- Checkboxes (Amenities) --- */
.B24advanced_search_group {
    width: 100% !important;
    margin-top: 16px !important;
    padding-top: 16px !important;
    border-top: 1px solid #e5e7eb !important;
}

.B24checkbox {
    display: inline-block !important;
    margin-right: 20px !important;
    margin-bottom: 10px !important;
}

.B24checkbox_label {
    display: flex !important;
    align-items: center !important;
    font-size: 0.9rem !important;
    color: #4b5563 !important;
    cursor: pointer !important;
}

.B24checkbox_selector {
    width: 18px !important;
    height: 18px !important;
    margin-right: 8px !important;
    accent-color: #000000 !important;
    cursor: pointer !important;
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .B24agency_searchbox_inner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    .B24agency_searchitem,
    .B24agency_searchitem2,
    .B24agency_searchitem3,
    .B24agency_searchitem4 {
        flex: 1 1 100% !important;
        width: 100% !important;
    }

    .B24buttondiv,
    .B24button,
    .B24button input[type="submit"] {
        width: 100% !important;
    }
}