/* hostgator/assets/css/core_v2.css */
/* 
  CORE V2 CSS 
  This is the foundation for all V2 pages (Index, Gostilna, Ideje).
  It holds the CSS variables for Light and Dark modes.
*/

/* --- GLOBALNI FIXI ZA V2 --- */

/* Link Reset for Titles and Cards */
a {
    text-decoration: none;
}
a:hover {
    text-decoration: none;
}

/* Link Resets End */

/* V2 Hero Komponenta - Popolnoma neodvisna od style.css */
.v2-hero-title {
    font-family: 'Inter', sans-serif !important;
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
    font-weight: bold !important;
    color: var(--text-main) !important;
    text-align: center !important;
    margin: 0.67em 0 !important;
    line-height: 1.1 !important;
    letter-spacing: normal !important;
    text-shadow: none !important;
    white-space: nowrap !important;
    padding: 0 10px !important;
}

.v2-hero-subtitle {
    font-family: var(--font-main) !important;
    font-size: 1.1rem !important;
    color: var(--text-main) !important;
    text-align: center !important;
    max-width: 600px !important;
    margin: 0 auto 30px auto !important;
    line-height: 1.5 !important;
    text-shadow: none !important;
}

/* Prepreči pike (bullets) med linki v footerju (iz style.css) */
.v2-footer .footer-nav a::after {
    display: none !important;
    content: none !important;
}

:root {
    /* UNIVERSAL VARIABLES (Both Light & Dark) */
    --primary: #0f766e; /* MANDATORY V2 PRIMARY COLOR */
    --accent: #4CAF50; 
    --danger: #d32f2f;
    --selected-color: #0f766e;

    /* Layout & Fonts */
    --radius-lg: 24px; 
    --radius-md: 16px; 
    --radius-sm: 10px; 
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Overlays & Features (for Gostilna) */
    --overlay-color: rgba(0, 0, 0, 0.4); 
    --feature-text-color: #ffffff; 
    --feature-bg-color: rgba(0, 0, 0, 0.7); 
    --feature-border-color: rgba(255, 255, 255, 0.3); 
    --feature-icon-color: rgba(255, 255, 255, 0.7);
}

body:not(.dark-theme),
:root[data-theme="light"] {
    /* LIGHT THEME VARIABLES */
    --bg-main: #f5f5f5; /* Glavno ozadje strani je sedaj rahlo sivo (kot na index_v2) */
    --text-main: #1a1a1a; 
    --text-muted: #666666; 
    --bg-block: #ffffff; /* Kartice pa so čisto bele, da izstopajo */
    --border-color: #e0e0e0; 
    --fade-transparent: rgba(245, 245, 245, 0);
    
    --header-bg: #ffffff;
    --search-bg: #eef0f2;
    --hero-grad-start: #f5f5f5;
    --pill-bg: #ffffff;
    --btn-text: #ffffff;
    
    --card-shadow: rgba(0,0,0,0.08);
    --mock-img-bg: #e0e0e0;
}

body.dark-theme,
[data-theme="dark"],
html[data-theme="dark"] body {
    /* DARK THEME VARIABLES */
    --bg-main: #000000; /* Popolna črnina za lepšo integracijo z dark headerjem */
    --text-main: #ffffff; 
    --text-muted: #aaaaaa; 
    --bg-block: #121212; /* Temno siva za kartice, da izstopajo od ozadja */
    --border-color: #333333; 
    --fade-transparent: rgba(0, 0, 0, 0);
    
    --header-bg: #000000;
    --search-bg: #222222;
    --hero-grad-start: #000000;
    --pill-bg: #1e1e1e;
    --btn-text: #ffffff;
    
    --card-shadow: rgba(0,0,0,0.5);
    --mock-img-bg: #333333;
    
    /* Note: Primary stays #0f766e in Dark Mode too, as requested */
}

/* Global V2 Body Resets */
.v2-page-body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    box-sizing: border-box;
}

/* Enable transition only when toggling via button to prevent flash on load */
body.theme-transitioning {
    transition: background-color 0.3s ease, color 0.3s ease;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px 20px;
    width: 100%;
    flex: 1 0 auto;
    position: relative;
    z-index: 1;
    display: block; 
}

