/*
Theme Name: Wohnlab
Description: Child theme for Wohnlab real estate investment platform based on Kadence theme.
Template: kadence
Version: 1.5.0
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: white;
}

.wohnlab-container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: white;
}

/* Ensure gallery breaks out of container constraints */
.wohnlab-container .gallery {
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
}

.logo {
    position: absolute;
    top: 30px;
    left: 40px;
    font-size: 22px;
    font-weight: 500;
    color: white;
    letter-spacing: -0.3px;
    z-index: 10;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    width: 100%;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    display: flex;
    align-items: flex-end;
    padding: 40px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.25));
    z-index: 1;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: block;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
    text-align: left;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 400;
    color: white;
    line-height: 1.1;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
}

.hero-subtitle {
    font-size: 19px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 600px;
}

/* Hero Listing Variant (Kaufen/Mieten pages) */
.hero--listing {
    height: 50vh;
    min-height: 360px;
}

.hero--listing .hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.wl-btn-secondary--light {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}

.wl-btn-secondary--light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    animation: float 2.5s ease-in-out infinite;
    opacity: 0.7;
    transition: opacity 0.3s;
    z-index: 2;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-indicator-text {
    display: none;
}

.scroll-arrow {
    width: 32px;
    height: 32px;
    border: 2px solid white;
    border-left: none;
    border-top: none;
    transform: rotate(45deg);
    border-radius: 2px;
}

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

/* Value Proposition Section */
.value-proposition {
    padding: 80px 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-bottom: 1px solid #e0e0e0;
}

