.immo-search-form {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid #e9ecef;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.immo-search-form h3 {
    margin: 0 0 25px 0;
    color: #002F5D;
    font-size: 1.5em;
    font-weight: 700;
    text-align: center;
    border-bottom: 3px solid #FFB800;
    padding-bottom: 15px;
}

.immo-overform {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.search-field {
    display: flex;
    flex-direction: column;
}

.search-field label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #002F5D;
    font-size: 14px;
    display: block;
}

.search-field input {
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.4;
    height: auto;
    min-height: 48px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fff;
    color: #333;
    font-weight: 500;
}

.search-field input:focus,
.search-field select:focus {
    outline: none;
    border-color: #FFB800;
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
    transform: translateY(-1px);
}

/* Dropdown-Fixes - ÜBERSCHREIBT alle anderen Regeln */
.search-field select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 16px !important;
    padding: 14px 40px 14px 18px !important;
    cursor: pointer !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    line-height: 1.4 !important;
    height: 48px !important;
    min-height: 48px !important;
    background-color: #fff !important;
    color: #333 !important;
    font-weight: 500 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: nowrap !important;
    vertical-align: middle !important;
    text-align: left !important;
}

.search-field select option {
    padding: 12px 18px;
    line-height: 1.4;
    font-size: 15px;
    height: auto;
    min-height: 24px;
    white-space: normal;
    word-wrap: break-word;
    background: #fff;
    color: #333;
    font-weight: 500;
}

/* Focus-Effekt für Dropdowns */
.search-field select:focus {
    outline: none;
    border-color: #FFB800;
    box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.15);
    transform: translateY(-1px);
}

/* Dropdown-Text Sicherheit */
.search-field select option {
    padding: 8px 12px !important;
    line-height: 1.4 !important;
    font-size: 15px !important;
    height: auto !important;
    min-height: 24px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    background: #fff !important;
    color: #333 !important;
    font-weight: 500 !important;
}


.search-buttons {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.search-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, #FFB800 0%, #e6a600 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 184, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-btn:hover {
    background: linear-gradient(135deg, #e6a600 0%, #d49400 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 184, 0, 0.4);
}

.reset-btn {
    padding: 16px 32px;
    background: #6c757d;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #6c757d;
}

.reset-btn:hover {
    background: #5a6268;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}
  
/* Immobilien-Grid wie im Screenshot */
.immo-listing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Immobilien-Karten wie im Screenshot */
.property-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
    position: relative;
}

.property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

/* Bild-Container wie im Screenshot */
.property-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image {
    transform: scale(1.02);
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 16px;
    font-weight: 500;
}

/* Icons wie im Screenshot */
.property-icons {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 8px;
}

.icon-360 {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
}

.icon-heart {
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

/* Badge für Immobilientyp */
.property-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Content-Bereich wie im Screenshot */
.property-content {
    padding: 15px;
}

/* Standort und Typ */
.property-location-type {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.property-location-type .location {
    color: #6c757d;
    font-weight: 500;
}

.property-location-type .type {
    color: #6c757d;
    font-weight: 500;
}

/* Titel */
.property-title {
    margin: 0 0 8px 0;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.3;
}

.property-title a {
    color: #002F5D;
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: #FFB800;
}

/* Objekt-ID */
.property-id {
    color: #6c757d;
    font-size: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Specs in einer Zeile */
.property-specs {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 14px;
}

.spec-item {
    color: #495057;
    font-weight: 500;
}

/* Preis-Bereich wie im Screenshot */
.property-price {
    margin-top: 10px;
}

.price-main {
    display: block;
    font-size: 1.4em;
    font-weight: bold;
    color: #002F5D;
    margin-bottom: 5px;
}

.price-per-sqm {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

/* Details */
.property-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    color: #495057;
}

.detail-icon {
    font-size: 16px;
}

.detail-text {
    font-weight: 500;
}

/* Beschreibung */
.property-description {
    margin-bottom: 20px;
}

.property-description p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
    line-height: 1.5;
}

/* Action-Buttons */
.property-actions {
    display: flex;
    gap: 10px;
}

.btn-details {
    flex: 1;
    background: #002F5D;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-details:hover {
    background: #001a3a;
    color: #fff;
    text-decoration: none;
}

.btn-contact {
    background: #28a745;
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease;
}

.btn-contact:hover {
    background: #218838;
}
  
  .immo-pagination {
    margin-top: 30px;
    text-align: center;
  }
  .immo-pagination .page-numbers {
    display: inline-block;
    margin: 0 5px;
    padding: 6px 12px;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
  }
  .immo-pagination .page-numbers.current {
    background: #FFB800;
    color: #fff;
    border-color: #FFB800;
  }

/* Responsive Design */
@media (max-width: 1024px) {
    .immo-listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .immo-listing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .immo-overform {
        grid-template-columns: 1fr;
    }
    
    .search-buttons {
        flex-direction: column;
    }
    
    .property-location-type {
        flex-direction: column;
        gap: 5px;
    }
    
    .property-specs {
        flex-direction: column;
        gap: 5px;
    }
}

/* JavaScript für Kontakt-Funktion */
.contact-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.contact-modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close-modal {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #000;
}

/* Keine Ergebnisse */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.no-results-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #002F5D;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.no-results p {
    color: #6c757d;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
}

.no-results a {
    color: #FFB800;
    text-decoration: none;
    font-weight: 600;
}

.no-results a:hover {
    text-decoration: underline;
}
  