/* =========================================================
   VILLA NATALI
   FINAL CSS ONLY FOR: apartamenty-podaca-chorwacja.html
========================================================= */

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

:root{
    --primary:#3498db;
    --primary-dark:#217dbb;
    --secondary:#1e293b;
    --accent:#e67e22;
    --accent-dark:#d35400;
    --whatsapp:#25D366;
    --bg:#f5f7fb;
    --card:#ffffff;
    --text:#334155;
    --muted:#64748b;
    --border:#e2e8f0;
    --shadow:0 12px 30px rgba(15,23,42,0.08);
    --shadow-hover:0 18px 42px rgba(15,23,42,0.13);
    --container:1240px;
    --header-h:84px;
}

html{
    scroll-behavior:smooth;
    overflow-x:hidden;
}

body{
    font-family:'Poppins',sans-serif;
    color:var(--text);
    background:var(--bg);
    line-height:1.7;
    overflow-x:hidden;
    width:100%;
}

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

a{
    text-decoration:none;
    color:inherit;
}

header{
    position:fixed;
    top:0;
    left:0;
    width:100%;
    background:rgba(255,255,255,0.97);
    backdrop-filter:blur(10px);
    box-shadow:0 2px 18px rgba(0,0,0,0.06);
    z-index:1000;
}

.nav-container{
    width:100%;
    max-width:var(--container);
    margin:0 auto;
    min-height:var(--header-h);
    padding:14px 22px;
    display:grid;
    grid-template-columns:auto 1fr;
    align-items:center;
    gap:22px;
}

.logo{
    display:flex;
    align-items:center;
    min-width:0;
    z-index:1002;
}

.logo img{
    height:58px;
    width:auto;
    object-fit:contain;
}

.nav-group{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:14px;
    min-width:0;
    margin-left:auto;
}

.desktop-menu{
    display:flex;
    align-items:center;
    gap:24px;
}

.desktop-menu a{
    color:#334155;
    font-weight:600;
    font-size:0.98rem;
    white-space:nowrap;
    transition:.25s ease;
}

.desktop-menu a:hover,
.desktop-menu a.active{
    color:var(--accent-dark);
}

.mobile-cta{
    display:none;
}

.language-dropdown{
    position:relative;
    flex:0 0 auto;
}

.lang-btn{
    border:none;
    background:var(--primary);
    color:#fff;
    border-radius:999px;
    padding:10px 16px;
    font-weight:700;
    display:inline-flex;
    align-items:center;
    gap:8px;
    cursor:pointer;
    white-space:nowrap;
}

.lang-options{
    display:none;
    position:absolute;
    right:0;
    top:calc(100% + 8px);
    min-width:110px;
    background:#fff;
    border-radius:14px;
    box-shadow:0 12px 32px rgba(15,23,42,0.16);
    padding:8px 0;
    z-index:1100;
}

.lang-options a{
    display:block;
    padding:10px 14px;
    color:#334155;
    font-weight:600;
}

.lang-options a:hover{
    background:#f8fafc;
    color:var(--accent-dark);
}

.language-dropdown.active .lang-options{
    display:block;
}

.hamburger{
    display:none;
    width:42px;
    height:42px;
    border:none;
    background:transparent;
    color:#1e293b;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    margin-left:0;
}

.hamburger i{
    font-size:24px;
}

/* HERO */
.swiper{
    width:100%;
    height:72vh;
    min-height:520px;
    margin-top:var(--header-h);
    position:relative;
}

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

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(15,23,42,.12) 0%, rgba(15,23,42,.60) 100%);
    z-index:2;
    pointer-events:none;
}

.hero-content{
    position:absolute;
    inset:0;
    z-index:3;
    max-width:860px;
    margin:auto;
    height:max-content;
    text-align:center;
    color:#fff;
    padding:0 24px;
}

.hero-content h1{
    font-size:clamp(2.2rem, 4vw, 3.4rem);
    line-height:1.15;
    margin-bottom:16px;
    color:#fff;
    text-shadow:0 6px 22px rgba(0,0,0,.28);
}

.hero-content p{
    max-width:760px;
    margin:0 auto 22px;
    font-size:1.08rem;
    color:#f8fafc;
    text-shadow:0 4px 18px rgba(0,0,0,.28);
}

.hero-buttons{
    display:flex;
    justify-content:center;
    gap:14px;
    flex-wrap:wrap;
}

.btn-primary,
.btn-secondary{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:14px 24px;
    border-radius:999px;
    font-weight:700;
    transition:.25s ease;
}