.value-proposition-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.value-proposition-title {
    font-size: 38px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.value-proposition-text {
    font-size: 18px;
    line-height: 1.7;
    color: #333;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.value-proposition-text strong {
    color: #1a1a1a;
    font-weight: 600;
}

.value-proposition-highlights {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.highlight-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.highlight-icon {
    font-size: 20px;
    color: #2a2a2a;
    font-weight: bold;
    flex-shrink: 0;
}

.highlight-text {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
}

.value-proposition-cta {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.value-proposition-cta-text {
    font-size: 16px;
    color: #333;
    margin-bottom: 20px;
    font-weight: 500;
}

.value-proposition-form {
    display: flex;
    gap: 12px;
    max-width: 500px;
    margin: 0 auto;
}

.value-proposition-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s;
}

.value-proposition-form input[type="email"]:focus {
    outline: none;
    border-color: #1a1a1a;
}

.value-proposition-form button {
    padding: 14px 32px;
    background: #1a1a1a;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: 'Inter', sans-serif;
}

.value-proposition-form button:hover {
    background: #333;
}

/* Content Section */
.content {
    padding: 80px 60px;
    background: white;
}

.content-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 80px;
}

.traditional-way h3 {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 16px;
    color: #666;
}

.traditional-way p {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.wohnlab-way h2 {
    font-size: 28px;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.wohnlab-way ul {
    list-style: none;
}

.wohnlab-way li {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
    position: relative;
    padding-left: 20px;
}

.wohnlab-way li:before {
    content: "•";
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 20px;
}

.wohnlab-way strong {
    font-weight: 600;
    color: #000;
}

/* Benefits Section */
.benefits {
    padding: 100px 60px;
    background: white;
}

.benefits-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.benefits-title {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: -0.8px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.benefit-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: #fafafa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.benefit-number {
    font-size: 52px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.benefit-label {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.benefit-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Management Section */
.management {
    padding: 100px 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.management-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.management-title {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.8px;
}

.management-subtitle {
    font-size: 18px;
    color: #666;
    text-align: center;
    margin-bottom: 60px;
}

.management-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 40px;
    align-items: start;
}

.management-card {
    background: white;
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

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

.management-card-featured {
    background: #1a1a1a;
    color: white;
    padding: 56px 40px;
    border: none;
}

.management-card-featured h3 {
    color: white;
}

.management-card-featured .management-price {
    color: rgba(255, 255, 255, 0.7);
}

.management-card-featured .management-features li {
    color: rgba(255, 255, 255, 0.9);
}

.management-card-featured .management-features li:before {
    color: white;
}

.management-card-featured .management-note {
    color: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.management-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    background: white;
    color: #1a1a1a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plus-sign {
    background: white;
    color: #1a1a1a;
    padding: 2px 8px;
    border-radius: 6px;
    margin-left: 4px;
    font-weight: 700;
}

.management-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.management-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.management-card h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.management-price {
    font-size: 16px;
    color: #666;
    margin-bottom: 28px;
    font-weight: 500;
}

.management-features {
    list-style: none;
    margin-bottom: 24px;
}

.management-features li {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
    padding-left: 28px;
    position: relative;
    margin-bottom: 12px;
}

.management-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 18px;
}

.management-note {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-style: italic;
}

/* Gallery Section */
.gallery {
    padding: 100px 60px !important;
    background: #fafafa !important;
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    box-sizing: border-box !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}

/* Override Kadence container constraints */
.gallery .gallery-inner,
.gallery .gallery-grid,
.gallery .gallery-item {
    box-sizing: border-box !important;
}

body .gallery,
body .gallery-inner,
body .gallery-grid {
    margin-left: auto !important;
    margin-right: auto !important;
}

.entry-content .gallery {
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    width: 100vw !important;
    max-width: 100vw !important;
}

/* Prevent Kadence from adding flex or other display modes to gallery */
.gallery .gallery-grid,
.wp-block-gallery .gallery-grid,
.blocks-gallery-grid .gallery-grid {
    display: grid !important;
}

/* Ensure gallery items don't get Kadence column classes */
.gallery-item,
.gallery .gallery-item,
body .gallery .gallery-item {
    grid-column: auto !important;
    grid-row: auto !important;
}

.gallery-inner {
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
}

.gallery-title {
    font-size: 36px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.gallery-subtitle {
    font-size: 16px;
    color: #666;
    text-align: center;
    margin-bottom: 50px;
}

.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
    width: 100% !important;
    max-width: 100% !important;
    grid-auto-flow: row !important;
    align-items: start !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Maximum specificity override */
html body .wohnlab-container section.gallery div.gallery-inner div.gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 32px !important;
}

/* Force grid on Kadence overrides */
body .gallery-grid,
.entry-content .gallery-grid,
.content-bg .gallery-grid,
.site .gallery-grid,
.site-content .gallery-grid,
article .gallery-grid,
main .gallery-grid,
#primary .gallery-grid,
#content .gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    flex-direction: unset !important;
    flex-wrap: unset !important;
}

.gallery-item {
    position: relative !important;
    aspect-ratio: 4/3 !important;
    overflow: hidden !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    background: #e0e0e0 !important;
    min-height: 300px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    display: block !important;
    flex: none !important;
    float: none !important;
    width: auto !important;
}

.gallery-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15) !important;
}

.gallery-item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
    display: block !important;
    max-width: 100% !important;
    min-height: 100% !important;
}

.gallery-item:hover img {
    transform: scale(1.05) !important;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.lightbox.is-open {
    display: flex;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: min(90vw, 960px);
    max-height: 90vh;
    background: #ffffff;
    padding: 16px;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 64px);
    object-fit: contain;
    transition: opacity 0.2s ease;
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
}

.lightbox-spinner {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid #e0e0e0;
    border-top-color: #1a1a1a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.lightbox-image[src]:not([src=""]) ~ .lightbox-spinner {
    display: none;
}

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

/* Gallery Section */
.wl-gallery-section {
    padding: 100px 60px;
    background: #fafafa;
    text-align: center;
}
.wl-gallery-container {
    max-width: 1400px;
    margin: 0 auto;
}
.wl-gallery-title {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}
.wl-gallery-subtitle {
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
}
.wl-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.wl-gallery-grid .gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* CTA Section */
.cta {
    background: #2a2a2a;
    color: white;
    padding: 80px 60px 90px;
}

.cta-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 42px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #ffffff;
}

.cta p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
}

.waitlist-form {
    display: flex;
    gap: 16px;
    max-width: 800px;
}

.email-input {
    flex: 1;
    padding: 16px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: white;
    color: #666;
}

.email-input::placeholder {
    color: #999;
}

.submit-btn {
    padding: 16px 32px;
    background: white;
    color: #2a2a2a;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s, transform 0.1s;
}

.submit-btn:hover {
    background: #f0f0f0;
}

.submit-btn:active {
    transform: scale(0.98);
}

/* Footer */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    background: white;
    font-size: 13px;
    color: #666;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-right {
    display: flex;
    gap: 24px;
}

.footer-right a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-right a:hover {
    color: #000;
}

