/* ===================================
   TTOGLASI.RS - MAIN STYLESHEET
   =================================== */

/* RESET & GLOBALS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   TOP MENU & HEADER
   =================================== */

/* TOP MENU - Navigacija sajta */
.top-menu {
    background: #2c3e50;
    padding: 10px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.menu-center {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 30px;
}

.top-menu a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 5px;
    transition: all 0.3s;
    font-weight: 500;
}

.top-menu a:hover {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
}

/* ===================================
   MAIN HEADER - Logo Section
   =================================== */

.main-header {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: white;
    padding: 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* LOGO SECTION */
.logo-section {
    text-align: center;
}

.logo-link {
    display: inline-block;
    transition: transform 0.3s;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo-image {
    max-width: 250px;
    height: auto;
    display: block;
    margin: 0 auto 15px;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.3));
}

/* LOGO TAGLINE - GRADIENT TEXT ANIMATION */
.tagline {
    font-size: 16px;
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gradient-text {
    background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c, #f39c12);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50% }
    50% { background-position: 100% 50% }
}

/* ===================================
   USER BAR - Action Buttons
   =================================== */

.user-bar {
    background: #2c3e50;
    padding: 15px 0;
    border-bottom: 3px solid #3498db;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.user-welcome {
    padding: 8px 15px;
    background: rgba(52, 152, 219, 0.15);
    border-radius: 6px;
    border: 1px solid rgba(52, 152, 219, 0.3);
    font-size: 14px;
    font-weight: 500;
    color: white;
}

/* BUTTON STYLES */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #3498db;
}

.btn-create {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.btn-create:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
}

.btn-admin {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
}

.btn-admin:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.btn-logout {
    background: transparent;
    color: white;
    border: 2px solid rgba(231, 76, 60, 0.5);
}

.btn-logout:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: #e74c3c;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

.btn-search {
    background-color: #27ae60;
    color: white;
}

.btn-search:hover {
    background-color: #229954;
}

.btn-sm {
    padding: 8px 12px;
    font-size: 13px;
}

.btn-danger {
    background-color: #e74c3c;
    color: white;
}

.btn-danger:hover {
    background-color: #c0392b;
}

.btn-warning {
    background-color: #ffc107;
    color: #856404;
    border: 1px solid #ffb300;
}

.btn-warning:hover {
    background-color: #ffb300;
    color: #fff;
}

.btn-block {
    width: 100%;
    margin-top: 10px;
}

/* ===================================
   SEARCH SECTION
   =================================== */

.search-section {
    background-color: white;
    padding: 30px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.search-form {
    display: flex;
    gap: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.search-input {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

/* ===================================
   CATEGORIES SECTION - COMPACT GRID
   =================================== */

.categories-section {
    background: white;
    padding: 20px 0;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.categories-section h2 {
    text-align: center;
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 18px;
    font-weight: 600;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

.category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.2s ease;
    min-height: 65px;
}

.category-card:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.15);
}

.category-card.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.category-icon {
    font-size: 20px;
    margin-bottom: 4px;
    line-height: 1;
}

.category-name {
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    word-break: break-word;
}

.category-count {
    font-size: 9px;
    color: #95a5a6;
    margin-top: 2px;
}

.category-card.active .category-count {
    color: rgba(255, 255, 255, 0.8);
}

/* Desktop - 9+ kategorija po redu */
@media (min-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(9, 1fr);
    }
}

/* Tablet - 6 kategorija po redu */
@media (max-width: 991px) and (min-width: 601px) {
    .categories-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* Mobilni - 4 kategorije po redu */
@media (max-width: 600px) {
    .categories-section {
        padding: 15px 0;
    }

    .categories-section h2 {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 0 8px;
    }

    .category-card {
        padding: 8px 4px;
        min-height: 58px;
        border-radius: 6px;
    }

    .category-icon {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .category-name {
        font-size: 9px;
    }

    .category-count {
        font-size: 8px;
    }
}

/* Jako mali telefoni - 3 kategorije po redu */
@media (max-width: 380px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-card {
        min-height: 62px;
    }

    .category-icon {
        font-size: 20px;
    }

    .category-name {
        font-size: 10px;
    }
}

/* ===================================
   MAIN CONTENT
   =================================== */

.main-content {
    min-height: 60vh;
    padding: 40px 0;
}

/* ===================================
   BANNER SECTION - FULL WIDTH 16:10
   =================================== */

.banner-section {
    width: 100%;
    margin: 0 0 30px 0;
    padding: 0;
    position: relative;
}

.banner-slider {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #f0f0f0;
}

/* Na većim ekranima ograniči visinu */
@media (min-width: 769px) {
    .banner-section {
        max-width: 1200px;
        margin: 30px auto 40px;
        padding: 0 20px;
    }

    .banner-slider {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        aspect-ratio: 16 / 9; /* Širi na desktopu */
        max-height: 400px;
    }
}

.banner-slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeIn 0.5s;
}

.banner-slide.active {
    display: block;
}

.banner-image,
.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ne rasteže, nego "popunjava" */
    object-position: center;
}

.banner-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active,
.dot:hover {
    background-color: white;
    transform: scale(1.2);
}

.banner-prev,
.banner-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.4);
    color: white;
    border: none;
    padding: 15px 18px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    z-index: 10;
}

