/** ADD YOUR AWESOME CODES HERE **/

/* Gallery image sizing styles */
.gallery-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin-bottom: 15px;
    cursor: pointer;
}

.gallery-img {
    max-width: 100%;
    max-height: 320px;
    object-fit: contain;
    background-color: #2a2a2a;
    transition: transform 0.3s ease;
}

.gallery-img:hover {
    transform: scale(1.03);
}

/* Added styles for lightbox links */
.tz-gallery .lightbox {
    display: block;
    margin-bottom: 15px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

/* Gallery carousel styles */
#gallery-carousel {
    padding: 0 40px;
}

#gallery-carousel .carousel-control-prev,
#gallery-carousel .carousel-control-next {
    background: #fd7e14;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 3px;
    opacity: 0.8;
}

#gallery-carousel .carousel-control-prev:hover,
#gallery-carousel .carousel-control-next:hover {
    opacity: 1;
}

#gallery-carousel .carousel-control-prev {
    left: 0;
}

#gallery-carousel .carousel-control-next {
    right: 0;
}

#gallery-carousel .fa {
    font-size: 28px;
}

/* Enhanced Lightbox styles to match terasa.rs */
#baguetteBox-overlay {
    background-color: rgba(0, 0, 0, 0.9) !important;
}

#baguetteBox-overlay .full-image img {
    max-height: 85vh !important;
}

.baguetteBox-button#close-button {
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #fd7e14 !important;
    border-radius: 50% !important;
    opacity: 0.9 !important;
    transition: background-color 0.3s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    font-size: 0 !important; /* Hide the text content */
}

/* Hide the original SVG */
.baguetteBox-button#close-button svg {
    display: none !important;
}

/* Create a custom X using pseudo-elements */
.baguetteBox-button#close-button:before,
.baguetteBox-button#close-button:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    top: 50%;
    left: 50%;
}

.baguetteBox-button#close-button:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.baguetteBox-button#close-button:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.baguetteBox-button#close-button:hover {
    background-color: #0a5e3f !important;
    opacity: 1 !important;
}

.baguetteBox-button#previous-button,
.baguetteBox-button#next-button {
    background-color: #fd7e14 !important;
    opacity: 0.8 !important;
    border-radius: 5px !important;
}

.baguetteBox-button#previous-button:hover,
.baguetteBox-button#next-button:hover {
    opacity: 1 !important;
}

/* Mobile styles for gallery carousel */
@media (max-width: 767px) {
    #gallery-carousel .row {
        margin-right: 0;
        margin-left: 0;
    }
    
    #gallery-carousel .carousel-item .col-sm-12 {
        padding-right: 5px;
        padding-left: 5px;
        margin-bottom: 10px;
    }
    
    #gallery-carousel .carousel-control-prev,
    #gallery-carousel .carousel-control-next {
        width: 30px;
        height: 40px;
    }
    
    #gallery-carousel .fa {
        font-size: 20px;
    }
    
    .gallery-img {
        max-height: 260px;
    }
}

/* Add fixed dimensions for food images in the menu section */
.special-list .gallery-single img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    background-color: #2a2a2a;
}

/* Fix scroll position for navigation links */
html {
    scroll-padding-top: 92px;
    scroll-margin-top: 92px;
    scroll-behavior: smooth;
    background-color: #f5f5f7;
}

/* Alternative method for older browsers */
:target {
    scroll-margin-top: 92px;
}

/* ---------- Global layout & typography ---------- */

