/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

/* ==========================================================================
   1. GLOBAL RESET & OSNOVNI STILOVI
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: #f5f7f8;
    background-attachment: fixed;
}

/* Ukloni WP razmake */
.wp-site-blocks, main, .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

.flora-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 30px;
    text-align: center;
}

/* ==========================================================================
   2. NAVIGACIJA & HEADER
   ========================================================================== */
.flora-custom-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 0;
}

.flora-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.flora-header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.flora-main-logo {
    width: 210px;
    height: auto;
    display: block;
}

.flora-header {
    max-width: 1200px;
    margin: auto;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flora-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    font-size: 32px;
    font-weight: 800;
    color: #166534;
}

.flora-header nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.flora-header nav a {
    text-decoration: none;
    color: #374151;
    font-weight: 600;
    transition: .2s;
}

.flora-header nav a:hover {
    color: #16a34a;
}

/* Dropdown Meni */
.flora-user-menu {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
    margin-bottom: -10px;
}

.flora-user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    display: none; 
    z-index: 999;
}

.flora-user-menu:hover .flora-user-dropdown {
    display: block;
}

.flora-user-dropdown a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #111;
}

.flora-user-dropdown a:hover {
    background: #f5f5f5;
}

.flora-user-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

.flora-user-btn:hover {
    background-color: #f1f5f9;
}

.flora-user-svg {
    fill: #4a5568;
    transition: fill 0.2s ease;
}

.flora-user-btn:hover .flora-user-svg {
    fill: #1a202c;
}

.flora-user-btn.has-unread::after {
    content: '';
    position: absolute;
    top: 6px;
    right: 6px;     
    width: 8px;
    height: 8px;
    background-color: #ff3b30;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(255, 59, 48, 0.4);
}

/* ==========================================================================
   3. HERO SEKCIJA & PRETRAGA
   ========================================================================== */
.flora-home {
    min-height: 100vh;
}

.hero {
    padding-top: 100px;
    padding-bottom: 60px;
    text-align: center;
}

.hero h1 {
    font-size: 42px;
    font-weight: 800;
    color: #1a202c;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 35px;
}

.search-box {
    margin: 40px auto 0;
    width: 100%;
    max-width: 850px;
    position: relative;
}

.hero .search-box input,
.flora-search-results-box .search-box input {
    width: 100%;
    height: 76px !important;
    border: none !important;
    border-radius: 999px !important;
    background: #fff !important;
    padding: 0 90px 0 28px !important;
    font-size: 20px !important;
    box-shadow: 0 10px 25px rgba(0,0,0,.06), 0 20px 50px rgba(0,0,0,.08) !important;
}

.search-box input:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(34,197,94,.15), 0 20px 50px rgba(0,0,0,.10);
}

.search-box button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #22c55e;
    color: white;
    cursor: pointer;
    font-size: 20px;
    transition: .2s;
}

.search-box button:hover {
    transform: scale(1.05);
}

/* Rezultati Pretrage Pomocni Elementi */
.flora-search-title {
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 35px;
    color: #111827;
}

.flora-search-title span {
    color: #16a34a;
}

.flora-search-count {
    text-align: center;
    color: #6b7280;
    font-size: 16px;
    margin: -20px 0 35px;
}

.flora-search-results-box {
    max-width: 650px;
    margin: 0 auto 25px;
}

.flora-search-results-box .search-box {
    margin-top: 0;
}

.flora-search-results-box .search-box input {
    height: 60px !important;
    font-size: 18px !important;
    padding: 0 70px 0 20px !important;
}

.flora-search-results-box .search-box button {
    width: 44px;
    height: 44px;
    top: 8px;
    right: 8px;
    font-size: 16px;
}

/* ==========================================================================
   4. KATEGORIJE & KORACI (Kako funkcioniše)
   ========================================================================== */
.categories {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 20px;
}

.cat-card {
    background: white;
    border-radius: 24px;
    padding: 30px 20px;
    text-decoration: none;
    color: #111827;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.05);
    transition: .2s;
}

.cat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,.10);
}

.cat-card span {
    display: block;
    font-size: 42px;
    margin-bottom: 12px;
}

.cat-card strong {
    font-size: 18px;
}

.flora-home-categories {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.flora-home-category {
    background: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    transition: .2s;
}

.flora-home-category:hover {
    transform: translateY(-2px);
    background: #22c55e;
    color: #fff;
}

.flora-steps-section {
    padding: 40px 0;
    background: #fff;
}

.flora-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.flora-step-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.02);
    transition: transform 0.3s ease;
}

.flora-step-card:hover {
    transform: translateY(-5px);
}

.step-icon {
    font-size: 36px;
    margin-bottom: 15px;
}

.flora-step-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.flora-step-card p {
    font-size: 14px;
    color: #718096;
    line-height: 1.5;
}

.flora-categories-section {
    padding: 60px 0;
    background: #f8fafc;
}

.flora-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.flora-category-card {
    display: flex;
    align-items: flex-end;
    height: 180px;
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.flora-category-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.12);
}

.category-card-content {
    padding: 20px;
    width: 100%;
}

.category-card-content h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.category-card-content span {
    color: #25d366;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateX(-10px);
    display: inline-block;
    transition: all 0.3s ease;
}

.flora-category-card:hover .category-card-content span {
    opacity: 1;
    transform: translateX(0);
}

.latest-section {
    padding: 60px 0;
    background: #fff;
}

/* ==========================================================================
   5. ARHIVA OGLASA / KARTICE OGLASA
   ========================================================================== */
.flora-archive {
    max-width: 1300px;
    margin: auto;
    padding: 20px 20px;
}

.flora-archive h1 {
    text-align: center;
    margin-bottom: 30px;
}

.flora-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.flora-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
    transition: .2s;
}

.flora-card:hover {
    transform: translateY(-4px);
}

.flora-card a {
    text-decoration: none;
    color: inherit;
}

.flora-card-image {
    height: 180px;
    overflow: hidden;
}

.flora-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.flora-card-body {
    padding: 18px;
}

.flora-card-body h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 6px;
}

.flora-card-price {
    font-size: 24px;
    font-weight: 800;
    color: #16a34a;
    margin: 12px 0;
    line-height: 1.1;
}

.flora-city {
    color: #64748b;
}

/* Moji Oglasi Strana */
.flora-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.flora-tabs a {
    padding: 8px 14px;
    background: #f3f3f3;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
}

.flora-tabs a.active {
    background: #22c55e;
    color: #fff;
}

.flora-tabs a span {
    background-color: #f1f1f1;
    color: #555;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 5px;
    font-weight: bold;
}

.flora-tabs a.active span {
    background-color: #27ae60; /* Flora zelena za aktivni tab */
    color: #fff;
}