/* Responsive */
@media (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .wl-gallery-section {
        padding: 60px 20px;
    }
    .wl-gallery-title {
        font-size: 26px;
    }
    .wl-gallery-subtitle {
        font-size: 14px;
        margin-bottom: 30px;
    }
    .wl-gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .logo {
        top: 20px;
        left: 24px;
        font-size: 20px;
    }

    .hero {
        height: 100svh;
        min-height: 100svh;
        padding: 24px 20px 28px;
    }

    .hero-content h1 {
        font-size: 30px;
        line-height: 1.15;
        letter-spacing: -0.6px;
    }

    .hero-subtitle {
        font-size: 15px;
        max-width: 320px;
    }

    .scroll-indicator {
        bottom: 30px;
    }

    .scroll-arrow {
        width: 28px;
        height: 28px;
    }

    .hero--listing {
        height: 40vh;
        min-height: 280px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons a {
        text-align: center;
    }

    .content {
        padding: 60px 24px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .traditional-way h3 {
        font-size: 20px;
    }

    .wohnlab-way h2 {
        font-size: 24px;
    }

    .benefits {
        padding: 60px 24px;
    }

    .benefits-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .benefit-card {
        padding: 32px 20px;
    }

    .benefit-number {
        font-size: 44px;
    }

    .management {
        padding: 60px 24px;
    }

    .management-title {
        font-size: 28px;
    }

    .management-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .management-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .management-card {
        padding: 36px 24px;
    }

    .management-card-featured {
        padding: 44px 24px;
    }

    .management-card h3 {
        font-size: 24px;
    }

    .management-icon {
        font-size: 40px;
    }

    .gallery {
        padding: 60px 24px;
    }

    .gallery-title {
        font-size: 28px;
    }

    .gallery-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .value-proposition {
        padding: 60px 24px;
    }

    .value-proposition-title {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .value-proposition-text {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .value-proposition-highlights {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .highlight-item {
        padding: 14px 16px;
    }

    .highlight-text {
        font-size: 14px;
    }

    .value-proposition-form {
        flex-direction: column;
    }

    .value-proposition-form button {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .cta {
        padding: 60px 24px 70px;
    }

    .cta h2 {
        font-size: 32px;
    }

    .cta p {
        font-size: 16px;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .footer {
        padding: 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .footer-right {
        gap: 20px;
    }
}

/* Tablet Responsive */
@media (min-width: 769px) and (max-width: 1200px) {
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .management-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .content {
        padding: 70px 40px;
    }

    .gallery {
        padding: 80px 40px;
    }

    .benefits {
        padding: 80px 40px;
    }

    .management {
        padding: 80px 40px;
    }
}

/* ========================================
   Wohnlab Navigation (Property Pages)
   ======================================== */
.wl-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e0e0e0;
}

.wl-nav-inner {
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wl-nav-logo {
    font-size: 22px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    letter-spacing: -0.3px;
}

.wl-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.wl-nav-link {
    color: #666;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

.wl-nav-link:hover {
    color: #1a1a1a;
}

.wl-nav-cta {
    background: #1a1a1a;
    color: white;
    padding: 10px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.2s;
}

.wl-nav-cta:hover {
    background: #333;
}

.wl-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #1a1a1a;
    cursor: pointer;
    padding: 8px;
}

.wl-nav--transparent {
    position: absolute;
    width: 100%;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.wl-nav--transparent .wl-nav-logo {
    color: white;
}

.wl-nav--transparent .wl-nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.wl-nav--transparent .wl-nav-link:hover,
.wl-nav--transparent .wl-nav-link--active {
    color: white;
}

.wl-nav--transparent .wl-mobile-toggle {
    color: white;
}

.wl-nav-link--active {
    color: #1a1a1a;
}

/* ========================================
   Hero Section (Property Pages)
   ======================================== */
.wl-hero {
    padding: 80px 60px 100px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    text-align: center;
}

.wl-hero-inner {
    max-width: 800px;
    margin: 0 auto;
}

.wl-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #1a1a1a;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.wl-hero h1 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1.5px;
    color: #1a1a1a;
}

.wl-hero-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.wl-hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.wl-btn-primary {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.2s;
}

.wl-btn-primary:hover {
    background: #333;
}

.wl-btn-primary--light {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.wl-btn-primary--light:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.wl-btn-secondary {
    display: inline-block;
    background: white;
    border: 1px solid #ddd;
    color: #333;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    font-size: 15px;
    transition: border-color 0.2s;
}

.wl-btn-secondary:hover {
    border-color: #999;
}

/* ========================================
   Trust Indicators (Property Pages)
   ======================================== */
.wl-trust {
    padding: 40px 60px;
    background: white;
    border-bottom: 1px solid #e0e0e0;
}

.wl-trust-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.wl-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
    font-size: 15px;
}

.wl-trust-item svg {
    color: #1a1a1a;
    flex-shrink: 0;
}

/* ========================================
   Properties Section (Property Pages)
   ======================================== */
.wl-properties-section {
    padding: 100px 60px;
    background: white;
}

.wl-properties-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.wl-properties-header {
    margin-bottom: 48px;
}

.wl-properties-header h2 {
    font-size: 36px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    color: #1a1a1a;
}

.wl-properties-subtitle {
    font-size: 16px;
    color: #666;
}

.wl-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ========================================
   Property Cards (Wohnlab Style)
   ======================================== */
.wl-property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.wl-property-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

.wl-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.wl-property-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
}

.wl-property-body {
    padding: 24px;
}

.wl-property-type {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f0;
    color: #1a1a1a;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.wl-property-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    line-height: 1.3;
}

.wl-property-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.wl-property-title a:hover {
    color: #333;
}

.wl-property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
}

.wl-property-details {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.wl-property-detail {
    font-size: 13px;
    color: #666;
    padding: 4px 10px;
    background: #f5f5f5;
    border-radius: 6px;
}

.wl-property-price {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.wl-property-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 14px;
    transition: gap 0.3s;
}

.wl-property-link:hover {
    gap: 12px;
}

/* ========================================
   No Properties Box (Wohnlab Style)
   ======================================== */
.wl-no-properties-box {
    text-align: center;
    padding: 80px 24px;
    background: #fafafa;
    border-radius: 16px;
    border: 1px dashed #ccc;
}

.wl-no-properties-box svg {
    margin-bottom: 24px;
    color: #999;
}

.wl-no-properties-box h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.wl-no-properties-box p {
    color: #666;
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: 1.6;
}

/* Placeholder Property Cards */
.wl-property-card--placeholder {
    opacity: 0.7;
    pointer-events: none;
}

.wl-property-card--placeholder .wl-property-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
}

/* ========================================
   Responsive: Property Pages - Mobile
   ======================================== */
@media (max-width: 768px) {
    --wl-nav-height-mobile: 60px;

    .wl-nav-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: var(--wl-nav-height-mobile);
        left: 0;
        right: 0;
        background: white;
        padding: 8px 0 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 16px 16px;
        z-index: 51;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }

    /* Mobile menu open state */
    .wl-nav-links.wl-nav-links--open {
        max-height: 400px;
        opacity: 1;
    }

    .wl-nav-links .wl-nav-link,
    .wl-nav-links .wl-nav-cta {
        padding: 14px 24px;
        font-size: 16px;
        color: #1a1a1a;
        border-radius: 0;
    }

    .wl-nav-links .wl-nav-cta {
        background: none;
        color: #1a1a1a;
        padding-top: 16px;
        margin-top: 8px;
        border-top: 1px solid #e0e0e0;
    }

    /* On mobile, transparent nav must also be sticky so the dropdown offsets correctly */
    .wl-nav,
    .wl-nav--transparent {
        position: sticky;
        top: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid #e0e0e0;
    }

    /* Logo and toggle in transparent-turned-sticky nav on mobile */
    .wl-nav--transparent .wl-nav-logo {
        color: #1a1a1a;
    }

    .wl-nav--transparent .wl-mobile-toggle {
        color: #1a1a1a;
    }

    .wl-mobile-toggle {
        display: block;
    }

    .wl-nav-inner {
        padding: 0 24px;
        height: var(--wl-nav-height-mobile);
    }

    .wl-hero {
        padding: 48px 24px 72px;
    }

    .wl-hero h1 {
        font-size: 30px;
        letter-spacing: -0.6px;
    }

    .wl-hero-text {
        font-size: 16px;
    }

    .wl-hero-buttons {
        flex-direction: column;
    }

    .wl-hero-buttons a {
        text-align: center;
    }

    .wl-trust {
        padding: 32px 24px;
    }

    .wl-trust-inner {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .wl-properties-section {
        padding: 60px 24px;
    }

    .wl-properties-header h2 {
        font-size: 28px;
    }

    .wl-properties-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .wl-no-properties-box {
        padding: 48px 16px;
    }
}

/* ========================================
   Responsive: Property Pages - Tablet
   ======================================== */
@media (min-width: 769px) and (max-width: 1200px) {
    .wl-hero h1 {
        font-size: 40px;
    }

    .wl-properties-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .wl-properties-section {
        padding: 80px 40px;
    }

    .wl-trust {
        padding: 36px 40px;
    }

    .wl-nav-inner {
        padding: 0 40px;
    }

    .wl-hero {
        padding: 60px 40px 80px;
    }
}

/* ============================================================================
   SINGLE PROPERTY DETAIL PAGE
   ========================================================================== */

/* Property Single Wrapper */
.wl-property-single {
  background: #ffffff;
}

/* Property Header */
.wl-property-header {
  background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #e0e0e0;
  padding: 3rem 1.5rem;
}

.wl-property-header-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* Meta Top - Status and Type Badges */
.wl-property-meta-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Status Badge Base */
.wl-property-status {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Status Variants */
.wl-property-status--verfuegbar {
  background: #e8f5e9;
  color: #2e7d32;
}

.wl-property-status--reserviert {
  background: #fff3e0;
  color: #e65100;
}

.wl-property-status--verkauft {
  background: #f5f5f5;
  color: #666666;
}

/* Type Badge */
.wl-property-type-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #f0f0f0;
  color: #1a1a1a;
}

/* Title - Scoped to Single Property */
.wl-property-single .wl-property-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

/* Location - Scoped to Single Property */
.wl-property-single .wl-property-location {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.125rem;
  color: #666666;
  margin-bottom: 1.5rem;
}

.wl-property-single .wl-property-location::before {
  content: "📍";
  font-size: 1.25rem;
}

/* Large Price Display */
.wl-property-price-large {
  font-size: 2rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

/* Property Content - Main Container */
.wl-property-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* Images Container */
.wl-property-images {
  grid-column: 1;
}

/* Featured Image */
.wl-property-featured-image {
  margin-bottom: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  background: #f5f5f5;
}

.wl-property-featured-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

/* Gallery Grid */
.wl-property-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.wl-property-gallery-item {
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
}

.wl-property-gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.3s ease;
}

.wl-property-gallery-item:hover img {
  transform: scale(1.05);
}

/* Property Body - Details Area - Scoped to Single Property */
.wl-property-single .wl-property-body {
  grid-column: 2;
}

/* Details Section */
.wl-property-details-section {
  margin-bottom: 2.5rem;
}

.wl-property-details-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

/* Details Grid */
.wl-property-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.wl-property-detail-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.wl-property-detail-item:last-child {
  border-bottom: none;
}

.wl-property-detail-label {
  font-size: 0.9375rem;
  color: #666666;
  font-weight: 400;
}

.wl-property-detail-value {
  font-size: 0.9375rem;
  color: #1a1a1a;
  font-weight: 600;
  text-align: right;
}

/* Features Section */
.wl-property-features-section {
  margin-bottom: 2.5rem;
}

.wl-property-features-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.wl-property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.wl-property-feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  background: #f0f0f0;
  color: #1a1a1a;
  border: 1px solid #e0e0e0;
}

/* Description Section */
.wl-property-description-section {
  margin-bottom: 2.5rem;
}

.wl-property-description-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 1.5rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e0e0e0;
}

.wl-property-description {
  font-size: 1rem;
  line-height: 1.7;
  color: #333333;
}

.wl-property-description p {
  margin: 0 0 1rem 0;
}

.wl-property-description p:last-child {
  margin-bottom: 0;
}

/* Back Link */
.wl-property-back-link {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
}

.wl-property-back-link a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.wl-property-back-link a::before {
  content: "←";
  font-size: 1.25rem;
}

.wl-property-back-link a:hover {
  color: #666666;
}

/* ============================================================================
   RESPONSIVE STYLES
   ========================================================================== */

/* Tablet (769px - 1200px) */
@media (min-width: 769px) and (max-width: 1200px) {
  .wl-property-content {
    gap: 2rem;
  }
  
  .wl-property-single .wl-property-title {
    font-size: 2rem;
  }
  
  .wl-property-price-large {
    font-size: 1.75rem;
  }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
  /* Header */
  .wl-property-header {
    padding: 2rem 1rem;
  }
  
  .wl-property-single .wl-property-title {
    font-size: 1.75rem;
  }
  
  .wl-property-single .wl-property-location {
    font-size: 1rem;
  }
  
  .wl-property-price-large {
    font-size: 1.5rem;
  }
  
  /* Content - Stack Images and Details */
  .wl-property-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 1rem;
  }
  
  .wl-property-images {
    grid-column: 1;
  }
  
  .wl-property-single .wl-property-body {
    grid-column: 1;
  }
  
  /* Gallery - Single Column on Mobile */
  .wl-property-gallery {
    grid-template-columns: 1fr;
  }
  
  /* Details Grid - Stack on Small Mobile */
  .wl-property-detail-item {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  
  .wl-property-detail-value {
    text-align: left;
    font-size: 1rem;
  }
  
  .wl-property-detail-label {
    font-size: 0.875rem;
  }
  
  /* Section Headings */
  .wl-property-details-section h2,
  .wl-property-features-section h2,
  .wl-property-description-section h2 {
    font-size: 1.25rem;
  }
  
  /* Features */
  .wl-property-feature-tag {
    font-size: 0.8125rem;
    padding: 0.4rem 0.75rem;
  }
  
  /* Back Link */
  .wl-property-back-link {
    margin-top: 2rem;
  }
}
