/**
 * WP-X-Connect - Frontend CSS
 * Builder-unabhängiges Styling für alle Shortcodes
 */

/* ============================================
   CSS VARIABLEN (anpassbar)
   ============================================ */
:root {
    --propstack-primary: #3b82f6;
    --propstack-primary-hover: #2563eb;
    --propstack-secondary: #23282d;
    --propstack-success: #16a34a;
    --propstack-danger: #dc3232;
    --propstack-warning: #ffb900;
    --propstack-light: #f1f1f1;
    --propstack-dark: #1d2327;
    --propstack-border: #dcdcdc;
    --propstack-text: #333333;
    --propstack-text-light: #666666;
    --propstack-radius: 8px;
    --propstack-shadow: 0 2px 8px rgba(0,0,0,0.1);
    --propstack-shadow-hover: 0 4px 16px rgba(0,0,0,0.15);
    --propstack-transition: all 0.3s ease;
}

/* ============================================
   GRID LAYOUTS
   ============================================ */
.propstack-grid {
    display: grid;
    gap: 24px;
}

.propstack-columns-1 { grid-template-columns: 1fr; }
.propstack-columns-2 { grid-template-columns: repeat(2, 1fr); }
.propstack-columns-3 { grid-template-columns: repeat(3, 1fr); }
.propstack-columns-4 { grid-template-columns: repeat(4, 1fr); }
.propstack-columns-5 { grid-template-columns: repeat(5, 1fr); }
.propstack-columns-6 { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1024px) {
    .propstack-columns-4,
    .propstack-columns-5,
    .propstack-columns-6 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .propstack-columns-3,
    .propstack-columns-4,
    .propstack-columns-5,
    .propstack-columns-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .propstack-grid { grid-template-columns: 1fr !important; }
}

/* ============================================
   PROPERTY CARDS
   ============================================ */
.propstack-property-card {
    background: #fff;
    border-radius: var(--propstack-radius);
    box-shadow: var(--propstack-shadow);
    overflow: hidden;
    transition: var(--propstack-transition);
}

.propstack-property-card:hover {
    box-shadow: var(--propstack-shadow-hover);
    transform: translateY(-4px);
}

.propstack-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.propstack-card-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--propstack-light);
}

.propstack-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.propstack-property-card:hover .propstack-card-image img {
    transform: scale(1.05);
}

.propstack-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: var(--propstack-light);
    color: var(--propstack-text-light);
}

.propstack-no-image .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
}

.propstack-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Kaufen = Grün */
.propstack-badge.propstack-badge-buy,
.propstack-badge-buy {
    background: #16a34a !important;
    background-color: #16a34a !important;
    color: #fff !important;
}

/* Mieten = Blau */
.propstack-badge.propstack-badge-rent,
.propstack-badge-rent {
    background: #3b82f6 !important;
    background-color: #3b82f6 !important;
    color: #fff !important;
}

.propstack-badge-unavailable {
    background: var(--propstack-warning);
    color: #333;
}

/* Nicht verfügbare Objekte */
.propstack-property-unavailable {
    position: relative;
}

.propstack-property-unavailable .propstack-card-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 2;
}

.propstack-property-unavailable .propstack-card-image img {
    filter: grayscale(50%);
}

.propstack-card-price {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
}

.propstack-card-content {
    padding: 16px;
}

.propstack-card-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--propstack-dark);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.propstack-card-address {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--propstack-text-light);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    min-height: 42px; /* 2 Zeilen Höhe sicherstellen */
    line-height: 1.5;
}

.propstack-card-address svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--propstack-primary);
}

/* Adresstext auf 2 Zeilen beschränken */
.propstack-card-address span,
.propstack-card-address {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.propstack-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--propstack-border);
}

.propstack-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--propstack-text-light);
}

.propstack-detail svg {
    flex-shrink: 0;
    color: var(--propstack-primary);
}

/* ============================================
   LIST LAYOUT
   ============================================ */
