:root {
    --primary: #2f6f4f;
    --primary-dark: #1a3f2a;
    --accent: #f4a261;
    --text: #2f2f2f;
    --muted: #6b7280;
    --bg: #f8f7f3;
    --white: #ffffff;
    --shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    --green-light: #86c06d;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

.container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
}

/* Header/Navigation */
.header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 400;
}

.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    gap: 0.75rem;
    background: var(--white);
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    width: min(320px, calc(100% - 2rem));
    z-index: 250;
}

.nav-link {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.65rem 0.2rem;
    border-radius: 10px;
    display: block;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(134, 192, 109, 0.12);
    color: var(--primary);
}

.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: 1.4rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.menu-toggle:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.25);
}

.menu-toggle:focus {
    outline: 2px solid rgba(134, 192, 109, 0.8);
    outline-offset: 2px;
}

.main-nav.active {
    display: flex;
}

.nav-wrapper {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
    padding: 1rem;
    z-index: 10000;
}

.lightbox-overlay.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img {
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
    position: absolute;
    top: -0.75rem;
    right: -0.75rem;
    width: 2.7rem;
    height: 2.7rem;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-dark);
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow);
}

.lightbox-close:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(47, 111, 79, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.hero-content {
    text-align: center;
    color: var(--white);
    z-index: 10;
    position: relative;
    max-width: 900px;
    width: 100%;
    padding: 0 1rem;
}

.hero-content h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 600px;
    opacity: 0.95;
}

/* Sections */
.intro-section {
    padding: 5rem 0;
    background: var(--white);
}

.intro-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.intro-text {
    text-align: center;
    font-size: 1.05rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: var(--muted);
}

.teaser-grid {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(134, 192, 109, 0.05) 0%, rgba(244, 162, 97, 0.05) 100%);
}

.teaser-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.teaser-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.teaser-card:hover {
    transform: translateY(-5px);
}

.teaser-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.teaser-card h3 {
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.teaser-card p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.gallery-preview {
    padding: 5rem 0;
    background: var(--white);
}

.gallery-preview h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 2.5rem;
    }

    .gallery-item {
        aspect-ratio: 4 / 3;
        min-height: 320px;
    }
}

.floor-plan {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.floor-plan img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 16px;
}

@media (max-width: 768px) {
    .floor-plan {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    aspect-ratio: 1;
}

.slideshow {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slideshow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 1s ease;
    opacity: 1;
    display: block;
}

.slideshow img.fade-out {
    opacity: 0;
}

.gallery-item .gallery-label {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(255, 255, 255, 0.85);
    color: var(--text);
    padding: 0.55rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.gallery-item:hover img {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 1s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: var(--white);
    padding: 1rem;
    font-weight: 600;
}

.highlights {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--green-light) 0%, rgba(134, 192, 109, 0.8) 100%);
    color: var(--white);
}

.highlights h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.highlights-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.highlights-list ul {
    list-style: none;
}

.highlights-list li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.highlights-image img {
    width: 100%;
    border-radius: 12px;
}

.cta-section {
    padding: 5rem 0;
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--accent);
    color: var(--text);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(244, 162, 97, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary-dark);
    color: var(--white);
    padding: 1.5rem;
    z-index: 1000;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
}

.cookie-consent.hidden {
    display: none;
}

.cookie-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.cookie-text h3 {
    margin-bottom: 0.5rem;
}

.cookie-text p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.cookie-text a {
    color: var(--accent);
    text-decoration: none;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-buttons .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin: 3rem 0;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
    color: var(--accent);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(47, 111, 79, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.form-checkbox-group input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.2rem;
    accent-color: var(--primary);
}

.form-checkbox-group label {
    display: inline-block;
    margin-bottom: 0;
    line-height: 1.5;
    font-weight: 500;
    color: var(--text);
}

.form-checkbox-group label a {
    color: var(--primary);
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    max-width: 600px;
}

.contact-info {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
    color: var(--muted);
}

.contact-info strong {
    color: var(--text);
}

/* Map Container */
.map-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    margin: 2rem 0;
    background: linear-gradient(135deg, #f3f3f0 0%, #e7e7e2 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.map-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
    text-align: center;
    color: var(--text);
}

.map-placeholder-content p {
    max-width: 480px;
    margin-bottom: 1.25rem;
    line-height: 1.6;
    color: var(--muted);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Apartment Details */
.apartment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.detail-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.detail-card h4 {
    color: var(--primary);
    margin-bottom: 0.8rem;
}

.detail-card ul {
    list-style: none;
}

.detail-card li {
    padding: 0.4rem 0;
    color: var(--muted);
}

.detail-card li:before {
    content: "✓ ";
    color: var(--green-light);
    font-weight: bold;
    margin-right: 0.5rem;
}

.price-box {
    background: linear-gradient(135deg, var(--accent) 0%, rgba(244, 162, 97, 0.8) 100%);
    color: var(--text);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    margin: 2rem 0;
}

.price-box h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.price-box .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1rem 0;
}

.price-box .price-info {
    font-size: 0.95rem;
    opacity: 0.9;
    margin: 0.5rem 0;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.content-section h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 1rem;
}

.floor-plan {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin: 2rem 0;
}

.floor-plan img {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .main-nav {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .intro-section h2,
    .gallery-preview h2,
    .highlights h2 {
        font-size: 1.8rem;
    }

    .highlights-content {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .teaser-items {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apartment-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        width: calc(100% - 1rem);
    }

    .hero {
        min-height: 300px;
    }

    .hero-content h2 {
        font-size: 1.4rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 0.7rem 1.5rem;
        font-size: 0.9rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }

    .price-box .price {
        font-size: 2rem;
    }

    .cta-box {
        padding: 2rem 1rem;
    }

    .cta-box h2 {
        font-size: 1.4rem;
    }
}
