:root {
    --primary: #324060;
    --primary-light: #3f4f75;
    --accent: #a9d158;
    --accent-dark: #8fb848;
    --bg-light: #f5f5f5;
    --text: #595b61;
    --nav-scroll-offset: 137px;
}

body {
    font-family: 'PT Serif', 'Georgia', 'Times New Roman', serif;
    font-size: 16px;
    color: var(--text);
    line-height: 1.625em;
    background-color: #fff;
}

p, li, .page-content, .split-image-panel p, .split-image-panel .lead {
    text-align: justify;
    text-justify: inter-word;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'PT Serif', serif;
    color: var(--primary);
    text-align: left;
}

.navbar-custom {
    background: #fff !important;
    box-shadow: 0 1px 5px rgba(0,0,0,0.08);
    padding: 8px 0;
}

.navbar-brand-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right: 10px;
}

.navbar-custom .navbar-brand {
    font-weight: 700;
    font-style: italic;
    color: var(--primary) !important;
    font-size: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar-custom .navbar-brand img,
.navbar-custom .navbar-logo {
    height: 121px;
    width: auto;
    max-width: none;
    margin-right: 0;
    filter: brightness(0.55);
}

.navbar-custom .navbar-nav {
    margin-right: 0;
}

.navbar-custom .navbar-nav .nav-link {
    color: var(--primary) !important;
    font-family: 'PT Serif', serif;
    font-size: 1em;
    padding: 8px 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-custom .navbar-nav .nav-link:hover,
.navbar-custom .navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

.navbar-custom .navbar-nav .nav-link-reserved {
    visibility: hidden;
    pointer-events: none;
    user-select: none;
}

@media (min-width: 992px) {
    .navbar-custom .navbar-collapse {
        flex-wrap: nowrap;
    }

    .navbar-custom .navbar-nav {
        margin-right: 0.5rem;
        margin-top: calc(121px * 0.2); /* ~20% of logo height */
        flex-wrap: nowrap;
        white-space: nowrap;
    }

    .navbar-custom .navbar-nav .nav-link {
        padding: 8px 11px;
        font-size: 0.92em; /* −10% when active, then −5% */
        letter-spacing: 0.3px;
    }

    /* When Prodamo/oddamo is hidden: +10% size, nudge 2cm right, then −5% */
    .navbar-custom .navbar-nav.navbar-nav--no-horses {
        transform: translateX(2cm);
    }

    .navbar-custom .navbar-nav.navbar-nav--no-horses .nav-link {
        padding: 9px 13px;
        font-size: 1.13em;
    }

    /* DE: same size as EN; −2cm then +10% right (was +20%, then −10% left) */
    html[lang="de"] .navbar-custom .navbar-nav {
        transform: translateX(calc(-2cm + 10%));
    }

    html[lang="de"] .navbar-custom .navbar-nav.navbar-nav--no-horses {
        transform: translateX(10%);
    }
}

.lang-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    margin-top: 2px;
    padding: 0;
    width: 100%;
    white-space: nowrap;
    font-family: 'PT Serif', serif;
    font-size: 0.8em;
    letter-spacing: 0.04em;
}

.lang-switcher .lang-link {
    color: var(--primary);
    text-decoration: none;
    opacity: 0.55;
}

.lang-switcher .lang-link:hover {
    color: var(--accent);
    opacity: 1;
}

.lang-switcher .lang-link.is-active {
    opacity: 1;
    font-weight: 700;
    cursor: default;
}

.lang-switcher .lang-sep {
    color: var(--primary);
    opacity: 0.35;
    margin: 0 0.15rem;
    user-select: none;
}

.lang-switcher .lang-admin {
    opacity: 0.75;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.lang-switcher .lang-admin:hover {
    opacity: 1;
    color: var(--accent);
}

.hero-section {
    background: linear-gradient(135deg, rgba(50,64,96,0.35) 0%, rgba(50,64,96,0.18) 100%), url('../images/hero-bg.jpg') center center / cover no-repeat;
    color: white;
    min-height: 72vh;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 2rem;
    padding-right: 2rem;
}

.hero-section h1 {
    color: white;
    font-size: 3.75rem;
    font-weight: 400;
    margin-bottom: 15px;
}

.hero-section .hero-subtitle,
.hero-section .lead {
    opacity: 0.95;
    font-style: italic;
    text-shadow: 0 1px 4px rgba(0,0,0,0.55);
    margin: 0;
    max-width: min(42rem, 100%);
    line-height: 1.25;
    overflow-wrap: anywhere;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.hero-section.hero-pos-top-left {
    align-items: flex-start;
    justify-content: flex-start;
}
.hero-section.hero-pos-top-left .hero-subtitle { text-align: left; }

.hero-section.hero-pos-top-center {
    align-items: flex-start;
    justify-content: center;
}
.hero-section.hero-pos-top-center .hero-subtitle { text-align: center; margin-left: auto; margin-right: auto; }

.hero-section.hero-pos-top-right {
    align-items: flex-start;
    justify-content: flex-end;
}
.hero-section.hero-pos-top-right .hero-subtitle { text-align: right; margin-left: auto; }

.hero-section.hero-pos-middle-left {
    align-items: center;
    justify-content: flex-start;
}
.hero-section.hero-pos-middle-left .hero-subtitle { text-align: left; }

.hero-section.hero-pos-center {
    align-items: center;
    justify-content: center;
}
.hero-section.hero-pos-center .hero-subtitle { text-align: center; margin-left: auto; margin-right: auto; }

.hero-section.hero-pos-middle-right {
    align-items: center;
    justify-content: flex-end;
}
.hero-section.hero-pos-middle-right .hero-subtitle { text-align: right; margin-left: auto; }

.hero-section.hero-pos-bottom-left {
    align-items: flex-end;
    justify-content: flex-start;
}
.hero-section.hero-pos-bottom-left .hero-subtitle { text-align: left; }

.hero-section.hero-pos-bottom-center {
    align-items: flex-end;
    justify-content: center;
}
.hero-section.hero-pos-bottom-center .hero-subtitle { text-align: center; margin-left: auto; margin-right: auto; }

.hero-section.hero-pos-bottom-right {
    align-items: flex-end;
    justify-content: flex-end;
}
.hero-section.hero-pos-bottom-right .hero-subtitle { text-align: right; margin-left: auto; }

.hero-section .btn-light {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 0;
    text-transform: uppercase;
}

.hero-section .btn-light:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.hero-section .btn-outline-light {
    border: 2px solid var(--accent);
    color: var(--accent);
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 0;
    text-transform: uppercase;
}

.hero-section .btn-outline-light:hover {
    background: var(--accent);
    color: white;
}

section,
#home-gallery,
#kje-se-nahajamo,
#about,
#contact {
    scroll-margin-top: var(--nav-scroll-offset);
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: 3.125rem;
    color: var(--primary);
    margin-bottom: 10px;
    text-align: center;
}

.section-title h2:after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--accent);
    margin: 15px auto 0;
}