.propstack-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.propstack-list-item {
    background: #fff;
    border-radius: var(--propstack-radius);
    box-shadow: var(--propstack-shadow);
    transition: var(--propstack-transition);
}

.propstack-list-item:hover {
    box-shadow: var(--propstack-shadow-hover);
}

.propstack-list-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 16px;
    gap: 20px;
}

.propstack-list-image {
    width: 200px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
}

.propstack-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.propstack-list-content {
    flex: 1;
}

.propstack-list-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 600;
}

.propstack-list-address {
    margin: 0 0 8px;
    color: var(--propstack-text-light);
}

.propstack-list-details {
    display: flex;
    gap: 16px;
    font-size: 14px;
    color: var(--propstack-text-light);
}

.propstack-list-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--propstack-primary);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .propstack-list-link {
        flex-direction: column;
        align-items: stretch;
    }
    
    .propstack-list-image {
        width: 100%;
        height: 200px;
    }
}

/* ============================================
   SLIDER
   ============================================ */
.propstack-slider-wrapper {
    position: relative;
    padding: 0 40px;
}

.propstack-slider-wrapper .swiper-button-prev,
.propstack-slider-wrapper .swiper-button-next {
    color: var(--propstack-primary);
    background: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: var(--propstack-shadow);
}

.propstack-slider-wrapper .swiper-button-prev:after,
.propstack-slider-wrapper .swiper-button-next:after {
    font-size: 16px;
}

.propstack-slider-wrapper .swiper-pagination-bullet-active {
    background: var(--propstack-primary);
}

/* ============================================
   GALERIE
   ============================================ */
.propstack-gallery-wrapper {
    width: 100%;
}

.propstack-gallery-main {
    margin-bottom: 12px;
    border-radius: var(--propstack-radius);
    overflow: hidden;
}

.propstack-gallery-main img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.propstack-gallery-thumbs {
    height: 80px;
}

.propstack-gallery-thumbs .swiper-slide {
    opacity: 0.5;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
}

.propstack-gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
}

.propstack-gallery-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   MAKLER-KARTE
   ============================================ */
.propstack-broker-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #fff;
    border-radius: var(--propstack-radius);
    box-shadow: var(--propstack-shadow);
}

.propstack-broker-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.propstack-broker-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.propstack-broker-name {
    margin: 0 0 4px;
    font-size: 18px;
    font-weight: 600;
}

.propstack-broker-position {
    margin: 0 0 12px;
    color: var(--propstack-text-light);
    font-size: 14px;
}

.propstack-broker-contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.propstack-broker-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--propstack-primary);
    text-decoration: none;
    font-size: 14px;
}

.propstack-broker-contact a:hover {
    color: var(--propstack-primary-hover);
}

/* ============================================
   FORMULARE
   ============================================ */
.propstack-form-group {
    margin-bottom: 16px;
}

.propstack-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--propstack-text);
}

.propstack-form-group input[type="text"],
.propstack-form-group input[type="email"],
.propstack-form-group input[type="tel"],
.propstack-form-group input[type="number"],
.propstack-form-group input[type="password"],
.propstack-form-group select,
.propstack-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--propstack-border);
    border-radius: 6px;
    font-size: 15px;
    transition: var(--propstack-transition);
}

.propstack-form-group input:focus,
.propstack-form-group select:focus,
.propstack-form-group textarea:focus {
    outline: none;
    border-color: var(--propstack-primary);
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.propstack-form-group small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--propstack-text-light);
}

.propstack-form-row {
    margin-bottom: 16px;
}

.propstack-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .propstack-form-row-2 {
        grid-template-columns: 1fr;
    }
}

.propstack-form-privacy label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    font-weight: normal !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #64748b !important;
    cursor: pointer !important;
    flex-direction: row !important;
}

.propstack-form-privacy input[type="checkbox"] {
    flex-shrink: 0 !important;
    margin-top: 3px !important;
    width: 16px !important;
    height: 16px !important;
}

