/* =========================================================================
   No Stress Travel — zajednički stilovi
   Ovaj fajl povezuje base.html. Stranice-specifični stilovi idu u
   {% block extra_css %} svake pojedinačne stranice.
   ========================================================================= */

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(180deg, #f4f6fb 0%, #eef2f7 100%);
    margin: 0;
    padding: 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Slike nikad ne prelaze kontejner */
img {
    max-width: 100%;
    height: auto;
}

/* Dugačke reči (URL, email) — prelome se umesto da širom layout */
.button-link,
.tag,
.meta-badge,
p,
.empty {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
}

p {
    color: #555;
    line-height: 1.5;
}

/* ---------- Layout ---------- */

.container {
    width: 92%;
    max-width: 1100px;
    margin: 36px auto 60px auto;
    padding: 0 20px;
}

@media (max-width: 768px) {
    .container {
        margin: 24px auto 40px auto;
        padding: 0 16px;
    }
}

/* ---------- Site header (sovica + brand, vidljiv na svim stranicama) ---------- */

.site-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 12px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111827;
    transition: opacity 0.15s;
}

.site-header-link:hover {
    opacity: 0.85;
}

.site-header img {
    height: 52px;
    width: auto;
    display: block;
    /* Override globalnog img max-width: 100% — logo treba da bude prirodne širine */
    max-width: none;
}

.site-header-name {
    font-weight: 700;
    font-size: 17px;
    letter-spacing: -0.01em;
    color: #111827;
}

/* Desni deo header-a: login/register ili user info */
.site-header-nav {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-header-nav-link {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    background: transparent;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.15s;
}

.site-header-nav-link:hover {
    background: #f3f4f6;
    color: #111827;
}

.site-header-nav-link.nav-cta {
    background: #111827;
    color: white;
    border-color: #111827;
}

.site-header-nav-link.nav-cta:hover {
    background: #1f3b73;
    color: white;
}

.site-header-nav-link.admin-link {
    background: #fef3c7;
    color: #78350f;
    border-color: #fde68a;
}

.site-header-nav-link.admin-link:hover {
    background: #fde68a;
    color: #78350f;
}

.site-header-user {
    font-size: 14px;
    color: #6b7280;
    white-space: nowrap;
}

.logout-form {
    display: inline;
    margin: 0;
}

.logout-btn {
    color: #b91c1c;
}

.logout-btn:hover {
    background: #fee2e2;
    color: #991b1b;
}

@media (max-width: 600px) {
    .site-header {
        padding: 8px 16px;
    }

    .site-header img {
        height: 42px;
    }

    .site-header-name {
        font-size: 15px;
    }

    /* Na mobilnom: sakrij user pozdrav, samo login/logout dugme */
    .site-header-user {
        display: none;
    }

    .site-header-nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }
}

/* Print: sakrij header pri štampi */
@media print {
    .site-header {
        display: none;
    }
}

/* ---------- Breadcrumb ---------- */

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.breadcrumb a {
    color: #374151;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #9ca3af;
}

.breadcrumb-current {
    color: #111827;
    font-weight: 600;
}

/* ---------- Sections ---------- */

.section-title {
    margin: 34px 0 16px;
    font-size: 26px;
}

/* ---------- Meta badge ---------- */

.meta-badge {
    display: inline-block;
    background: #eef2ff;
    color: #1f2937;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 13px;
}

/* ---------- Grid ---------- */

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
    align-items: stretch;
}

