/* ========== SELF-HOSTED FONTS ========== */
/* Playfair Display – latin-ext */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('Assets/fonts/playfair-display-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Playfair Display – latin */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('Assets/fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Source Sans 3 – latin-ext */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('Assets/fonts/source-sans-3-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Source Sans 3 – latin */
@font-face {
    font-family: 'Source Sans 3';
    font-style: normal;
    font-weight: 300 600;
    font-display: swap;
    src: url('Assets/fonts/source-sans-3-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

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

:root {
    --bg-warm: #f9f6f1;
    --bg-white: #ffffff;
    --text-dark: #2c2c2c;
    --text-muted: #6b6b6b;
    --accent-green: #43e97b;
    --accent-blue: #4facfe;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-warm);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* ========== HERO CAROUSEL ========== */
.hero {
    position: relative;
    height: 60vh;
    overflow: hidden;
}

.carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.35) 100%
    );
    z-index: 1;
}

.hero-content {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 20px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-location {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.1em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

/* Carousel Arrows */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.carousel-arrow:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
}

.carousel-arrow.prev {
    left: 16px;
}

.carousel-arrow.next {
    right: 16px;
}

/* Carousel Dots */
.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 10px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ========== PROMO SECTION ========== */
.promo-section {
    padding: 60px 20px;
    background: var(--bg-white);
}

.promo-content {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.promo-content p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-muted);
}

.promo-headline {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.35;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    max-width: 850px;
    margin: 0 auto;
}

/* ========== PROMO CARD (frosted glass over background) ========== */
.promo-card {
    width: 100%;
    padding: 80px 20px;
    position: relative;
    overflow: hidden;
}

.promo-card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.promo-card-inner {
    max-width: 750px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    z-index: 1;
}

.promo-card-inner p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: var(--text-dark);
}

/* ========== APARTMENTS SECTION ========== */
.apartments-section {
    position: relative;
    min-height: 100vh;
    padding: 80px 20px 100px;
    background: var(--bg-warm);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.section-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

/* Apartment Tiles Grid */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Individual Apartment Tile */
.apartment-tile {
    background-color: var(--bg-white);
    border-radius: 16px;
    padding: 30px 25px;
    border: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    min-height: 180px;
}

.tile-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    border-radius: 16px;
}

.apartment-tile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    z-index: 1;
    transition: background 0.3s ease;
}

.apartment-tile:hover::after {
    background: rgba(0, 0, 0, 0.2);
}

.apartment-tile::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.apartment-tile:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.apartment-tile:hover::before {
    opacity: 1;
}

.apartment-tile.no-link {
    cursor: default;
    opacity: 0.7;
}

.apartment-tile.no-link:hover {
    transform: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.tile-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.tile-provider {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.tile-link-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-top: auto;
    padding-top: 15px;
    position: relative;
    z-index: 2;
}

.apartment-tile:hover .tile-link-hint {
    opacity: 1;
    transform: translateX(0);
}

.tile-link-hint::after {
    content: '\2192';
    font-size: 1.1rem;
}

.tile-hover-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    text-align: center;
    z-index: 2;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 16px 16px;
}

.apartment-tile.no-link:hover .tile-hover-label {
    opacity: 1;
    transform: translateY(0);
}

.tile-contact {
    font-size: 0.85rem;
    color: #c0851c;
    font-style: italic;
    margin-top: auto;
    padding-top: 15px;
    position: relative;
    z-index: 2;
}

/* ========== FOOTER ========== */
.footer {
    text-align: center;
    padding: 40px 20px;
    background: var(--bg-white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footer p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

/* Staggered tile animation */
.apartment-tile {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.apartment-tile:nth-child(1) { animation-delay: 0.1s; }
.apartment-tile:nth-child(2) { animation-delay: 0.15s; }
.apartment-tile:nth-child(3) { animation-delay: 0.2s; }
.apartment-tile:nth-child(4) { animation-delay: 0.25s; }
.apartment-tile:nth-child(5) { animation-delay: 0.3s; }
.apartment-tile:nth-child(6) { animation-delay: 0.35s; }
.apartment-tile:nth-child(7) { animation-delay: 0.4s; }
.apartment-tile:nth-child(8) { animation-delay: 0.45s; }
.apartment-tile:nth-child(9) { animation-delay: 0.5s; }
.apartment-tile:nth-child(10) { animation-delay: 0.55s; }
.apartment-tile:nth-child(11) { animation-delay: 0.6s; }
.apartment-tile:nth-child(12) { animation-delay: 0.65s; }

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .hero-content {
        bottom: 50px;
        padding: 0 15px;
    }

    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .carousel-arrow.prev {
        left: 12px;
    }

    .carousel-arrow.next {
        right: 12px;
    }

    .promo-section {
        padding: 40px 20px;
    }

    .promo-content p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .promo-headline {
        font-size: 1.5rem;
        line-height: 1.4;
    }

    .promo-card {
        padding: 50px 15px;
    }

    .promo-card-inner {
        padding: 28px 20px;
    }

    .promo-card-inner p {
        font-size: 1rem;
        line-height: 1.8;
    }

    .apartments-section {
        padding: 60px 15px 80px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .apartment-tile {
        padding: 25px 20px;
    }

    .tile-name {
        font-size: 1.15rem;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 45vh;
    }

    .hero-content {
        bottom: 40px;
    }

    .footer {
        padding: 30px 15px;
    }

    .footer p {
        font-size: 0.8rem;
    }
}

/* Large screens - 3 columns */
@media (min-width: 1200px) {
    .apartments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium screens - 3 columns */
@media (min-width: 900px) and (max-width: 1199px) {
    .apartments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