.banner-prev:hover,
.banner-next:hover {
    background-color: rgba(0,0,0,0.7);
}

.banner-prev {
    left: 10px;
}

.banner-next {
    right: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Video Banner Wrapper */
.banner-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.video-controls button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    color: white;
}

.video-controls button:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Mobilni - fullwidth */
@media (max-width: 768px) {
    .banner-section {
        margin: 0 0 20px 0;
    }

    .banner-slider {
        border-radius: 0;
        aspect-ratio: 16 / 10;
    }

    .banner-prev,
    .banner-next {
        padding: 12px 15px;
        font-size: 18px;
    }

    .banner-prev {
        left: 5px;
    }

    .banner-next {
        right: 5px;
    }

    .banner-dots {
        bottom: 10px;
    }

    .dot {
        height: 8px;
        width: 8px;
    }

    .video-controls {
        bottom: 10px;
        right: 10px;
    }

    .video-controls button {
        padding: 6px 10px;
        font-size: 14px;
    }
}

/* ===================================
   ADS SECTION
   =================================== */

.ads-section h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #2c3e50;
}

.ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.ad-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.ad-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.ad-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #ecf0f1;
    position: relative;
}

.ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #95a5a6;
    font-size: 16px;
}

.ad-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(52, 152, 219, 0.95);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

.ad-badge.novo {
    background: rgba(46, 204, 113, 0.95);
}

.ad-badge.polovno {
    background: rgba(241, 196, 15, 0.95);
}

.ad-info {
    padding: 15px;
}

.ad-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.ad-price {
    font-size: 20px;
    font-weight: bold;
    color: #27ae60;
    margin: 10px 0;
}

.price-amount {
    font-size: 24px;
}

.price-currency {
    font-size: 16px;
    color: #7f8c8d;
    margin-left: 3px;
}

.price-free {
    color: #3498db;
    font-size: 18px;
}

.ad-date {
    font-size: 14px;
    color: #7f8c8d;
}

.no-ads {
    text-align: center;
    padding: 60px 20px;
}

.no-ads p {
    font-size: 20px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

/* ===================================
   PAGINATION
   =================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.page-link {
    padding: 10px 15px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    color: #2c3e50;
    transition: all 0.3s;
}

.page-link:hover {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

.page-link.active {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* ===================================
   FOOTER - MODERN DESIGN
   =================================== */

.main-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
    position: relative;
}

.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #9b59b6, #e74c3c, #f39c12);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    padding: 0 20px;
}

.footer-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #3498db;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #2980b9);
    border-radius: 2px;
}

.footer-section h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #3498db;
}