.flora-oglasi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.flora-oglas-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: 0.2s ease;
    position: relative;
}

.flora-oglas-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.flora-oglas-title a {
    font-weight: 700;
    text-decoration: none;
    color: #111;
}

.flora-oglas-meta {
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

.flora-oglas-actions {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.flora-oglas-actions a {
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.flora-oglas-actions .edit { color: #2563eb; }
.flora-oglas-actions .delete { color: #dc2626; }
.flora-oglas-actions a.renew { background: #3498db; color: #fff; }
.flora-oglas-actions a.renew:hover { background: #2980b9; }

.flora-oglas-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 10px;
    flex-shrink: 0;
}

.flora-oglas-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.no-img {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eee;
    border-radius: 10px;
    font-size: 13px;
}

.flora-select {
    position: absolute;
    margin: 8px;
}

/* ==========================================================================
   6. SINGLE AD PAGE (Stranica jednog oglasa)
   ========================================================================== */
.flora-single-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.flora-single {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 30px;
    align-items: start;
}

.flora-gallery {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

.flora-gallery img {
    width: 100%;
    display: block;
}

#flora-main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.flora-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.flora-thumbs img {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    max-width: 90px !important;
    object-fit: cover !important;
    border-radius: 10px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .2s;
    flex: none !important;
}

.flora-thumbs img:hover {
    border-color: #16a34a;
}

.flora-description {
    line-height: 1.8;
}

.flora-price {
    font-size: 18px;
    font-weight: 700;
    color: #16a34a;
}

.flora-seller-sidebar {
    position: sticky;
    top: 20px;
    align-self: start;
}

.flora-seller-card {
    background: #fff;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

.flora-seller-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.flora-seller-location {
    color: #666;
    margin-bottom: 20px;
}

.flora-phone-btn, .flora-wa-btn, .flora-message-btn {
    width: 100%;
    display: block;
    text-align: center;
    padding: 14px;
    border: none;
    border-radius: 10px;
    margin-top: 10px;
    text-decoration: none;
    cursor: pointer;
}

.flora-phone-btn { background: #16a34a; color: #fff; }
.flora-wa-btn { background: #25D366; color: #fff; }
.flora-message-btn { background: #2563eb; color: #fff; }

.flora-ad-info {
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

.flora-description-box {
    max-width: 1200px;
    margin: 30px auto;
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

.flora-breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #6b7280;
}

.flora-breadcrumb a {
    color: #16a34a;
    text-decoration: none;
}

.flora-breadcrumb a:hover {
    text-decoration: underline;
}

.flora-breadcrumb span {
    margin: 0 8px;
}

/* Lightbox */
#flora-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

#flora-lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

#flora-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 42px;
    cursor: pointer;
    z-index: 2;
}

#flora-prev, #flora-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 28px;
}

#flora-prev { left: 30px; }
#flora-next { right: 30px; }

/* ==========================================================================
   7. FORME & FILTERI (Add ad, Profile, Login, Select2)
   ========================================================================== */
.flora-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.flora-filters select, .flora-filters input {
    height: 48px;
    line-height: 48px;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-sizing: border-box;
}

.flora-filters button {
    background: #2f855a;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    padding: 12px;
}

.flora-add-form {
    max-width: 700px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 2px 15px rgba(0,0,0,.08);
}

.flora-add-form input, .flora-add-form textarea, .flora-add-form select {
    width: 100%;
    min-height: 52px;
    padding: 12px;
    box-sizing: border-box;
}

.flora-add-form .select2-container { width: 100% !important; }
.flora-add-form .select2-selection--single {
    min-height: 52px !important;
    padding: 12px !important;
    box-sizing: border-box !important;
}
.flora-add-form .select2-selection__rendered { line-height: 26px !important; padding-left: 0 !important; }
.flora-add-form .select2-selection__arrow { height: 52px !important; }
.flora-add-form textarea { min-height: 150px; resize: vertical; }
.flora-add-form input[type="file"] { padding: 10px; border: 1px dashed #ccc; border-radius: 10px; }

.flora-field { margin-bottom: 20px; }
.flora-field label { display: block; margin-bottom: 8px; font-weight: 600; }
.flora-field input, .flora-field textarea, .flora-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
}

.flora-submit-btn {
    display: block;
    width: 100%; /* Puna širina na mobilnom za lakši klik palcem */
    box-sizing: border-box;
    background: #2f855a; /* Tvoja originalna zelena boja */
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    margin-top: 20px; /* Pravi lep razmak između galerije i dugmeta */
    transition: background 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.flora-submit-btn:hover {
    background: #22543d; /* Tamnija zelena za hover efekat */
}

/* --- DESKTOP / LAPTOP PRILAGOĐAVANJE --- */
@media (min-width: 768px) {
    .flora-submit-btn {
        width: auto; /* Na desktopu se skuplja na prirodnu širinu teksta */
        display: inline-block;
        padding: 14px 40px;
    }
}

/* Slike Upload Zona & Galerija - SREĐEN GRID */
.flora-gallery-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* 2 kolone na mobilnom */
    gap: 12px; 
    margin-top: 12px; 
    width: 100%;
    box-sizing: border-box;
}

.flora-upload-zone {
    width: 100%; /* Više nije fiksno 140px, već puni svoju kolonu */
    aspect-ratio: 1 / 1; /* Pravi savršen kvadrat na osnovu širine ekrana */
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #22c55e;
    border-radius: 12px;
    cursor: pointer;
    background: #f8fff8;
    box-sizing: border-box;
}
.flora-upload-zone:hover { border-color: #15803d; background: #e8f7e8 !important; }

.flora-img-item { 
    width: 100%; /* Puni svoju kolonu grida */
    aspect-ratio: 1 / 1; /* Savršen kvadrat, identičan upload zoni */
    cursor: move; 
    user-select: none; 
    position: relative; 
    box-sizing: border-box;
}

.flora-img-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; }
.flora-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }

.flora-remove-img {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 10%;
    background: #ef4444;
    color: #fff;
    cursor: pointer;
    z-index: 10;
}

.sortable-ghost { opacity: 0.4; }

/* Tvoja logika za prvu (Naslovnu) sliku u nizu */
.flora-upload-zone + .flora-img-item { border: 2px solid #22c55e; border-radius: 12px; box-sizing: border-box; }
.flora-upload-zone + .flora-img-item::before {
    content: "★ Naslovna";
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: #22c55e;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 20px;
    z-index: 11;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    pointer-events: none;
}

/* --- DESKTOP / LAPTOP PRILAGOĐAVANJE --- */
@media (min-width: 768px) {
    .flora-gallery-grid { 
        /* Na većim ekranima prebacujemo u 4 kolone da kocke ne budu prevelike */
        grid-template-columns: repeat(4, 1fr); 
    }
}
/* Profil Korisnika */
.flora-profile-card { max-width: 900px; margin: 30px auto; background: #fff; border-radius: 16px; padding: 25px; box-shadow: 0 5px 25px rgba(0,0,0,.08); }
.flora-profile-header { display: flex; gap: 20px; align-items: center; margin-bottom: 25px; }
.flora-avatar img { border-radius: 50%; }
.flora-info h2 { margin: 0 0 10px; }
.flora-info p { margin: 4px 0; }
.flora-profile-form { display: flex; flex-direction: column; gap: 10px; }
.flora-profile-form input, .flora-profile-form select { padding: 10px; border: 1px solid #ddd; border-radius: 8px; }
.flora-checkbox { display: flex; gap: 8px; margin-top: 10px; }
.flora-profile-form button { background: #22c55e; color: #fff; padding: 12px; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; }
.flora-success { background: #dcfce7; padding: 10px; border-radius: 8px; margin-bottom: 10px; color: #166534; }

/* TML Login Forme */
.tml { max-width: 520px; margin: 60px auto !important; background: #fff; padding: 40px; border-radius: 24px; box-shadow: 0 15px 40px rgba(0,0,0,.08); }
.tml-title { text-align: center; color: #111827; font-size: 42px !important; font-weight: 800; margin-bottom: 30px !important; }
.tml label { display: block; margin-bottom: 10px; color: #374151; font-weight: 600; }
.tml input[type="text"], .tml input[type="email"], .tml input[type="password"] {
    width: 100%; height: 58px; border: 1px solid #e5e7eb; border-radius: 14px; padding: 0 18px; font-size: 16px; background: #fff; transition: .2s;
}
.tml input[type="text"]:focus, .tml input[type="email"]:focus, .tml input[type="password"]:focus {
    outline: none; border-color: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.12);
}
.tml .tml-button, .tml input[type="submit"] {
    width: 100%; height: 58px; border: none; border-radius: 14px; background: #22c55e !important; color: #fff !important; font-size: 17px; font-weight: 700; cursor: pointer; transition: .2s; margin-top: 10px;
}
.tml .tml-button:hover, .tml input[type="submit"]:hover { transform: translateY(-2px); background: #16a34a !important; }
.tml-rememberme-wrap { margin: 15px 0; }
.tml-links { margin-top: 25px !important; list-style: none !important; padding: 0 !important; }
.tml-links li { margin: 10px 0; }
.tml-links a { color: #16a34a; text-decoration: none; font-weight: 600; }
.tml-links a:hover { text-decoration: underline; }

/* Select2 Globalne ispravke */
.select2-container--default .select2-selection--single {
    height: 48px !important; line-height: 48px !important; padding: 0 12px !important; border: 1px solid #ddd !important; border-radius: 10px !important; box-sizing: border-box !important; background: #fff !important;
}
.select2-container--default .select2-selection__rendered { line-height: 46px !important; padding-left: 0 !important; padding-right: 20px !important; }
.select2-container--default .select2-selection__arrow { height: 46px !important; right: 10px !important; }

/* ==========================================================================
   8. INTERNI ČET SISTEM (Poruke / Inbox)
   ========================================================================== */
.flora-inbox {
    display: flex; height: calc(100vh - 140px); background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.flora-inbox-left { width: 350px; border-right: 1px solid #edf2f7; overflow-y: auto; background: #fff; }
.flora-chat-item { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: #1a202c; border-bottom: 1px solid #f1f5f9; transition: background 0.2s ease; }
.flora-chat-item:hover { background: #f7fafc; }
.flora-chat-item.is-unread { background: #f0f7ff; }
.flora-chat-item.is-unread .flora-chat-title, .flora-chat-item.is-unread .flora-chat-last-msg { font-weight: 700; color: #1a202c; }

.flora-chat-thumb img { width: 50px; height: 50px; object-fit: cover; border-radius: 50%; border: 2px solid #edf2f7; }
.flora-chat-info { flex: 1; min-width: 0; }
.flora-chat-title { font-weight: 600; font-size: 15px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flora-chat-user { color: #718096; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flora-chat-last-msg { font-size: 13px; color: #718096; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flora-chat-last-msg span { color: #a0aec0; }
.flora-unread-dot { width: 10px; height: 10px; background-color: #25d366; border-radius: 50%; flex-shrink: 0; margin-left: auto; box-shadow: 0 0 0 2px rgba(37, 211, 102, 0.2); }

.flora-inbox-right { flex: 1; display: flex; flex-direction: column; background: #f0f2f5; }
.flora-chat-header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; background: #fff; border-bottom: 1px solid #e2e8f0; box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.flora-chat-header img { width: 45px; height: 45px; object-fit: cover; border-radius: 50%; }
.flora-chat-header-title { font-size: 16px; font-weight: 600; color: #1a202c; margin-bottom: 2px; }
.flora-chat-header-user { color: #718096; font-size: 13px; }

.chat-box { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.msg { padding: 11px 16px; font-size: 15px; line-height: 1.45; max-width: 65%; word-wrap: break-word; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); position: relative; }
.msg.me { background: #0084ff; color: #fff; margin-left: auto; border-radius: 18px 18px 4px 18px; }
.msg.them { background: #fff; color: #1a202c; margin-right: auto; border-radius: 18px 18px 18px 4px; border: 1px solid #e2e8f0; }

.chat-input { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border-top: 1px solid #e2e8f0; }
.chat-input textarea { flex: 1; height: 42px; max-height: 120px; padding: 10px 16px; background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 24px; resize: none; font-size: 14px; color: #1a202c; outline: none; transition: all 0.2s ease; }
.chat-input textarea:focus { background: #fff; border-color: #0084ff; box-shadow: 0 0 0 3px rgba(0, 132, 255, 0.15); }
.chat-input button { height: 42px; padding: 0 24px; background: #0084ff; color: #fff; border: none; border-radius: 24px; font-weight: 600; font-size: 14px; cursor: pointer; transition: background 0.2s ease; }
.chat-input button:hover { background: #0066cc; }
.chat-input button:active { transform: scale(0.98); }

.flora-menu-messages { position: relative; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; text-decoration: none; }
.message-badge { background: #ff3b30; color: #fff; font-size: 11px; font-weight: bold; padding: 2px 6px; border-radius: 10px; line-height: 1; min-width: 10px; text-align: center; box-shadow: 0 2px 4px rgba(255, 59, 48, 0.3); }
.flora-inbox-back-container { padding: 16px; background-color: #ffffff; border-bottom: 1px solid #e2e8f0; display: flex; align-items: center; }
.flora-back-btn { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px; background-color: #f8fafc; color: #1e293b; font-size: 14px; font-weight: 600; text-decoration: none; border: 1px solid #e2e8f0; border-radius: 8px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); transition: all 0.25s ease-in-out; }
.flora-back-btn .btn-icon { font-size: 16px; transition: transform 0.25s ease-in-out; }
.flora-back-btn:hover { background-color: #ffffff; color: #3b82f6; border-color: #bfdbfe; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.flora-back-btn:hover .btn-icon { transform: translateX(-4px); }

/* ==========================================================================
   9. RAZNI POMOĆNI ELEMENTI (Badges, Buttons, Empty State)
   ========================================================================== */
.flora-location-wrapper { position: relative; }
.flora-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #ddd; z-index: 9999; max-height: 250px; overflow-y: auto; }
.flora-result-item { padding: 10px; cursor: pointer; }
.flora-result-item:hover { background: #f2f2f2; }

.ct-button.flora-header-add-btn { background:#22c55e; color:#fff; text-decoration:none; font-weight:700; padding:12px 20px; border-radius:12px; display:inline-flex; align-items:center; }
.ct-button.flora-header-add-btn:hover { transform: translateY(-2px); }

.flora-add-ad-btn { background-color: #25d366; color: #ffffff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 10px 20px; border-radius: 25px; display: inline-flex; align-items: center; gap: 6px; box-shadow: 0 4px 6px rgba(37, 211, 102, 0.15); transition: all 0.2s ease; }
.flora-add-ad-btn:hover { background-color: #20bc5a; transform: translateY(-1px); box-shadow: 0 6px 12px rgba(37, 211, 102, 0.25); }
.flora-add-ad-btn span { font-size: 18px; line-height: 1; }

.flora-login-btn { color: #4a5568; text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 16px; border: 1px solid #e2e8f0; border-radius: 20px; transition: all 0.2s ease; }
.flora-login-btn:hover { background-color: #f8fafc; color: #1a202c; border-color: #cbd5e1; }
.flora-login-box { max-width:500px; margin:0 auto 20px; background:#f8fff8; border:1px solid #dff0df; border-radius:10px; padding:12px 16px; text-align:center; }
.flora-login-box h2 { margin:0 0 5px; color:#25d366; font-size:20px; }
.flora-login-box p { margin:0; color:#666; font-size:14px; line-height:1.4; }
.flora-register-header, .flora-login-header { display:flex; align-items:center; gap:10px; }
.flora-register-header span, .flora-login-header span { color:#666; font-size:14px; }

.flora-main-badge { position: absolute; top: 8px; left: 8px; background: #16a34a; color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.flora-remove-image { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: none; border-radius: 50%; background: #ef4444; color: #fff; cursor: pointer; }

.btn-primary, .btn-primary:visited { color: #fff !important; }
.btn-primary:hover { color: #fff !important; }
.btn-secondary, .btn-secondary:visited { color: #111827 !important; }
.btn-secondary:hover { color: #111827 !important; }

.hero-buttons { margin-top: 30px; display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-primary, .btn-secondary { padding: 18px 34px; border-radius: 16px; text-decoration: none; font-weight: 700; transition: .2s; }
.btn-primary { background: #22c55e; color: white; box-shadow: 0 12px 30px rgba(34,197,94,.25); }
.btn-secondary { background: white; color: #111827; border: 1px solid #e5e7eb; box-shadow: 0 10px 25px rgba(0,0,0,.05); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-3px); }

.flora-status { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.flora-status.status-expired {
    background-color: #ffebe9;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}
.status-active { background: #d4edda; color: #155724; }
.status-pending { background: #fff3cd; color: #856404; }
.status-draft { background: #e2e3e5; color: #495057; }

.flora-toolbar { margin: 15px 0; display: flex; justify-content: flex-start; }
.flora-toolbar button { background: #e74c3c; color: #fff; border: none; padding: 10px 14px; border-radius: 8px; cursor: pointer; }
.flora-toolbar button:hover { background: #c0392b; }

.flora-modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 9999; }
.flora-modal-content { width: 500px; max-width: 90%; background: #fff; margin: 100px auto; padding: 25px; border-radius: 12px; position: relative; }
.flora-modal-close { position: absolute; right: 15px; top: 10px; cursor: pointer; font-size: 24px; }
.flora-modal-ad-title { font-weight: 600; margin-bottom: 15px; }
#flora-message-text { width: 100%; height: 120px; padding: 12px; resize: none; }
#flora-send-message { margin-top: 15px; }

.flora-empty-state { max-width: 500px; margin: 40px auto; padding: 40px 30px; text-align: center; background: #ffffff; border: 2px dashed #cbd5e1; border-radius: 16px; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.flora-empty-state .empty-state-icon { font-size: 50px; margin-bottom: 16px; display: inline-block; animation: float 3s ease-in-out infinite; }
.flora-empty-state h2 { font-size: 20px; color: #1e293b; margin-bottom: 10px; font-weight: 700; }
.flora-empty-state p { font-size: 14px; color: #64748b; line-height: 1.6; margin-bottom: 24px; }
.flora-empty-state .empty-state-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; background-color: #2ecc71; color: #ffffff; text-decoration: none; font-weight: 600; font-size: 15px; border-radius: 30px; box-shadow: 0 4px 10px rgba(46, 204, 113, 0.3); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.flora-empty-state .empty-state-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(46, 204, 113, 0.4); color: #ffffff; }

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

/* ==========================================================================
   FLORA - KONAČAN I UTUTKAN CSS ZA ROTACIJU, NASLOVNU I BRISANJE
   ========================================================================== */

/* Osnovni kontejner stavke slike */
.flora-img-item {
    position: relative !important;
    box-sizing: border-box !important;
}

/* Omotač slike */
.flora-img-wrap {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
}

/* Sama slika u kocki */
.flora-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 12px !important;
}

/* --- KONTROLE ZA ROTACIJU (Smeštene na dno stavke) --- */
.flora-img-item .flora-image-rotate-controls {
    position: absolute !important;
    bottom: 8px !important;
    left: 8px !important;
    right: 8px !important;
    display: flex !important;
    justify-content: space-between !important;
    gap: 6px !important;
    z-index: 999 !important; /* Iznad slike i značke */
}

/* Izgled dugmića za rotaciju */
.flora-img-item .rotate-btn {
    background: rgba(0, 0, 0, 0.75) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 6px 10px !important;
    font-size: 14px !important;
    cursor: pointer !important;
    flex: 1 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    text-align: center !important;
}

/* Hover efekat za rotaciju (Zelena) */
.flora-img-item .rotate-btn:hover {
    background: #2ecc71 !important;
}

/* --- ZNAČKA "NASLOVNA" (Pomerena GORE LEVO da ne smeta) --- */
.flora-upload-zone + .flora-img-item::before {
    content: "★ Naslovna" !important;
    position: absolute !important;
    top: 6px !important;      /* Prebačeno na vrh */
    bottom: auto !important;   /* Poništavamo staro dno */
    left: 6px !important;
    background: #22c55e !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: bold !important;
    padding: 3px 8px !important;
    border-radius: 20px !important;
    z-index: 99 !important;    /* Ispod crvenog X, ali iznad slike */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
    pointer-events: none !important;
}

/* ZELENI OKVIR za prvu sliku (Naslovnu) */
.flora-upload-zone + .flora-img-item {
    border: 2px solid #22c55e !important;
    border-radius: 12px !important;
    box-sizing: border-box !important;
}

/* --- CRVENI X ZA BRISANJE (GORE DESNO) --- */
.flora-remove-img {
    position: absolute !important;
    top: 6px !important;
    right: 6px !important;
    width: 20px !important;
    height: 20px !important;
    border: none !important;
    border-radius: 10% !important;
    background: #ef4444 !important;
    color: #fff !important;
    cursor: pointer !important;
    z-index: 1000 !important; /* Najveći z-index da uvek bude kliktav */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* Razmak i font za datum registracije */
.flora-seller-meta {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
    margin-bottom: 15px; /* Odvaja datum od prvog dugmeta */
}

/* Link na dnu kartice prodavca */
.flora-seller-all-ads {
    text-align: center;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}

.flora-seller-all-ads a {
    font-size: 14px;
    color: #2ecc71; /* Tvoja zelena */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.flora-seller-all-ads a:hover {
    color: #27ae60;
    text-decoration: underline;
}

/* Popravka i zatezanje donjeg dela sa podacima */
.flora-ad-features-box {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    width: 100%;
    box-sizing: border-box;
    border-top: 1px solid #eeeeee; /* Malo jasnija, čista linija celom širinom */
}

/* Pojedinačna stavka - potpuno bela sa finom ivicom */
.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #ffffff; /* Sklonjeno sivo, sada je čisto belo */
    border: 1px solid #f0f0f0; /* Blaga ivica da se boks i dalje prepoznaje */
    border-radius: 6px;
}

/* Pozadina iza ikonice - skroz bela */
.feature-icon {
    font-size: 20px;
    background: #ffffff; 
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text {
    display: flex;
    flex-direction: column;
}

.feature-label {
    font-size: 11px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

.feature-value {
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.2;
}

/* Popravka za gornji deo - skidamo sve što širi element van ivica */
.flora-ad-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box; /* Osigurava da padding ne širi element */
}

/* Stil za glavni naslov (npr. Benjamin) */
.flora-ad-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a252f; /* Tamna, moderna boja */
    margin: 0 !important; /* Poništavamo WordPress-ove podrazumevane margine */
    line-height: 1.2;
}

/* Cena - izbacujemo bilo kakvu sivu ili zelenkastu podlogu, ostaje samo čist tekst */
.flora-ad-price {
    font-size: 24px;
    font-weight: 700;
    color: #2ecc71; /* Tvoja prepoznatljiva zelena */
    white-space: nowrap;
    background: #ffffff; /* Sklonjena pozadina, sada je čisto bela */
    padding: 6px 0; /* Smanjen padding jer nema pozadine */
    border-radius: 0;
    display: inline-flex;
    align-items: baseline;
}

/* Oznaka za RSD pored cifre */
.flora-ad-price span {
    font-size: 14px;
    font-weight: 600;
    color: #27ae60;
    margin-left: 4px;
    background: #ffffff; /* Čisto bela pozadina i za valutu */
}

/* Izgled ako je cena na dogovor */
.flora-price-agreement {
    color: #e67e22;
    background: #fdf5ee;
}


/* ==========================================================================
   10. SVI MOBILNI I RESPONSIVE STILOVI (Zajednički Media Query)
   ========================================================================== */
@media (max-width: 768px) {
    
    /* Globalno i Header */
    .flora-header {
        flex-direction: column;
        gap: 14px;
    }
    .logo {
        font-size: 26px;
    }
    .flora-header nav {
        gap: 18px;
        flex-wrap: wrap;
        justify-content: center;
    }
    .flora-header-container {
        padding: 0 15px;
        gap: 10px;
    }
    .flora-main-logo {
        width: 150px;
    }
    .flora-main-logo text:last-child {
        font-size: 11px;
    }
    .flora-header-right {
        gap: 10px;
    }
    .flora-add-ad-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    .flora-seller-sidebar {
        position: static;
    }

/* Hero sekcija - Popravljene veličine i Search Box */
    .hero {
        padding: 40px 16px 30px;
    }
    .hero h1 {
        font-size: 28px !important;
        letter-spacing: normal;
        line-height: 1.3;
    }
    .hero p {
        font-size: 15px;
        margin-bottom: 25px;
    }
    .search-box {
        width: 100%;
        max-width: 100%;
        margin-bottom: 45px !important; /* Odlepljuje tekst ispod */
    }
    /* Dodat .hero ispred da sigurno pregazi desktop stilove 👇 */
    .hero .search-box input {
        height: 60px !important;
        font-size: 16px !important;
        padding: 0 65px 0 20px !important;
        border-radius: 30px !important; /* Smanjen radijus da ivica ne guta lupu */
    }
    .hero .search-box button {
        width: 46px !important;
        height: 46px !important;
        top: 7px !important;
        right: 8px !important;
    }
    .hero-buttons {
        margin-top: 30px;
        flex-direction: column;
        width: 100%;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
    }
	
/* ==========================================================================
   KAKO FUNKCIONIŠE SEKCIJA - HORIZONTALNI KLIZAČ ZA MOBILNI (POPRAVLJENO)
   ========================================================================== */
@media (max-width: 768px) {
    
    .flora-steps-grid {
        display: flex !important;
        flex-direction: row !important; /* Drži ih u jednom redu za svajp */
        flex-wrap: nowrap !important;   /* Sprečava prelazak u novi red */
        overflow-x: auto !important;    /* Omogućava listanje prstom levo-desno */
        scroll-behavior: smooth !important;
        -webkit-overflow-scrolling: touch !important; /* Tečni skrol na iPhone-u */
        gap: 16px !important;
        padding: 15px 20px 25px 20px !important; /* Povećan padding odozdo da tekst ima mesta */
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Smirujemo Gutenbergovo lomljenje kolona ako su ubačene kroz WP editor */
    .flora-steps-grid .wp-block-columns {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 16px !important;
        width: auto !important;
    }

    .flora-steps-grid .wp-block-column {
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        flex: 0 0 250px !important; /* Svaka kartica je široka fiksno 250px na telefonu */
    }
    
    /* Popravljena i očišćena glavna kartica */
    .flora-step-card {
        display: flex !important;
        flex-direction: column !important; /* Slaganje elemenata od vrha ka dnu */
        align-items: center !important;    /* Centriranje svega u kartici */
        text-align: center !important;     /* Centriranje teksta */
        padding: 24px 20px !important;
        background: #ffffff !important;
        border-radius: 20px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.04) !important;
        border: 1px solid #f1f5f9 !important;
        flex: 0 0 250px !important;       /* Duplirana sigurnost za širinu */
        height: auto !important;           /* Dozvoljavamo visini da se sama prilagodi tekstu */
        min-height: 220px !important;      /* Dajemo joj dovoljno startnog prostora */
        box-sizing: border-box !important;
    }
    
    .step-icon {
        font-size: 40px !important;       /* Veća, lepa ikonica na vrhu */
        margin-bottom: 12px !important;
        display: block !important;
    }
    
    .flora-step-card h3 {
        font-size: 18px !important;
        font-weight: 700 !important;
        color: #1a202c !important;
        margin: 0 0 8px 0 !important;
    }
    
    .flora-step-card p {
        font-size: 14px !important;
        color: #64748b !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        padding: 0 5px !important;
        white-space: normal !important;   /* Teramo tekst da se prirodno prelama u redove */
    }

    /* Sakrivamo ružnu sistemsku skrol traku na dnu */
    .flora-steps-grid::-webkit-scrollbar {
        display: none !important;
    }
    
    .flora-steps-grid {
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
}

    /* Single ad i Login stranice */
    .flora-single {
        grid-template-columns: 1fr;
    }
    #flora-main-image {
        height: 300px;
    }
    .flora-price {
        font-size: 28px;
    }
    .tml {
        margin: 20px !important;
        padding: 25px;
    }
    .tml-title {
        font-size: 34px !important;
    }
}

/* Izuzetno mali telefoni */
@media (max-width: 360px) {
    .flora-categories-grid {
        grid-template-columns: 1fr;
    }
    .flora-add-ad-btn {
        padding: 8px 10px;
    }
}

/* Mobilni stiskanje */
@media screen and (max-width: 480px) {
    .flora-ad-features-box {
        grid-template-columns: 1fr;
    }
}

/* Mobilna adaptacija - ako je ekran telefona mali, baci cenu ispod naslova */
@media screen and (max-width: 580px) {
    .flora-ad-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .flora-ad-title {
        font-size: 24px;
    }
}

/* ==========================================================================
   MOBILNA VERZIJA ZA ČET (Ekran manji od 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .flora-inbox {
        height: calc(100vh - 100px); /* Malo više prostora na telefonu */
        border-radius: 0; /* Na telefonu lepše izgleda od ivice do ivice */
        border: none;
    }

    /* Ako je otvoren konkretan čet, sakrivamo levu listu korisnika */
    /* NAPOMENA: Pretpostavka je da tvoj PHP dodaje neku klasu tipa .has-active-chat na .flora-inbox kada je čet otvoren */
    .flora-inbox.has-active-chat .flora-inbox-left {
        display: none;
    }

    /* Ako NIJE otvoren čet, sakrivamo desnu stranu sa porukama */
    .flora-inbox:not(.has-active-chat) .flora-inbox-right {
        display: none;
    }

    /* Širimo obe strane na 100% širine ekrana tako da menjaju jedna drugu */
    .flora-inbox-left {
        width: 100%;
        border-right: none;
    }

    .flora-inbox-right {
        width: 100%;
    }

    /* Prilagođavamo oblačiće poruka da ne budu presitni na telefonu */
    .msg {
        max-width: 85%; /* Povećavamo sa 65% na 85% da tekst ima mesta */
        font-size: 14px;
        padding: 10px 14px;
    }

    /* Popravljamo donji deo za kucanje na mobilnom */
    .chat-input {
        padding: 10px 12px;
    }

	/* Potpuno sakrivanje uspravne linije (skrolbara) u polju za unos poruke */
	.chat-input textarea {
	    overflow-y: hidden !important; /* Blokira vertikalni skrolbar */
	    overflow: hidden !important;   /* Dodatna sigurnost za sve pretraživače */
	}
    
	/* Specifično sakrivanje skrolbara za Webkit pretraživače (Hrom/Safari na telefonima) */
	.chat-input textarea::-webkit-scrollbar {
	    display: none !important;
	    width: 0 !important;
	    height: 0 !important;
	}
    .chat-input button {
        height: 38px;
        padding: 0 16px; /* Smanjujemo padinge dugmeta da stane sve */
    }
}

/* Na velikim ekranima (desktopu) sakrivamo ovo novo mobilno dugme */
.flora-mobile-back-container {
    display: none;
}

@media (max-width: 768px) {
    /* Na mobilnom prikazujemo dugme za povratak na listu razgovora */
    .flora-mobile-back-container {
        display: block !important;
    }

    /* Magija: Kada je čet otvoren, sakrivamo celu levu kolonu sa ljudima */
    .flora-inbox.has-active-chat .flora-inbox-left {
        display: none !important;
    }

    /* Kada čet NIJE otvoren, sakrivamo desnu kolonu sa porukama */
    .flora-inbox:not(.has-active-chat) .flora-inbox-right {
        display: none !important;
    }

    /* Obe kolone širimo na punu širinu ekrana */
    .flora-inbox-left, .flora-inbox-right {
        width: 100% !important;
    }
}

/* ==========================================================================
   MOBILNI GLATKI SKROL ZA TABOVE (Moji Oglasi)
   ========================================================================== */
@media (max-width: 768px) {
    .flora-tabs {
        display: flex !important;
        overflow-x: auto !important;     /* Omogućava svajpovanje prstom levo-desno */
        white-space: nowrap !important;   /* Sprečava tabove da skaču u novi red */
        gap: 10px !important;             /* Razmak između tabova */
        padding: 4px 16px 12px 16px !important; /* Prostor sa strana i dole za lakši svajp */
        margin-left: -16px !important;    /* Izvlači tabove do same ivice ekrana telefona */
        margin-right: -16px !important;   /* za bolji vizuelni efekat (od ivice do ivice) */
        -webkit-overflow-scrolling: touch; /* Glatko skrolovanje za iOS/iPhone */
    }

    /* Sakrivamo sistemski ružnu traku za skrolovanje (scrollbar) na svim telefonima */
    .flora-tabs::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    /* Osiguravamo da se elementi unutar tabova ne skupe i ne deformišu */
    .flora-tabs > * {
        flex: 0 0 auto !important; /* Ne dozvoljava pretraživaču da sabije tab */
    }
}
/* ==========================================================================
   MOBILNO ZAGLAVLJE (HEADER) - ČIŠĆENJE GUŽVE
   ========================================================================== */
@media (max-width: 768px) {
    /* Sakrivamo tekstualni deo unutar menija za goste ("Novi ste na..." itd.) */
    .flora-guest-menu span {
        display: none !important;
    }

    /* Povećavamo razmak između dugmeta za prijavu i dugmeta dodaj oglas na mobilnom */
    .flora-guest-menu {
        margin-left: 10px !important;
    }

    /* Malo smanjujemo dugme da sve lepo stane bez gužvanja */
    .flora-login-btn {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }
}
/* ==========================================================================
   POPRAVKA FORME I LINKOVA ZA PRIJAVU (.tml)
   ========================================================================== */

/* 1. Centriranje i uokvirivanje cele forme */
.tml {
    max-width: 420px !important;
    margin: 40px auto !important;
    padding: 30px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 16px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
    float: none !important; /* Poništavamo float ako ga ima */
}

/* 2. Selektujemo listu sa linkovima ispod forme (TML je generiše kao ul.tml-links-list ili ul) */
.tml ul[class*="links"], 
.tml .tml-links,
.tml ul {
    margin: 25px 0 0 0 !important;
    padding: 0 !important;
    list-style: none !important; /* Skidamo tačkice iz liste */
    display: flex !important;
    flex-direction: column !important; /* Ređamo ih striktno jedan ispod drugog */
    align-items: center !important;    /* Centriramo ih na sredinu */
    gap: 12px !important;              /* Pravimo razmak između linkova */
    clear: both !important;            /* Rušimo sve float-ove */
    float: none !important;
    width: 100% !important;
}

/* 3. Smirujemo pojedinačne stavke unutar te liste (li) */
.tml ul[class*="links"] li, 
.tml .tml-links li,
.tml ul li {
    float: none !important;            /* Sprečavamo da li beži levo/desno */
    display: block !important;         /* Teramo ga da zauzme ceo red */
    margin: 0 !important;
    padding: 0 !important;
    text-align: center !important;     /* Centriramo tekst unutra */
}

/* 4. Stil za same linkove (Registracija, Izgubljena lozinka) */
.tml ul[class*="links"] a, 
.tml .tml-links a,
.tml ul li a {
    color: #25d366 !important;         /* Tvoja lepa Florina zelena */
    font-size: 15px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    display: inline-block !important;
}

.tml ul[class*="links"] a:hover, 
.tml .tml-links a:hover,
.tml ul li a:hover {
    color: #1ea34e !important;
    text-decoration: underline !important;
}
/* ==========================================================================
   ELEGANTNI SVETLI LIST LAYOUT ZA OGLASE NA MOBILNOM
   ========================================================================== */
@media (max-width: 768px) {
    /* Razmak između horizontalnih kartica */
    .flora-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 !important; /* Razvlači ih do ivice filtera */
        width: 100% !important;
    }

    /* Čista bela pozadina za karticu sa blagom senkom */
    .flora-grid .flora-card {
        background: #ffffff !important; 
        border-radius: 14px !important;
        overflow: hidden !important;
        width: 100% !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.04) !important; /* Elegantna, diskretna senka */
        border: 1px solid #f1f5f9 !important;
    }

    /* Link unutar kartice postaje Flex Row (Slika levo, tekst desno) */
    .flora-grid .flora-card > a {
        display: flex !important;
        flex-direction: row !important; 
        align-items: stretch !important; 
        text-decoration: none !important;
        padding: 10px !important;
        gap: 14px !important;
    }

    /* Kontejner slike (fiksni kvadrat) */
    .flora-grid .flora-card-image {
        width: 100px !important;
        height: 100px !important;
        max-width: 100px !important;
        max-height: 100px !important;
        flex-shrink: 0 !important; 
        border-radius: 10px !important;
        overflow: hidden !important;
    }

    /* Sama slika */
    .flora-grid .flora-card-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        margin: 0 !important;
    }

    /* Desni deo sa tekstom */
    .flora-grid .flora-card-body {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        padding: 2px 0 !important; 
    }

    /* Naslov oglasa - TAMAN TEKST */
    .flora-grid .flora-card-body h3 {
        font-size: 16px !important;
        font-weight: 600 !important;
        margin: 0 0 4px 0 !important;
        color: #1a202c !important; /* Elegantna tamno siva/crna */
        text-align: left !important;
        line-height: 1.2 !important;
    }

    /* Cena oglasa - tvoja zelena */
    .flora-grid .flora-card-price {
        font-size: 17px !important;
        font-weight: 700 !important;
        color: #2ecc71 !important; 
        margin: 0 0 4px 0 !important;
    }

    /* Lokacija */
    .flora-grid .flora-city {
        font-size: 12px !important;
        color: #64748b !important; /* Siva boja prilagođena za svetlu pozadinu */
        margin: 0 0 4px 0 !important;
        display: flex !important;
        align-items: center !important;
    }

    /* Datum */
    .flora-grid .flora-card-date {
        font-size: 11px !important;
        color: #94a3b8 !important;
        margin-top: auto !important; 
        display: flex !important;
        align-items: center !important;
    }
}
/* ==========================================================================
   POPRAVKA ZA BREADCRUMB NAVIGACIJU (Sprečavanje preloma u novi red)
   ========================================================================== */
@media (max-width: 768px) {
    .flora-breadcrumb {
        display: block !important;
        white-space: nowrap !important;   /* Zaključava tekst u jedan jedini red */
        overflow-x: auto !important;     /* Omogućava da se prstom skroluje levo-desno */
        overflow-y: hidden !important;
        width: 100% !important;
        padding-bottom: 6px !important;  /* Mali prostor ispod zbog skrol bara */
        -webkit-overflow-scrolling: touch !important; /* Glatko skrolovanje na mobilnim telefonima */
    }

    /* Ako unutar breadcrumb-a imaš linkove ili spanove, osiguravamo da prate pravilo */
    .flora-breadcrumb a,
    .flora-breadcrumb span {
        display: inline-block !important;
        float: none !important;
    }
}
/* Sakrij klasične kockice */
.skriveni-check {
    display: none !important;
}

/* Kontejner */
.dostava-izbor-wrapper {
    display: block !important; /* Vraćamo na block da budemo sigurni */
    width: 100%;
    max-width: 450px; /* Možeš smanjiti ili povećati po želji */
    margin-top: 8px;
    box-sizing: border-box;
}

/* Izgled dugmeta - SADA SA FIKSNIH 48% ŠIRINE */
.dostava-btn {
    display: inline-block !important;
    width: 48% !important; /* Svako dugme uzima tačno 48% širine ekrana */
    margin-right: 3% !important; /* Razmak između njih (48 + 3 + 48 = 99%) */
    text-align: center !important;
    padding: 12px 0px !important; /* Padding radimo samo gore/dole (0 levo i desno da tekst ne širi dugme) */
    border: 2px solid #e0e0e0 !important;
    background-color: #f9f9f9 !important;
    color: #555 !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: all 0.2s ease-in-out !important;
    user-select: none !important;
    box-sizing: border-box !important; /* Ključno da padding ne širi procente */
}

/* Uklanjamo desnu marginu sa poslednjeg dugmeta da ne kvari simetriju */
.dostava-btn:last-child {
    margin-right: 0 !important;
}

/* Hover efekat */
.dostava-btn:hover {
    border-color: #bdc3c7 !important;
    background-color: #f1f1f1 !important;
}

/* Izgled kada JE KLIKNUTO (Selektovano) */
.skriveni-check:checked + .dostava-btn {
    background-color: #2ecc71 !important; /* Flora zelena */
    border-color: #2ea85c !important;
    color: #fff !important;
    box-shadow: 0 3px 6px rgba(46, 204, 113, 0.3) !important;
}

.flora-meta-dodatno {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.flora-meta-item {
    font-size: 14px;
    color: #444;
}

.bedz-dostava {
    background-color: #e8f8f0; /* Blaga Flora zelena pozadina */
    color: #2e7d32; /* Tamno zeleni tekst */
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}
/* dugme za deljenje */
.share-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: white !important;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
}

.share-btn.viber { background-color: #734098; }
.share-btn.viber:hover { background-color: #5c337a; }

.share-btn.facebook { background-color: #1877F2; }
.share-btn.facebook:hover { background-color: #145dbf; }
/* Osnovni stil za dugme za kopiranje */
.share-btn.copy-link {
    background-color: #f1f3f5;
    color: #495057 !important;
    border: 1px solid #ced4da;
    cursor: pointer;
    font-family: inherit;
}
.share-btn.copy-link:hover {
    background-color: #e9ecef;
}

/* Stil kada je link uspešno kopiran */
.share-btn.copy-link.copied {
    background-color: #e8f8f0;
    color: #2e7d32 !important;
    border-color: #a3cfbb;
}


/* Kada se mišem priđe glavnoj slici na oglasu */
#flora-main-image {
    cursor: zoom-in; /* Prikazuje lupu sa plusićem */
    transition: opacity 0.2s ease;
}

#flora-main-image:hover {
    opacity: 0.9; /* Blago posvetli sliku da korisnik vidi da je aktivna */
}

/* Za male sličice ispod (izbornik galerije) */
.flora-thumb {
    cursor: pointer; /* Pretvara miš u šaku */
}

/* --- Flora Arhiva Autora Stilovi --- */
.flora-arhiva-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
    align-items: flex-start;
}

.flora-oglasi-lista-kolona {
    flex: 1;
    width: 100%;
}

.flora-arhiva-sidebar-wrapper {
    width: 320px;
    flex-shrink: 0;
    position: sticky;
    top: 20px;
    z-index: 10;
}

/* Prikazujemo naslov svuda (i na laptopu i na mobilnom) */
.flora-arhiva-naslov-mobilni {
    display: block; /* SADA JE VIDLJIV SVUDA */
    width: 100%;
    margin-bottom: 25px;
    font-size: 24px; /* Malo veći font za laptop */
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* Prazna tabla unutar grida */
.flora-grid .flora-no-posts {
    grid-column: 1 / -1; 
    margin: 20px auto;
    max-width: 600px;
    width: 100%;
    box-sizing: border-box;
}

/* --- ISKLJUČIVO ZA MOBILNE EKRENE (ispod 768px) --- */
/* Prilagođavanje za mobilne ekrane (manje od 768px) */
@media (max-width: 768px) {
    .flora-arhiva-wrapper {
        flex-direction: column;
        gap: 25px;
    }
    
    .flora-arhiva-sidebar-wrapper {
        width: 100%;
        position: static;
        order: 1; /* Kartica ide na vrh */
    }

    .flora-arhiva-naslov-mobilni {
        font-size: 19px; /* Malo smanjimo font da lepo čučne na ekran telefona */
        order: 2; /* Naslov ide odmah ispod kartice */
        margin-top: 5px;
    }
    
    .flora-oglasi-lista-kolona {
        order: 3; /* Oglasi idu na dno */
    }
}

/* Ako je u pitanju blok "Nema oglasa", dodatno ga osiguravamo */
.flora-no-posts {
    text-align: center;
    padding: 50px 30px;
    background: #f9f9f9;
    border: 1px dashed #e0e0e0;
    border-radius: 12px;
    margin: 20px auto; /* "auto" na marginama ga drži zakucanog u centru */
    max-width: 600px; /* Ograničavamo širinu da ne proguta ceo ekran na laptopu */
    width: 100%;
    box-sizing: border-box;
}

.flora-no-posts-icon {
    font-size: 50px;
    margin-bottom: 15px;
    animation: float 3s ease-in-out infinite; /* Mali efekat lebdenja ikonice */
}

.flora-no-posts h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.flora-no-posts p {
    font-size: 15px;
    color: #666;
    max-width: 450px;
    margin: 0 auto 25px auto;
    line-height: 1.5;
}

.flora-no-posts-btn {
    display: inline-block;
    background: #27ae60; /* Tvoja zelena boja na sajtu */
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 10px rgba(39, 174, 96, 0.2);
}

.flora-no-posts-btn:hover {
    background: #219653;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(39, 174, 96, 0.3);
    color: #fff;
}

/* Animacija za ikonicu da blago ide gore-dole */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}
/* Kada je prazna tabla unutar grida, naređujemo joj da zauzme sve kolone od prve do poslednje */
.flora-grid .flora-no-posts {
    grid-column: 1 / -1; 
    margin: 20px auto;
    max-width: 600px; /* Drži tablu kompaktom i elegantnom na sredini */
    width: 100%;
    box-sizing: border-box;
}

.flora-terms-wrap {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 15px 0;
}

.flora-terms-wrap input[type="checkbox"] {
    margin-top: 4px; /* Blago spušta checkbox da bude u ravni sa prvom linijom teksta */
    cursor: pointer;
}

.flora-terms-wrap label {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
    cursor: pointer;
}

.flora-terms-wrap label a {
    color: #27ae60; /* Tvoja Flora zelena boja */
    text-decoration: underline;
    font-weight: 600;
}

