:root {
    --pf-primary: #5035a6;
    --pf-primary-light: #f3f0fb;
    --pf-text: #333;
    --pf-border: #e0e0e0;
    --pf-red: #ef5e4e;
    --pf-bg: #fff;
    --pf-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.pf-widget-98c89672 {
    font-family: var(--pf-font);
    color: var(--pf-text);
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* Top Nav */
.pf-top-nav-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}
.pf-top-nav {
    display: flex;
    background: var(--pf-bg);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    gap: 5px;
}
.pf-top-tab {
    background: none;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--pf-text);
    transition: all 0.2s;
}
.pf-top-tab:hover { background: #f7f7f7; }
.pf-top-tab.active {
    background: var(--pf-primary-light);
    color: var(--pf-primary);
}

/* Main Box */
.pf-search-box {
    background: var(--pf-bg);
    border-radius: 20px;
    padding: 24px 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

/* Sub Nav */
.pf-sub-nav {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--pf-border);
    margin-bottom: 20px;
}
.pf-sub-tab {
    background: none;
    border: none;
    padding: 0 0 12px 0;
    cursor: pointer;
    font-size: 15px;
    color: #666;
    position: relative;
}
.pf-sub-tab.active {
    color: var(--pf-primary);
    font-weight: 600;
}
.pf-sub-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--pf-primary);
    border-radius: 3px 3px 0 0;
}

/* Input Row */
.pf-search-input-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.pf-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    border: 1px solid var(--pf-border);
    border-radius: 30px;
    padding: 0 20px;
    height: 54px;
}
.pf-icon-search {
    color: #999;
    margin-right: 12px;
}
.pf-input-wrapper input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 16px;
    background: transparent;
}
.pf-btn-search {
    background: var(--pf-red);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 0 32px;
    height: 54px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.pf-btn-ai {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f0f0f0;
    border: none;
    border-radius: 30px;
    padding: 0 20px;
    height: 54px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    color: #555;
}

/* Filters Row */
.pf-filters-row {
    display: flex;
    gap: 12px;
    position: relative;
    flex-wrap: wrap;
}
.pf-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--pf-border);
    background: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    color: #444;
}
.pf-filter-btn:hover { border-color: #999; }
.pf-filter-btn.active-filter {
    border-color: var(--pf-primary);
    background: var(--pf-bg);
    color: var(--pf-primary);
}

/* Dropdowns */
.pf-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 20px;
    z-index: 100;
    min-width: 250px;
    border: 1px solid var(--pf-border);
}
.pf-dropdown.show { display: block; }
.pf-dd-title { display: block; margin-bottom: 12px; font-weight: 600; font-size: 15px;}

/* Radio */
.pf-radio-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    cursor: pointer;
    font-size: 15px;
}
.pf-radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    position: relative;
}
.pf-radio-item input:checked + .pf-radio-custom {
    border-color: var(--pf-primary);
}
.pf-radio-item input:checked + .pf-radio-custom::after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--pf-primary);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.pf-radio-item input { display: none; }

/* Pills Grid */
.pf-pills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 320px;
}
.pf-pill {
    border: 1px solid var(--pf-border);
    background: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
}
.pf-pill:hover { border-color: #aaa; }
.pf-pill.active {
    border-color: var(--pf-primary);
    color: var(--pf-primary);
    background: var(--pf-primary-light);
}

/* Beds & Baths */
.pf-dd-beds { width: 340px; }
.pf-dd-section { margin-bottom: 24px; }
.pf-dd-section:last-child { margin-bottom: 0; }
.pf-dd-section strong { display: block; margin-bottom: 12px; font-size: 15px; }
.pf-pills-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-circle-pill {
    width: 44px; height: 44px;
    border: 1px solid var(--pf-border);
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.pf-circle-pill.wide {
    width: auto; padding: 0 16px; border-radius: 22px;
}
.pf-circle-pill:hover { border-color: #999; }

/* Range / List */
.pf-range-inputs { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.pf-range-inputs input {
    border: 1px solid var(--pf-primary);
    border-radius: 8px;
    padding: 12px;
    width: 140px;
    font-size: 14px;
}
.pf-dd-list { max-height: 250px; overflow-y: auto; }
.pf-dd-list button {
    display: block; width: 100%; text-align: left;
    padding: 12px 0; border: none; background: none; cursor: pointer;
    font-size: 15px; color: #555;
}
.pf-dd-list button:hover { color: var(--pf-primary); }

/* Checkboxes */
.pf-cb-list label {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; cursor: pointer; font-size: 15px;
}
.pf-cb-list input[type="checkbox"] {
    width: 18px; height: 18px; border-radius: 4px;
    border: 1px solid var(--pf-border); accent-color: var(--pf-primary);
}

/* Positioning */
.pf-dd-residential { right: 0; left: auto; }
.pf-dd-area { right: 80px; left: auto; }
.pf-dd-amenities { right: 180px; left: auto; width: 280px; }
.pf-dd-price { left: 240px; width: 340px; }
.pf-dd-beds { left: 130px; }
.pf-dd-prop-type { left: 0; }

@media (max-width: 768px) {
    .pf-top-nav-wrapper { display: none; }
    .pf-search-box { padding: 15px; }
    .pf-search-input-row { flex-direction: column; }
    .pf-input-wrapper, .pf-btn-search, .pf-btn-ai { width: 100%; }
    .pf-filters-row { flex-direction: column; }
    .pf-dropdown { position: static; width: 100% !important; margin-top: 10px; display: none; box-shadow: none; border: none; padding: 10px 0; }
    .pf-dropdown.show { display: block; }
}
