/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

html, body {
    max-width: 100%;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* ===== VARIABLES ===== */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #27ae60;
    --text-light: #ecf0f1;
    --text-dark: #2c3e50;
    --bg-light: #ffffff;
    --bg-dark: #f8f9fa;
    --bg-section: #f8f9fa;
    --border-color: #e1e8ed;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 8px;
    --border-radius-large: 16px;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
    font-weight: 400;
    font-style: italic;
}

h4 {
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: 600;
}

p {
    margin-bottom: 1.5rem;
    font-weight: 300;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-color);
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: transparent;
    z-index: 1000;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.navbar.scrolled .nav-link {
    color: var(--text-dark);
}


.navbar.scrolled {
    box-shadow: var(--shadow-light);
}

.navbar:not(.scrolled) .nav-link {
    color: white;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

/* Logo mittig */
.nav-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-logo a {
    display: block;
}

.logo-image {
    height: 140px;
    width: auto;
    transition: height 0.3s ease, transform 0.3s ease;
}

.navbar.scrolled .logo-image {
    height: 90px;
}

.navbar:not(.scrolled) .logo-image {
    filter: brightness(0) invert(1) drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}

/* Menü links und rechts */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu-left {
    justify-content: flex-start;
}

.nav-menu-right {
    justify-content: flex-end;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 400;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: var(--transition);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    opacity: 0.8;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.bar {
    width: 25px;
    height: 2px;
    background: var(--primary-color);
    margin: 4px 0;
    transition: var(--transition);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: 1.5rem 0;
}

.mobile-nav-link {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary-color);
    transition: var(--transition);
}

.mobile-nav-link:hover {
    color: #9a544d;
}

.mobile-nav-link::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #9a544d;
    transition: width 0.3s ease;
    margin-top: 5px;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    margin-top: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    padding: 0;
    overflow: hidden;
}

.hero-frame {
    position: relative;
    width: 100%;
    height: 100vh;
}

.hero-image-container,
.hero-video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.hero-image-container::before,
.hero-video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-image,
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}

.hero-placeholder span {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

.hero-placeholder small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.hero-image:not([src=""]):not([src="images/hero-building.jpg"]) + .hero-placeholder {
    display: none;
}

/* Hero Content Text */
.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: left;
    color: white;
    z-index: 10;
    padding: 4rem 5%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 400;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.3s forwards;
}

.hero-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    font-weight: 300;
    line-height: 1.8;
    max-width: 600px;
    opacity: 0;
    animation: slideInLeft 1s ease-out 0.6s forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-color);
    border-color: var(--accent-color);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

/* ===== SECTIONS ===== */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-alt {
    background: var(--bg-section);
}

/* Fullscreen Background Section */
.section-fullbg {
    position: relative;
    min-height: 80vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

.section-fullbg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    z-index: 1;
}

@media (max-width: 768px) {
    .section-fullbg-overlay {
        width: 100%;
        background: rgba(0,0,0,0.6);
    }
    
    .section-fullbg-content {
        max-width: 100%;
    }
    
    .section-fullbg-content .text-content {
        text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    }
}

.section-fullbg .container {
    position: relative;
    z-index: 2;
    display: block;
}

.section-fullbg-content {
    max-width: 500px;
    color: white;
}

.section-fullbg-content .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.section-fullbg-content .section-title {
    color: white;
}

.section-fullbg-content .section-subtitle {
    color: rgba(255,255,255,0.9);
}

.section-fullbg-content .text-content {
    color: rgba(255,255,255,0.9);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-centered {
    text-align: center !important;
    margin-bottom: 2rem;
}

.text-content-centered {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

@media (max-width: 768px) {
    .text-content-centered {
        text-align: left;
    }
    
    #wohnlage .section-header,
    #lage .section-header-centered,
    #wohnungen .section-header-centered {
        text-align: left !important;
    }
    
    #wohnlage .section-header .section-title,
    #wohnlage .section-header .section-subtitle,
    #lage .section-header-centered .section-title,
    #lage .section-header-centered .section-subtitle,
    #wohnungen .section-header-centered .section-title,
    #wohnungen .section-header-centered .section-subtitle {
        text-align: left !important;
    }
    
    #wohnungen .apartments-intro {
        text-align: left !important;
    }
}

.section-title {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-subtitle {
    color: var(--secondary-color);
    font-weight: 400;
}

.section-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.text-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Desktop: Titel links zum Text */
@media (min-width: 993px) {
    .section .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        align-items: start;
    }
    
    #wohnungen .container,
    #galerie .container,
    #kontakt .container {
        display: block !important;
    }
    
    .section-left,
    .section-right {
        display: flex;
        flex-direction: column;
    }
    
    .section-left .section-header,
    .section-right .section-header {
        text-align: left;
        margin-bottom: 2rem;
    }
    
    .section-content {
        display: contents;
    }
}

