/* ============================================================
   properties Search Panel Styles
   c:\Users\DieHard\Desktop\Antigravity\classifieds\themes\default\assets\css\properties-search.css
   ============================================================ */

/* ── Main Panel Wrapper ── */
.properties-search-panel {
    background: #fff;
    border: 1px solid #c00;
    border-top: 3px solid #900;
    border-bottom: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.properties-search-panel table {
    width: 100%;
    border-collapse: collapse;
}

/* ── Property Types Grid ── */
.properties-prop-types-wrap {
    padding: 12px 20px 0;
}

.properties-type-group-label {
    font-weight: bold;
    padding-bottom: 4px;
    font-size: 13px;
    color: #333;
}

.properties-type-col {
    vertical-align: top;
    padding-right: 6px;
}

.properties-type-group {
    background: #e8f9d9;
    padding: 2px 4px;
    margin-bottom: 5px;
    border: 1px solid #c8e8b0;
    min-width: 148px;
}

.properties-type-group label {
    display: block;
    cursor: pointer;
    padding: 1px 2px;
    white-space: nowrap;
    color: #333;
    font-size: 12.5px;
}

.properties-type-group label:hover {
    background: #d4f0b0;
}

.properties-type-group input[type="checkbox"] {
    margin-right: 4px;
    vertical-align: middle;
    cursor: pointer;
}

/* ── Right Panel: Price / Area / Floor / Sort ── */
.properties-right-panel {
    padding: 12px 20px 0 10px;
    vertical-align: top;
}

.properties-field-label {
    font-weight: bold;
    color: #333;
    font-size: 13px;
    padding-bottom: 3px;
}

.properties-input-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding-bottom: 8px;
}

.properties-input-row input[type="text"],
.properties-input-row select {
    border: 1px solid #aaa;
    padding: 3px 5px;
    font-size: 12px;
    background: #fff;
    color: #333;
}

.properties-input-sm {
    width: 75px;
}

.properties-input-md {
    width: 90px;
}

.properties-input-lg {
    width: 120px;
}

.properties-select-currency {
    width: 65px;
}

.properties-select-sort {
    width: 265px;
}

.properties-select-floor {
    width: 80px;
}

.properties-search-btn {
    background: #900;
    color: #fff;
    border: 1px solid #700;
    font-weight: bold;
    font-size: 13px;
    padding: 8px 0;
    width: 265px;
    cursor: pointer;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: background 0.15s;
}

.properties-search-btn:hover {
    background: #700;
}

/* ── Location Row ── */
.properties-location-panel {
    border: 1px solid #c00;
    border-top: 0;
    border-bottom: 0;
    padding: 12px 20px;
}

.properties-location-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

/* ── Bulgaria SVG Map ── */
.properties-bg-map-wrap {
    width: 100%;
    min-height: 250px;
}

.properties-bg-map-wrap svg {
    width: 100%;
    height: auto;
    cursor: pointer;
}

.properties-bg-map-wrap .st0 {
    fill: #DAC1A7;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    cursor: pointer;
    transition: fill 0.15s;
}

.properties-bg-map-wrap .st0:hover {
    fill: #b89878;
}

.properties-bg-map-wrap .st0.map-selected {
    fill: #990000;
}

.properties-bg-map-wrap .st1 {
    fill: #fff;
    stroke: #CBB398;
    stroke-width: 1;
    cursor: pointer;
    transition: fill 0.15s;
}

.properties-bg-map-wrap .st1:hover {
    fill: #cc0000;
}

.properties-bg-map-wrap .st1.map-selected {
    fill: #990000;
}

/* City title tooltip */
.properties-map-tooltip {
    position: fixed;
    background: #333;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none;
    z-index: 9999;
    white-space: nowrap;
    display: none;
}

/* ── Location Select + Districts ── */
.properties-loc-right {
    flex: 1;
    min-width: 0;
}

.properties-loc-select-wrap {
    margin-bottom: 8px;
}

.properties-loc-main-select {
    width: 100%;
    padding: 5px 6px;
    border: 1px solid #aaa;
    font-size: 13px;
    background: #fff;
    color: #333;
}