body {
    background: radial-gradient(circle at top, #f9fafb 0, #f3f4f6 35%, #e5e7eb 100%);
    color: #111827;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.02em;
    color: #0f172a;
}

p {
    color: #4b5563;
}

section,
.about-section-box,
.menu-box,
.events-box,
.gallery-box,
.contact-imfo-box,
.footer-area {
    scroll-margin-top: 92px;
}

/* ---------- Navbar ---------- */

.top-navbar .navbar {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    padding: 10px 0;
    position: relative; /* Changed from fixed to prevent overlay */
    width: 100%;
    z-index: 100;
}

.navbar-light .navbar-nav .nav-link {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: none;
}

.top-navbar .navbar-light .navbar-nav .nav-item .nav-link:hover,
.top-navbar .navbar-light .navbar-nav .nav-item.active .nav-link {
    background: transparent;
    color: #fd7e14;
}

.navbar-light .navbar-nav .nav-link::after {
    content: "";
    display: block;
    width: 0;
    height: 1.5px;
    margin: 2px auto 0;
    background: #fd7e14;
    transition: width 0.2s ease-out;
}

.navbar-light .navbar-nav .nav-item:hover .nav-link::after,
.navbar-light .navbar-nav .nav-item.active .nav-link::after {
    width: 60%;
}

/* Hide desktop-style underline in collapsed mobile menu */
@media (max-width: 991.98px) {
    .navbar-light .navbar-nav .nav-link::after {
        display: none;
    }
}

/* ---------- Hero / slides ---------- */

/* Ensure header has proper height for fixed navbar */
.top-navbar {
    min-height: 75px;
}

#slides {
    position: relative;
    width: 100%;
    height: calc(100vh - 75px);
    max-height: 600px;
    overflow: hidden;
}

#slides .slides-container {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

#slides .scrollable {
    height: 100%;
}

.cover-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.cover-slides .slides-container {
    display: block;
    position: relative;
    width: 100%;
    height: 100%;
}

.cover-slides li {
    list-style: none;
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.cover-slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.cover-slides h1 {
    font-size: clamp(2.4rem, 4vw, 3.4rem);
    line-height: 1.1 !important;
    text-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
}

.cover-slides p {
    max-width: 720px;
    margin: 0 auto 1.5rem;
    font-size: 1.05rem;
    text-shadow: 0 18px 45px rgba(0, 0, 0, 0.6);
}

.slides-navigation a {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 999px;
    width: 56px;
    height: 56px;
    line-height: 56px;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.45);
    opacity: 0.0;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.cover-slides:hover .slides-navigation a {
    opacity: 1;
}

.slides-navigation a:hover {
    background: #fd7e14;
}

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

.btn {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.9rem 2.4rem;
}

.btn-outline-new-white {
    color: #f9fafb !important;
    border-width: 2px;
    border-radius: 999px;
    border-color: rgba(248, 250, 252, 0.85);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.6);
}

.btn-outline-new-white:hover {
    background: #fd7e14;
    border-color: #fd7e14;
    box-shadow: 0 20px 55px rgba(253, 126, 20, 0.65);
}

/* ---------- Sections: headings & spacing ---------- */

.heading-title {
    margin-bottom: 3rem;
}

.heading-title h2 {
    font-size: clamp(2.2rem, 3.5vw, 2.8rem);
}

.heading-title p {
    max-width: 640px;
    margin: 0.5rem auto 0;
}

.about-section-box,
.menu-box,
.events-box,
.gallery-box {
    padding: 5rem 0;
}

/* ---------- About ---------- */

.about-section-box .img-fluid {
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.4);
}

.inner-column h1 {
    font-size: 2.1rem;
}

.inner-column p {
    font-size: 1.02rem;
}

/* Ensure buttons in about section have strong contrast */
.inner-column .btn-outline-new-white {
    color: #f9fafb !important;
}

/* ---------- Menu cards ---------- */

.filter-button-group {
    border-radius: 999px;
    border-color: #e5e7eb;
    background: #f9fafb;
    box-shadow: 0 14px 35px rgba(15, 23, 42, 0.04);
}

.filter-button-group button {
    border-radius: 999px;
}

.filter-button-group button.active {
    background: linear-gradient(135deg, #fd7e14, #10b981);
    box-shadow: 0 20px 55px rgba(16, 185, 129, 0.55);
}

.gallery-single {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
    background: #020617;
    height: 450px !important;
}

/* Menu item card images */
.menu-item-card .card-img-top {
    height: 250px !important;
    object-fit: cover !important;
    object-position: center !important;
}

.gallery-single img {
    transition: transform 0.5s ease-out;
}

.gallery-single:hover img {
    transform: scale(1.06);
}

.why-text {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.4));
    padding: 18px 18px 20px;
}

.why-text h4 {
    font-size: 1.2rem;
}

.why-text p {
    font-size: 0.98rem;
    border-bottom-color: rgba(148, 163, 184, 0.7);
}

.why-text h5 {
    font-size: 1.55rem;
}

/* Keep menu images consistent height */
.special-list .gallery-single img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center !important;
    background-color: #2a2a2a;
}

