/* STELLA V2 – PROPERTY COMPONENTS
   Plugin functionality remains in the V3 plugins.
*/

.stella-property-layout {
    align-items: start;
}

.stella-property-layout .stella-sidebar {
    min-width: 0;
}

.stella-reference-search {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.stella-reference-search h2 {
    color: var(--stella-primary-dark);
    font-size: 19px;
    margin: 0 0 8px;
}

.stella-reference-search input {
    width: 100%;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--stella-border);
    border-radius: 5px;
}

.stella-reference-search button {
    background: var(--stella-primary);
    color: white;
    border: 0;
    border-radius: 5px;
    padding: 11px 16px;
    cursor: pointer;
}

.stella-reference-search button:hover {
    background: var(--stella-primary-dark);
}

/* V3 search cards */

.sv3-search {
    width: 100%;
    min-width: 0;
}

.sv3-search img {
    max-width: 100%;
    height: auto;
}

.sv3-search button,
.sv3-search select {
    font: inherit;
}

.sv3-search .sv3-fav-tab {
    color: var(--stella-primary-dark);
}

/* =========================================
   STELLA V2 – IMMOBILIENSUCHE
   ========================================= */

.sv3-search {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FILTER */

.sv3-filter {
    display: grid !important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 20px !important;
    padding: 18px !important;
    margin: 0 !important;
    background: #fff;
    border: 1px solid var(--stella-border);
    border-radius: 10px;
    box-shadow: var(--stella-shadow);
}

.sv3-range {
    min-width: 0;
    display: grid !important;
    grid-template-columns: minmax(95px,.85fr) minmax(0,1fr) auto minmax(0,1fr);
    gap: 6px !important;
    align-items: center;
    margin-bottom: 7px;
}

.sv3-range label {
    grid-column: 1;
    font-size: 14px;
    margin: 0;
    color: var(--stella-primary-dark);
    font-weight: 700;
}

.sv3-range select,
.sv3-filter input,
.sv3-places select {
    min-width: 0;
    width: 100%;
    min-height: 34px;
    padding: 5px 8px;
    border: 1px solid var(--stella-border);
    border-radius: 5px;
    background: #fff;
    color: var(--stella-text);
}

.sv3-to {
    display: inline;
    font-size: 12px;
    color: var(--stella-muted);
}

.sv3-places {
    min-width: 0;
}

.sv3-places label {
    color: var(--stella-primary-dark);
    font-weight: 700;
}

.sv3-quick {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.sv3-quick button {
    background: #edf6fc;
    color: var(--stella-primary-dark);
    border: 1px solid #d5e9f6;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
}

.sv3-quick button:hover {
    background: var(--stella-primary);
    color: #fff;
}

.sv3-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.sv3-actions a,
.sv3-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 0;
    border-radius: 5px;
    background: var(--stella-primary);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

.sv3-actions a:hover,
.sv3-actions button:hover {
    background: var(--stella-primary-dark);
    color: #fff;
}

/* ERGEBNISLEISTE */

.sv3-toolbar {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 4px 0;
    margin: 0 !important;
}

.sv3-toolbar .pagination {
    flex: 1;
    min-width: 150px;
}

.sv3-toolbar .sv3-count {
    color: var(--stella-primary-dark);
    font-weight: 700;
    margin: 0;
}

.sv3-toolbar select {
    min-height: 38px;
    padding: 6px 10px;
    border: 1px solid var(--stella-border);
    border-radius: 5px;
    background: #fff;
}

.sv3-toolbar > a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    border-radius: 5px;
    background: #edf6fc;
    color: var(--stella-primary-dark);
}

/* IMMOBILIENKARTEN */

.sv3-search .suche-objekt-liste {
    display: grid;
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
    gap: 16px;
    list-style: none;
    margin: 0 0 20px;
    padding: 20px;
    background: #fff;
    border: 1px solid var(--stella-border);
    border-radius: 10px;
    box-shadow: var(--stella-shadow);
}

.sv3-search .suche-objekt-liste > li {
    display: contents;
}

.sv3-search .suche-objekt-liste > li > a:first-child {
    grid-column: 1 / -1;
    color: var(--stella-primary-dark);
    text-decoration: none;
}

.sv3-search .suche-objekt-liste h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.4;
    color: var(--stella-primary-dark);
}

.sv3-search .suche-objekt-links {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
}

.sv3-search .suche-objekt-links > a {
    display: contents;
}

.sv3-search .suche-objekt-links > a > div {
    min-width: 0;
    overflow: hidden;
    border-radius: 7px;
}