.footer-section p {
    line-height: 1.8;
    color: #bdc3c7;
    margin-bottom: 15px;
    font-size: 15px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.footer-section a::before {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s;
}

.footer-section a:hover {
    color: #3498db;
    padding-left: 10px;
}

.footer-section a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* Social Links - Modern Cards */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.social-links a:hover {
    background: rgba(52, 152, 219, 0.2);
    border-color: #3498db;
    transform: translateX(10px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.social-links a::before {
    display: none;
}

.social-links svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.social-links span {
    font-size: 16px;
    font-weight: 500;
}

/* Footer Bottom */
.footer-bottom {
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px 20px;
    text-align: center;
}

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

.footer-copyright {
    color: #95a5a6;
    font-size: 14px;
}

.footer-copyright strong {
    color: #3498db;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: #95a5a6;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
    transition: all 0.3s;
    z-index: 1000;
    border: none;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.6);
}

.back-to-top.show {
    display: flex;
}

/* ===================================
   FLASH MESSAGES
   =================================== */

.flash-messages {
    background-color: #f8f9fa;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.flash-message {
    padding: 12px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    font-size: 15px;
    animation: slideDown 0.3s ease-out;
}

.flash-message:last-child {
    margin-bottom: 0;
}

.flash-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.flash-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   AUTH FORMS
   =================================== */

.auth-section {
    padding: 60px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.auth-card h2 {
    margin-bottom: 10px;
    color: #2c3e50;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.auth-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group label small {
    color: #7f8c8d;
    font-weight: normal;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: #7f8c8d;
}

.auth-footer a {
    color: #3498db;
    text-decoration: underline;
}

.auth-footer a:hover {
    color: #2980b9;
}

.alert {
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert ul {
    list-style: none;
    margin: 0;
}

.alert li {
    margin-bottom: 5px;
}

.alert-error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.alert-success {
    background-color: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.alert-info {
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 15px;
    border-radius: 5px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
    cursor: pointer;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.checkbox-label span {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.checkbox-label a {
    color: #3498db;
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: #2980b9;
}

/* ===================================
   PAGES (Terms, Contact, About)
   =================================== */

.page-section {
    padding: 60px 0;
    min-height: 70vh;
}

.page-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-container h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: #2c3e50;
}

.page-subtitle {
    color: #7f8c8d;
    margin-bottom: 40px;
    font-size: 14px;
}

.terms-content, .contact-content, .about-content {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.terms-content h2, .contact-content h2, .about-content h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #34495e;
}

.terms-content h2:first-child, .contact-content h2:first-child, .about-content h2:first-child {
    margin-top: 0;
}

.terms-content p, .contact-content p, .about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #555;
}

.terms-content ul, .about-content ul, .about-content ol {
    margin: 15px 0 15px 30px;
    line-height: 1.8;
}

.terms-content li, .about-content li {
    margin-bottom: 8px;
    color: #555;
}

.terms-footer, .back-link-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 40px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
}

.contact-info, .contact-form-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

/* ===================================
   AD FORMS (Create/Edit)
   =================================== */

.form-section {
    padding: 60px 0;
    min-height: 70vh;
}

.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.form-card {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.form-card h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.form-subtitle {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.form-textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 13px;
    color: #7f8c8d;
}

.file-upload-wrapper {
    position: relative;
    margin-bottom: 15px;
}

.file-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.file-label {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.file-label:hover {
    background: #e9ecef;
    border-color: #3498db;
}

.file-icon {
    font-size: 40px;
}

.file-text {
    font-size: 16px;
    color: #555;
}

.image-preview, .existing-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.preview-item, .existing-image-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
}

.preview-item img, .existing-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-number, .image-number {
    position: absolute;
    top: 8px;
    background: rgba(52, 152, 219, 0.9);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.preview-number {
    right: 8px;
}

.image-number {
    left: 8px;
}

.delete-image-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(231, 76, 60, 0.9);
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.delete-image-btn:hover:not(:disabled) {
    background: rgba(192, 57, 43, 1);
    transform: scale(1.1);
}

.delete-image-btn:disabled {
    background: rgba(149, 165, 166, 0.5);
    cursor: not-allowed;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.tips-sidebar {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 10px;
    height: fit-content;
    position: sticky;
    top: 20px;
}

.tips-sidebar h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 20px;
}

.tips-sidebar ul {
    list-style: none;
    padding: 0;
}

.tips-sidebar ul li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
    line-height: 1.6;
    color: #555;
}

.tips-sidebar ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.tips-warning {
    margin-top: 25px;
    padding: 20px;
    background: #fee;
    border-left: 4px solid #e74c3c;
    border-radius: 5px;
}

.tips-warning strong {
    display: block;
    margin-bottom: 10px;
    color: #c0392b;
}

.tips-warning ul li:before {
    content: "✗";
    color: #e74c3c;
}

/* ===================================
   MY ADS PAGE
   =================================== */

.my-ads-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.my-ad-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.my-ad-image {
    position: relative;
    height: 200px;
    background: #f5f5f5;
}

.my-ad-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.status-pending {
    background: #f39c12;
}

.status-active {
    background: #27ae60;
}

.status-sold {
    background: #e74c3c;
}

.my-ad-info {
    padding: 20px;
}

.my-ad-info h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.ad-category {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 8px;
}

.my-ad-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* ===================================
   AD DETAIL PAGE
   =================================== */

.ad-detail-section {
    padding: 40px 0;
    min-height: 70vh;
}

.ad-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    margin-bottom: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

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

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

.ad-detail-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* GALLERY */
.ad-gallery {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.gallery-container {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 10px;
    overflow: hidden;
    background: #f5f5f5;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s;
}

.main-image-wrapper:hover img {
    transform: scale(1.02);
}

/* Gallery Arrows */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    z-index: 10;
}

/* Zoom Hint */
.zoom-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    z-index: 10;
}

.no-images {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    background: #f5f5f5;
    border-radius: 10px;
    color: #7f8c8d;
    font-size: 18px;
}

/* INFO PANEL */
.ad-info-panel h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.ad-meta {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #ecf0f1;
}

.ad-price {
    font-size: 32px;
    font-weight: bold;
    color: #27ae60;
}

.price-amount {
    font-size: 36px;
}

.price-currency {
    font-size: 24px;
    color: #7f8c8d;
    margin-left: 5px;
}

.price-free {
    color: #3498db;
    font-size: 28px;
}

.meta-item {
    font-size: 15px;
    color: #555;
}

.meta-item strong {
    color: #2c3e50;
    font-weight: 600;
}

.ad-description {
    margin-bottom: 30px;
}

.ad-description h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #34495e;
}

.ad-description p {
    line-height: 1.8;
    color: #555;
    white-space: pre-wrap;
}

/* CONTACT SECTION */
.ad-contact-section {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 10px;
    border: 2px solid #e0e0e0;
}

.ad-contact-section h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: #2c3e50;
}

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-contact {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-message-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.btn-message-primary:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a4291 100%);
}

.btn-email {
    background: white;
    color: #2c3e50;
    border-color: #ddd;
}

.btn-email:hover {
    border-color: #3498db;
    background: #f0f8ff;
}

.btn-icon {
    font-size: 35px;
    flex-shrink: 0;
}

.btn-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: left;
}

