.imcf-v2-search {
    --imcf-teal: #6a9595;
    --imcf-text: #2b2b2b;
    --imcf-muted: #9a9a9a;
    --imcf-border: #ececec;
    --imcf-value-height: 30px;
    position: relative;
    z-index: 100;
    max-width: 1200px;
    margin: 24px auto;
    padding: 6px;
    border: 1px solid var(--imcf-border);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .12);
    box-sizing: border-box;
}

.imcf-v2-sales-search { max-width: 1100px; }
.imcf-v2-search form { margin: 0; }

.imcf-v2-search-form {
    display: flex;
    align-items: stretch;
}

.imcf-v2-field {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 12px 18px;
}

.imcf-v2-field + .imcf-v2-field::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 1px;
    height: 38px;
    background: var(--imcf-border);
    content: "";
    transform: translateY(-50%);
}

.imcf-v2-field-query { flex: 1.4; }
.imcf-v2-field-zone,
.imcf-v2-field-type,
.imcf-v2-field-prefs { flex: 1.2; }
.imcf-v2-field-date,
.imcf-v2-field-budget { flex: 1; }
.imcf-v2-field-persons { flex: 0 0 auto; }

.imcf-v2-label {
    height: 12px;
    margin: 0 0 9px;
    color: var(--imcf-muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: .2px;
    text-align: left;
    white-space: nowrap;
}

.imcf-v2-value {
    display: flex;
    align-items: center;
    height: var(--imcf-value-height);
    min-height: var(--imcf-value-height);
}

.imcf-v2-search input[type="text"],
.imcf-v2-search input[type="number"] {
    width: 100%;
    height: var(--imcf-value-height);
    margin: 0;
    padding: 0;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--imcf-text);
    font-size: 16px;
    line-height: var(--imcf-value-height);
    box-sizing: border-box;
}

.imcf-v2-search input::placeholder { color: #b9b9b9; }
.imcf-v2-search input[type="number"] { -moz-appearance: textfield; }
.imcf-v2-search input[type="number"]::-webkit-inner-spin-button,
.imcf-v2-search input[type="number"]::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }

.imcf-v2-select,
.imcf-v2-preferences { position: relative; width: 100%; }

.imcf-v2-select-current,
.imcf-v2-preferences-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: var(--imcf-value-height);
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--imcf-text);
    font-size: 16px;
    font-weight: 400;
    line-height: var(--imcf-value-height);
    text-align: left;
    text-transform: none;
    cursor: pointer;
}

.imcf-v2-preferences-current svg { flex: 0 0 auto; transition: transform .2s; }
.imcf-v2-preferences.is-open .imcf-v2-preferences-current svg { transform: rotate(180deg); }

.imcf-v2-select-current svg { flex: 0 0 auto; transition: transform .2s; }
.imcf-v2-select.is-open .imcf-v2-select-current svg { transform: rotate(180deg); }

.imcf-v2-options,
.imcf-v2-preferences-options {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 12px);
    left: -12px;
    display: none;
    min-width: 230px;
    max-height: 290px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .14);
}

.imcf-v2-select.is-open .imcf-v2-options,
.imcf-v2-preferences.is-open .imcf-v2-preferences-options { display: block; }

.imcf-v2-option {
    display: block;
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 10px 14px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #444;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    text-transform: none;
    white-space: nowrap;
    cursor: pointer;
}