.properties-districts-wrap {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.properties-districts-label {
    font-weight: bold;
    color: #333;
    font-size: 12px;
    margin-bottom: 3px;
}

.properties-districts-available,
.properties-districts-selected {
    flex: 1;
}

.properties-districts-available select,
.properties-districts-selected select {
    width: 100%;
    height: 160px;
    border: 1px solid #aaa;
    font-size: 12px;
    padding: 2px;
}

.properties-districts-arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding-top: 18px;
}

.properties-arrow-btn {
    background: none;
    border: 1px solid #999;
    width: 28px;
    height: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 14px;
    transition: background 0.1s;
}

.properties-arrow-btn:hover {
    background: #e8e8e8;
}

.properties-clear-link {
    color: #900;
    text-decoration: none;
    font-size: 12px;
    cursor: pointer;
}

.properties-clear-link:hover {
    text-decoration: underline;
}

/* ── Extra Filters Row ── */
.properties-extras-panel {
    border: 1px solid #c00;
    border-top: 0;
    padding: 12px 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.properties-extras-section {
    flex: 1;
    min-width: 200px;
}

.properties-extras-title {
    font-weight: bold;
    color: #333;
    font-size: 13px;
    padding-bottom: 5px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 6px;
}

.properties-extras-cols {
    display: flex;
    gap: 8px;
}

.properties-extras-col {
    flex: 1;
}

.properties-extras-col label {
    display: block;
    cursor: pointer;
    padding: 2px 0;
    color: #333;
    font-size: 12.5px;
    white-space: nowrap;
}

.properties-extras-col label:hover {
    color: #900;
}

.properties-extras-col input[type="checkbox"] {
    margin-right: 4px;
    vertical-align: middle;
    cursor: pointer;
}

/* ── Keyword Search ── */
.properties-keyword-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.properties-keyword-input {
    border: 1px solid #aaa;
    padding: 4px 6px;
    font-size: 12px;
    width: 100%;
    background: #fff;
}

/* ── Bottom Extras (photo filter) ── */
.properties-bottom-extras {
    border: 1px solid #c00;
    border-top: 0;
    padding: 8px 20px 12px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.properties-bottom-extras label {
    cursor: pointer;
    color: #333;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Year Filter ── */
.properties-year-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #333;
}

.properties-year-select {
    width: 72px;
    border: 1px solid #aaa;
    padding: 3px 4px;
    font-size: 12px;
    background: #fff;
}

/* ── TETs / Gas filter ── */
.properties-tec-row {
    display: flex;
    gap: 16px;
    margin-top: 6px;
    align-items: center;
    font-size: 12px;
    color: #333;
}

.properties-tec-select {
    width: 95px;
    border: 1px solid #aaa;
    padding: 3px 4px;
    font-size: 12px;
    background: #fff;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .properties-location-inner {
        flex-direction: column;
    }

    .properties-bg-map-wrap {
        flex: none;
        width: 100%;
        overflow-x: auto;
    }

    .properties-search-panel table,
    .properties-search-panel thead,
    .properties-search-panel tbody,
    .properties-search-panel tr,
    .properties-search-panel td {
        display: block;
        width: 100%;
    }

    .properties-right-panel {
        padding: 10px 15px;
    }

    .properties-prop-types-wrap {
        padding: 10px 15px;
    }

    .properties-type-group {
        min-width: unset;
    }

    .properties-select-sort,
    .properties-search-btn {
        width: 100%;
    }
}

/* =========================================
   Custom properties Types Layout (imot.bg style)
========================================= */
.properties-type-group-box {
    transition: all 0.2s ease-in-out;
}

.properties-type-group-box.group-active {
    background-color: #e6f4ea !important; /* light green */
    border-color: #a8d5ba !important;
}

.properties-type-group-box.group-disabled {
    opacity: 0.5;
    filter: grayscale(100%);
    pointer-events: none;
    background-color: #f8f9fa !important;
}

/* Make SVG paths have white borders like imot.bg */
.svg-map-container svg path, .properties-bg-map-wrap svg path { stroke: #ffffff !important; stroke-width: 1px !important; }
