/* ===== Variables ===== */
:root {
    --color-primary: #1a5276;
    --color-primary-light: #2980b9;
    --color-accent: #d4a76a;
    --color-accent-hover: #c9955a;
    --color-text: #2c3e50;
    --color-text-light: #5d6d7e;
    --color-bg: #ffffff;
    --color-bg-alt: #f8f9fa;
    --color-border: #e8ecf0;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s ease;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Playfair Display', Georgia, serif;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    line-height: 1.7;
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

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

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

img {
    max-width: 100%;
    display: block;
}

/* ===== Layout ===== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

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

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    font-size: 1.1rem;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-full {
    width: 100%;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.header.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 120px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 108px;
    width: auto;
    display: block;
}

/* Footer logo */
.footer-logo-img {
    height: 90px;
    width: auto;
    border-radius: 10px;
    margin-bottom: 10px;
    display: block;
}

.nav {
    display: flex;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active-nav {
    color: var(--color-primary);
    background: var(--color-bg-alt);
}

.nav-link.active-nav {
    font-weight: 500;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--color-bg-alt);
    padding: 4px;
    border-radius: var(--radius-sm);
}

.lang-btn {
    padding: 4px 10px;
    border: none;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all var(--transition);
    font-family: var(--font-body);
}

.lang-btn.active {
    background: var(--color-primary);
    color: #fff;
}

.lang-btn:hover:not(.active) {
    color: var(--color-primary);
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #1a5276 0%, #2980b9 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.hero-deco {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-sun {
    position: absolute;
    top: -60px;
    right: -60px;
    width: 380px;
    height: 380px;
    opacity: 0.18;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 130px;
    display: block;
    opacity: 0.28;
}

@media (max-width: 768px) {
    .hero-sun {
        width: 260px;
        height: 260px;
        top: -40px;
        right: -40px;
    }
    .hero-wave {
        height: 90px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 24px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.15;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* ===== About ===== */
.about-content {
    display: grid;
    gap: 60px;
}

.about-text {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--color-text-light);
    margin-bottom: 16px;
}

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

.highlight {
    text-align: center;
    padding: 32px 24px;
    border-radius: var(--radius);
    background: var(--color-bg-alt);
    transition: all var(--transition);
}

.highlight:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.highlight-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.highlight h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.highlight p {
    font-size: 0.95rem;
    color: var(--color-text-light);
}

/* ===== Apartment ===== */
.apartment-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
    background: var(--color-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.apartment-image {
    min-height: 500px;
    overflow: hidden;
}

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

.image-placeholder {
    color: rgba(255,255,255,0.5);
    font-size: 1.1rem;
    font-weight: 500;
    text-align: center;
    padding: 24px;
}

.apartment-info {
    padding: 40px 40px 40px 0;
}

.apartment-desc {
    font-size: 1.05rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}

.amenities h3,
.distances h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.amenity-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 32px;
}

.amenity-list li {
    font-size: 0.95rem;
    color: var(--color-text-light);
    padding-left: 24px;
    position: relative;
}

.amenity-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 700;
}

.distance-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.distance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.distance-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
}

.distance-item strong {
    margin-left: auto;
    color: var(--color-primary);
    white-space: nowrap;
}

/* ===== Gallery ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item:nth-child(1) { --delay: 0.0s; }
.gallery-item:nth-child(2) { --delay: 0.1s; }
.gallery-item:nth-child(3) { --delay: 0.2s; }
.gallery-item:nth-child(4) { --delay: 0.1s; }
.gallery-item:nth-child(5) { --delay: 0.2s; }
.gallery-item:nth-child(6) { --delay: 0.3s; }
.gallery-item:nth-child(7) { --delay: 0.0s; }
.gallery-item:nth-child(8) { --delay: 0.1s; }
.gallery-item:nth-child(9) { --delay: 0.2s; }
.gallery-item:nth-child(10) { --delay: 0.1s; }
.gallery-item:nth-child(11) { --delay: 0.2s; }
.gallery-item:nth-child(12) { --delay: 0.3s; }

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius);
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-info-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    text-align: center;
}

.contact-detail a {
    color: var(--color-text);
}

.contact-detail a:hover {
    color: var(--color-primary-light);
}

.map-link {
    margin-top: 16px;
}

.btn-map {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-bg-alt);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-map:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

/* Contact Form */
.contact-form {
    background: var(--color-bg);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--color-text);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-bg);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(41,128,185,0.1);
}

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

.form-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-top: 12px;
}

/* Form success/error messages */
.form-status {
    padding: 16px;
    border-radius: var(--radius-sm);
    text-align: center;
    margin-top: 16px;
    font-size: 0.95rem;
    display: none;
}

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

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

/* ===== Footer ===== */
.footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 32px;
}

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

.footer .logo-main {
    color: #fff;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer-links a:hover {
    color: #fff;
}

.footer-copy {
    font-size: 0.85rem;
    opacity: 0.6;
}

/* ===== Scroll Animations ===== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: var(--delay, 0s);
}

.animate-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Lightbox ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img-wrap {
    max-width: calc(100vw - 120px);
    max-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 48px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.25);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    font-size: 1.2rem;
}

.lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    font-family: var(--font-body);
    background: rgba(0,0,0,0.4);
    padding: 6px 16px;
    border-radius: 20px;
}

/* Gallery cursor hint */
.gallery-item {
    cursor: zoom-in;
}

/* ===== Back to top ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 500;
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.back-to-top:hover {
    background: var(--color-primary-light);
}

/* ===== WhatsApp floating button ===== */
@keyframes whatsapp-pulse {
    0%   { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0.4); }
    70%  { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 0 0 14px rgba(37,211,102,0); }
    100% { box-shadow: 0 4px 16px rgba(37,211,102,0.45), 0 0 0 0 rgba(37,211,102,0); }
}

.whatsapp-float {
    position: fixed;
    bottom: 32px;
    left: 32px;
    z-index: 500;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    animation: whatsapp-pulse 2.5s infinite;
    transition: transform 0.2s ease, background 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background: #1ebe5d;
    animation: none;
    box-shadow: 0 6px 24px rgba(37,211,102,0.55);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.whatsapp-tooltip {
    position: absolute;
    left: 68px;
    background: rgba(0,0,0,0.72);
    color: #fff;
    font-size: 0.8rem;
    font-family: var(--font-body);
    padding: 5px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
}

/* ===== Responsive ===== */
@media (max-width: 968px) {
    .apartment-card {
        grid-template-columns: 1fr;
    }

    .apartment-image {
        min-height: 300px;
    }

    .apartment-info {
        padding: 32px;
    }

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

@media (max-width: 768px) {
    .section {
        padding: 72px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 120px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--transition);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .amenity-list {
        grid-template-columns: 1fr;
    }

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

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .footer-links {
        flex-direction: column;
        gap: 12px;
    }

    .lang-switcher {
        gap: 2px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

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

    .contact-form {
        padding: 24px;
    }
}