/* Mobile: Zurück zu zentriertem Layout */
@media (max-width: 992px) {
    .section .container {
        display: block;
    }
    
    .section-left,
    .section-right {
        margin-bottom: 2rem;
    }
    
    .section-header {
        text-align: center;
        margin-bottom: 2rem;
    }
}

.image-placeholder img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
}

/* ===== LOCATION MAP ===== */
.map-container {
    width: 100%;
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.map-fullwidth {
    max-width: 1000px;
    margin: 0 auto;
}

.section-map .container {
    display: block !important;
    max-width: 1200px;
}

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

.map-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Map Legend */
.map-legend {
    margin-top: 2.5rem;
    padding: 2rem;
    background: white;
    border-radius: var(--border-radius-large);
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.legend-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.legend-marker {
    width: 20px;
    height: 20px;
    background: #9a544d;
    border-radius: 50%;
    flex-shrink: 0;
}

.legend-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.legend-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.legend-column {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.legend-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.4;
}

.legend-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    background: #4a5568;
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .legend-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .map-legend {
        padding: 1.5rem;
    }
    
    .legend-item {
        font-size: 0.85rem;
    }
}

.map-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #e8e4e0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #666;
}

.map-placeholder span {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.map-placeholder small {
    font-size: 0.9rem;
    opacity: 0.7;
}

.map-wrapper:has(.map-image[src*="map-zollikon"]) .map-placeholder {
    display: none;
}

.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background: #c45c5c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.3s ease;
}

.marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

.marker-star {
    width: 0;
    height: 0;
    background: none;
    position: absolute;
}

.marker-star::before {
    content: '★';
    position: absolute;
    font-size: 24px;
    color: #c45c5c;
    transform: translate(-50%, -50%);
}

.marker .marker-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #2c3e50;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 3px;
}

.marker-star .marker-label {
    font-weight: 600;
    font-size: 12px;
}

.marker-bus {
    background: #3498db;
}

.marker-bus:hover {
    transform: translate(-50%, -50%) scale(1.3);
}

/* ===== APARTMENTS ===== */
.apartments-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Apartment Slider */
.apartment-slider {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
}

.slider-stage {
    position: relative;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-large);
    background: white;
    box-shadow: var(--shadow-medium);
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

.slide-image {
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 350px;
}

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

.slide-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-content h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.slide-content .apartment-type {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: block;
}

.slide-content .apartment-details {
    margin-bottom: 1.5rem;
}

.slide-content .detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.slide-content .detail-label {
    color: #555;
    font-weight: 400;
}

.slide-content .detail-value {
    font-weight: 500;
    color: var(--primary-color);
}

.slide-content .apartment-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.slide-content .apartment-actions .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.75rem;
}

/* Verkauft Stempel */
.sold-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2rem;
    font-weight: 700;
    color: #c0392b;
    border: 4px solid #c0392b;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.85;
    pointer-events: none;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 5px;
}

/* Reserviert Stempel */
.reserved-stamp {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2rem;
    font-weight: 700;
    color: #e67e22;
    border: 4px solid #e67e22;
    padding: 0.5rem 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.85;
    pointer-events: none;
    z-index: 10;
    background: rgba(255,255,255,0.9);
    border-radius: 5px;
}

.slide.reserved .slide-content {
    position: relative;
}

.slide.sold .slide-content {
    position: relative;
}

.slide.sold .slide-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.3);
    pointer-events: none;
}

.slide.sold .apartment-actions {
    display: none;
}

/* Slider Navigation Buttons */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: var(--shadow-medium);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-color);
    color: white;
}

.slider-prev {
    left: -60px;
}

.slider-next {
    right: -60px;
}