.propstack-form-privacy .propstack-privacy-text {
    flex: 1 !important;
    display: block !important;
}

.propstack-form-privacy a {
    color: var(--propstack-primary) !important;
    text-decoration: underline !important;
    display: inline-block !important;
    margin-top: 4px !important;
}

.propstack-form-privacy a:hover {
    text-decoration: none !important;
}

/* ============================================
   BUTTONS
   ============================================ */
.propstack-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--propstack-transition);
}

.propstack-btn-primary {
    background: var(--propstack-primary);
    color: #fff;
}

.propstack-btn-primary:hover {
    background: var(--propstack-primary-hover);
    color: #fff;
}

.propstack-btn-secondary {
    background: var(--propstack-light);
    color: var(--propstack-text);
}

.propstack-btn-secondary:hover {
    background: #e5e5e5;
}

.propstack-btn-danger {
    background: var(--propstack-danger);
    color: #fff;
}

.propstack-btn-danger:hover {
    background: #c02828;
}

.propstack-btn-small {
    padding: 6px 12px;
    font-size: 13px;
}

.propstack-form-submit {
    margin-top: 20px;
}

.propstack-form-submit .propstack-btn {
    width: 100%;
}

/* ============================================
   MESSAGES / ALERTS
   ============================================ */
.propstack-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    display: none;
}

.propstack-form-message.show {
    display: block;
}

.propstack-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.propstack-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.propstack-error {
    background: #f8d7da;
    color: #721c24;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
}

.propstack-no-results {
    text-align: center;
    padding: 40px 20px;
    color: var(--propstack-text-light);
}

/* ============================================
   AUTH / DASHBOARD
   ============================================ */
.propstack-auth-form {
    max-width: 480px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border-radius: var(--propstack-radius);
    box-shadow: var(--propstack-shadow);
}

.propstack-logged-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: var(--propstack-light);
    border-radius: var(--propstack-radius);
}

.propstack-dashboard {
    background: #fff;
    border-radius: var(--propstack-radius);
    box-shadow: var(--propstack-shadow);
    overflow: hidden;
}

.propstack-dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--propstack-primary);
    color: #fff;
}

.propstack-dashboard-header h2 {
    margin: 0;
    font-size: 20px;
}

.propstack-dashboard-header a {
    color: rgba(255,255,255,0.8);
}

.propstack-dashboard-header a:hover {
    color: #fff;
}

.propstack-dashboard-content {
    padding: 24px;
}

.propstack-dashboard-content h3 {
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--propstack-border);
}

.propstack-dashboard-content h3:first-child {
    margin-top: 0;
}

/* ============================================
   SUCHPROFILE
   ============================================ */
.propstack-search-profiles-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.propstack-profile-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--propstack-light);
    border-radius: 6px;
}

.propstack-profile-info strong {
    display: block;
    margin-bottom: 4px;
}

.propstack-profile-actions {
    display: flex;
    gap: 8px;
}

/* ============================================
   SUCHFORMULAR
   ============================================ */
.propstack-search-form-wrapper {
    background: #fff;
    padding: 24px;
    border-radius: var(--propstack-radius);
    box-shadow: var(--propstack-shadow);
}

.propstack-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.propstack-search-group {
    flex: 1;
    min-width: 150px;
}

.propstack-search-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
}

.propstack-search-group input,
.propstack-search-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--propstack-border);
    border-radius: 6px;
}

.propstack-search-range .propstack-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.propstack-search-range input {
    flex: 1;
}

.propstack-search-submit {
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .propstack-search-form {
        flex-direction: column;
    }
    
    .propstack-search-group {
        width: 100%;
    }
}

/* ============================================
   FIELD SHORTCODES
   ============================================ */
.propstack-field {
    display: inline;
}

.propstack-field-label {
    color: var(--propstack-text-light);
    margin-right: 4px;
}

.propstack-field-suffix {
    margin-left: 2px;
}

