/* ==========================================================
   ISB – Immo Search Bar
   ========================================================== */

.isb-wrap {
    width: 100%;
}

/* ----------------------------------------------------------
   FORM
   ---------------------------------------------------------- */
.isb-form {
    display: flex;
    align-items: center;
    /*background: #fff;
    border-radius: 999px;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.10);
    padding: 0 10px 0 20px;*/
	padding: 20px 10px 0 20px;
    gap: 0;
    min-height: 80px;
    position: relative;
	width: max-content;
	margin: 0 auto;
}

@media only screen and (min-width: 1140px) {
	.isb-form {
		min-width: 1000px;
	}
}

/* ----------------------------------------------------------
   FELDER-CONTAINER
   ---------------------------------------------------------- */
.isb-fields {
    display: flex;
    align-items: stretch;
    flex: 1;
    min-width: 0;
}

/* ----------------------------------------------------------
   EINZELNES FELD
   ---------------------------------------------------------- */
.isb-field {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
	justify-content: center;
    cursor: pointer;
    outline: none;
}

/* Trennlinie zwischen Feldern 
.isb-field + .isb-field::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e8e8e8;
    pointer-events: none;
}*/

/* Hover-Hintergrund */
.isb-field:hover .isb-field__trigger,
.isb-field:focus .isb-field__trigger {
    background: #f5f5f5;
    border-radius: 80px;
}

/* Fokus-Ring (keyboard) */
.isb-field:focus-visible .isb-field__trigger {
    outline: 2px solid #1a1a1a;
    outline-offset: -2px;
    border-radius: 80px;
}

/* ----------------------------------------------------------
   TRIGGER (Label + Chevron)
   ---------------------------------------------------------- */
.isb-field__trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 20px;
    width: auto;
    user-select: none;
    transition: background 0.15s ease;
    border-radius: 80px;
}

.isb-field__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
}

/* Summary-Text (aktiver Filterwert) */
.isb-field__summary {
    font-size: 0.8rem;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.isb-field__chevron {
    margin-left: auto;
    flex-shrink: 0;
    color: #2c2c2c;
    transition: transform 0.2s ease;
}

/* Chevron dreht sich wenn offen */
.isb-field--open .isb-field__chevron {
    transform: rotate(180deg);
}

/* ----------------------------------------------------------
   PANEL (Dropdown-Inhalt)
   ---------------------------------------------------------- */
.isb-field__panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 16px;
    z-index: 1000;
    animation: isb-panel-in 0.15s ease;
}

.isb-field--open .isb-field__panel {
    display: block;
}

@keyframes isb-panel-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------------------------
   RADIO-OPTIONEN (Kategorie)
   ---------------------------------------------------------- */
.isb-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #222;
    transition: background 0.12s ease;
}

.isb-option:hover {
    background: #f5f5f5;
}

.isb-option input[type="radio"] {
    accent-color: #1a1a1a;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Fokus auf Label */
.isb-option:focus-within {
    outline: 2px solid #1a1a1a;
    outline-offset: -2px;
}

/* ----------------------------------------------------------
   RANGE (von – bis)
   ---------------------------------------------------------- */
.isb-range {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.isb-range__label {
    font-size: 0.75rem;
    color: #999;
    white-space: nowrap;
    flex-shrink: 0;
}

.isb-range__input {
    flex: 1;
    min-width: 0;
    height: 40px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 10px;
    font-size: 0.9rem;
    color: #222;
    background: #fafafa;
    transition: border-color 0.15s ease;

    /* Spinner entfernen */
    -moz-appearance: textfield;
}

.isb-range__input::-webkit-outer-spin-button,
.isb-range__input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.isb-range__input:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

.isb-range__sep {
    color: #ccc;
    flex-shrink: 0;
}

.isb-range__unit {
    font-size: 0.8rem;
    color: #999;
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   DATE INPUT
   ---------------------------------------------------------- */
.isb-date {
    width: 100%;
    height: 40px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 0.9rem;
    color: #222;
    background: #fafafa;
    transition: border-color 0.15s ease;
}

.isb-date:focus {
    outline: none;
    border-color: #1a1a1a;
    background: #fff;
}

/* ----------------------------------------------------------
   PREIS-HINT
   ---------------------------------------------------------- */
.isb-price-hint {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
    padding: 4px 0;
}

/* ----------------------------------------------------------
   SUBMIT BUTTON
   ---------------------------------------------------------- */
#home-search .isb-wrap .isb-form button[type=submit].isb-submit {
    flex-shrink: 0;
    width: 60px !important;
    height: 60px;
	padding: 0 !important;
    border-radius: 50%;
    background: #c8a96e; /* Goldton – anpassen */
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-left: 8px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.isb-submit:hover {
    background: #b8924f;
}

.isb-submit:active {
    transform: scale(0.95);
}

.isb-submit:focus-visible {
    outline: 2px solid #1a1a1a;
    outline-offset: 3px;
}

/* ----------------------------------------------------------
   RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 900px) {
    .isb-form {
        border-radius: 16px;
        flex-wrap: wrap;
        padding: 8px;
        gap: 4px;
        min-height: unset;
    }

    .isb-fields {
        flex-direction: column;
        width: 100%;
    }

    .isb-field + .isb-field::before {
        display: none;
    }

    .isb-field {
        border-radius: 10px;
    }

    .isb-field:hover .isb-field__trigger,
    .isb-field:focus .isb-field__trigger {
        border-radius: 10px;
    }

    .isb-field__panel {
        position: static;
        box-shadow: none;
        border-radius: 8px;
        background: #f9f9f9;
        margin-top: 4px;
        animation: none;
    }

    .isb-submit {
        width: 100%;
        border-radius: 10px;
        height: 48px;
        margin: 4px 0 0 0;
    }
}