/*
 * Property24-Style Search Bar CSS
 * File: child-theme/css/p24-search.css
 */

/* === WRAPPER === */
.p24-search-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    padding: 0;
    overflow: hidden;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* === TABS: Te Koop / Te Huur === */
.p24-tabs {
    display: flex;
    background: #f0f2f5;
    border-bottom: 1px solid #e0e0e0;
}

.p24-tab {
    flex: 1;
    padding: 16px 24px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 600;
    color: #555555;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.p24-tab:hover {
    color: #2B5E9E;
    background: rgba(43, 94, 158, 0.05);
}

.p24-tab.active {
    color: #2B5E9E;
    background: #ffffff;
    border-bottom: 3px solid #2B5E9E;
    border-radius: 0;
}

/* === FORM === */
.p24-search-form {
    padding: 24px 28px;
}

/* === SEARCH ROWS === */
.p24-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-end;
}

.p24-search-row:last-child {
    margin-bottom: 0;
}

/* === FORM FIELDS === */
.p24-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.p24-field label {
    font-size: 12px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.p24-field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    color: #333333;
    background: #ffffff;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23333%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 12px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.p24-field select:focus {
    outline: none;
    border-color: #2B5E9E;
    box-shadow: 0 0 0 3px rgba(43,94,158,0.15);
}

.p24-field select:disabled {
    background: #f5f5f5;
    color: #999999;
    cursor: not-allowed;
}

.p24-field-small {
    flex: 0.6;
    max-width: 130px;
}

/* === SEARCH BUTTON === */
.p24-search-btn {
    flex: 0 0 auto;
}

.p24-search-btn button {
    width: 100%;
    padding: 14px 32px;
    background: #2B5E9E;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.p24-search-btn button:hover {
    background: #1a4a7a;
    transform: translateY(-1px);
}

.p24-search-btn button:active {
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .p24-search-row {
        flex-wrap: wrap;
    }
    .p24-field {
        flex: 1 1 45%;
        min-width: 140px;
    }
    .p24-field-small {
        flex: 1 1 30%;
        max-width: none;
    }
    .p24-search-btn {
        flex: 1 1 100%;
    }
    .p24-search-btn button {
        width: 100%;
        padding: 16px;
        font-size: 16px;
    }
    .p24-tab {
        padding: 14px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .p24-field {
        flex: 1 1 100%;
    }
    .p24-search-form {
        padding: 16px;
    }
}