/* ORH District & Area Fixes v3.0 */

.orh-df-wrap {
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
    box-sizing: border-box;
    display: block;
}

/* Trigger button — matches Houzez padding:10px border:#dce0e0 */
.orh-df-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #dce0e0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-family: inherit;
    font-weight: 400;
    line-height: 1.5;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    box-sizing: border-box;
    user-select: none;
    transition: border-color .2s;
}
.orh-df-btn:hover,
.orh-df-btn.orh-df-active { border-color: #aaa; }

.orh-df-lbl {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.orh-df-caret {
    flex-shrink: 0;
    margin-left: 8px;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #888;
    transition: transform .2s;
}
.orh-df-btn.orh-df-active .orh-df-caret { transform: rotate(180deg); }

/* Dropdown panel */
.orh-df-drop {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 100%;
    width: max-content;
    max-width: 340px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 4px 16px rgba(0,0,0,.12);
    z-index: 9999;
    box-sizing: border-box;
}
.orh-df-drop.orh-df-open { display: block; }

.orh-df-search {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    box-sizing: border-box;
    color: #333;
}

.orh-df-list {
    max-height: 280px;
    overflow-y: auto;
    padding: 4px 0;
}

.orh-df-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    cursor: pointer;
    font-size: 13px;
    color: #333;
    box-sizing: border-box;
    user-select: none;
    width: 100%;
}
.orh-df-item:hover { background: #f5f5f5; }

.orh-df-all { font-weight: 600; }

.orh-df-item input[type=checkbox] {
    flex-shrink: 0;
    margin: 0;
    width: 14px; height: 14px;
    cursor: pointer;
}

.orh-df-divider {
    height: 1px;
    background: #eee;
    margin: 2px 0 4px;
}

.orh-df-badge {
    display: inline-block;
    margin-left: 5px;
    background: #7b2d8b;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 10px;
    padding: 1px 7px;
    vertical-align: middle;
    flex-shrink: 0;
}
