/**
 * Navigation Bar Styles
 * Based on Dacia Digital Standard Guide - Page 28
 * Spacing Guidelines:
 * - 20px spacing left of Dacia logo
 * - 50px spacing between Dacia logo and "| CITY NAME"
 * - Logo width: 180px (minimum 120px)
 * - Dealer logo: 80px height, 140px width, 30px spacing below
 * - Long city names can be split into two rows
 * Structure:
 * - Left: Emblem (vertically centered) + Brand Text (top) + Menu (vertically centered, same left as text)
 * - Right: Search, Locations, Dealer Logo (all vertically centered)
 */


/* ============================================
   NAVIGATION BAR CONTAINER
   ============================================ */

#main-navbar.navbar-default {
    background-color: #ffffff !important; /* White background per Dacia guidelines */
    border: none;
    border-radius: 0;
    margin-bottom: 0;
    height: 70px; /* Fixed header height */
    min-height: 70px;
    max-height: 70px;
    padding: 0;
    position: relative;
    z-index: 1000;
    overflow: visible;
}

.navbar-container {
    display: flex;
    align-items: center; /* Vertically center all sections */
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    position: relative;
    box-sizing: border-box;
    height: 70px; /* Same as navbar */
    min-height: 70px;
    max-height: 70px;
}

/* ============================================
   LEFT SECTION: Emblem + Business Name
   Per Dacia guidelines: Black Dacia logotype + "| CITY NAME"
   ============================================ */
.navbar-left-wrapper {
    display: flex;
    align-items: center; /* Vertically center the wrapper */
    flex: 0 0 auto; /* Don't grow, don't shrink */
    padding-left: 20px; /* 20px spacing left of Dacia logo per Dacia guidelines */
    height: 70px; /* Full header height */
    box-sizing: border-box;
    gap: 0; /* No gap - spacing handled by margin in brand-separator */
    position: relative;
    overflow: visible !important;
}

/* Dacia Logo Container: Vertically centered */
.navbar-logo-container {
    display: flex;
    align-items: center; /* Vertically center logo */
    justify-content: center;
    height: 70px; /* Full header height */
    flex-shrink: 0;
    margin: 0;
    margin-right: -8%; /* Negative margin to bring logo closer to separator */
    padding: 0; /* Remove all padding */
}

.navbar-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    text-decoration: none;
    height: auto;
    line-height: 0; /* Remove line-height spacing */
}

/* Dacia Logo - Size controlled by admin settings via inline styles */
.dacia-logo {
    display: block;
    height: auto;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0 !important; /* Force remove all margins */
    padding: 0 !important; /* Force remove all padding */
    vertical-align: middle;
    line-height: 0; /* Remove line-height spacing */
    /* Width and height are set via inline styles from admin settings */
}

.dacia-logo-placeholder {
    display: block;
    width: auto;
    min-width: 80px;
    height: auto;
    color: #000000; /* Black placeholder on white background */
    font-family: 'Dacia Block', sans-serif;
    font-size: 18px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    margin: 0;
    vertical-align: middle;
    text-transform: uppercase;
}

/* Business Name Text: "| CITY NAME" - Vertically centered, after emblem */
/* Per Dacia guidelines: Use Read Font in navigation bar */
.navbar-brand-text-container {
    display: flex;
    align-items: center; /* Vertically center with emblem */
    justify-content: flex-start;
    flex-shrink: 0;
    width: auto;
    height: 70px; /* Full header height */
    padding-left: 0;
    margin-left: 0;
}

.navbar-brand-text {
    font-family: 'Read Font', sans-serif; /* Read Font for navigation bar per Dacia guidelines */
    color: #000000 !important; /* Black text on white background */
    white-space: nowrap; /* Keep on one line */
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Vertically center */
    gap: 0; /* No gap - separator connects directly */
    line-height: 1.2;
}

