:root {
    --bg: #000000;
    --text: #1f242b;
    --muted: #6b7280;
    --dark: #000000;
    --accent: #ff5733;
    --call: #e85d04;
    --menu: #000000;
    --wa: #25d366;
    --radius: 16px;
    --header-h: 82px;
    --header-h-scrolled: 58px;
    --action-h: 66px;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    height: auto;
}

body {
    min-height: 100%;
    overflow-y: auto;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.55;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    transition: height 0.28s ease, background 0.28s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(120%) blur(6px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.main-header.scrolled {
    height: calc(var(--header-h-scrolled) + env(safe-area-inset-top, 0px));
    background: rgba(25, 29, 34, 0.98);
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 56px;
    transition: transform 0.28s ease, height 0.28s ease, opacity 0.28s ease;
    transform-origin: center left;
    display: block;
}

.main-header.scrolled .logo img {
    height: 44px;
    transform: translateY(-1px) scale(0.96);
    opacity: 0.95;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 18px;
}

.hero {
    min-height: 66vh;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: var(--radius);
    background: #111;
    box-shadow: var(--shadow);
    margin: 22px 18px 10px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("/static/slike/hero.jpeg") center / cover no-repeat;
    filter: brightness(0.72);
    transform: scale(1.04);
}

.hero-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    padding: 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero h1 {
    margin: 0;
    font-size: clamp(24px, 3.4vw, 40px);
    font-weight: 600;
    letter-spacing: 0.3px;
}

.gallery {
    margin-top: 32px;
}

.section-title {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 600;
    margin-bottom: 14px;
    color: white;
    text-align: center;
}

.slider {
    position: relative;
    border-radius: var(--radius);
    background: #000;
    box-shadow: var(--shadow);
    height: clamp(220px, 48vh, 520px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slider-track {
    display: flex;
    height: 100%;
}

.slide {
    min-width: 100%;
    height: 100%;
    scroll-snap-align: start;
    position: relative;
    background: #000;
}

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

.slider-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    padding: 12px 0 6px;
}

.slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: #d1d5db;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, width 0.2s ease;
}

.slider-dots button.active {
    background: var(--accent);
    width: 22px;
}

.map-card {
    margin-top: 34px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

#map {
    width: 100%;
    height: 360px;
}

.info {
    padding: 16px 18px 20px;
    display: grid;
    gap: 8px;
    color: var(--text);
}

.info p {
    margin: 0;
    color: #4b5563;
}

.naziv-lokacije {
    font-size: 18px;
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.chip:hover {
    transform: translateY(-1px);
    filter: brightness(0.98);
}

.chip img {
    width: 18px;
    height: 18px;
}

footer {
    margin: 15px 0 60px;
    color: #fff;
    background: var(--dark);
    padding: 26px 18px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-brand {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.footer-meta {
    color: #b9c0c6;
    margin: 10px 0;
    text-align: center;
}

.action-bar {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 100vw;
    height: calc(var(--action-h) + env(safe-area-inset-bottom, 0px));
    padding:
        5px max(8px, env(safe-area-inset-right, 0px))
        calc(env(safe-area-inset-bottom, 0px))
        max(8px, env(safe-area-inset-left, 0px));
    background: rgba(25, 29, 34, 0.98);
    backdrop-filter: saturate(120%) blur(6px);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    z-index: 1100;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.14);
    box-sizing: border-box;
    overflow-x: hidden;
}

.action-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.05;
    min-width: 0;
    padding: 0 2px;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.action-link:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
}

.action-link .icon {
    font-size: 35px;
    line-height: 1;
}

.action-link.call .icon {
    color: var(--call);
}

.action-link.menu .icon {
    color: var(--menu);
}

.action-link.wa img {
    width: 37px;
    height: 35px;
    display: block;
}

.action-link span:last-child {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
}

.section-title.sep-bleed {
    position: relative;
    text-align: center;
    margin-top: 18px;
}

.section-title.sep-bleed::before {
    content: "";
    display: block;
    height: 1px;
    background: #fff;
    opacity: 0.85;
    margin: 0 calc(50% - 50vw) 14px;
}

@media (max-width: 360px) {
    .action-link .icon {
        font-size: 18px;
    }

    .action-link span:last-child {
        font-size: 14px;
    }

    .hero h1 {
        font-size: clamp(20px, 6vw, 28px);
    }
}

@media (min-width: 900px) {
    .hero {
        margin: 28px auto 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .slider-track,
    .main-header,
    .logo img {
        transition: none !important;
    }
}