/* --- Variables & Reset --- */
:root {
    --primary: #2c3e50; /* Dark Blue */
    --accent: #3498db; /* Bright Blue */
    --gold: #d4a017;   /* Warm Gold */
    --light: #f4f4f4;
    --text: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text);
    scroll-behavior: smooth;
}

h1, h2, h3, .logo {
    font-family: 'Montserrat', sans-serif;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* --- Layout Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
}

.bg-light { background-color: var(--light); }

.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover { background: #b8860b; }

/* --- Navigation --- */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links { display: flex; gap: 20px; }
.nav-links a { font-weight: 600; color: var(--primary); transition: 0.3s; }
.nav-links a:hover { color: var(--accent); }

/* --- Hero Section --- */
.hero {
    /* Uses the first image as background - change 1.jpg if you want a different one */
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('images1/1.jpg') no-repeat center center/cover;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero h1 { font-size: 3rem; margin-bottom: 20px; }
.hero p { font-size: 1.5rem; margin-bottom: 30px; }

/* --- Apartments Grid --- */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.apt-card {
    background: var(--white);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.apt-card:hover { transform: translateY(-5px); }
.apt-card h3 { color: var(--accent); margin-bottom: 15px; }
.amenities { margin-top: 20px; color: #777; font-size: 0.9rem; }
.amenities li { border-bottom: 1px solid #eee; padding: 5px 0; }

/* --- Gallery Grid --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.3s;
}

.gallery-grid img:hover { transform: scale(1.02); }

/* --- Contact Section --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    padding: 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 8px;
}

.contact-info h3 { margin-bottom: 20px; color: var(--gold); }
.contact-info p { margin-bottom: 20px; }

.contact-form form { display: flex; flex-direction: column; gap: 15px; }
.contact-form input, .contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: inherit;
}

/* --- Footer --- */
footer {
    background: #222;
    color: #888;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Simplified for mobile */
    .hero h1 { font-size: 2rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}

/* --- Map Styles --- */
.map-container {
    margin-top: 20px;
    border-radius: 5px;
    overflow: hidden; /* Ensures the map corners match the container */
    border: 2px solid rgba(255, 255, 255, 0.2); /* Subtle border */
}

.map-container iframe {
    display: block; /* Removes extra space below the iframe */
}




/* --- Separate Gallery Styles --- */
.apt-gallery-block {
    margin-bottom: 60px; /* Space between the different apartment sections */
}

.apt-gallery-name {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 20px;
    padding-left: 10px;
    border-left: 5px solid var(--gold); /* Adds a nice gold bar next to the name */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.03);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* --- Raspored za Apartmane --- */
@media (min-width: 768px) {
    .apartments-grid {
        display: grid;
        grid-template-columns: 1fr 1fr; /* Dvije kolone */
        gap: 30px;
    }

    .apt-wide {
        grid-column: span 2; /* Apartman 3 zauzima oba mjesta */
    }

    /* Redanje opreme u dva stupca samo za Apartman 3 */
    .apt-wide .amenities-container {
        display: flex;
        justify-content: space-around;
        border-top: 1px solid #eee;
        margin-top: 20px;
        padding-top: 10px;
    }
}

/* Stil za liste unutar širokog apartmana */
.apt-wide .amenities {
    border-bottom: none;
    text-align: left;
    min-width: 150px;
}