.btn-content strong {
    font-size: 16px;
}

.btn-content small {
    font-size: 13px;
    opacity: 0.8;
}

/* ACTIONS */
.ad-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #ecf0f1;
}

/* LIGHTBOX */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    cursor: default;
}

/* X dugme za zatvaranje */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10000;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(231, 76, 60, 0.8);
    border-radius: 50%;
}

.lightbox-close:hover {
    background: rgba(231, 76, 60, 1);
    transform: scale(1.1);
}

/* Strelice u lightbox-u */
.lightbox-nav {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    font-size: 40px;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s;
    pointer-events: auto;
}

.lightbox-arrow:hover {
    background: rgba(255,255,255,0.4);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Brojač */
.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    pointer-events: none;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 992px) {
    .main-header .container {
        flex-direction: column;
        text-align: center;
    }

    .user-actions {
        justify-content: center;
    }

    .menu-center {
        gap: 15px;
    }

    .form-container {
        grid-template-columns: 1fr;
    }

    .tips-sidebar {
        position: static;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .ad-detail-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .logo h1 {
        font-size: 24px;
    }

    .logo-image {
        max-width: 180px;
    }

    .tagline {
        font-size: 14px;
    }

    .user-actions {
        gap: 8px;
    }

    .btn {
        padding: 8px 12px;
        font-size: 13px;
    }

    .user-welcome {
        width: 100%;
        text-align: center;
    }

    .categories-inline-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .categories-tags-wrapper {
        width: 100%;
    }

    .category-tag {
        font-size: 13px;
        padding: 6px 12px;
    }

    .search-form {
        flex-direction: column;
    }

    /* ===================================
       MOBILNI LAYOUT - 2 OGLASA U REDU
       =================================== */
    .ads-grid {
        grid-template-columns: repeat(2, 1fr); /* ← 2 oglasa u redu */
        gap: 12px; /* Manji gap za mobilni */
    }

    .ad-card {
        border-radius: 8px; /* Malo manje zaobljeno */
    }

    .ad-image {
        height: 140px; /* Malo niže slike */
    }

    .ad-info {
        padding: 10px; /* Manji padding */
    }

    .ad-info h3 {
        font-size: 14px; /* Manji font */
        margin-bottom: 8px;
    }

    .ad-price {
        font-size: 16px; /* Manji font za cenu */
    }

    .price-amount {
        font-size: 18px;
    }

    .ad-date {
        font-size: 12px;
    }

    .ad-badge {
        font-size: 10px;
        padding: 4px 8px;
    }

    /* ===================================
       OSTATAK RESPONSIVE KODA
       =================================== */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section h3::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-section a {
        justify-content: center;
    }

    .social-links {
        align-items: center;
    }

    .social-links a {
        justify-content: center;
        max-width: 250px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 20px;
    }

    .banner-slider {
        height: 200px;
    }

    .banner-prev,
    .banner-next {
        padding: 10px 15px;
        font-size: 18px;
    }

    .ad-detail-card {
        padding: 20px;
    }

    .ad-info-panel h1 {
        font-size: 22px;
    }

    .ad-price {
        font-size: 24px;
    }

    .price-amount {
        font-size: 28px;
    }

    .gallery-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }

    .image-counter {
        font-size: 12px;
        padding: 6px 12px;
        bottom: 10px;
    }

    .zoom-hint {
        font-size: 11px;
        padding: 4px 8px;
        bottom: 10px;
        right: 10px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 35px;
        width: 50px;
        height: 50px;
    }

    .lightbox-arrow {
        font-size: 25px;
        padding: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .btn-contact {
        padding: 15px;
    }

    .btn-icon {
        font-size: 28px;
    }

    .btn-content strong {
        font-size: 14px;
    }

    .btn-content small {
        font-size: 12px;
    }
}

/* ===================================
   MALI TELEFONI - OPCIONALNO 1 OGLAS
   =================================== */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 20px;
    }

    .logo-image {
        max-width: 150px;
    }

    /* Opcija: Ako hoćeš 1 oglas u redu na JAKO malim telefonima */
    /* .ads-grid {
        grid-template-columns: 1fr;
    } */

    /* Ili zadrži 2 u redu - zakomentariši gornji blok */

    .gallery-arrow {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }
}