/* ---------- Gallery carousel & lightbox ---------- */

.gallery-box {
    background: radial-gradient(circle at top left, #e5e7eb 0, #f9fafb 45%, #e5e7eb 100%);
}

/* Custom collapse styles - using unique class name to avoid Bootstrap conflicts */
.category-collapse-content {
    display: none;
}

.category-collapse-content.is-expanded {
    display: block;
}

.cart-item-sides {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 4px;
    padding-left: 8px;
    border-left: 2px solid #fd7e14;
}

/* ---------- Side Options (Prilozi/Akcija) ---------- */

.side-option {
    font-size: 0.9rem !important;
    padding: 8px 12px;
    margin-bottom: 4px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.side-option:hover {
    background-color: rgba(6, 64, 43, 0.1);
}

/* Ensure side options have proper styling in collapsed sections */
.collapse .side-option {
    color: #e0e0e0 !important;
}

/* Toggle sides button styling */
.toggle-sides-btn {
    font-size: 0.9rem !important;
    padding: 0.5rem 1rem !important;
}

/* Mobile responsive adjustments for side options */
@media (max-width: 767px) {
    .side-option {
        font-size: 0.95rem !important;
        padding: 10px 12px;
    }
}

/* Restore Bootstrap collapse for side options */
.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.menu-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1.25rem;
}

/* ---------- Collapsible Menu Sections ---------- */

/* Category toggle button styling */
.category-toggle {
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    display: block !important;
    width: 100% !important;
    text-align: left !important;
}

.category-toggle:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

.category-toggle:focus {
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.5) !important;
    outline: none !important;
}

/* Category icon (chevron) styling */
.category-icon {
    font-size: 1.2rem;
    color: #b0b0b0;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* Rotate icon when section is collapsed */
.category-toggle[aria-expanded="false"] .category-icon {
    transform: rotate(-90deg);
}

/* Collapse container styling */
#collapse-burgeri,
#collapse-rostilj,
#collapse-sendvici,
#collapse-dodaci,
#collapse-pice {
    transition: all 0.35s ease-in-out;
}

/* Ensure collapsed content is properly hidden */
.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

/* Add subtle animation to menu items when section expands */
.collapse.show .menu-item-card {
    animation: fadeInUp 0.4s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure menu items maintain their styling in collapsed sections */
.collapse .menu-item-card {
    background: #2a2a2a !important;
    border: 1px solid #3a3a3a !important;
    color: #e0e0e0 !important;
}

.collapse .menu-item-card .card-title {
    color: #ffffff !important;
}

.collapse .menu-item-card .card-text {
    color: #b0b0b0 !important;
}

.collapse .menu-item-card .d-flex.justify-content-between h5:last-child {
    font-size: 1.6rem !important;
    font-weight: bold;
    color: #ffffff !important;
}

/* Responsive adjustments for collapsible sections */
@media (max-width: 767px) {
    .category-toggle {
        padding: 10px 12px !important;
    }
    
    .category-toggle h3 {
        font-size: 1.4rem !important;
    }
    
    .category-icon {
        font-size: 1rem;
    }
}

.menu-cta::after {
    content: "↗";
    font-size: 1rem;
    margin-left: 0.5rem;
    opacity: 0.9;
}

.menu-cta:hover {
    background: #fd7e14;
    color: #f9fafb;
    box-shadow: 0 22px 60px rgba(253, 126, 20, 0.6);
    text-decoration: none;
}

.menu-cta-label {
    position: relative;
    z-index: 1;
}

.tz-gallery .lightbox img {
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(15, 23, 42, 0.3);
}

#gallery-carousel {
    padding: 0 40px;
}

#gallery-carousel .carousel-control-prev,
#gallery-carousel .carousel-control-next {
    background: rgba(15, 23, 42, 0.82);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 999px;
    opacity: 0.85;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

#gallery-carousel .carousel-control-prev:hover,
#gallery-carousel .carousel-control-next:hover {
    opacity: 1;
    background: #fd7e14;
}

#gallery-carousel .carousel-control-prev {
    left: 0;
}

#gallery-carousel .carousel-control-next {
    right: 0;
}

#gallery-carousel .fa {
    font-size: 24px;
}

