html, body {
    max-width: 100%;
    overflow-x: clip;
}

body { 
    background-color:#f8fafc; 
    font-family: 'Roboto', 'Rubik', sans-serif;
}

a {
    color: #006738;
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: #ec1c24;
}

/* NAVBAR CUSTOMIZATION TO MATCH NEW SYSTEM */
.navbar-default {
    background-color: rgba(0, 103, 56, 0.95) !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 103, 56, 0.08) !important;
    padding: 5px 0;
}
.navbar-default .navbar-nav>li>a { 
    color: rgba(255, 255, 255, 0.9) !important; 
    font-size: 14px; 
    font-weight: 600;
    letter-spacing: 0.5px;
}
.navbar-default .navbar-nav>li>a:hover { 
    color: #ffffff !important; 
}
.navbar-facebook-icon {
    transition: color 0.2s ease, transform 0.2s ease !important;
}
.navbar-facebook-icon:hover {
    color: #1877F2 !important;
    transform: scale(1.15);
}
.navbar-default .navbar-toggle {
    border-color: rgba(255, 255, 255, 0.2);
}
.navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

/* O-OGLASNIK CONTAINER & CARDS */
.o-container { 
    background-color: #ffffff; 
    padding: 25px; 
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.015);
}
.bg-padding { 
    padding: 15px 20px; 
    border-radius: 8px;
    background-color: #f0fdf4 !important;
    color: #166534 !important;
    border: 1px solid rgba(22, 101, 52, 0.15);
    font-weight: 500;
    font-size: 0.9rem;
}
.o-slika { 
    max-width: 120px; 
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-right: 15px; 
    margin-bottom: 10px; 
    float: left; 
    transition: transform 0.2s ease;
}
.o-slika:hover {
    transform: scale(1.03);
}
.o-oglas { 
    padding: 20px; 
    border: 1px solid rgba(0, 0, 0, 0.12) !important; 
    border-radius: 10px;
    background-color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
}
.o-oglas:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 103, 56, 0.05);
    border-color: rgba(0, 103, 56, 0.18);
}
.o-oglas.bg-success {
    background-color: #f0fdf4 !important;
    border-color: rgba(0, 103, 56, 0.2) !important;
}

/* PREMIUM PAGINATION */
.pagination {
    margin: 30px 0;
    gap: 6px;
}
.pagination .page-item .page-link {
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #4b5563 !important;
    padding: 10px 18px !important;
    font-weight: 600 !important;
    font-size: 0.92rem !important;
    transition: all 0.2s ease !important;
    background-color: #ffffff;
}
.pagination .page-item .page-link:hover {
    background-color: #f1f5f9 !important;
    color: #006738 !important;
    border-color: rgba(0, 103, 56, 0.2) !important;
    transform: translateY(-1px);
}
.pagination .page-item.active .page-link {
    background-color: #006738 !important;
    border-color: #006738 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 103, 56, 0.15) !important;
}
/* BULLETPROOF BREADCRUMB */
ol.breadcrumb {
    display: flex !important;
    flex-wrap: wrap !important;
    padding: 12px 20px !important;
    margin-bottom: 20px !important;
    list-style: none !important;
    background-color: #f8fafc !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    gap: 0 !important;
    align-items: center !important;
}
ol.breadcrumb li.breadcrumb-item {
    display: inline-flex !important;
    align-items: center !important;
    font-size: 0.9rem !important;
    color: #4b5563 !important;
    padding: 0 !important;
    margin: 0 !important;
}
ol.breadcrumb li.breadcrumb-item a {
    color: #006738 !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
}
ol.breadcrumb li.breadcrumb-item a:hover {
    color: #ec1c24 !important;
}
ol.breadcrumb li.breadcrumb-item + li.breadcrumb-item::before {
    display: inline-block !important;
    padding-right: 12px !important;
    padding-left: 12px !important;
    color: #94a3b8 !important;
    content: "›" !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    line-height: 1 !important;
}
ol.breadcrumb li.breadcrumb-item.active {
    color: #64748b !important;
    font-weight: 500 !important;
}

/* FOOTER IN OGLASNIK */
.v-footer-2 {
    background-color: #f8fafc !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
    padding-top: 35px !important;
    padding-bottom: 35px !important;
    color: #4b5563 !important;
    font-size: 0.9rem !important;
    margin-top: 30px;
}
.v-footer-2 a {
    color: #4b5563 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    margin: 0 10px;
    transition: color 0.2s ease;
}
.v-footer-2 a:hover {
    color: #006738 !important;
}

