/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(135deg, #414042 0%, #2a2a2b 100%);
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.top-bar-item:hover {
    color: #ff2c30;
}

.top-bar-item i {
    color: #ff2c30;
    font-size: 14px;
}

/* ===== LANGUAGE SELECTOR - DESKTOP ===== */
.language-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 20px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 12px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.5px;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: #ff2c30;
    border-color: #ff2c30;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s;
}

.main-header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.12);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

/* ===== LOGO ===== */
.logo-section {
    flex-shrink: 0;
}

.logo-img {
    height: 55px;
    width: auto;
    transition: all 0.4s;
}

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

/* ===== MOBILE ACTIONS ===== */
.mobile-actions {
    display: none;
    align-items: center;
    gap: 10px;
}

.mobile-search-btn {
    background: transparent;
    border: 2px solid #e8e8e8;
    color: #414042;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

.mobile-search-btn:hover {
    border-color: #ff2c30;
    color: #ff2c30;
}

.mobile-menu-btn {
    background: #ff2c30;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.3s;
    padding: 10px;
}

.mobile-menu-btn:hover {
    background: #d91d21;
    transform: scale(1.05);
}

.hamburger-line {
    width: 22px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== NAVIGATION ===== */
.navigation {
    flex-grow: 1;
}

.nav-header-mobile {
    display: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    color: #414042;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    letter-spacing: 0.3px;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: #ff2c30;
    transition: all 0.4s;
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-menu > li > a:hover {
    color: #ff2c30;
}

.nav-menu > li > a:hover::after {
    width: 60%;
}

.nav-menu > li.active > a {
    color: #ff2c30;
    background: rgba(255, 44, 48, 0.08);
}

.nav-menu > li.active > a::after {
    width: 60%;
}

.dropdown-arrow {
    font-size: 10px;
    transition: transform 0.3s;
    margin-left: 2px;
}

.has-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* ===== DROPDOWN MENU ===== */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 220px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
    z-index: 1000;
    margin-top: 5px;
    border: 1px solid #f0f0f0;
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 12px 20px;
    font-size: 14px;
    color: #414042;
    text-decoration: none;
    transition: all 0.3s;
    font-weight: 600;
}

.dropdown-menu li a:hover {
    background: rgba(255, 44, 48, 0.08);
    color: #ff2c30;
    padding-left: 25px;
}

/* ===== HEADER ACTIONS ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-btn {
    background: linear-gradient(135deg, #ff2c30, #d91d21);
    color: #fff;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s;
    border: none;
    font-size: 17px;
    box-shadow: 0 4px 15px rgba(255, 44, 48, 0.3);
}

.search-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(255, 44, 48, 0.4);
}

/* ===== MOBILE MENU OVERLAY ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===== MOBILE LANGUAGE SELECTOR ===== */
.mobile-language-selector {
    display: none;
}

/* ===== MOBILE CONTACT INFO ===== */
.mobile-contact-info {
    display: none;
}

/* ===== SEARCH MODAL ===== */
.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s;
    padding: 20px;
}

.search-modal.active {
    opacity: 1;
    visibility: visible;
}

.search-modal-content {
    width: 100%;
    max-width: 700px;
    position: relative;
    animation: searchFadeIn 0.4s ease-out;
}

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

.search-title {
    color: #fff;
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    font-weight: 300;
}

.search-input-wrapper {
    position: relative;
}

.search-input-wrapper form {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 22px 70px 22px 25px;
    font-size: 18px;
    border: 3px solid #ff2c30;
    border-radius: 15px;
    background: #fff;
    color: #414042;
    outline: none;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s;
}

.search-input:focus {
    box-shadow: 0 0 0 5px rgba(255, 44, 48, 0.2);
}

.search-input::placeholder {
    color: #999;
}

.search-submit-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #ff2c30, #d91d21);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
}

.search-submit-btn:hover {
    transform: translateY(-50%) scale(1.05);
}

