/* ===================================================================
   Vila sa bazenom — Brezičani
   Paleta: duboki bazenski teal, kamen/travertin, prigušena crijep-terakota, kadulja zelena
   Tipografija: Fraunces (display, karakteran) + Inter (tijelo/utility)
   =================================================================== */

:root {
    --teal-deep: #1c4a49;
    --teal-mid: #2f6b68;
    --stone: #ece5d6;
    --stone-dark: #d9cfb8;
    --clay: #a85d43;
    --sage: #6e8261;
    --ink: #2a251e;
    --ink-soft: #55503f;
    --white: #fffdf8;
    --radius: 4px;
    --shadow: 0 10px 30px rgba(28, 74, 73, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
}

h1, h2, h3, .display {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--teal-deep);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* --- Contour/topographic signature motif, faint, in hero & section dividers --- */
.contour-bg {
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%231c4a49' stroke-opacity='0.06' stroke-width='1.5'%3E%3Cpath d='M-20 60 Q 100 20 200 60 T 420 60'/%3E%3Cpath d='M-20 110 Q 100 70 200 110 T 420 110'/%3E%3Cpath d='M-20 160 Q 100 120 200 160 T 420 160'/%3E%3Cpath d='M-20 210 Q 100 170 200 210 T 420 210'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 500px;
    pointer-events: none;
}

/* --- Nav --- */
header.site-header {
    position: sticky; top: 0; z-index: 40;
    background: rgba(255,253,248,0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--stone-dark);
}
.nav-wrap { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: 1120px; margin: 0 auto; }
.logo { font-family: 'Fraunces', serif; font-size: 1.15rem; font-weight: 600; color: var(--teal-deep); }
.logo span { color: var(--clay); }
nav.main-nav { display: flex; align-items: center; gap: 28px; }
nav.main-nav a { font-size: 0.92rem; color: var(--ink-soft); }
nav.main-nav a:hover { color: var(--teal-deep); }
nav.main-nav a.nav-home { font-weight: 600; color: var(--teal-deep); }

.menu-toggle { display: none; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 38px; height: 38px; background: none; border: 1px solid var(--stone-dark); border-radius: var(--radius); cursor: pointer; padding: 0; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--teal-deep); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.btn-nav { background: var(--teal-deep); color: var(--white) !important; padding: 10px 20px; border-radius: var(--radius); font-size: 0.88rem; }

/* --- Hero --- */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--stone) 0%, var(--white) 100%); padding: 72px 0 56px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sage); font-weight: 600; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); line-height: 1.08; margin-bottom: 18px; }
.hero p.lead { font-size: 1.08rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 28px; border-radius: var(--radius); font-weight: 600; font-size: 0.95rem; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.btn-primary { background: var(--clay); color: var(--white); box-shadow: var(--shadow); }
.btn-primary:hover { transform: translateY(-2px); }
.btn-ghost { border: 1.5px solid var(--teal-deep); color: var(--teal-deep); }
.hero-image { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/5; background: var(--stone-dark); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-mosaic { display: flex; flex-direction: column; gap: 6px; }
.hero-mosaic .mosaic-main { flex: 0 0 66%; min-height: 0; overflow: hidden; }
.hero-mosaic .mosaic-row { display: flex; gap: 6px; flex: 1 1 auto; min-height: 0; }
.hero-mosaic .mosaic-cell { flex: 1 1 0; min-width: 0; overflow: hidden; }

/* --- Stats strip --- */
.stats-strip { background: var(--teal-deep); color: var(--white); padding: 28px 0; }
.stats-strip .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px 16px; }
.stat { text-align: center; }
.stat b { display: block; font-family: 'Fraunces', serif; font-size: 1.5rem; }
.stat span { font-size: 0.8rem; opacity: 0.8; }

/* --- Sections --- */
section { padding: 64px 0; }
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.section-head p { color: var(--ink-soft); }

/* --- Gallery --- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 150px; gap: 10px; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); cursor: pointer; transition: opacity 0.15s ease; }
.gallery-grid img:hover { opacity: 0.85; }
.gallery-grid a:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* --- Lightbox --- */
.lightbox-overlay {
    position: fixed; inset: 0; background: rgba(24, 20, 15, 0.94);
    display: none; align-items: center; justify-content: center;
    z-index: 100; padding: 40px;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img {
    max-width: 88vw; max-height: 82vh; object-fit: contain;
    border-radius: 4px; box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,0.1); border: none; color: var(--white);
    cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 1.4rem;
    display: flex; align-items: center; justify-content: center; transition: background 0.15s ease;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-counter {
    position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
    color: var(--white); font-size: 0.85rem; opacity: 0.8; letter-spacing: 0.05em;
}
@media (max-width: 640px) {
    .lightbox-prev, .lightbox-next { width: 38px; height: 38px; font-size: 1.1rem; }
    .lightbox-close { width: 38px; height: 38px; top: 12px; right: 12px; }
}

/* --- Amenities --- */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.amenity-card { padding: 24px; background: var(--stone); border-radius: var(--radius); border-left: 3px solid var(--clay); }
.amenity-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.amenity-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* --- Pool showcase (Bazen sekcija) --- */
.pool-showcase { display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 520px; gap: 12px; }
.pool-main { display: block; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; height: 520px; }
.pool-main img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.pool-main:hover img { transform: scale(1.03); }
.pool-side { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; height: 520px; }
.pool-side a { display: block; border-radius: 8px; overflow: hidden; height: 100%; }
.pool-side img { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; transition: opacity 0.15s ease; }
.pool-side img:hover { opacity: 0.85; }
@media (max-width: 760px) {
    .pool-showcase { grid-template-columns: 1fr; grid-template-rows: none; height: auto; }
    .pool-main { height: 280px; }
    .pool-side { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; height: 120px; }
}

/* --- Calendar / Booking widget --- */
.booking-panel { background: var(--stone); border-radius: 8px; padding: 32px; box-shadow: var(--shadow); }
.calendar-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; }
.cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-header button { background: var(--white); border: 1px solid var(--stone-dark); border-radius: var(--radius); width: 34px; height: 34px; cursor: pointer; font-size: 1rem; }
.cal-title { font-family: 'Fraunces', serif; font-weight: 600; color: var(--teal-deep); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 0.72rem; color: var(--ink-soft); padding-bottom: 6px; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); font-size: 0.85rem; cursor: pointer; background: var(--white); border: 1px solid transparent; }
.cal-day.empty { visibility: hidden; }
.cal-day.past { color: #bbb; cursor: not-allowed; background: transparent; }
.cal-day.booked { background: #f1d8d0; color: #a85d43; text-decoration: line-through; cursor: not-allowed; }
.cal-day.available:hover { border-color: var(--teal-deep); }
.cal-day.selected { background: var(--teal-deep); color: var(--white); }
.cal-day.in-range { background: #cfe3e1; }
.legend { display: flex; gap: 16px; margin-top: 14px; font-size: 0.8rem; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dot.free { background: var(--white); border: 1px solid var(--stone-dark); }
.dot.taken { background: #f1d8d0; }
.dot.sel { background: var(--teal-deep); }

/* --- Booking form --- */
.booking-form label { display: block; font-size: 0.82rem; font-weight: 600; margin: 14px 0 6px; color: var(--ink); }
.booking-form input, .booking-form select, .booking-form textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--stone-dark); border-radius: var(--radius);
    font-family: inherit; font-size: 0.95rem; background: var(--white);
}
.price-summary { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--stone-dark); }
.price-row { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 6px; color: var(--ink-soft); }
.price-row.total { font-weight: 700; font-size: 1.15rem; color: var(--teal-deep); font-family: 'Fraunces', serif; }
.btn-book { width: 100%; margin-top: 18px; background: var(--clay); color: var(--white); border: none; padding: 16px; border-radius: var(--radius); font-weight: 700; font-size: 1rem; cursor: pointer; }
.btn-book:disabled { background: #ccc; cursor: not-allowed; }
.form-msg { margin-top: 10px; font-size: 0.85rem; }
.form-msg.error { color: #a83232; }
.form-msg.ok { color: var(--sage); }

/* --- Footer --- */
footer { background: var(--ink); color: var(--stone); padding: 48px 0 24px; margin-top: 40px; }
footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
footer h4 { font-family: 'Fraunces', serif; color: var(--white); margin-bottom: 10px; }
footer p, footer a { font-size: 0.88rem; color: #cfc9b8; }
.footer-bottom { text-align: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid #443f33; font-size: 0.8rem; color: #98937f; }

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .calendar-wrap { grid-template-columns: 1fr; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-strip .stats-grid { grid-template-columns: repeat(2, 1fr); }

    .menu-toggle { display: flex; }
    nav.main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--white);
        border-top: 1px solid var(--stone-dark);
        box-shadow: 0 12px 24px rgba(28, 74, 73, 0.14);
        padding: 8px 24px 16px;
        z-index: 50;
    }
    nav.main-nav.open { display: flex; }
    nav.main-nav a { padding: 14px 0; border-bottom: 1px solid var(--stone-dark); }
    nav.main-nav a:last-child { border-bottom: none; }
}