/* ============================================
   DOKUMENTE & GRUNDRISSE
   ============================================ */
.propstack-documents,
.propstack-floorplans {
    margin: 16px 0;
}

.propstack-documents-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.propstack-documents-list li,
.propstack-floorplan-item {
    margin-bottom: 8px;
}

.propstack-documents-list a,
.propstack-floorplan-item a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--propstack-primary);
    text-decoration: none;
    padding: 8px 12px;
    background: var(--propstack-light);
    border-radius: 4px;
    transition: var(--propstack-transition);
}

.propstack-documents-list a:hover,
.propstack-floorplan-item a:hover {
    background: #e5e5e5;
}

/* ============================================
   LOADING STATE
   ============================================ */
.propstack-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.propstack-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid var(--propstack-light);
    border-top-color: var(--propstack-primary);
    border-radius: 50%;
    animation: propstack-spin 0.8s linear infinite;
}

@keyframes propstack-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   INQUIRY FORM
   ============================================ */
.propstack-inquiry-form-wrapper {
    background: #fff;
    padding: 24px;
    border-radius: var(--propstack-radius);
    box-shadow: var(--propstack-shadow);
}

.propstack-inquiry-form-wrapper h3 {
    margin: 0 0 20px;
    font-size: 20px;
}

/* ============================================
   SEARCH PROFILE - MODERN ICONS
   ============================================ */
.propstack-sp-welcome-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.propstack-sp-welcome-icon svg {
    flex-shrink: 0;
}

.propstack-sp-profile-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 8px;
    font-size: 13px;
    color: #6b7280;
}

.propstack-sp-profile-details span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.propstack-sp-profile-details svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.propstack-sp-profile-delete {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #9ca3af;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.propstack-sp-profile-delete:hover {
    color: #ef4444;
}

.propstack-sp-new-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: #f9fafb;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    color: #374151;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.propstack-sp-new-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.propstack-sp-new-btn svg {
    flex-shrink: 0;
}

.type-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #10b981;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 4px;
}

.type-badge.rent {
    background: #3b82f6;
}

/* ============================================
   DETAIL PAGE CONTAINER
   ============================================ */