.brand-separator {
    font-size: 18px;
    line-height: 20px;
    font-weight: 400;
    font-family: 'Read Font', sans-serif;
    margin: 0 8px; /* Same spacing on both sides: 8px left (from logo) and 8px right (to city name) */
    color: #000000; /* Black text on white background */
}

.brand-city-name {
    font-size: 23.4px; /* 1.3x larger than separator (18px * 1.3 = 23.4px) */
    line-height: 26px; /* Proportional line-height */
    font-weight: 400; /* Regular weight for city name - Read Font Regular */
    text-transform: uppercase;
    font-family: 'Read Font', sans-serif; /* Read Font for city name */
    color: #000000; /* Black text on white background */
}


/* ============================================
   CENTER SECTION: Navigation Menu
   Per Dacia guidelines: Menu items centered in navigation bar
   ============================================ */
.navbar-center-wrapper {
    display: flex;
    align-items: center;
    justify-content: center; /* Center menu items */
    flex: 1 1 auto; /* Take remaining space */
    height: 70px;
    position: relative;
    overflow: visible !important;
}

/* Menu section - centered */
.navbar-menu-section {
    display: flex !important;
    align-items: center; /* Vertically center menu */
    justify-content: center; /* Center menu items horizontally */
    width: auto;
    padding: 0;
    margin: 0;
    min-height: auto;
    box-sizing: border-box;
    height: auto !important;
    overflow: visible !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    position: relative;
}

.navbar-menu-section .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: center; /* Center menu items */
    list-style: none;
    margin: 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap; /* Keep items on one line */
    gap: 0; /* No gap - spacing handled by padding */
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    position: relative;
}

.navbar-menu-section .navbar-nav > li {
    margin: 0 !important;
    margin-left: 0 !important;
    padding: 0 !important;
    position: relative; /* For absolute positioning of dropdowns */
    overflow: visible !important; /* Allow dropdowns to overflow */
}

.navbar-menu-section .navbar-nav > li > a {
    color: #000000 !important; /* Black text on white background */
    font-family: 'Dacia Block', sans-serif; /* Menu tab must be written with Dacia Block font per Dacia guidelines */
    font-size: 13px; /* Nav text size */
    line-height: 16px;
    font-weight: 700; /* Bold weight for menu items */
    text-transform: uppercase;
    padding: 8px 25px; /* 50px total spacing between menu items (25px on each side) per Dacia guidelines */
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    white-space: nowrap;
}