/* ===================================
   VIDEO BANNER DODATAK
   =================================== */

/* Video Banner Wrapper */
.banner-video-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.banner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.video-controls button {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    color: white;
}

.video-controls button:hover {
    background: rgba(0, 0, 0, 0.7);
}

/* Responsive Video Controls */
@media (max-width: 768px) {
    .video-controls {
        bottom: 5px;
        right: 5px;
    }

    .video-controls button {
        padding: 5px 8px;
        font-size: 12px;
    }
}

/* ========================
   VODIČ STRANICA
   ======================== */

.vodic-section {
    padding: 40px 0;
}

.page-title {
    text-align: center;
    font-size: 2.5rem;
    color: #333;
    margin-bottom: 10px;
}

.page-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 40px;
}

/* ACCORDION */
.vodic-accordion {
    max-width: 900px;
    margin: 0 auto;
}

.vodic-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.vodic-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.vodic-item.active {
    border-color: #667eea;
}

.vodic-header {
    width: 100%;
    padding: 20px 25px;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    transition: background 0.3s ease;
}

.vodic-header:hover {
    background: #f8f9ff;
}

.vodic-icon {
    font-size: 1.5rem;
}

.vodic-title {
    flex: 1;
    text-align: left;
}

.vodic-arrow {
    font-size: 0.9rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.vodic-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 25px;
}

.vodic-item.active .vodic-content {
    padding: 0 25px 25px 25px;
}

.vodic-content h3 {
    color: #667eea;
    margin-top: 0;
    margin-bottom: 15px;
}

.vodic-content h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.vodic-content ul {
    margin: 10px 0;
    padding-left: 25px;
}

