/* ===================================================================
   PROPERTY SEARCH / FILTER SECTION
   File: property-search.css

   All selectors are namespaced with a "pf-" (Property Finder) prefix
   so they cannot collide with existing rules in style.css,
   categories.css, property-popup.css or contact-drawer.css.
=================================================================== */

.pf-search-section {
    background: var(--cream, #f7f4ef);
    padding: 56px 24px 64px;
}

.pf-search-section .container {
    max-width: 1200px;
    margin: 0 auto;
}

.pf-search-intro {
    text-align: center;
    margin-bottom: 28px;
}

.pf-search-intro h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy, #1a2a3a);
    margin-bottom: 8px;
}

.pf-search-intro p {
    color: #6b7280;
    font-size: 0.95rem;
}

/* ---- Floating filter panel ---- */
.pf-search-panel {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 10px 40px rgba(15, 30, 45, 0.08);
    border-top: 3px solid var(--gold, #b89a5a);
}

.pf-search-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px 20px;
}

.pf-field {
    display: flex;
    flex-direction: column;
}

.pf-field label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #6b7280;
    margin-bottom: 6px;
}

.pf-field select,
.pf-field input {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--navy, #1a2a3a);
    background: var(--cream, #f7f4ef);
    border: 1.5px solid #e5e1d8;
    border-radius: 8px;
    padding: 10px 12px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.pf-field select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.6' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 30px;
}

.pf-field select:focus,
.pf-field input:focus {
    outline: none;
    border-color: var(--gold, #b89a5a);
    box-shadow: 0 0 0 3px rgba(184, 154, 90, 0.15);
}

.pf-field input::placeholder {
    color: #9aa0a8;
}

.pf-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 6px;
}

.pf-btn-search {
    background: var(--navy, #1a2a3a);
    color: #ffffff;
    border: none;
    padding: 12px 36px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.pf-btn-search:hover {
    background: var(--gold, #b89a5a);
    color: var(--navy, #1a2a3a);
    transform: translateY(-1px);
}

.pf-btn-reset {
    background: transparent;
    color: #6b7280;
    border: 1.5px solid #e5e1d8;
    padding: 12px 28px;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.pf-btn-reset:hover {
    border-color: var(--navy, #1a2a3a);
    color: var(--navy, #1a2a3a);
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
    .pf-search-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 540px) {
    .pf-search-section {
        padding: 40px 16px 48px;
    }
    .pf-search-panel {
        padding: 24px 20px;
    }
    .pf-search-grid {
        grid-template-columns: 1fr;
    }
    .pf-actions {
        flex-direction: column;
    }
    .pf-btn-search,
    .pf-btn-reset {
        width: 100%;
    }
}