*, *:before, *:after {
    box-sizing: border-box;
}

/* Global V2 Top Gradient (For seamless header transition) */
.v2-top-gradient {
    background: linear-gradient(180deg, var(--hero-grad-start) 0%, var(--bg-main) 100%);
    padding-top: 20px;
    padding-bottom: 20px;
    width: 100%;
}

/* --- V2 BUTTONS (Replaces legacy style.css buttons) --- */
.btn-primary-v2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--btn-text, #ffffff) !important;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(15, 118, 110, 0.2);
}

.btn-primary-v2:hover {
    background-color: #0d6b63; /* slightly darker primary */
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(15, 118, 110, 0.3);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary) !important;
    padding: 10px 25px;
    border-radius: var(--radius-md, 16px);
    font-weight: 700;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: 0.2s;
}
.btn-outline:hover {
    background: var(--primary);
    color: var(--btn-text, #ffffff) !important;
}

body.dark-theme .ideja-container,
[data-theme="dark"] .ideja-container {
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
}

body.dark-theme .ideja-hero,
[data-theme="dark"] .ideja-hero {
    background-color: var(--bg-block) !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 24px !important;
}

body.dark-theme .restaurant-card,
[data-theme="dark"] .restaurant-card {
    background-color: var(--bg-block) !important;
    border-color: var(--border-color) !important;
    border-radius: var(--radius-lg);
}

body.dark-theme .ideja-seo-text,
[data-theme="dark"] .ideja-seo-text {
    color: var(--text-main) !important;
}

/* --- V2 TAGS (Used across Zgodbe, Korenine, itd.) --- */
.v2-tag {
    background-color: var(--pill-bg);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 5px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Povečani tagi za preview člankov in same članke (Zgodbe, Ideje, Korenine) */
.story-tags-scroll .v2-tag {
    font-size: 15px !important;
    padding: 8px 18px !important;
    border-radius: 25px !important;
}

.v2-tag:hover {
    border-color: var(--primary);
}

.v2-tag.active {
    background-color: var(--primary);
    color: var(--btn-text, #ffffff);
    border-color: var(--primary);
}

/* HUB PILL - Styled exactly like btn-primary by default! */
.hub-pill {
    background-color: var(--primary);
    color: var(--btn-text, #ffffff) !important;
    border: none;
    padding: 12px 20px;
    border-radius: var(--radius-md, 16px);
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-right: 5px;
    margin-bottom: 5px;
    box-shadow: var(--card-shadow);
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap; /* Prepreči prelom besedila znotraj pilla na mobilcih */
    flex-shrink: 0; /* Prepreči krčenje pilla v flex containerju */
}

.hub-pill:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

body.dark-theme .v2-tag,
[data-theme="dark"] .v2-tag {
    background-color: var(--bg-block);
    color: var(--text-main);
    border-color: var(--border-color);
}

body.dark-theme .v2-tag.active,
[data-theme="dark"] .v2-tag.active {
    background-color: var(--primary);
    color: var(--btn-text, #ffffff);
    border-color: var(--primary);
}

/* --- VERIFIED BADGE --- */
.verified-badge {
    color: #256FDD;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
    margin-left: 6px;
    vertical-align: -0.15em;
}
.verified-badge .fa-stack {
    width: 1em;
    height: 1em;
    line-height: 1em;
}
.verified-badge .fa-certificate {
    color: #256FDD;
}
.verified-badge .fa-check {
    color: #ffffff;
    font-size: 0.5em;
}

/* --- HEADER V2 STYLES --- */
.v2-header-container {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 60px;
    background: var(--bg-main);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s;
}

.index-v2-header {
    /* If there's any specific overrides for the index page, they can go here */
}

.v2-header-left {
    display: flex;
    align-items: center;
    flex: 1;
}

.v2-header-user {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
    flex: 1;
}

/* Center Logo Absolute Positioning for perfect centering */
.v2-header-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
}

.v2-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-decoration: none;
}

.v2-main-logo {
    height: auto;
    max-height: 28px !important; /* Povečano na velikost iz footerja */
    width: auto;
    object-fit: contain;
    display: block;
}

body.dark-theme .light-logo { display: none !important; }
body.dark-theme .dark-logo { display: block !important; }
body:not(.dark-theme) .dark-logo { display: none !important; }

/* MOBILNI MENI */
.v2-menu-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px !important; /* Večji razmik med črticami */
    padding: 10px 0;
    margin: 0;
    width: 44px !important;
    appearance: none;
    z-index: 1001;
}

.v2-header-action-icon,
.v2-user-icon-btn,
.v2-menu-trigger .v2-bar {
    color: var(--text-main) !important;
    background-color: transparent;
}

.v2-menu-trigger .v2-bar {
    display: block;
    width: 28px !important;
    height: 2.5px !important;
    background-color: var(--text-main) !important;
    border-radius: 2px;
    margin: 0;
    transition: 0.3s;
}

/* User Menu & Header Icons */
.v2-header-action-icon {
    cursor: pointer;
    font-size: 22px !important;
    color: var(--text-main);
    transition: 0.3s;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    padding: 0;
}

.v2-header-action-icon i {
    display: block;
}

.v2-header-action-icon:hover {
    opacity: 0.8;
}

.user-dropdown-container {
    position: relative;
    display: inline-block;
}

.v2-user-icon-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 26px !important;
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    padding: 0;
    position: relative;
    transition: 0.3s;
}

.v2-user-icon-btn i {
    display: block;
}

.user-icon-active i {
    color: var(--primary);
}

.v2-notification-dot {
    position: absolute;
    top: -2px; right: -2px;
    width: 8px; height: 8px;
    background: #e0245e;
    border-radius: 50%;
}

/* USER DROPDOWN */
.v2-user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background-color: var(--bg-main) !important;
    border: 1px solid var(--border-color);
    border-radius: var(--btn-radius);
    box-shadow: var(--shadow-md);
    padding: 10px;
    z-index: 1002;
    display: none;
    flex-direction: column;
    margin-top: 10px;
}