.imcf-v2-option:hover { background: #f3f6f6; }
.imcf-v2-option.is-active { background: var(--imcf-teal); color: #fff; }

.imcf-v2-preferences-options label {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 8px 12px;
    border-radius: 9px;
    color: #444;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.imcf-v2-preferences-options label:hover { background: #f3f6f6; }
.imcf-v2-search .imcf-v2-preferences-options input[type="checkbox"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    border: 0 !important;
    opacity: 0 !important;
    white-space: nowrap !important;
}
.imcf-v2-preferences-options label span {
    position: relative;
    width: 16px;
    height: 16px;
    margin-right: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}
.imcf-v2-preferences-options input:checked + span { border-color: var(--imcf-teal); background: var(--imcf-teal); }
.imcf-v2-preferences-options input:checked + span::after { position: absolute; top: -4px; left: 2px; color: #fff; content: "✓"; font-size: 13px; }

.imcf-v2-date { position: relative; }
.imcf-v2-date input { padding-right: 25px !important; }
.imcf-v2-calendar {
    position: absolute;
    right: 0;
    top: 50%;
    display: flex;
    color: #8a8a8a;
    pointer-events: none;
    transform: translateY(-50%);
}

.imcf-v2-counter { display: flex; align-items: center; gap: 12px; height: var(--imcf-value-height); }
.imcf-v2-counter button {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50% !important;
    background: #f0f0f0 !important;
    color: #6b6b6b;
    font-size: 18px;
    font-weight: 400 !important;
    line-height: 1;
}
.imcf-v2-counter button:hover { background: #e6e6e6 !important; color: var(--imcf-teal) !important; }
.imcf-v2-search .imcf-v2-counter > button[data-counter] { border-radius: 999px !important; }
.imcf-v2-counter input[type="number"] { width: 22px; max-width: 22px; padding: 0 !important; font-weight: 600; text-align: center; }

.imcf-v2-suffix { position: relative; }
.imcf-v2-suffix input { padding-right: 18px !important; }
.imcf-v2-suffix span { position: absolute; right: 0; color: var(--imcf-muted); }

.imcf-v2-search .imcf-v2-submit {
    display: flex;
    flex: 0 0 56px;
    align-self: center;
    align-items: center;
    justify-content: center;
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    min-height: 56px !important;
    margin: 0 6px 0 10px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: var(--imcf-teal) !important;
    color: #fff;
    cursor: pointer;
}
.imcf-v2-search .imcf-v2-submit:hover { background: #5c8585 !important; }
.imcf-v2-submit-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
    height: 100%;
    line-height: 0 !important;
}
.imcf-v2-search .imcf-v2-submit svg {
    position: static !important;
    display: block !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}
.imcf-v2-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: imcf-v2-spin .8s linear infinite;
}
@keyframes imcf-v2-spin { to { transform: rotate(360deg); } }

.imcf-v2-results { position: relative; z-index: 1; }
.imcf-v2-results-tools { display: flex; justify-content: flex-end; margin: 0 0 10px; }
.imcf-v2-results-count { margin: 10px 0 20px; padding-top: 10px; border-top: 1px solid #e6e6e6; }
.imcf-v2-results-count strong { color: #2b2b2b; font-weight: 700; }
.imcf-v2-no-results { padding: 30px 15px; text-align: center; }

.imcf-v2-budget { position: relative; }
.imcf-v2-budget-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 0;
    margin: 0;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #666;
    font-family: nunito, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    text-transform: none;
}
.imcf-v2-budget-toggle > span { color: #555; font-weight: 600; }
.imcf-v2-budget-toggle strong { color: #6a9595; font-size: 15px; font-weight: 600; }
.imcf-v2-budget-toggle > svg:last-child { color: #999; transition: transform .2s; }
.imcf-v2-budget.is-open .imcf-v2-budget-toggle > svg:last-child { transform: rotate(180deg); }
.imcf-v2-budget-tag,
.imcf-v2-budget-sliders { color: #6a9595; }
.imcf-v2-budget-panel {
    position: absolute;
    z-index: 200;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    width: 480px;
    max-width: 92vw;
    padding: 24px 26px;
    border: 1px solid #eee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 22px 55px rgba(0, 0, 0, .16);
    box-sizing: border-box;
}
.imcf-v2-budget.is-open .imcf-v2-budget-panel { display: block; }
.imcf-v2-budget-panel > p { margin: 0 0 20px; font-family: nunito, sans-serif; line-height: 1.35; }
.imcf-v2-budget-panel > p strong { color: #2b2b2b; font-family: nunito, sans-serif !important; font-size: 17px; font-weight: 700; }
.imcf-v2-budget-panel small { color: #999; font-size: 13px; font-weight: 400; }
.imcf-v2-budget-values { display: flex; gap: 12px; }
.imcf-v2-budget-values label { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid #e4e4e4; border-radius: 10px; color: #999; font-family: nunito, sans-serif; font-size: 12px; font-weight: 400; }
.imcf-v2-budget-input { display: flex; flex: 1; align-items: center; min-width: 0; }
.imcf-v2-budget-values input[type="number"] { width: 100% !important; min-width: 0; height: 24px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #333 !important; font-family: nunito, sans-serif; font-size: 15px !important; font-weight: 600 !important; line-height: 24px !important; }
.imcf-v2-budget-input b { flex: 0 0 auto; color: #777; font-size: 15px; font-weight: 600; }
.imcf-v2-ranges { position: relative; height: 24px; margin: 22px 0 18px; }
.imcf-v2-ranges::before { position: absolute; top: 10px; right: 3px; left: 3px; height: 4px; border-radius: 2px; background: #6a9595; content: ""; }
.imcf-v2-ranges input[type="range"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}
.imcf-v2-ranges input[type="range"]::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.imcf-v2-ranges input[type="range"]::-moz-range-track { height: 4px; background: transparent; }
.imcf-v2-ranges input[type="range"]::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
    margin-top: -7px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #6a9595;
    box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
    pointer-events: auto;
    cursor: pointer;
    -webkit-appearance: none;
}
.imcf-v2-ranges input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border: 2px solid #fff; border-radius: 50%; background: #6a9595; box-shadow: 0 1px 5px rgba(0, 0, 0, .3); pointer-events: auto; cursor: pointer; }
.imcf-v2-budget-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; color: #777; font-family: nunito, sans-serif; font-size: 13px; }
.imcf-v2-budget-footer > span { white-space: nowrap; }
.imcf-v2-budget-footer > span strong { color: #2b2b2b !important; font-size: 14px; font-weight: 700; }
.imcf-v2-budget-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.imcf-v2-budget-actions button { min-height: 0; margin: 0 !important; padding: 10px 20px; border: 0; border-radius: 9px; background: #6a9595; color: #fff; font-family: nunito, sans-serif; font-size: 14px; font-weight: 600; line-height: 1.3; text-transform: none; }
.imcf-v2-budget-actions button[data-budget-reset] { padding: 0; background: transparent; color: #6a9595; }

.imcf-v2-pagination { width: 100%; margin: 40px auto; clear: both; text-align: center; }
.imcf-v2-pagination ul.page-numbers { display: inline-flex !important; flex-wrap: wrap !important; justify-content: center !important; gap: 8px !important; width: auto !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.imcf-v2-pagination ul.page-numbers > li { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.imcf-v2-pagination li::before,
.imcf-v2-pagination li::after { display: none; content: none; }
.imcf-v2-pagination a,
.imcf-v2-pagination span {
    display: inline-block;
    min-width: 40px;
    margin: 0 !important;
    padding: 10px 14px;
    border: 1px solid #eaeaea;
    border-radius: 4px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    line-height: 1 !important;
    text-decoration: none;
    box-sizing: border-box;
}
.imcf-v2-pagination .current { border-color: #699191; background: #699191; color: #fff; }
.imcf-v2-pagination a:hover { border-color: #699191; background: #f5f7f7; color: #699191; }

@media (max-width: 850px) {
    .imcf-v2-search { padding: 10px; border-radius: 18px; }
    .imcf-v2-search-form { flex-wrap: wrap; }
    .imcf-v2-field { flex: 1 1 50%; width: 50%; padding: 12px 14px; border-top: 1px solid var(--imcf-border); }
    .imcf-v2-field + .imcf-v2-field::before { display: none; }
    .imcf-v2-field:nth-child(1),
    .imcf-v2-field:nth-child(2) { border-top: 0; }
    .imcf-v2-field-persons { flex: 1 1 50%; }
    .imcf-v2-search .imcf-v2-submit { flex-basis: 100%; width: 100% !important; height: 50px !important; margin: 10px 0 0 !important; border-radius: 14px !important; }
    .imcf-v2-options,
    .imcf-v2-preferences-options { left: 0; max-width: 100%; min-width: 100%; box-sizing: border-box; }
}

@media (max-width: 560px) {
    .imcf-v2-budget-panel { right: 0; width: calc(100vw - 30px); max-width: 350px; }
    .imcf-v2-budget-toggle { align-items: flex-start; flex-wrap: wrap; justify-content: flex-end; }
    .imcf-v2-pagination { margin: 25px auto; padding: 0 15px; box-sizing: border-box; }
    .imcf-v2-pagination a,
    .imcf-v2-pagination span { min-width: 35px; padding: 8px 12px; font-size: 13px; text-align: center; }
    .imcf-v2-budget-footer { align-items: flex-start; flex-direction: column; }
    .imcf-v2-budget-actions { width: 100%; justify-content: space-between; }
}