.section-title p {
    font-style: italic;
    color: #837b77;
    text-align: center;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.card {
    border: none;
    border-radius: 0;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
    border-radius: 0;
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-weight: 600;
    padding: 12px 30px;
}

.btn-primary:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

.footer-custom {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    font-family: 'PT Serif', serif;
}

.footer-custom .footer-copy {
    color: rgba(255,255,255,0.65);
    text-align: center;
    font-size: 0.95rem;
}

.footer-custom h5, .footer-custom h6 {
    color: white;
    font-family: 'PT Serif', serif;
}

.footer-custom a {
    text-decoration: none;
    color: var(--accent) !important;
    transition: color 0.2s;
}

.footer-custom a:hover {
    color: white !important;
}

.content-section {
    padding: 60px 0;
}

.feature-box {
    text-align: center;
    padding: 30px 20px;
}

.feature-box h5 {
    color: var(--primary);
    margin-top: 15px;
    font-size: 1.5rem;
}

.page-content h1, .page-content h2, .page-content h3, .page-content h4 {
    color: var(--primary);
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}

.page-content p {
    margin-bottom: 1em;
    line-height: 1.7;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1em 0;
}

.page-content a {
    color: var(--accent);
}

.page-content blockquote {
    border-left: 4px solid var(--accent);
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: #666;
}

.page-content ul, .page-content ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

.home-gallery-img {
    width: 100%;
    height: min(160px, calc((100vh - var(--nav-scroll-offset) - 200px) / 2));
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

#home-gallery.content-section {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

#home-gallery .section-title {
    margin-bottom: 1.5rem;
}

.home-gallery-grid {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
}

.home-gallery-tabs .nav-link {
    color: var(--primary);
    background: transparent;
    border: 1px solid rgba(50, 64, 96, 0.25);
    border-radius: 2px;
    padding: 0.4rem 0.9rem;
    font-size: 0.95rem;
}

.home-gallery-tabs .nav-link .badge {
    background: rgba(50, 64, 96, 0.12);
    color: var(--primary);
    font-weight: 600;
    margin-left: 0.35rem;
}

.home-gallery-tabs .nav-link.active {
    color: #fff;
    background: var(--primary);
    border-color: var(--primary);
}

.home-gallery-tabs .nav-link.active .badge {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.home-gallery-tabs .nav-link:hover:not(.active) {
    border-color: var(--accent-dark);
    background: rgba(169, 209, 88, 0.15);
}

.home-gallery-grid a {
    display: block;
    overflow: hidden;
}

.home-gallery-grid a:hover .home-gallery-img {
    transform: scale(1.04);
    filter: brightness(1.05);
}

/* Lightbox: vedno vidne puščice za premikanje med slikami */
.lb-nav a.lb-prev,
.lb-nav a.lb-next {
    opacity: 0.75;
}
.lb-nav a.lb-prev:hover,
.lb-nav a.lb-next:hover {
    opacity: 1;
}
.lb-dataContainer {
    padding-top: 8px;
}

.about-section.content-section {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
}

.about-section .section-title {
    margin-bottom: 1.5rem;
}

.about-photo {
    width: 100%;
    height: auto;
    max-height: min(280px, calc(100vh - var(--nav-scroll-offset) - 240px));
    object-fit: cover;
    object-position: center;
    display: block;
}

.contact-photo {
    width: 100%;
    height: auto;
    max-height: min(280px, calc(100vh - var(--nav-scroll-offset) - 280px));
    object-fit: cover;
    object-position: center;
    display: block;
}

.contact-section.content-section {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    position: relative;
    z-index: 2;
    background: #fff;
    margin-top: 0;
}

.contact-section .section-title {
    margin-bottom: 1.5rem;
}

.contact-section > .container {
    position: static;
    top: auto;
    margin-bottom: 0;
}

.contact-section .contact-photo {
    margin-bottom: 1rem !important;
}

.contact-side-content ul {
    margin-bottom: 0.75rem !important;
}

.contact-side-content li.contact-email-line,
.contact-side-content li:last-child {
    padding-bottom: 0 !important;
    margin-bottom: 0.5rem !important;
}

.contact-side-content p {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.split-image-section {
    position: relative;
    padding: 0;
    overflow: hidden;
    min-height: calc(520px - 2cm);
    display: flex;
    align-items: center;
}

.split-image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.split-image-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(50,64,96,0.15) 0%, rgba(50,64,96,0.55) 45%, rgba(50,64,96,0.92) 100%);
}

.split-image-panel {
    position: relative;
    z-index: 1;
    color: #fff;
    padding: 50px 20px 50px 40px;
}

.split-image-panel h2 {
    color: #fff;
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
    text-align: left;
}

.split-image-panel .lead,
.split-image-panel p {
    color: rgba(255,255,255,0.92);
}

@media (max-width: 991px) {
    .navbar-custom {
        padding: 6px 0;
    }

    .navbar-custom .navbar-brand img,
    .navbar-custom .navbar-logo {
        height: 72px;
        max-width: min(220px, 58vw);
        object-fit: contain;
    }

    .lang-switcher {
        font-size: 0.75em;
        margin-top: 0;
    }

    .navbar-custom .navbar-nav .nav-link {
        padding: 10px 8px;
        font-size: 0.95em;
    }

    .hero-section {
        min-height: 52vh;
    }

    .hero-section .container {
        padding-top: 1.5rem;
        padding-bottom: 1.5rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    /* Cap oversized admin font-size on tablets/phones */
    .hero-section .hero-subtitle {
        font-size: clamp(1.15rem, 4.2vw, 1.75rem) !important;
        max-width: 100%;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .content-section {
        padding-top: 1.75rem;
        padding-bottom: 2rem;
    }

    .about-photo {
        max-height: 220px;
    }

    .contact-photo {
        max-height: 200px;
        height: auto;
    }

    .home-gallery-img {
        height: min(150px, 28vw);
    }

    .split-image-section {
        min-height: 0;
    }

    .split-image-bg::after {
        background: linear-gradient(180deg, rgba(50,64,96,0.35) 0%, rgba(50,64,96,0.92) 55%);
    }

    .split-image-panel {
        padding: 2.25rem 1rem;
    }

    .split-image-panel h2 {
        font-size: 1.85rem;
    }

    .contact-section iframe {
        height: 280px !important;
    }

    p, li, .page-content, .split-image-panel p, .split-image-panel .lead {
        text-align: justify;
        text-justify: inter-word;
        hyphens: auto;
    }
}

@media (max-width: 575px) {
    .navbar-custom .navbar-brand img,
    .navbar-custom .navbar-logo {
        height: 58px;
        max-width: min(180px, 52vw);
    }

    .navbar-brand-stack {
        margin-right: 4px;
    }

    .hero-section {
        min-height: 44vh;
    }

    .hero-section .hero-subtitle {
        font-size: clamp(1.05rem, 5vw, 1.4rem) !important;
        line-height: 1.3;
        padding-left: 0;
        padding-right: 0;
    }

    .section-title {
        margin-bottom: 1.1rem;
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    .section-title p {
        font-size: 0.95rem;
    }

    .home-gallery-grid {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .home-gallery-img {
        height: min(130px, 36vw);
    }

    .split-image-panel h2 {
        font-size: 1.55rem;
    }

    .split-image-panel .btn-lg {
        width: 100%;
        font-size: 1rem;
        padding: 0.65rem 1rem;
    }

    .contact-section iframe {
        height: 240px !important;
    }

    .footer-custom {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .footer-copy {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1080;
    padding: 0.85rem 1rem;
    background: var(--primary);
    color: #fff;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1 1 280px;
    min-width: 0;
}

.cookie-consent-text strong {
    display: block;
    color: var(--accent);
    margin-bottom: 0.25rem;
    font-size: 1.05rem;
}

.cookie-consent-text p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.92rem;
    line-height: 1.45;
    text-align: left;
    text-justify: auto;
}

.cookie-consent-btn {
    flex: 0 0 auto;
    background: var(--accent);
    color: var(--primary);
    border: none;
    font-weight: 700;
    padding: 0.55rem 1.25rem;
    border-radius: 2px;
}

.cookie-consent-btn:hover,
.cookie-consent-btn:focus {
    background: var(--accent-dark);
    color: #fff;
}

@media (max-width: 576px) {
    .cookie-consent-btn {
        width: 100%;
    }
}

/* Prodamo / Oddamo */
.horses-page .section-title h1 {
    font-size: 2.4rem;
    text-align: center;
}

.horses-filter .nav-link {
    color: var(--primary);
    border: 1px solid rgba(50, 64, 96, 0.25);
    border-radius: 2px;
    background: transparent;
}

.horses-filter .nav-link.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.horses-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.horses-grid-item {
    flex: 0 1 100%;
    max-width: 100%;
    width: 100%;
}

@media (min-width: 576px) {
    .horses-grid-item {
        flex: 0 1 calc((100% - 1.5rem) / 2);
        max-width: calc((100% - 1.5rem) / 2);
        width: calc((100% - 1.5rem) / 2);
    }
}

@media (min-width: 992px) {
    .horses-grid-item {
        flex: 0 1 calc((100% - 3rem) / 3);
        max-width: calc((100% - 3rem) / 3);
        width: calc((100% - 3rem) / 3);
    }
}

.horse-card {
    background: #fff;
    border: 1px solid rgba(50, 64, 96, 0.12);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.horse-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.horse-card-img-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f5;
    color: #9aa3b2;
    font-size: 2rem;
}

.horse-card-body {
    padding: 1rem 1.1rem 1.2rem;
    flex: 1;
}

.horse-card-title {
    font-size: 1.25rem;
    margin: 0;
    color: var(--primary);
}

.horse-type-badge {
    background: var(--accent);
    color: var(--primary);
    font-weight: 600;
    white-space: nowrap;
}

.horse-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.horse-meta li {
    margin-bottom: 0.2rem;
    text-align: left;
}

.horse-desc {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text);
}