.btn-primary{
    background:linear-gradient(135deg,var(--accent),var(--accent-dark));
    color:#fff;
    box-shadow:0 12px 28px rgba(211,84,0,.24);
}

.btn-primary:hover,
.booking-btn:hover{
    transform:translateY(-2px);
}

.btn-secondary{
    background:rgba(255,255,255,.94);
    color:var(--secondary);
    border:1px solid rgba(255,255,255,.7);
}

.btn-secondary:hover,
.details-btn:hover{
    transform:translateY(-2px);
}

/* SECTIONS */
.seo-intro,
.features,
.apartments,
.content-section,
.mapa,
.borea-banner{
    max-width:var(--container);
    margin:46px auto;
    padding:0 20px;
}

.seo-box,
.content-box{
    background:#fff;
    border-radius:28px;
    box-shadow:var(--shadow);
    border:1px solid #e9eef5;
    padding:38px;
    text-align:center;
}

.section-title{
    font-size:clamp(1.8rem, 3vw, 2.35rem);
    color:var(--secondary);
    text-align:center;
    margin-bottom:12px;
}

.section-subtitle{
    max-width:760px;
    margin:0 auto 28px;
    text-align:center;
    color:var(--muted);
}

.seo-box h2,
.content-box h2{
    font-size:clamp(1.75rem, 3vw, 2.25rem);
    line-height:1.25;
    margin-bottom:16px;
    color:var(--secondary);
}

.seo-box p,
.content-box p,
.content-box li{
    color:#475569;
    font-size:1rem;
}

.seo-links{
    display:flex;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    margin-top:22px;
}

.seo-links a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    padding:0 18px;
    border-radius:999px;
    background:#f8fafc;
    border:1px solid var(--border);
    color:#334155;
    font-weight:600;
    transition:.25s ease;
}

.seo-links a:hover{
    color:var(--accent-dark);
    border-color:#f3c58f;
    background:#fff7ed;
}

/* FEATURES */
.features-grid{
    display:grid;
    grid-template-columns:repeat(4, minmax(0,1fr));
    gap:22px;
}

.feature-card{
    background:#fff;
    border-radius:24px;
    padding:26px 22px;
    box-shadow:var(--shadow);
    border:1px solid #e9eef5;
    text-align:center;
}

.feature-card i{
    font-size:2rem;
    color:var(--primary);
    margin-bottom:12px;
}

.feature-card h3{
    color:var(--secondary);
    margin-bottom:10px;
    font-size:1.15rem;
}

.feature-card p{
    color:var(--muted);
    margin:0;
}

/* APARTMENT CARDS */
.apartments-grid{
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:26px;
}

.apartment-card{
    background:#fff;
    border-radius:26px;
    overflow:hidden;
    box-shadow:var(--shadow);
    border:1px solid #e9eef5;
    display:flex;
    flex-direction:column;
    transition:.28s ease;
}

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

.apartment-card img{
    width:100%;
    height:245px;
    object-fit:cover;
}

.apartment-card h3{
    color:var(--secondary);
    font-size:1.45rem;
    line-height:1.25;
    margin:20px 20px 10px;
    text-align:center;
}

.apartment-card p{
    color:var(--muted);
    margin:0 20px 18px;
    text-align:center;
    min-height:54px;
}

.card-buttons{
    display:grid;
    gap:10px;
    padding:0 20px 22px;
    margin-top:auto;
}

.details-btn,
.booking-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:48px;
    padding:0 18px;
    border-radius:14px;
    font-weight:700;
    transition:.25s ease;
}

.details-btn{
    background:#eef6fc;
    color:#1f5f9b;
    border:1px solid #cfe4f8;
}

.booking-btn{
    background:linear-gradient(135deg,var(--accent),var(--accent-dark));
    color:#fff;
    box-shadow:0 10px 22px rgba(211,84,0,.20);
}

/* TEXT */
.content-box{
    text-align:left;
}

.content-box h3{
    color:var(--secondary);
    margin:20px 0 10px;
    font-size:1.15rem;
}

.content-box ul{
    margin:0 0 14px 18px;
}

.content-box li{
    margin-bottom:8px;
}

.content-box a{
    color:var(--accent-dark);
    font-weight:600;
}

/* BANNERS / MAP / FOOTER */
.borea-banner{
    background:#fff;
    border-radius:24px;
    box-shadow:var(--shadow);
    border:1px solid #e9eef5;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:22px;
    padding:22px;
    flex-wrap:wrap;
}

.borea-banner img{
    height:74px;
    width:auto;
    object-fit:contain;
}