.wpx-property-detail {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Auf Elementor Canvas (Full Width) */
.elementor-page .wpx-property-detail {
    max-width: 1400px;
    padding: 40px 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .wpx-property-detail {
        padding: 0 15px;
    }
    
    .elementor-page .wpx-property-detail {
        padding: 20px 15px;
    }
}

/* Detail Sections mit besserer Spacing */
.wpx-detail-hero-header,
.wpx-detail-gallery,
.wpx-detail-main-info,
.wpx-detail-description,
.wpx-detail-features,
.wpx-detail-location,
.wpx-detail-energy,
.wpx-detail-broker,
.wpx-detail-form {
    margin-bottom: 32px;
}

/* Gallery kompakter */
.wpx-detail-gallery {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Hero Header kompakter */
.wpx-detail-hero-header {
    margin-bottom: 24px;
}

.wpx-detail-title {
    font-size: clamp(24px, 4vw, 36px);
    margin-bottom: 8px;
}

.wpx-detail-address {
    font-size: clamp(14px, 2vw, 16px);
}

/* ============================================
   DSGVO-KONFORME MAP (2-Klick-Lösung)
   ============================================ */
.wpx-map-container {
    position: relative;
    margin-top: 24px;
    border-radius: 12px;
    overflow: hidden;
}

.wpx-map-placeholder {
    position: relative;
    min-height: 400px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.wpx-map-overlay {
    text-align: center;
    color: #fff;
    max-width: 500px;
}

.wpx-map-overlay svg {
    margin-bottom: 20px;
    opacity: 0.9;
}

.wpx-map-overlay h3 {
    font-size: 24px;
    margin-bottom: 12px;
    font-weight: 600;
}

.wpx-map-overlay p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 24px;
}

.wpx-load-map {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #fff;
    color: #667eea;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.wpx-load-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

.wpx-load-map:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.wpx-map-privacy {
    display: block;
    margin-top: 16px;
    font-size: 12px;
    opacity: 0.9;
}

.wpx-map-privacy a {
    color: #fff;
    text-decoration: underline;
}

.wpx-map-iframe {
    position: relative;
    width: 100%;
}

.wpx-map-iframe iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 12px;
}

/* Loading Spinner */
.wpx-load-map .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 768px) {
    .wpx-map-placeholder {
        min-height: 300px;
        padding: 30px 20px;
    }
    
    .wpx-map-overlay h3 {
        font-size: 20px;
    }
    
    .wpx-map-iframe iframe {
        height: 300px;
    }
}

/* ============================================
   ÄHNLICHE IMMOBILIEN SLIDER
   ============================================ */
.wpx-similar-properties {
    max-width: 1400px; /* Breiter für mehr Platz */
    margin: 60px auto 0;
    padding: 0 20px;
}

.wpx-similar-header {
    text-align: center;
    margin-bottom: 40px;
}

.wpx-similar-title {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 8px;
}

.wpx-similar-title svg {
    color: #3b82f6;
}

.wpx-similar-subtitle {
    font-size: 16px;
    color: #718096;
    margin: 0;
}

/* Slider Container - BREITER */
.wpx-similar-slider-container {
    position: relative;
    padding: 0 60px; /* Mehr Padding für Buttons */
}

.wpx-similar-slider {
    display: flex;
    gap: 28px; /* Mehr Gap */
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
}

.wpx-similar-slider::-webkit-scrollbar {
    display: none;
}

.wpx-similar-slide {
    flex: 0 0 calc(33.333% - 20px); /* Breiter */
    scroll-snap-align: start;
    min-width: 340px; /* Größere Min-Width */
}

@media (max-width: 1024px) {
    .wpx-similar-slide {
        flex: 0 0 calc(50% - 14px);
        min-width: 320px;
    }
}

@media (max-width: 640px) {
    .wpx-similar-slide {
        flex: 0 0 calc(100% - 120px);
        min-width: 280px;
    }
    
    .wpx-similar-slider-container {
        padding: 0 60px;
    }
}

/* Navigation Buttons */
.wpx-slider-prev,
.wpx-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.wpx-slider-prev:hover,
.wpx-slider-next:hover {
    background: #3b82f6;
    color: #fff;
    box-shadow: 0 6px 16px rgba(59,130,246,0.4);
}

.wpx-slider-prev {
    left: 0;
}

.wpx-slider-next {
    right: 0;
}

.wpx-slider-prev svg,
.wpx-slider-next svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .wpx-slider-prev,
    .wpx-slider-next {
        width: 36px;
        height: 36px;
    }
    
    .wpx-slider-prev svg,
    .wpx-slider-next svg {
        width: 18px;
        height: 18px;
    }
}

/* Card Styles */
.wpx-similar-card {
    display: block;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.wpx-similar-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.wpx-similar-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: #f3f4f6;
}

.wpx-similar-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.wpx-similar-card:hover .wpx-similar-image img {
    transform: scale(1.05);
}

.wpx-similar-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: rgba(255,255,255,0.7);
}

.wpx-match-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: #10b981;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(16,185,129,0.4);
}

.wpx-similar-content {
    padding: 16px;
}

.wpx-similar-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wpx-similar-address {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #718096;
    margin-bottom: 12px;
}

.wpx-similar-address svg {
    flex-shrink: 0;
}

.wpx-similar-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.wpx-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #4a5568;
}

.wpx-meta-item svg {
    color: #a0aec0;
}

.wpx-similar-price {
    font-size: 18px;
    font-weight: 700;
    color: #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
    .wpx-similar-properties {
        margin-top: 40px;
    }
    
    .wpx-similar-title {
        font-size: 24px;
    }
    
    .wpx-similar-subtitle {
        font-size: 14px;
    }
}

