/* DesignSide Immobilien Plugin Styles */
:root {
    --brand-color: #89B512;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
}

.designside-immobilien {
    font-family: inherit;
    line-height: 1.6;
}

/* Property Grid - Ultra Premium Design */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 3rem 0;
    perspective: 1000px;
    animation: gridFadeIn 0.8s ease-out;
}

@keyframes gridFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.properties-grid .property-card {
    animation: cardEntrance 0.8s cubic-bezier(0.23, 1, 0.32, 1) backwards;
}

.properties-grid .property-card:nth-child(1) { animation-delay: 0.1s; }
.properties-grid .property-card:nth-child(2) { animation-delay: 0.2s; }
.properties-grid .property-card:nth-child(3) { animation-delay: 0.3s; }
.properties-grid .property-card:nth-child(4) { animation-delay: 0.4s; }
.properties-grid .property-card:nth-child(5) { animation-delay: 0.5s; }
.properties-grid .property-card:nth-child(6) { animation-delay: 0.6s; }
.properties-grid .property-card:nth-child(7) { animation-delay: 0.7s; }
.properties-grid .property-card:nth-child(8) { animation-delay: 0.8s; }
.properties-grid .property-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(-15deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0) scale(1);
    }
}

.property-card {
    position: relative;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    height: 100%;
    border: 1px solid #e9ecef;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.property-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

/* Image Container */
.property-image-container {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 0;
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.property-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

/* Overlay Effect */
.property-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.property-card:hover .property-overlay {
    opacity: 1;
}

/* Type Badge */
.property-type-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 0;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    z-index: 3;
    transition: all 0.3s ease;
}

/* Property Info Section */
.property-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    background: #ffffff;
}

/* Price Header */
.property-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    margin: -0.25rem -0.25rem 0.5rem;
    background: #f8f9fa;
    border-radius: 0;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--brand-color);
    line-height: 1;
}

.property-price-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #666;
    letter-spacing: 1px;
    padding: 0.35rem 0.7rem;
    background: white;
    border-radius: 0;
    border: 1px solid #e9ecef;
}

/* Title */
.property-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
    color: #1a1a1a;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-card:hover .property-title {
    color: var(--brand-color);
}

/* Location */
.property-location-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: #f8f9fa;
    border-radius: 0;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #e9ecef;
}

.property-location-info svg {
    color: var(--brand-color);
    flex-shrink: 0;
}

/* Property Specs */
.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    padding: 1rem 0;
}

.property-spec {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.85rem;
    background: #f8f9fa;
    border-radius: 0;
    transition: all 0.3s ease;
    cursor: help;
    min-width: fit-content;
    border: 1px solid #e9ecef;
}

.property-spec:hover {
    background: var(--brand-color);
    border-color: var(--brand-color);
}

.property-spec svg {
    color: var(--brand-color);
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.property-spec:hover svg {
    color: white;
}

.spec-content {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    transition: color 0.3s ease;
}

.spec-unit,
.spec-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #666;
    transition: color 0.3s ease;
}

.property-spec:hover .spec-value,
.property-spec:hover .spec-unit,
.property-spec:hover .spec-label {
    color: white;
}

/* CTA Button */
.property-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1.5rem;
    margin: 0.5rem -0.5rem -0.5rem;
    background: var(--brand-color);
    border-radius: 0;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.property-card:hover .property-cta {
    background: #7aa310;
}

.cta-text,
.cta-icon {
    transition: transform 0.3s ease;
}

.property-card:hover .cta-icon {
    transform: translateX(4px);
}

/* Property Slider - Premium */
.properties-slider {
    position: relative;
    margin: 3rem 0;
    padding: 1rem 0;
}

.properties-slider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%,
        var(--brand-color) 20%,
        #7aa310 50%,
        var(--brand-color) 80%,
        transparent 100%
    );
    border-radius: 2px;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 2.5rem;
    padding: 2rem 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.slider-container::-webkit-scrollbar {
    display: none;
}

.slider-card {
    flex: 0 0 calc(33.333% - 16px);
    scroll-snap-align: start;
    animation: slideIn 0.6s ease-out backwards;
}