.mapa iframe{
    width:100%;
    height:430px;
    border:0;
    border-radius:26px;
    box-shadow:var(--shadow);
}

footer{
    background:var(--secondary);
    color:#fff;
    margin-top:46px;
    padding:54px 0 20px;
}

.footer-content{
    max-width:var(--container);
    margin:0 auto;
    padding:0 20px;
    display:grid;
    grid-template-columns:repeat(3, minmax(0,1fr));
    gap:28px;
}

.footer-column h3{
    margin-bottom:14px;
    font-size:1.08rem;
}

.footer-column p,
.footer-column a{
    color:#cbd5e1;
    margin-bottom:10px;
    display:block;
}

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

.social-icons{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.copyright{
    max-width:var(--container);
    margin:22px auto 0;
    padding:14px 20px 0;
    text-align:center;
    color:#94a3b8;
    border-top:1px solid rgba(255,255,255,.08);
}

.whatsapp-float{
    position:fixed;
    right:18px;
    bottom:18px;
    width:56px;
    height:56px;
    border-radius:50%;
    background:var(--whatsapp);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:26px;
    box-shadow:0 12px 24px rgba(0,0,0,.18);
    z-index:999;
}

/* RESPONSIVE */
@media (max-width:1100px){
    .features-grid{
        grid-template-columns:repeat(2, minmax(0,1fr));
    }

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

@media (max-width:900px){
    :root{
        --header-h:74px;
    }

    .nav-container{
        grid-template-columns:minmax(0,1fr) auto;
        min-height:var(--header-h);
        padding:12px 16px;
        gap:10px;
    }

    .logo img{
        height:42px;
    }

    .nav-group{
        gap:10px;
    }

    .desktop-menu{
        position:absolute;
        top:var(--header-h);
        right:16px;
        left:auto;
        width:min(270px, calc(100vw - 32px));
        display:none;
        flex-direction:column;
        align-items:stretch;
        gap:0;
        background:#fff;
        padding:14px 16px;
        border-radius:16px;
        box-shadow:0 16px 34px rgba(15,23,42,.16);
        z-index:1200;
    }

    .desktop-menu.active{
        display:flex;
    }

    .desktop-menu a{
        width:100%;
        padding:12px 0;
        border-bottom:1px solid #eef2f7;
    }

    .desktop-menu a:last-child{
        border-bottom:none;
    }

    .mobile-cta{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        margin-top:10px;
        padding:12px 14px;
        background:linear-gradient(135deg,var(--accent),var(--accent-dark));
        color:#fff !important;
        border-radius:12px;
    }

    .hamburger{
        display:inline-flex;
    }

    .swiper{
        height:52vh;
        min-height:360px;
        margin-top:var(--header-h);
    }

    .hero-content{
        padding:0 18px;
    }

    .hero-content h1{
        font-size:1.95rem;
    }

    .hero-content p{
        font-size:1rem;
    }

    .hero-buttons{
        flex-direction:column;
        align-items:stretch;
        max-width:360px;
        margin:0 auto;
    }

    .btn-primary,
    .btn-secondary{
        width:100%;
    }

    .seo-intro,
    .features,
    .apartments,
    .content-section,
    .mapa,
    .borea-banner{
        padding:0 16px;
    }

    .seo-box,
    .content-box{
        padding:26px 20px;
        border-radius:22px;
    }

    .footer-content{
        grid-template-columns:1fr 1fr;
    }
}

@media (max-width:640px){
    :root{
        --header-h:68px;
    }

    .nav-container{
        padding:10px 12px;
        min-height:var(--header-h);
    }

    .logo img{
        height:36px;
    }

    .lang-btn{
        padding:8px 10px;
        font-size:.84rem;
    }

    .desktop-menu{
        top:var(--header-h);
        right:12px;
        width:min(255px, calc(100vw - 24px));
    }

    .swiper{
        height:44vh;
        min-height:300px;
        margin-top:var(--header-h);
    }

    .hero-content h1{
        font-size:1.6rem;
        margin-bottom:12px;
    }

    .hero-content p{
        font-size:.95rem;
        margin-bottom:16px;
    }

    .features-grid,
    .apartments-grid,
    .footer-content{
        grid-template-columns:1fr;
    }

    .apartment-card img{
        height:220px;
    }

    .apartment-card h3{
        font-size:1.3rem;
    }

    .apartment-card p{
        min-height:auto;
    }

    .borea-banner img{
        height:60px;
    }

    .mapa iframe{
        height:300px;
    }

    .whatsapp-float{
        width:52px;
        height:52px;
        font-size:24px;
        bottom:14px;
        right:14px;
    }
}