/* SIDEBAR CATEGORY BUTTONS */
.o-container .btn-block {
    text-align: left !important;
    padding: 12px 18px !important;
    font-size: 0.95rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    margin-bottom: 10px !important;
    display: flex !important;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02) !important;
    transition: all 0.2s ease !important;
    white-space: normal !important;
}

.o-container .btn-default {
    background-color: #ffffff !important;
    color: #4b5563 !important;
}
.o-container .btn-default:hover {
    background-color: #f1f5f9 !important;
    color: #006738 !important;
    border-color: rgba(0, 103, 56, 0.25) !important;
    transform: translateX(3px);
}
.o-container .btn-default.active, 
.o-container .btn-default:active, 
.o-container .btn-default.active:hover {
    background-color: #006738 !important;
    border-color: #006738 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 103, 56, 0.15) !important;
}

/* SUBMIT AD BUTTON */
.o-container .btn-danger {
    background-color: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(220, 38, 38, 0.2) !important;
}
.o-container .btn-danger:hover {
    background-color: #b91c1c !important;
    border-color: #b91c1c !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3) !important;
}

/* MODAL DESIGN */
.modal-content {
    border-radius: 12px !important;
    border: none !important;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
}
.modal-header {
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
    padding: 20px 25px !important;
}
.modal-title {
    font-weight: 600 !important;
    color: #1a202c !important;
}
.modal-body {
    padding: 25px !important;
}
.modal-footer {
    border-top: 1px solid rgba(0,0,0,0.06) !important;
    padding: 20px 25px !important;
}
.form-group label {
    font-weight: 600 !important;
    color: #4b5563 !important;
    margin-bottom: 6px !important;
}
.form-control {
    border-radius: 8px !important;
    border: 1px solid rgba(0,0,0,0.12) !important;
    padding: 10px 14px !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}
.form-control:focus {
    border-color: #006738 !important;
    box-shadow: 0 0 0 3px rgba(0, 103, 56, 0.15) !important;
}

/* PREMIUM PHONE BUTTON PILL */
.compas-phone-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    background-color: #f1f5f9 !important;
    color: #006738 !important;
    border: 1px solid rgba(0, 103, 56, 0.25) !important;
    padding: 8px 18px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    transition: all 0.22s ease-in-out !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}
.compas-phone-btn:hover {
    background-color: #006738 !important;
    color: #ffffff !important;
    border-color: #006738 !important;
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(0, 103, 56, 0.18) !important;
}
.compas-phone-btn span {
    font-size: 1.1rem !important;
}

/* TOP ACTION BUTTONS ROW */
.top-action-btn {
    text-align: center !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    display: inline-flex !important;
    height: 100% !important;
}

/* PREMIUM CUSTOM LIGHTBOX OVERLAY */
.compas-lightbox-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: rgba(15, 23, 42, 0.9) !important; /* Elegant dark slate background with opacity */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important; /* Way above everything, including navbar and standard modals */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0;
    transition: opacity 0.25s ease-out !important;
}
.compas-lightbox-overlay.show {
    opacity: 1;
}
.compas-lightbox-container {
    position: relative !important;
    max-width: 90% !important;
    max-height: 85% !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.compas-lightbox-overlay.show .compas-lightbox-container {
    transform: scale(1);
}
.compas-lightbox-img {
    max-width: 100% !important;
    max-height: 80vh !important;
    border-radius: 12px !important;
    border: 4px solid #ffffff !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
    object-fit: contain !important;
}
.compas-lightbox-title {
    color: #ffffff !important;
    margin-top: 15px !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    text-align: center !important;
    font-family: 'Rubik', sans-serif !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
}
.compas-lightbox-close {
    position: absolute !important;
    top: -20px !important;
    right: -20px !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    transition: all 0.2s ease !important;
}
.compas-lightbox-close:hover {
    background-color: #dc2626 !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

/* PREMIUM ELEGANT PRICE BADGE */
.compas-price-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background-color: #fee2e2 !important; /* Soft premium red background */
    color: #dc2626 !important; /* Premium crimson red */
    padding: 4px 10px !important;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    border-radius: 6px !important;
    border: 1px solid rgba(220, 38, 38, 0.12) !important;
    vertical-align: middle !important;
    margin-left: 8px !important;
    box-shadow: 0 2px 4px rgba(220, 38, 38, 0.03) !important;
    line-height: 1 !important;
}
.compas-price-badge span {
    font-size: 0.95rem !important;
    line-height: 1 !important;
}

/* PREMIUM BACK TO TOP BUTTON HOVERS & TRANSITIONS */
.back-to-top-btn {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.back-to-top-btn:hover {
    background-color: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