.slider-card:nth-child(1) { animation-delay: 0.1s; }
.slider-card:nth-child(2) { animation-delay: 0.2s; }
.slider-card:nth-child(3) { animation-delay: 0.3s; }
.slider-card:nth-child(4) { animation-delay: 0.4s; }
.slider-card:nth-child(5) { animation-delay: 0.5s; }
.slider-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.slider-nav button {
    position: relative;
    background: linear-gradient(135deg, var(--brand-color) 0%, #7aa310 100%);
    color: white;
    border: 0;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 8px 25px rgba(137, 181, 18, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slider-nav button::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--brand-color), #7aa310, var(--brand-color));
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.slider-nav button::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.slider-nav button:hover:not(:disabled) {
    transform: scale(1.15) translateY(-4px);
    box-shadow: 
        0 15px 40px rgba(137, 181, 18, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.slider-nav button:hover:not(:disabled)::after {
    opacity: 1;
}

.slider-nav button:active:not(:disabled) {
    transform: scale(1.05) translateY(-2px);
}

.slider-nav button:disabled {
    background: linear-gradient(135deg, #ccc, #aaa);
    cursor: not-allowed;
    opacity: 0.4;
    box-shadow: none;
    transform: scale(0.9);
}

.slider-nav button:disabled::before {
    display: none;
}



/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.load-more-container {
    text-align: center;
    margin: 3rem 0;
    position: relative;
}

.load-more-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(137, 181, 18, 0.2) 30%,
        rgba(137, 181, 18, 0.2) 70%,
        transparent 100%
    );
    transform: translateY(-50%);
    z-index: -1;
}

.load-more-btn {
    position: relative;
    background: linear-gradient(135deg, var(--brand-color) 0%, #7aa310 100%);
    color: white;
    border: 0;
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 10px 35px rgba(137, 181, 18, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
}

.load-more-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #7aa310 0%, #6a9210 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.load-more-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(137, 181, 18, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    letter-spacing: 1.5px;
}

.load-more-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.load-more-btn:hover:not(:disabled)::after {
    width: 300px;
    height: 300px;
}

.load-more-btn:active:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
}

.load-more-btn:disabled {
    background: linear-gradient(135deg, #ccc, #aaa);
    cursor: not-allowed;
    opacity: 0.5;
    box-shadow: none;
}

.load-more-btn:disabled::before,
.load-more-btn:disabled::after {
    display: none;
}

/* Responsive Design */
@media (max-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.75rem;
    }
}

@media (max-width: 1200px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .property-card {
        border-radius: 12px;
    }
    
    .property-image-container {
        height: 240px;
    }
    
    .property-info {
        padding: 1.5rem;
    }
    
    .property-price {
        font-size: 1.5rem;
    }
    
    .property-title {
        font-size: 1.1rem;
    }
    
    .property-specs {
        gap: 0.75rem;
    }
    
    .property-spec {
        padding: 0.6rem 0.8rem;
        gap: 0.5rem;
    }
    
    .property-spec svg {
        width: 18px;
        height: 18px;
    }
    
    .spec-value {
        font-size: 0.9rem;
    }
    
    .slider-card {
        flex: 0 0 calc(50% - 12px);
    }
    
    .slider-nav button {
        padding: 0.75rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .properties-grid {
        gap: 1.25rem;
    }
    
    .property-card {
        border-radius: 10px;
    }
    
    .property-image-container {
        height: 200px;
    }
    
    .property-info {
        padding: 1.25rem;
        gap: 0.85rem;
    }
    
    .property-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .property-price {
        font-size: 1.35rem;
    }
    
    .property-title {
        font-size: 1rem;
    }
    
    .property-type-badge {
        top: 1rem;
        right: 1rem;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .property-specs {
        flex-wrap: wrap;
        gap: 0.6rem;
    }
    
    .property-spec {
        flex: 1 1 calc(50% - 0.3rem);
        min-width: 0;
        padding: 0.65rem;
    }
    
    .slider-card {
        flex: 0 0 calc(100% - 2rem);
    }
    
    .slider-container {
        gap: 1rem;
        padding: 1rem;
    }
    
    .slider-nav button {
        padding: 0.65rem 1.25rem;
        font-size: 1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-method {
        flex-direction: column;
        text-align: center;
    }
    
    .method-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
}

/* Filter Section */
.property-filter {
    background: var(--light-gray);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
}

.filter-btn {
    background: var(--brand-color);
    color: white;
    border: 0;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.filter-btn:hover {
    background: #7aa310;
}

/* Property Grid Filter Styles */
.property-filter {
    background: var(--light-gray);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.filter-select,
.filter-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 1rem;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--brand-color);
}

.filter-btn {
    background: var(--brand-color);
    color: white;
    border: 0;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.filter-btn:hover {
    background: #7aa310;
    color: white;
}

.filter-reset {
    margin-top: 0.5rem;
    color: var(--brand-color);
    text-decoration: none;
    font-size: 0.9rem;
    text-align: center;
}

.filter-reset:hover {
    text-decoration: underline;
}

/* Contact Form Styles */
.property-contact-form-wrapper {
    background: white;
    border: 1px solid var(--border-color);
}

.contact-form-header {
    background: var(--light-gray);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-form-header h3 {
    margin: 0 0 0.5rem 0;
    color: var(--text-color);
}

.property-reference {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.property-contact-form {
    padding: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: white;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand-color);
}

.form-control.error {
    border-color: #dc3545;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.validation-message {
    display: block;
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    min-height: 1em;
}

/* Privacy Checkbox */
.privacy-checkbox {
    margin: 2rem 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-weight: normal;
    line-height: 1.4;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.75rem;
    margin-top: 0.2rem;
}

.checkbox-label a {
    color: var(--brand-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

/* Form Submit */
.form-submit {
    margin: 2rem 0 1rem 0;
}

.submit-btn {
    background: var(--brand-color);
    color: white;
    border: 0;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    min-width: 200px;
}

.submit-btn:hover:not(:disabled) {
    background: #7aa310;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.form-footer {
    margin-top: 1rem;
}

.required-notice {
    color: #666;
    font-size: 0.9rem;
    margin: 0;
}

/* Alternative Contact Methods */
.contact-alternative {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.alternative-contact-methods h4 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--light-gray);
    border: 1px solid var(--border-color);
}

.method-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-info strong {
    color: var(--text-color);
    margin-bottom: 0.25rem;
}

.method-info span {
    color: #666;
    font-size: 0.9rem;
}

/* No Properties Found - Enhanced */
.no-properties-found {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 24px;
    border: 2px dashed rgba(137, 181, 18, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeIn 0.6s ease-out;
}

.no-properties-found::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(137, 181, 18, 0.05) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.no-properties-found p {
    margin: 0;
    color: #666;
    font-size: 1.2rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.no-properties-found p::before {
    content: '🏠';
    display: block;
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Property Image Placeholder */
.property-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e9e9e9 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Loading States */
.btn-loading {
    display: none;
}

.submit-btn.loading .btn-text {
    display: none;
}

.submit-btn.loading .btn-loading {
    display: inline;
}