.v2-user-dropdown-menu.active {
    display: flex;
}

.v2-user-dropdown-menu a {
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-main) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    border-radius: 8px;
    transition: background-color 0.2s;
    text-transform: uppercase !important;
}

.v2-user-dropdown-menu a i {
    width: 20px;
    text-align: center;
    color: var(--text-main) !important;
}

.v2-user-dropdown-menu a:hover {
    background-color: transparent !important;
}

.v2-user-dropdown-menu a.text-danger {
    color: #d32f2f !important;
}

.v2-user-dropdown-menu a.text-danger i {
    color: #d32f2f !important;
}

/* Side Menu Overlay */
.v2-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.v2-menu-overlay.active { opacity: 1; visibility: visible; }

/* Side Dropdown Menu */
.v2-dropdown-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--bg-main) !important;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border-color);
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.v2-dropdown-menu.active { transform: translateX(0); }

.v2-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-main);
}

.v2-menu-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 18px;
    color: var(--text-main) !important;
    text-transform: uppercase;
}

.v2-menu-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: var(--text-main) !important;
    padding: 0 5px;
}

.v2-dropdown-links {
    display: flex;
    flex-direction: column;
    padding: 10px 0 20px 0;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0; /* Ključno za iOS Safari flexbox scroll */
    -webkit-overflow-scrolling: touch; /* Za gladko premikanje na iOS */
    overscroll-behavior: contain; /* Prevents scroll chaining to the body */
}

.v2-dropdown-links a {
    padding: 14px 25px; /* Malce zmanjšan padding, da gre več linkov na zaslon */
    font-size: 15px; /* Malce zmanjšan font za manjše zaslone */
    font-weight: 500;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    color: var(--text-main) !important;
    display: block;
    transition: 0.2s;
    text-transform: uppercase !important;
    text-decoration: none;
}

.v2-dropdown-links a:hover {
    background-color: transparent;
    padding-left: 25px;
}

/* Menu Theme Toggle */
.menu-theme-toggle {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    color: var(--text-main) !important;
}

.menu-theme-toggle i, 
.menu-theme-toggle span {
    color: var(--text-main) !important;
}