.search-close {
    position: absolute;
    top: -70px;
    right: 0;
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-close:hover {
    background: #ff2c30;
    border-color: #ff2c30;
    transform: rotate(90deg);
}

.search-hint {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
}

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

/* Large Tablets and Small Desktops */
@media (max-width: 1100px) {
    .nav-menu {
        gap: 4px;
    }

    .nav-menu > li > a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .top-bar-content {
        gap: 15px;
    }

    .top-bar-left,
    .top-bar-right {
        gap: 15px;
    }

    .location-item {
        display: none;
    }
}

/* Tablets */
@media (max-width: 968px) {
    /* Top Bar */
    .top-bar {
        padding: 8px 0;
    }

    .top-bar-content {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }

    .top-bar-left {
        display: none;
    }

    .top-bar-right {
        width: 100%;
        justify-content: center;
    }

    .location-item {
        display: none;
    }

    .language-selector {
        padding-left: 0;
        border-left: none;
    }

    /* Header */
    .header-content {
        padding: 10px 15px;
    }

    .logo-img {
        height: 48px;
    }

    .mobile-actions {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    /* Navigation - Mobile Drawer */
    .navigation {
        position: fixed;
        top: 0;
        right: -320px;
        width: 300px;
        max-width: 85%;
        height: 100vh;
        height: 100dvh;
        background: #fff;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
        z-index: 999;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    .navigation.active {
        right: 0;
    }

    .nav-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #f0f0f0;
        background: #f8f9fa;
        flex-shrink: 0;
    }

    .mobile-logo img {
        height: 40px;
        width: auto;
    }

    .nav-close-btn {
        background: #ff2c30;
        color: #fff;
        border: none;
        width: 42px;
        height: 42px;
        border-radius: 10px;
        cursor: pointer;
        font-size: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .nav-close-btn:hover {
        background: #d91d21;
        transform: rotate(90deg);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 15px 20px;
        flex-grow: 1;
    }

    .nav-menu > li {
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-menu > li:last-child {
        border-bottom: none;
    }

    .nav-menu > li > a {
        padding: 16px 0;
        font-size: 16px;
        font-weight: 700;
        justify-content: space-between;
    }

    .nav-menu > li > a::after {
        display: none;
    }

    .nav-menu > li.active > a {
        background: transparent;
        color: #ff2c30;
    }

    /* Mobile Dropdown */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.3s ease;
    }

    .has-dropdown.open .dropdown-menu {
        max-height: 500px;
        padding: 10px 0;
    }

    .has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    .dropdown-menu li a {
        padding: 14px 20px;
        font-weight: 600;
    }

    .dropdown-menu li a:hover {
        padding-left: 25px;
    }

    /* Mobile Language Selector */
    .mobile-language-selector {
        display: block;
        padding: 20px;
        border-top: 1px solid #f0f0f0;
        background: #f8f9fa;
        flex-shrink: 0;
    }

    .mobile-lang-label {
        display: block;
        font-size: 11px;
        color: #888;
        text-transform: uppercase;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
        font-weight: 700;
    }

    .mobile-lang-buttons {
        display: flex;
        gap: 10px;
    }

    .mobile-lang-btn {
        flex: 1;
        padding: 14px 15px;
        background: #fff;
        border: 2px solid #e8e8e8;
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.3s;
        font-size: 14px;
        font-weight: 800;
        color: #414042;
        font-family: 'Montserrat', sans-serif;
        letter-spacing: 0.5px;
    }

    .mobile-lang-btn:hover {
        border-color: #ff2c30;
        color: #ff2c30;
    }

    .mobile-lang-btn.active {
        background: #ff2c30;
        border-color: #ff2c30;
        color: #fff;
    }

    /* Mobile Contact Info */
    .mobile-contact-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 20px;
        margin-top: auto;
        background: linear-gradient(135deg, #414042, #2a2a2b);
        flex-shrink: 0;
    }

    .mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 12px;
        color: #fff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        padding: 12px;
        border-radius: 10px;
        transition: all 0.3s;
    }

    .mobile-contact-item:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .mobile-contact-item i {
        width: 38px;
        height: 38px;
        background: rgba(255, 44, 48, 0.2);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ff2c30;
        font-size: 16px;
    }

    .mobile-contact-item.whatsapp i {
        background: rgba(37, 211, 102, 0.2);
        color: #25D366;
    }
}

/* Mobile Phones */
@media (max-width: 600px) {
    .top-bar {
        font-size: 12px;
        padding: 6px 0;
    }

    .lang-btn {
        padding: 5px 10px;
        font-size: 11px;
    }

    .header-content {
        padding: 8px 15px;
    }

    .logo-img {
        height: 42px;
    }

    .mobile-search-btn,
    .mobile-menu-btn {
        width: 42px;
        height: 42px;
    }

    .navigation {
        width: 280px;
    }

    .nav-menu > li > a {
        font-size: 15px;
        padding: 14px 0;
    }

    .search-title {
        font-size: 22px;
        margin-bottom: 25px;
    }

    .search-input {
        font-size: 16px;
        padding: 18px 60px 18px 20px;
    }

    .search-submit-btn {
        width: 45px;
        height: 45px;
    }

    .search-close {
        top: -60px;
        width: 45px;
        height: 45px;
    }

    .mobile-lang-btn {
        padding: 12px 10px;
        font-size: 13px;
    }
}

/* Small Phones */
@media (max-width: 380px) {
    .top-bar-content {
        padding: 0 15px;
    }

    .logo-img {
        height: 38px;
    }

    .mobile-search-btn,
    .mobile-menu-btn {
        width: 40px;
        height: 40px;
    }

    .hamburger-line {
        width: 20px;
    }

    .navigation {
        width: 260px;
    }

    .nav-menu > li > a {
        font-size: 14px;
        padding: 12px 0;
    }

    .mobile-lang-buttons {
        gap: 8px;
    }

    .mobile-lang-btn {
        padding: 10px 8px;
        font-size: 12px;
    }

    .nav-header-mobile {
        padding: 15px;
    }

    .mobile-logo img {
        height: 35px;
    }

    .nav-close-btn {
        width: 38px;
        height: 38px;
    }
}

/* ===== UTILITY CLASSES ===== */

/* Body scroll lock when menu is open */
body.menu-open {
    overflow: hidden;
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Focus styles for accessibility */
.lang-btn:focus,
.mobile-lang-btn:focus,
.search-btn:focus,
.mobile-search-btn:focus,
.mobile-menu-btn:focus,
.nav-close-btn:focus {
    outline: 2px solid #ff2c30;
    outline-offset: 2px;
}

.nav-menu > li > a:focus {
    outline: 2px solid #ff2c30;
    outline-offset: -2px;
}

/* Prevent text selection on buttons */
.lang-btn,
.mobile-lang-btn,
.search-btn,
.mobile-search-btn,
.mobile-menu-btn,
.nav-close-btn {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}



/* ===== SEARCH RESULTS STYLES ===== */
.search-results {
    max-height: 400px;
    overflow-y: auto;
    margin-top: 20px;
}

.search-results-inner {
    padding: 0 10px;
}

/* Suggestions */
.search-suggestions {
    margin-bottom: 20px;
}

.suggestions-label {
    font-size: 13px;
    color: #888;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.suggestions-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.suggestion-tag {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.suggestion-tag:hover {
    background: #ff2c30;
    border-color: #ff2c30;
    transform: translateY(-2px);
}

/* Results List */
.search-results-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ff2c30;
    transform: translateX(5px);
}

.result-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #ff2c30, #d91d21);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-title mark {
    background: #ff2c30;
    color: #fff;
    padding: 0 2px;
    border-radius: 3px;
}

.result-description {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.result-description mark {
    background: rgba(255, 44, 48, 0.5);
    color: #fff;
    padding: 0 2px;
    border-radius: 3px;
}

.result-arrow {
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s;
}

.search-result-item:hover .result-arrow {
    color: #ff2c30;
    transform: translateX(5px);
}

/* No Results */
.search-no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.search-no-results i {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

.search-no-results p {
    font-size: 16px;
}

/* Scrollbar */
.search-results::-webkit-scrollbar {
    width: 6px;
}

.search-results::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.search-results::-webkit-scrollbar-thumb:hover {
    background: #ff2c30;
}

/* Keyboard shortcut hint */
.search-keyboard-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}

.keyboard-key {
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 5px;
    font-family: monospace;
    font-size: 12px;
}

/* Mobile adjustments */
@media (max-width: 600px) {
    .search-results {
        max-height: 300px;
    }
    
    .search-result-item {
        padding: 12px 15px;
    }
    
    .result-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .result-title {
        font-size: 14px;
    }
    
    .result-description {
        font-size: 12px;
    }
    
    .suggestion-tag {
        padding: 6px 12px;
        font-size: 13px;
    }
}