.grid-lg {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* ---------- Card uniform height (grad/znamenitost/ruta cards) ---------- */

.grad-card,
.znamenitost-card,
.ruta-card {
    display: flex;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.item-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.item-image-wrap {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f3f4f6;
    flex-shrink: 0;
}

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

.item-content {
    padding: 16px 18px 18px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.item-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.item-content .meta-badge {
    align-self: flex-start;
    background: #eef2ff;
    color: #4338ca;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

/* Truncate opis na 5 linija sa "..." — uniformne visine kartica */
.item-content p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* MOBILE: agresivnije truncate — 3 linije, brže scroll, manja cognitive load */
@media (max-width: 768px) {
    .item-content p {
        -webkit-line-clamp: 3;
        line-clamp: 3;
        font-size: 13.5px;
    }

    .item-image-wrap {
        height: 150px;  /* na mobile slika manja */
    }

    .item-content {
        padding: 14px 16px 16px 16px;
        gap: 6px;
    }

    .item-content h3 {
        font-size: 17px;
    }
}

/* ---------- Empty state ---------- */

.empty {
    background: white;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    color: #555;
}

/* ---------- Buttons ---------- */

.button-row {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.button-link {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    /* gap iz .button-row brine o razmacima */
    margin: 0;
}

.button-dark {
    background: #111827;
    color: white;
    transition: background 0.2s;
}

.button-dark:hover {
    background: #000;
}

.button-light {
    background: #e5e7eb;
    color: #111827;
}

/* Affiliate dugme - call-to-action za rezervaciju (donosi proviziju) */
.button-affiliate {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
}

.button-affiliate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

/* ---------- Site footer ---------- */

.site-footer {
    margin-top: 60px;
    padding: 32px 20px 24px 20px;
    background: white;
    border-top: 1px solid #e5e7eb;
}

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

/* ---------- Mobile hamburger menu ---------- */

.hamburger-btn {
    display: none;  /* hidden na desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 44px;
    height: 44px;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    z-index: 110;
}

.hamburger-btn span {
    display: block;
    width: 26px;
    height: 3px;
    background: #111827;
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.2s;
}

.hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* MOBILE breakpoint — header reflow */
@media (max-width: 768px) {
    .site-header-inner {
        position: relative;
        padding: 12px 16px;
    }

    .hamburger-btn {
        display: flex;
        margin-left: auto;
    }

    .site-header-name {
        font-size: 16px;
    }

    /* Slide-down full-width menu */
    .site-header-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out, padding 0.3s;
        z-index: 100;
    }

    .site-header-nav.is-open {
        max-height: 80vh;
        overflow-y: auto;
        padding: 12px 0;
    }

    .site-header-nav-link,
    .site-header-user {
        padding: 14px 24px;
        border-bottom: 1px solid #f3f4f6;
        text-align: left;
        font-size: 16px;
    }

    .site-header-nav .nav-cta {
        background: #111827;
        color: white;
        margin: 8px 16px;
        border-radius: 999px;
        text-align: center;
        border-bottom: none;
    }

    .logout-form {
        margin: 0;
        padding: 0;
        width: 100%;
    }

    .logout-form .logout-btn {
        width: 100%;
        padding: 14px 24px;
        border: none;
        background: none;
        text-align: left;
        font-size: 16px;
        color: #dc2626;
        cursor: pointer;
        border-bottom: 1px solid #f3f4f6;
    }

    /* Language switcher u mobile menu — full width */
    .lang-switch {
        padding: 8px 16px;
    }

    .lang-switch-current {
        padding: 12px 16px;
        background: #f3f4f6;
        border-radius: 999px;
        text-align: center;
        font-weight: 600;
    }

    .lang-switch-menu {
        position: static;
        margin-top: 8px;
        background: transparent;
        box-shadow: none;
    }
}

.footer-brand {
    font-weight: 700;
    color: #111827;
    font-size: 15px;
}

.footer-nav {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #1f3b73;  /* jača plava — jasno signalizira link */
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s, text-decoration 0.15s;
}

.footer-nav a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.footer-credit {
    font-size: 12px;
    color: #9ca3af;
}

@media (max-width: 600px) {
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Filter bar (sortiranje i filteri za liste) ---------- */

.filter-bar {
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    margin: 12px 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
}

.filter-select {
    padding: 8px 32px 8px 12px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%236b7280' d='M6 9L1 4h10z'/></svg>") no-repeat right 10px center;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    color: #111827;
}

.filter-search {
    position: relative;
    flex: 1 1 240px;
    min-width: 220px;
    max-width: 360px;
}

.filter-search input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #f9fafb url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat 12px center;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    transition: border-color 0.15s, background-color 0.15s;
}

.filter-search input:focus {
    outline: none;
    border-color: #1d4ed8;
    background-color: white;
}

.filter-search input::placeholder {
    color: #9ca3af;
}

.filter-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    user-select: none;
    font-size: 14px;
    color: #374151;
}

.filter-checkbox input {
    cursor: pointer;
}

.filter-pills {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.filter-pill {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.filter-pill:hover {
    background: #e5e7eb;
}

.filter-pill.active {
    background: #111827;
    color: white;
}

/* Hidden state za filtrirane kartice */
.is-hidden {
    display: none !important;
}

/* "Prikaži još" dugme */
.show-more-wrap {
    text-align: center;
    margin-top: 20px;
}

.empty-filter {
    background: white;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    color: #6b7280;
    margin-top: 12px;
}

.results-count {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 4px;
    margin-left: auto;
}

/* ---------- Weather widget na stranici grada ---------- */

.weather-widget {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.weather-good {
    background: linear-gradient(135deg, #93c5fd 0%, #60a5fa 100%);
    color: #1e3a8a;
}

.weather-bad {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.weather-current {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* Override globalni 'img { max-width: 100% }' za weather ikone */
.weather-icon {
    width: 64px !important;
    height: 64px !important;
    max-width: none !important;
    flex-shrink: 0;
    object-fit: contain;
    /* Drop-shadow da ikona ima kontrast na svetloj pozadini */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
}

.weather-info {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.weather-temp {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
}

.weather-desc {
    font-size: 14px;
    margin-top: 2px;
    text-transform: capitalize;
}

/* 5-dnevna prognoza - red kartica */
.weather-forecast {
    display: flex;
    gap: 10px;
    flex: 1;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-left: 8px;
}

.forecast-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
    min-width: 64px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}

.forecast-name {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.forecast-icon {
    width: 40px !important;
    height: 40px !important;
    max-width: none !important;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.15));
}

.forecast-temp {
    font-size: 13px;
    font-weight: 600;
    margin-top: 2px;
    display: flex;
    gap: 4px;
}

.forecast-temp .t-max {
    color: #b91c1c;
}

.forecast-temp .t-min {
    color: #1e40af;
    opacity: 0.7;
}

.weather-bad .forecast-temp .t-max {
    color: #92400e;
}

.weather-bad .forecast-temp .t-min {
    color: #b45309;
    opacity: 0.7;
}

.weather-tip {
    font-size: 13px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(146, 64, 14, 0.2);
    line-height: 1.5;
}

/* Mobile: forecast horizontalno scroll */
@media (max-width: 640px) {
    .weather-current {
        flex-direction: column;
        align-items: flex-start;
    }
    .weather-forecast {
        width: 100%;
        padding-left: 0;
    }
}

/* ---------- Status: Otvoreno / Zatvoreno ---------- */

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 8px;
}

.status-badge::before {
    content: "●";
    font-size: 10px;
}

.status-open {
    background: #d1fae5;
    color: #047857;
}

.status-closing {
    background: #fef3c7;
    color: #b45309;
}

.status-closed {
    background: #fee2e2;
    color: #b91c1c;
}

/* ---------- Cena (procena) indikator ---------- */

.cena-procena {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
    font-style: italic;
}

/* ---------- Multi-line radno vreme (Google opening_hours format) ---------- */

.radno-vreme {
    white-space: pre-line;
    color: #4b5563;
    font-size: 14px;
    margin: 4px 0 0 0;
}

/* ---------- Image placeholder (kad nema slika_url) ---------- */

.media-placeholder {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #c7d2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(17, 24, 39, 0.45);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    user-select: none;
}

/* ---------- Tags ---------- */

.tag {
    display: inline-block;
    background: #eef2ff;
    color: #222;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    margin-right: 6px;
    margin-bottom: 8px;
}

.tag-danger {
    background: #ffe7e7;
}

.tag-success {
    background: #e7f7ea;
}

.tag-warm {
    background: #fff4d6;
}

.tag-dark {
    background: #111827;
    color: white;
}

/* ---------- Language switcher (dropdown SR/EN u headeru) ---------- */

.lang-switch {
    position: relative;
    margin-left: 6px;
}

.lang-switch-current {
    list-style: none;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
    user-select: none;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.lang-switch-current::-webkit-details-marker {
    display: none;
}

.lang-switch-current:hover {
    background: #e5e7eb;
    color: #111827;
}

.lang-switch[open] .lang-switch-current {
    background: #e5e7eb;
    color: #111827;
}

.lang-switch-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
    padding: 6px;
    min-width: 160px;
    z-index: 100;
}

.lang-switch-form {
    margin: 0;
}

.lang-switch-btn {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #111827;
    cursor: pointer;
    transition: background 0.12s;
}

.lang-switch-btn:hover {
    background: #f3f4f6;
}

.lang-switch-btn.active {
    background: #eef2ff;
    color: #1d4ed8;
    font-weight: 700;
}

@media (max-width: 768px) {
    .lang-switch-menu {
        right: auto;
        left: 0;
    }
}

/* ============================================================
   Pravne stranice (Privatnost, Uslovi, Politika kolačića)
   ============================================================ */
.legal-page {
    max-width: 820px;
    margin: 32px auto;
    padding: 16px;
    line-height: 1.65;
    color: #1f2937;
}

.legal-header {
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-header h1 {
    font-size: 32px;
    margin: 0 0 8px;
    color: #111827;
}

.legal-updated {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

.legal-disclaimer {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 14px;
}

.legal-disclaimer p { margin: 0; }

.legal-page section {
    margin-bottom: 32px;
}

.legal-page h2 {
    font-size: 22px;
    margin: 0 0 12px;
    color: #111827;
}

.legal-page h3 {
    font-size: 18px;
    margin: 24px 0 8px;
    color: #1f2937;
}

.legal-page ul {
    padding-left: 20px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page a {
    color: #1d4ed8;
    text-decoration: underline;
}

.legal-page a:hover {
    color: #1e40af;
}

.legal-page code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.legal-cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 14px;
}

.legal-cookie-table th,
.legal-cookie-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.legal-cookie-table th {
    background: #f9fafb;
    font-weight: 600;
}

.link-button {
    background: none;
    border: none;
    color: #1d4ed8;
    text-decoration: underline;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

.cta-button {
    display: inline-block;
    background: #111827;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    margin: 8px 0;
}

.cta-button:hover { background: #1f2937; }

/* ============================================================
   Cookie consent banner (dnu ekrana)
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 16px;
    animation: cookie-slide-up 0.3s ease-out;
}

@keyframes cookie-slide-up {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
}

.cookie-banner-text {
    min-width: 0;
}

.cookie-banner-title {
    font-size: 16px;
    margin: 0 0 4px;
    color: #111827;
}

.cookie-banner-desc {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
    line-height: 1.5;
}

.cookie-banner-link {
    color: #1d4ed8;
    text-decoration: underline;
    margin-left: 4px;
}

.cookie-banner-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-action-form { margin: 0; }

.cookie-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

.cookie-btn-primary:hover { background: #1f2937; }

.cookie-btn-secondary {
    background: #fff;
    color: #111827;
    border-color: #d1d5db;
}

.cookie-btn-secondary:hover { background: #f9fafb; }

.cookie-btn-link {
    background: none;
    color: #1d4ed8;
    text-decoration: underline;
    border: none;
    padding: 8px 4px;
}

.cookie-btn-full {
    width: 100%;
    margin-top: 8px;
}

.cookie-customize-panel {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.cookie-toggle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 0;
    cursor: pointer;
}

.cookie-toggle input[type="checkbox"] {
    margin-top: 4px;
    flex-shrink: 0;
}

.cookie-toggle-label {
    display: flex;
    flex-direction: column;
    font-size: 14px;
    color: #1f2937;
}

.cookie-toggle-desc {
    color: #6b7280;
    font-size: 13px;
    margin-top: 2px;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        grid-template-columns: 1fr;
    }

    .cookie-banner-actions {
        justify-content: flex-start;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* ============================================================
   Globalne flash poruke (renderuje base.html — info/success/error/warning)
   Template-i sa custom flash render-om (auth/*, smart_plan.html) mogu
   override-ovati `{% block flash_messages %}` da ih sakriju.
   ============================================================ */
.flash-stack {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 16px 0 8px;
}

.flash {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
    border-left: 4px solid;
    background: #f9fafb;
    color: #111827;
}

.flash-info,
.flash-message,
.flash:not(.flash-error):not(.flash-success):not(.flash-warning):not(.flash-danger) {
    background: #eef2ff;
    border-left-color: #6366f1;
    color: #1f3b73;
}

.flash-success {
    background: #ecfdf5;
    border-left-color: #10b981;
    color: #065f46;
}

.flash-warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
    color: #92400e;
}

.flash-error,
.flash-danger {
    background: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}