/* --- FOOTER V2 STYLES --- */
.v2-footer {
    background-color: var(--bg-block) !important;
    color: var(--text-main) !important;
    padding: 15px 0 10px 0; /* Zmanjšan padding iz 30px na manjše vrednosti */
    border-top: 1px solid var(--border-color);
    text-align: center;
    margin-top: auto;
    box-sizing: border-box;
    width: 100%;
}

.v2-footer-container {
    max-width: 800px; /* Original style.css max-width */
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px; /* Original style.css gap */
    box-sizing: border-box;
}

.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; /* Original style.css gap */
    margin-bottom: 10px;
}

.footer-branding .footer-logo-link {
    display: inline-block;
    text-decoration: none;
}

/* Ponovno uporabimo logiko light/dark za footer logotipe */
.footer-branding .main-logo {
    height: auto;
    max-height: 28px !important; /* Logotip v footerju naj bo malenkost večji */
    width: auto;
    object-fit: contain;
    display: block;
}

body.dark-theme .footer-branding .light-logo { display: none !important; }
body.dark-theme .footer-branding .dark-logo { display: block !important; }
body:not(.dark-theme) .footer-branding .dark-logo { display: none !important; }

.footer-branding p {
    margin: 0;
    opacity: 0.5;
    font-size: 13px !important;
    line-height: 1.5 !important;
    font-weight: 500;
    color: var(--text-main) !important;
}

.footer-nav {
    display: flex;
    gap: 15px; /* Original style.css gap */
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 15px;
}

.footer-nav a {
    color: var(--text-main) !important;
    text-decoration: none;
    font-size: 13px !important;
    line-height: 1.5 !important;
    opacity: 0.7;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: opacity 0.2s ease;
}

body.dark-theme .footer-nav a,
[data-theme="dark"] .footer-nav a {
    color: #ffffff !important;
}

.footer-nav a:hover {
    opacity: 1;
}

/* Mobile Adjustments for Header/Footer */
@media (max-width: 768px) {
    .header-logo {
        /* Odstranimo margin, da absolutno pozicioniranje deluje popolno */
        margin-left: 0;
    }
    .main-logo, .v2-main-logo {
        max-height: 26px !important; /* Večji tudi na mobilniku, skoraj kot na desktopu */
    }
}

/* ==========================================================================
   GLOBALNE V2 KARTICE (Gostilna seznam)
   ========================================================================== */
/* KARTICA */
.v2-list-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: var(--bg-block);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden; /* Da slika in vsebina ostaneta znotraj zaobljenih robov */
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.v2-list-card:hover {
    transform: translateY(-5px);
}

.v2-list-card:hover .v2-list-image {
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* SLIKA (4:5 Aspect Ratio) */
.v2-list-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    position: relative;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0; /* Samo zgoraj zaobljeno */
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* Rahla senca pod sliko za depth */
}

/* NOVO: Prava SEO optimizirana slika */
.v2-list-image img.seo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}

.v2-list-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%; /* Povečano, da bolje zatemni prostor za tekst */
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

/* NASLOV ZNOTRAJ SLIKE (Hero content) */
.v2-list-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    justify-content: center; /* Dodano za sredinsko poravnavo - magazine style */
}

.v2-list-title {
    color: #ffffff !important;
    font-size: 16px; /* Zmanjšano iz 20px */
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8) !important;
    line-height: 1.25;
    word-wrap: break-word;
    text-align: center; /* Dodano za sredinsko poravnavo teksta */
}

