﻿/* Domača stran (Default.cshtml) – mobile first; barve klasične teme portala (.sdb--klasicna v seznam.css), kartice iz seznam.css. */

.sdb.dom {
    padding: 0;
    background: #ffffff;
}

/* ---------- glava s fotografijami ---------- */
.dom-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(78vh, 620px);
    padding: calc(var(--gl-h, 64px) + 32px) 16px 36px; /* glava je nad fotografijo (glava.css) */
    overflow: hidden;
    background: linear-gradient(135deg, #346c81 0%, #2a4551 100%);
    color: #fff;
}

.dom-hero__slides, .dom-hero__overlay {
    position: absolute;
    inset: 0;
}

.dom-hero__slide {
    position: absolute;
    inset: 0;
    background-color: #2a4551;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

    .dom-hero__slide.is-active {
        opacity: 1;
    }

.dom-hero__overlay {
    background: linear-gradient(0deg, rgba(3, 17, 28, .88) 0, rgba(2, 42, 56, .4) 50%, rgba(2, 42, 56, .15) 100%);
}

.dom-hero__content {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.dom-hero h1 {
    margin: 0;
    font-size: clamp(28px, 7vw, 56px);
    line-height: 1.1;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 0, 0, .45);
    color: #fff;
}

.dom-hero__lede {
    max-width: 720px;
    margin: 12px 0 0;
    font-size: 17px;
    color: rgba(255, 255, 255, .92);
    text-shadow: 0 0 12px rgba(0, 0, 0, .4);
}

.dom-search {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 820px;
    margin: 22px 0 0;
    padding: 8px;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
}

    .dom-search input {
        flex: 1 1 220px;
        min-width: 0;
        min-height: 48px;
        padding: 0 12px;
        border: 0;
        border-radius: 6px;
        font: inherit;
        font-size: 16px;
        color: #444;
    }

    .dom-search .sdb-btn {
        flex: 1 1 auto;
        min-height: 48px;
    }

/* brez fotografij (ali skrite na mobilnih napravah po nastavitvi) */
.dom-hero--brez-fotografij {
    min-height: 0;
}

@media (max-width: 600px) {
    .dom-hero--brez-mobilnih {
        min-height: 0;
    }

        .dom-hero--brez-mobilnih .dom-hero__slides {
            display: none;
        }
}

/* ---------- vsebina ---------- */
.dom-body {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4px 16px 48px;
}

.dom-section {
    margin-top: 32px;
}

    .dom-section h2 {
        margin: 0 0 14px;
        font-size: clamp(20px, 4vw, 26px);
        color: var(--sdb-heading);
    }

.dom-section__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 4px 16px;
}

    .dom-section__head a {
        color: var(--sdb-primary);
        font-weight: 700;
        text-decoration: none;
    }

.dom-count {
    color: var(--sdb-muted);
    font-weight: 400;
}

.dom-quick {
    display: grid;
    gap: 18px;
}

    .dom-quick h3 {
        margin: 0 0 8px;
        font-size: 13px;
        letter-spacing: .04em;
        text-transform: uppercase;
        color: var(--sdb-muted);
    }

.dom-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .dom-chips a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 40px;
        padding: 6px 14px;
        border: 1px solid var(--sdb-line);
        border-radius: 999px;
        background: var(--sdb-soft);
        color: var(--sdb-primary-dark);
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }

        .dom-chips a:hover, .dom-chips a:focus-visible {
            border-color: var(--sdb-primary);
        }

        .dom-chips a span {
            color: var(--sdb-muted);
            font-weight: 400;
        }

.dom-more {
    margin-top: 20px;
    text-align: center;
}

    .dom-more .sdb-btn {
        text-decoration: none;
    }

.dom-map {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    min-height: 360px;
    max-height: 600px;
    overflow: hidden;
    border: 1px solid var(--sdb-line);
    border-radius: var(--sdb-radius);
    background: var(--sdb-soft);
}

/* ---------- večji zasloni ---------- */
@media (min-width: 600px) {
    .dom-search .sdb-btn {
        flex: 0 0 auto;
    }
}

@media (min-width: 768px) {
    .dom-hero {
        min-height: min(82vh, 820px);
        padding: calc(var(--gl-h, 72px) + 64px) 32px 64px;
    }

    .dom-body {
        padding: 8px 32px 64px;
    }

    .dom-quick {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 900px) {
    .dom-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .dom-hero__slide {
        transition: none;
    }
}