.vodic-content li {
    margin: 8px 0;
    line-height: 1.6;
}

/* BOXES */
.important-box,
.warning-box,
.tip-box {
    padding: 15px 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.important-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
}

.warning-box {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
}

.tip-box {
    background: #d1ecf1;
    border-left: 4px solid #17a2b8;
}

.success-story {
    background: #f8f9ff;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border-left: 4px solid #667eea;
}

.success-story p:first-child {
    font-weight: 600;
    color: #667eea;
    margin-bottom: 10px;
}

/* CTA SEKCIJA */
.vodic-cta {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    color: white;
}

.vodic-cta h2 {
    margin: 0 0 10px 0;
    font-size: 2rem;
}

.vodic-cta p {
    margin: 0 0 25px 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn {
    padding: 12px 30px;
    font-size: 1rem;
}

.cta-buttons .btn-primary {
    background: white;
    color: #667eea;
}

.cta-buttons .btn-primary:hover {
    background: #f0f0f0;
}

.cta-buttons .btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }

    .vodic-header {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .vodic-icon {
        font-size: 1.3rem;
    }

    .vodic-cta {
        padding: 30px 20px;
    }

    .vodic-cta h2 {
        font-size: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ===================================
   CITY FILTER - CHECKBOX STYLE
   =================================== */

.search-form-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.search-input-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input-row .search-input {
    flex: 1;
}

.city-filter-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.filter-label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
}

.city-checkboxes {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
}

.city-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 6px 10px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
}

.city-checkbox:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.city-checkbox input[type="checkbox"] {
    display: none;
}

.city-checkbox .checkbox-custom {
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.city-checkbox input[type="checkbox"]:checked + .checkbox-custom {
    background: #667eea;
    border-color: #667eea;
}

.city-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    color: white;
    font-size: 9px;
    font-weight: bold;
}

.city-checkbox input[type="checkbox"]:checked ~ .city-name {
    color: #667eea;
    font-weight: 600;
}

.city-name {
    color: #555;
    transition: color 0.2s;
}

/* Ad Location Display */
.ad-location {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 5px;
}

/* Responsive - Mobilni uređaji */
@media (max-width: 768px) {
    .search-input-row {
        flex-direction: column;
    }

    .city-filter-row {
        padding: 8px 10px;
        gap: 8px;
        /* Horizontalni scroll na mobilnom */
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
    }

    .city-filter-row::-webkit-scrollbar {
        display: none; /* Chrome, Safari */
    }

    .filter-label {
        font-size: 13px;
    }

    .city-checkboxes {
        gap: 6px;
    }

    .city-checkbox {
        padding: 5px 8px;
        font-size: 12px;
        gap: 4px;
    }

    .city-checkbox .checkbox-custom {
        width: 12px;
        height: 12px;
    }

    .city-checkbox input[type="checkbox"]:checked + .checkbox-custom::after {
        font-size: 8px;
    }
}

/* Jako mali ekrani */
@media (max-width: 400px) {
    .filter-label {
        font-size: 12px;
    }

    .city-checkbox {
        padding: 4px 6px;
        font-size: 11px;
    }
}

/* ===================================
   PWA INSTALL BANNER
   =================================== */

.install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.install-content {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 600px;
    width: 100%;
}

.install-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.install-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.install-text strong {
    font-size: 16px;
}

.install-text small {
    font-size: 13px;
    opacity: 0.9;
}

.btn-install {
    background: white;
    color: #667eea;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    flex-shrink: 0;
}

.btn-install:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

.install-close {
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 5px 10px;
    opacity: 0.8;
    transition: opacity 0.3s;
    flex-shrink: 0;
}

.install-close:hover {
    opacity: 1;
}

/* Responsive */
@media (max-width: 480px) {
    .install-banner {
        padding: 12px 15px;
    }

    .install-content {
        gap: 10px;
    }

    .install-icon {
        font-size: 28px;
    }

    .install-text strong {
        font-size: 14px;
    }

    .install-text small {
        font-size: 12px;
    }

    .btn-install {
        padding: 8px 15px;
        font-size: 13px;
    }
}

/* ===================================
   BIZNIS KARTICE - FORCE FIX
   =================================== */

.businesses-section {
    padding: 30px 0 !important;
    background: #f8f9ff !important;
}