#baguetteBox-overlay {
    background-color: rgba(15, 23, 42, 0.96) !important;
}

#baguetteBox-overlay .full-image img {
    max-height: 85vh !important;
}

.baguetteBox-button#close-button {
    top: 20px !important;
    right: 20px !important;
    width: 40px !important;
    height: 40px !important;
    background-color: #fd7e14 !important;
    border-radius: 50% !important;
    opacity: 0.9 !important;
    transition: background-color 0.3s;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    font-size: 0 !important;
}

.baguetteBox-button#close-button svg {
    display: none !important;
}

.baguetteBox-button#close-button:before,
.baguetteBox-button#close-button:after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: white;
    top: 50%;
    left: 50%;
}

.baguetteBox-button#close-button:before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.baguetteBox-button#close-button:after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.baguetteBox-button#close-button:hover {
    background-color: #0a5e3f !important;
    opacity: 1 !important;
}

.baguetteBox-button#previous-button,
.baguetteBox-button#next-button {
    background-color: #111827 !important;
    opacity: 0.85 !important;
    border-radius: 999px !important;
}

.baguetteBox-button#previous-button:hover,
.baguetteBox-button#next-button:hover {
    opacity: 1 !important;
    background-color: #fd7e14 !important;
}

@media (max-width: 767px) {
    #gallery-carousel .row {
        margin-right: 0;
        margin-left: 0;
    }

    #gallery-carousel .carousel-item .col-sm-12 {
        padding-right: 5px;
        padding-left: 5px;
        margin-bottom: 10px;
    }

    #gallery-carousel .carousel-control-prev,
    #gallery-carousel .carousel-control-next {
        width: 30px;
        height: 40px;
    }

    #gallery-carousel .fa {
        font-size: 20px;
    }

    .gallery-img {
        max-height: 260px;
    }
}

/* ---------- Map section ---------- */

.map-box {
    padding: 4rem 0 1rem;
    background: #f9fafb;
}

.map-box .mapswrapper {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.20);
}

/* ---------- Contact info ---------- */

.contact-imfo-box {
    background: linear-gradient(135deg, #fd7e14, #15803d);
    box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.35);
}

.contact-imfo-box i {
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.4);
}

/* ---------- Footer ---------- */

.bg-f::before {
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.97), rgba(15, 23, 42, 0.96));
    opacity: 0.96;
}

.footer-area {
    padding-top: 3.5rem;
}

.footer-area h3 {
    border-bottom: 1px solid rgba(148, 163, 184, 0.55);
    letter-spacing: 0.12em;
}

.footer-area p {
    color: rgba(226, 232, 240, 0.92);
}

.f-social li a {
    font-size: 22px;
    color: rgba(248, 250, 252, 0.9);
    transition: transform 0.2s ease-out, color 0.2s ease-out;
}

.f-social li a:hover {
    color: #22c55e;
    transform: translateY(-2px);
}

.copyright {
    border-top: 1px solid rgba(148, 163, 184, 0.45);
    background-color: #020617;
}

.copyright .company-name,
.copyright .company-name a {
    color: #e5e7eb;
}

/* ---------- Back to top ---------- */

#back-to-top {
    border-radius: 999px;
    box-shadow: 0 16px 45px rgba(15, 23, 42, 0.55);
    background: #fd7e14;
}

#back-to-top:hover {
    background: #fd7e14;
}

/* ---------- Floating Cart Icon (Desktop Only) ---------- */

.floating-cart-icon {
    position: fixed;
    bottom: 90px;
    right: 40px;
    width: 50px;
    height: 50px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
    z-index: 9997;
    transition: all 0.3s ease;
}

.floating-cart-icon:hover {
    background: #0056b3;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.5);
}

.floating-cart-icon i {
    font-size: 22px;
}

.floating-cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    min-width: 22px;
    height: 22px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-sizing: border-box;
    border: 2px solid white;
}

.floating-cart-badge:empty {
    display: none;
}

#nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 998;
}

/* aktivan overlay */
#nav-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* burger meni MORA biti iznad overlay-a */
.top-navbar {
    position: relative;
    z-index: 999;
}

/* mobile menu full screen look */
@media (max-width: 991px) {
    #navbars-rs-food {
        background: #1a1a1a;
        padding: 15px;
    }
}