/* STATUS ODPRTO/ZAPRTO (Zgoraj levo na sliki) */
.v2-list-status {
    position: absolute;
    top: 15px; /* Spremenjeno iz bottom na top */
    left: 15px;
    z-index: 3;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.v2-list-status i {
    font-size: 8px; /* Majhna pikica */
}

.v2-list-status.open {
    background: var(--accent);
    color: #ffffff;
}

.v2-list-status.closed {
    background: var(--danger);
    color: #ffffff;
}

.v2-list-status.dogovor {
    background: #FFB300;
    color: #000000;
}

/* BADGES ZGORAJ DESNO (Verified) */
.v2-list-badges-top-right {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.v2-badge-verified-list {
    color: #ffffff;
    background: #2196F3;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.v2-badge-hub-list {
    color: #000000;
    background: #FFCA28; /* Rumena barva za sonce/HUB */
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

/* VSEBINA (Pod sliko) */
.v2-list-content {
    padding: 15px 10px 20px 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* NOVO: Info vrstica tik pod sliko (Badges + Razdalja + Lajki) */
.v2-list-info-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Skupina za razdaljo na levi */
.v2-list-distance-wrapper {
    flex: 1; /* Zavzame enakomeren prostor */
    display: flex;
    justify-content: flex-start;
}

/* Skupina za mesto na sredini */
.v2-list-location-wrapper {
    flex: 2; /* Zavzame malo več prostora za daljša imena */
    display: flex;
    justify-content: center;
    text-align: center;
}

/* Skupina za lajke na desni */
.v2-list-like-wrapper {
    flex: 1; /* Zavzame enakomeren prostor */
    display: flex;
    justify-content: flex-end;
}

.v2-list-distance-inline {
    font-size: 13px; /* Malenkost zmanjšano za boljšo preglednost */
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Dodaten stil za ekstremno dolga imena mest */
.v2-list-location-wrapper .v2-list-distance-inline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.v2-list-like {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-main);
    background: transparent;
    border: 1px solid rgba(150, 150, 150, 0.35);
    padding: 4px 10px;
    border-radius: 14px;
    transition: all 0.2s;
    z-index: 4;
}

body.dark-theme .v2-list-like span,
[data-theme="dark"] .v2-list-like span {
    color: var(--text-main);
}

.v2-list-like i {
    color: var(--text-muted);
    font-size: 14px;
}

.v2-list-like.liked i,
.v2-list-like.active i,
.v2-list-like:hover i {
    color: var(--danger);
}

.v2-list-like:hover {
    border-color: var(--danger);
}

.v2-list-distance-inline i {
    font-size: 12px;
}

.v2-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    overflow: hidden;
    height: 26px; /* Forsiramo samo eno vrstico tagov */
}

.v2-list-tags .v2-tag {
    font-size: 11px;
    padding: 4px 8px; /* Malenkost povečan padding za lepši flex */
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* Prisilimo line-height, da ne ustvarja zamikov */
    text-align: center;
    
    border: 1px solid rgba(150, 150, 150, 0.35);
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-main);
    background: transparent;
}

.v2-tag-more {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
}

/* NOVO: SEO opis lokala */
.v2-list-description {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Omejimo na max 2 vrstici */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.v2-list-vibe {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto; /* Potisne Vibe vrstico na dno kartice */
    padding-top: 5px;
}

.v2-list-vibe strong {
    color: var(--text-main);
}

/* --- GDPR COOKIE BANNER V2 --- */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: var(--bg-main);
    color: var(--text-main);
    z-index: 9999;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-header {
    margin-bottom: 10px;
}

.cookie-header h3 {
    margin: 0;
    font-size: 18px;
    font-family: var(--font-main);
}

.cookie-body {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 15px;
}

.cookie-body p {
    margin: 0;
}

.cookie-body a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-settings-panel {
    margin-top: 15px;
    border-top: 1px solid var(--border-color);
    padding-top: 15px;
}

.cookie-option {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.cookie-option .switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin-right: 10px;
}

.cookie-option .switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-option .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    border-radius: 20px;
    transition: .4s;
}

.cookie-option .slider.disabled-slider {
    cursor: not-allowed;
    background-color: #4CAF50;
}

.cookie-option .slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.cookie-option input:checked + .slider {
    background-color: #4CAF50;
}

.cookie-option input:checked + .slider:before {
    transform: translateX(20px);
}

.cookie-option .option-label {
    font-size: 14px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-cookie-primary {
    background-color: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

.btn-cookie-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
}

.btn-cookie-text {
    background-color: transparent;
    color: var(--text-main);
    border: none;
    padding: 8px 16px;
    cursor: pointer;
    text-decoration: underline;
    opacity: 0.8;
}

/* --- POVEZAVE V TEKSTU (KOT PARTNERJI) --- */
.text-link-highlight {
    color: var(--primary) !important;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.text-link-highlight:hover {
    opacity: 0.8;
}

.v2-footer-promo-link {
    color: var(--primary) !important;
    font-weight: bold;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.v2-footer-promo-link:hover {
    opacity: 0.8;
}