.businesses-section .section-title {
    text-align: center !important;
    margin-bottom: 25px !important;
    color: #2c3e50 !important;
    font-size: 22px !important;
}

.businesses-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
}

.business-card {
    background: white !important;
    border-radius: 12px !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    text-decoration: none !important;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e9ecef !important;
}

.business-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25) !important;
    border-color: #667eea !important;
}

.business-card-large {
    grid-column: span 2 !important;
    flex-direction: row !important;
    text-align: left !important;
    padding: 25px 30px !important;
    gap: 20px !important;
}

.business-card-logo {
    width: 80px !important;
    height: 80px !important;
    min-width: 80px !important;
    min-height: 80px !important;
    max-width: 80px !important;
    max-height: 80px !important;
    flex-shrink: 0 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #f5f5f5 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 2px solid #e9ecef !important;
}

.business-card-large .business-card-logo {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
}

.business-card-logo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.business-card-logo .logo-placeholder {
    font-size: 36px !important;
}

.business-card-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
}

.business-card-info h3 {
    margin: 0 !important;
    font-size: 16px !important;
    color: #2c3e50 !important;
    font-weight: 600 !important;
}

.business-card-large .business-card-info h3 {
    font-size: 18px !important;
}

.business-location {
    font-size: 13px !important;
    color: #667eea !important;
    font-weight: 500 !important;
}

.business-address {
    font-size: 12px !important;
    color: #7f8c8d !important;
}

/* Responsive za biznis kartice */
@media (max-width: 600px) {
    .businesses-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    .business-card {
        padding: 15px !important;
    }

    .business-card-large {
        flex-direction: column !important;
        text-align: center !important;
        padding: 20px !important;
    }

    .business-card-logo {
        width: 70px !important;
        height: 70px !important;
        min-width: 70px !important;
        min-height: 70px !important;
        max-width: 70px !important;
        max-height: 70px !important;
    }

    .business-card-info h3 {
        font-size: 14px !important;
    }

    .business-location {
        font-size: 12px !important;
    }
}

/* ===================================
   BIZNIS DUGMAD - JAČE BOJE
   =================================== */

/* Registruj biznis - za neulogovane */
.btn-business {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%) !important;
    color: white !important;
    border: 2px solid #00b894 !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(0, 184, 148, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.btn-business:hover {
    background: linear-gradient(135deg, #00a381 0%, #00b5b5 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(0, 184, 148, 0.6) !important;
    color: white !important;
}

/* Moj biznis - za ulogovane */
.btn-business-dashboard {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%) !important;
    color: white !important;
    border: 2px solid #6c5ce7 !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(108, 92, 231, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.btn-business-dashboard:hover {
    background: linear-gradient(135deg, #5b4cdb 0%, #918de8 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(108, 92, 231, 0.6) !important;
    color: white !important;
}

/* Admin Biznisi dugme */
.btn-admin-secondary {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%) !important;
    color: white !important;
    border: 2px solid #e84393 !important;
    font-weight: 600 !important;
    box-shadow: 0 3px 10px rgba(232, 67, 147, 0.5) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2) !important;
}

.btn-admin-secondary:hover {
    background: linear-gradient(135deg, #f368a0 0%, #d63384 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(232, 67, 147, 0.6) !important;
    color: white !important;
}
```

---

## 📋 **Checklist:**
```
☐ Ažuriraj views/index.ejs (biznis sekcija sa inline stilovima)
☐ Dodaj CSS na kraj style.css
☐ Očisti browser cache (Ctrl+Shift+R)
☐ Testiraj lokalno
☐ Deploy


---

## 🎯 **Šta je promenjeno:**

1. **`white-space: nowrap`** - checkbox i tekst uvek u istom redu
2. **`flex-shrink: 0`** - elementi se ne smanjuju
3. **`flex-wrap: nowrap`** - gradovi ostaju u jednom redu
4. **`overflow-x: auto`** - horizontalni scroll ako ima puno gradova
5. **Manji padding/font na mobilnom** - sve stane bolje

---

## 📱 **Rezultat na telefonu:**
```
📍 Lokacija: [✓ Svi oglasi] [Tutin] [Novi Pazar] [Sjenica] [Rožaje] →
                                                        (swipe za više)