.navbar-menu-section .navbar-nav > li > a:hover,
.navbar-menu-section .navbar-nav > li > a:focus {
    color: var(--dacia-khaki, #646b52) !important; /* Dacia Khaki hover color */
    background-color: transparent;
    text-decoration: none;
}

/* ============================================
   DROPDOWN SUBMENUS (Level 2 & Level 3)
   ============================================ */
/* Desktop menu dropdown styles moved to desktop-menu.css */

/* Desktop menu styling - centered */
@media (min-width: 992px) {
    .navbar-menu-section .navbar-nav > li:first-child > a {
        padding-left: 15px; /* Standard padding for first item */
        padding-right: 15px;
    }
    
    /* Center menu section */
    .navbar-menu-section {
        margin: 0 auto !important;
        padding: 0 !important;
    }
    
    .navbar-menu-section .navbar-nav {
        margin: 0 auto !important;
        padding: 0 !important;
    }
}

/* Hide desktop sections on mobile devices */
@media (max-width: 991px) {
    /* Hide desktop left section (emblem, brand text) */
    .navbar-left-wrapper {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Hide desktop center section (menu) */
    .navbar-center-wrapper {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Hide desktop right section (utility icons, dealer logo) */
    .navbar-right-section {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    /* Hide desktop menu section */
    .navbar-menu-section {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }
    
    .navbar-menu-section .navbar-nav {
        display: none !important;
    }
}



/* ============================================
   RIGHT SECTION: Utility Icons + Dealer Logo
   All vertically centered in header
   ============================================ */

.navbar-right-section {
    display: flex;
    align-items: center; /* Vertically center all elements - must match navbar-center-wrapper alignment */
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: 70px; /* 70px spacing between last menu item and first utility icon per Dacia guidelines */
    padding-right: 30px; /* 30px right padding after dealer logo per Dacia guidelines */
    height: 70px; /* Full header height - must match navbar height exactly */
    min-height: 70px;
    max-height: 70px;
    gap: 20px; /* Gap between utility icons and dealer logo */
    box-sizing: border-box;
    /* This section's vertical center must align with navbar-center-wrapper's vertical center */
}

/* Utility Icons */
.navbar-utils {
    display: flex;
    align-items: center; /* Vertically center icons to match menu items */
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 10px; /* Gap between individual utility icons */
    height: 100%; /* Full height of parent to ensure proper vertical centering */
}

.navbar-utils li {
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center; /* Vertically center each utility icon item */
    height: 100%; /* Full height to match menu items */
}

.navbar-utils a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* Center icon and label vertically */
    text-decoration: none;
    color: #000000; /* Black text on white background */
    transition: color 0.3s ease;
    padding: 0; /* Remove padding to ensure proper alignment */
    overflow: visible;
    min-width: auto;
    min-height: auto;
    height: auto; /* Let content determine height */
    /* Match menu item vertical center: menu has line-height 16px + padding 8px top/bottom = 32px total, centered in 70px */
    margin: 0;
    gap: 10px; /* Space between icon and label text */
}

.navbar-utils a:hover,
.navbar-utils a:focus {
    color: var(--dacia-khaki, #646b52); /* Dacia Khaki hover color */
    text-decoration: none;
}

.navbar-utils .glyphicon,
.navbar-utils .navbar-icon {
    font-size: 14px;
    margin-bottom: 0; /* No margin - gap handled by parent flex gap */
    display: block;
    width: auto;
    height: auto;
    min-width: 14px;
    min-height: 14px;
    color: #000000; /* Black icons on white background */
    flex-shrink: 0;
}

.navbar-utils .navbar-icon {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    overflow: visible !important;
}

.navbar-utils .navbar-icon svg {
    width: auto !important;
    height: auto !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
    fill: #000000 !important; /* Black icons on white background */
    color: #000000 !important; /* Black icons on white background */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    box-sizing: content-box !important;
    padding: 0 !important;
    margin: 0 !important;
    margin-bottom: 0 !important; /* No margin - gap handled by parent flex gap */
}

.navbar-utils .custom-icon {
    font-size: 14px;
    margin-bottom: 0; /* No margin - gap handled by parent flex gap */
    display: inline-block;
}

.navbar-utils .utils-label {
    font-family: 'Read Font', sans-serif; /* Read Font for navigation text per Dacia guidelines */
    font-size: 10px;
    line-height: 12px;
    font-weight: 400;
    text-transform: none;
    white-space: nowrap; /* Prevent text wrapping */
    color: #000000; /* Black text on white background */
    margin: 0;
    padding: 0;
    /* Total height: icon (14px) + gap (2px) + label (12px) = 28px, centered to match menu text */
}

/* Dealer Logo */
.navbar-dealer-logo {
    display: flex;
    align-items: center; /* Vertically center logo with menu items */
    justify-content: center;
    margin-left: 0; /* No margin - gap handled by parent */
    height: 70px; /* Full header height - match navbar height exactly */
    min-height: 70px;
    max-height: 70px;
    padding: 0;
}

.navbar-dealer-logo a {
    text-decoration: none;
    display: flex;
    align-items: center; /* Vertically center logo */
    justify-content: center;
    height: 100%;
    width: 100%;
}

.dealer-logo {
    display: block;
    object-fit: contain;
    margin: 0; /* Remove all margins - logo should be vertically centered */
    vertical-align: middle; /* Additional vertical alignment */
    flex-shrink: 0;
    /* Width and height are set via inline styles from admin settings */
    /* Default max-height ensures it fits within 70px navbar if not specified */
    max-height: 70px;
}