/* Slider Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.apartments-cta {
    margin-top: 3rem;
    text-align: center;
}

.apartments-cta-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
    justify-items: center;
}

.apartments-cta-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}

.apartments-cta-item .btn {
    width: 260px;
    text-align: center;
    white-space: nowrap;
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 0;
}

.apartments-cta-item .btn.btn-outline {
    padding: 0.8rem 2rem;
    border-width: 2px;
}

.apartments-cta-logo-item {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
    width: 100%;
}

.apartments-cta-logo-item img {
    max-height: 44px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .apartments-cta-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--primary-color);
}

/* Mobile Slider */
@media (max-width: 768px) {
    .apartment-slider {
        padding: 0 40px;
    }
    
    .slide {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .slide-image {
        min-height: 180px;
        max-height: 200px;
    }
    
    .slide-content {
        padding: 1.2rem;
    }
    
    .slide-content h4 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
    }
    
    .slide-content .apartment-type {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
    
    .slide-content .apartment-details {
        margin-bottom: 1rem;
    }
    
    .slide-content .detail-item {
        padding: 0.3rem 0;
        font-size: 0.85rem;
    }
    
    .slide-content .apartment-actions {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .slide-content .apartment-actions .btn {
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
    }
    
    .sold-stamp,
    .reserved-stamp {
        font-size: 1.3rem;
        padding: 0.3rem 1rem;
    }
    
    .slider-btn {
        width: 35px;
        height: 35px;
    }
    
    .slider-prev {
        left: -40px;
    }
    
    .slider-next {
        right: -40px;
    }
}

.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.apartment-card {
    background: white;
    border-radius: var(--border-radius-large);
    padding: 2rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.apartment-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.apartment-header h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.apartment-type {
    color: var(--secondary-color);
    font-size: 0.9rem;
    font-weight: 300;
}

.apartment-details {
    margin-bottom: 1.5rem;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.detail-label {
    color: var(--secondary-color);
    font-weight: 300;
}

.detail-value {
    color: var(--primary-color);
    font-weight: 500;
}

.apartment-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.apartment-actions .btn {
    flex: 1;
    min-width: 120px;
}

/* ===== PARTNER SECTION ===== */
.partner-section {
    padding: 4rem 0;
    background: var(--background-light);
}

.partner-header {
    text-align: center;
    margin-bottom: 3rem;
}

.partner-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #9a544d;
    margin-bottom: 1.5rem;
}

.btn-partner {
    background: #9a544d;
    color: white;
    padding: 0.8rem 2rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    display: inline-block;
}

.btn-partner:hover {
    background: #7a3f3a;
    color: white;
}

.partner-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 4rem;
}

.partner-logo-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo-item img {
    max-width: 200px;
    max-height: 80px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .partner-logos {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ===== GALLERY ===== */
.gallery-intro {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition);
}

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

/* ===== VIDEO SECTION ===== */
.video-section {
    margin-top: 3rem;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-video {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    background: #000;
}

/* ===== CONTACT ===== */
.contact-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 4rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-style: italic;
}

.contact-link {
    color: #9a544d;
    font-size: 1.1rem;
    font-weight: 500;
}

.contact-link:hover {
    color: #7a3f3a;
}

.contact-logo {
    margin-top: 1rem;
}

.contact-logo img {
    max-width: 180px;
    height: auto;
}

.contact-portrait {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    overflow: hidden;
    border-radius: var(--border-radius-large);
}

.contact-portrait img {
    max-width: 100%;
    width: 100%;
    height: auto;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

.contact-form-section {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 2.5rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.form-title {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.form-message {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
}

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

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

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

.btn-contact {
    background: #9a544d;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--border-radius);
    width: 100%;
}

.btn-contact:hover {
    background: #7a3f3a;
}

@media (max-width: 768px) {
    .contact-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-portrait {
        order: -1;
        width: 100%;
    }

    .contact-portrait img {
        max-width: 100%;
        width: auto;
        border-radius: var(--border-radius-large);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .contact-portrait img {
        max-width: 420px;
    }
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ===== BANNER SECTION ===== */
.banner-section {
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo img {
    max-height: 90px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* ===== LEGAL PAGE ===== */
.legal-page .navbar {
    background: white !important;
    box-shadow: var(--shadow-light) !important;
}

.legal-page .nav-link {
    color: var(--primary-color) !important;
}

.legal-page .nav-toggle .bar {
    background: var(--primary-color) !important;
}

.legal-page .logo-image {
    filter: brightness(0) !important;
}

.legal-section {
    padding: 150px 0 80px;
    min-height: 100vh;
}

.legal-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 3rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #9a544d;
}

.legal-content h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-color);
}

.legal-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0) rotate(45deg);
    }
    40% {
        transform: translateX(-50%) translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateX(-50%) translateY(-5px) rotate(45deg);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 992px) {
    .nav-menu-left,
    .nav-menu-right {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-logo {
        position: static;
        left: auto;
        transform: none;
        justify-content: flex-start;
    }

    .logo-image {
        height: 70px;
    }

    .navbar.scrolled .logo-image {
        height: 65px;
    }

    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        justify-content: space-between;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(10px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-10px) rotate(-45deg);
    }
    
    /* Mobile menu open: dark logo and X button */
    .nav-toggle.active .bar {
        background: var(--primary-color) !important;
        box-shadow: none !important;
    }
    
    .mobile-menu.active ~ .navbar .logo-image,
    body.menu-open .logo-image {
        filter: brightness(0) !important;
    }

    .hero {
        padding: 0;
        margin-top: 0;
    }

    .hero-frame {
        height: 100vh;
    }

    .hero-image-container {
        height: 100vh;
    }

    .hero-image {
        object-position: right center;
    }

    .navbar:not(.scrolled) .bar {
        background: white;
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }

    .section {
        padding: 4rem 0;
    }

    .section-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 1rem;
    }
}

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

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .apartment-actions {
        flex-direction: column;
    }

    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.85rem;
    }
}

/* ===== SCROLL BEHAVIOR ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== LOADING ===== */
.loading {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.loaded {
    opacity: 1;
}