.sv3-search .suche-objekt-links img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.sv3-search .suche-objekt-rechts {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.sv3-search .suche-objekt-spans {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

.sv3-search .suche-objekt-price {
    display: block;
    width: 100%;
    color: var(--stella-primary-dark);
    font-size: 23px;
    font-weight: 700;
}

.sv3-search .suche-objekt-status {
    display: inline-block;
    background: var(--stella-primary);
    color: #fff;
    padding: 4px 9px;
    border-radius: 4px;
}

.sv3-search .suche-objekt-description {
    line-height: 1.65 !important;
    color: var(--stella-text);
}

.sv3-search .suche-objekt-ref {
    color: var(--stella-muted);
    font-size: 13px;
}

.sv3-search .suche-objekt-button-center {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: auto;
}

.sv3-search .suche-objekt-button {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 5px;
    background: var(--stella-primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.sv3-search .suche-objekt-button:hover {
    background: var(--stella-primary-dark);
    color: #fff;
}

.sv3-search .sv3-favorite {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--stella-border);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.sv3-search .sv3-favorite img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* PAGINATION */

.sv3-search .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.sv3-search .pagination a,
.sv3-search .pagination span {
    display: inline-block;
    padding: 8px 12px !important;
    border-radius: 5px;
    background: #fff;
    color: var(--stella-primary-dark);
    text-decoration: none;
}

.sv3-search .pagination .current,
.sv3-search .pagination a:hover {
    background: var(--stella-primary);
    color: #fff;
}

/* TABLET UND MOBILE */

@media(max-width:850px) {
    .sv3-search .suche-objekt-liste {
        grid-template-columns: 1fr;
    }

    .sv3-search .suche-objekt-links img {
        height: 180px;
    }
}

@media(max-width:700px) {
    .sv3-filter {
        grid-template-columns: 1fr !important;
        padding: 16px !important;
    }

    .sv3-toolbar {
        align-items: stretch;
    }

    .sv3-toolbar .pagination {
        flex-basis: 100%;
    }

    .sv3-search .suche-objekt-liste {
        padding: 14px;
        gap: 14px;
    }

    .sv3-search .suche-objekt-links img {
        height: 145px;
    }
}

/* STELLA V2 – KAUFEN UND MIETEN */

.stella-property-layout .stella-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stella-reference-search {
    background: #fff;
    border: 1px solid var(--stella-border);
    border-radius: 9px;
    padding: 18px;
    box-shadow: var(--stella-shadow);
}

.stella-reference-search h2 {
    color: var(--stella-primary-dark);
    font-size: 19px;
    margin: 0 0 14px;
}

.stella-reference-search form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.stella-reference-search label {
    font-size: 14px;
    font-weight: 600;
}

.stella-reference-search input {
    width: 100%;
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--stella-border);
    border-radius: 5px;
}

.stella-reference-search button {
    background: var(--stella-primary);
    color: #fff;
    border: 0;
    border-radius: 5px;
    padding: 11px 15px;
    font-weight: 700;
    cursor: pointer;
}

.stella-reference-search button:hover {
    background: var(--stella-primary-dark);
}

.stella-property-layout .stella-sidebar-menu {
    margin-top: 0;
}

.stella-property-layout .stella-content-panel {
    min-width: 0;
}


/* STELLA V2 – KOMPAKTE SUCHOBERFLÄCHE */

.stella-property-layout > .stella-sidebar {
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.stella-property-layout .stella-content-panel {
    padding: 22px;
}

.stella-property-layout .stella-content-header h1 {
    font-size: 28px;
    margin: 0 0 20px;
}

.sv3-filter .sv3-ranges {
    min-width: 0;
}

.sv3-filter .sv3-range > select:only-of-type {
    grid-column: 2 / -1;
}

.sv3-filter .sv3-places select[multiple] {
    height: 132px !important;
    min-height: 132px;
    padding: 5px;
}

.sv3-filter .sv3-quick {
    gap: 5px;
    margin-top: 8px;
}

.sv3-filter .sv3-quick button {
    padding: 6px 9px;
    font-size: 13px;
}

.sv3-filter .sv3-actions {
    margin-top: 10px;
}

.sv3-filter .sv3-actions a {
    background: #edf4f8;
    color: var(--stella-primary-dark);
    border: 1px solid var(--stella-border);
    text-decoration: none;
}

.sv3-filter .sv3-actions a:hover {
    background: #dceaf4;
}

.sv3-filter .sv3-actions button {
    flex: 1;
}

.sv3-filter .sv3-actions a,
.sv3-filter .sv3-actions button {
    min-height: 36px;
    padding: 7px 12px;
}

@media (max-width: 1200px) {
    .sv3-filter .sv3-range {
        grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    }

    .sv3-filter .sv3-range label {
        grid-column: 1 / -1;
    }

    .sv3-filter .sv3-range > select:only-of-type {
        grid-column: 1 / -1;
    }
}

@media (max-width: 700px) {
    .stella-property-layout .stella-content-panel {
        padding: 12px;
    }

    .sv3-filter .sv3-places select[multiple] {
        height: 155px !important;
    }
}



