/* colors: #874b05 (main system) */
/* color2: #058776 (buttons and hoverings) */
/* color3: #ffe600 (icons only) */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Figtree', sans-serif;
}

/* top-nav */
.top-nav {
    background-color: #874b05;
    color: #ffffff;
    padding: 5px 0;
}

.social-icons {
    display: flex;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    margin-right: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: scale(1.1);
}

.social-link .fa-facebook-f { color: #ffffff; }
.social-link .fa-facebook-f:hover { color: #1877F2; }
.social-link .fa-twitter { color: #ffffff; }
.social-link .fa-twitter:hover { color: #1DA1F2; }
.social-link .fa-instagram { color: #ffffff; }
.social-link .fa-instagram:hover { color: #E4405F; }
.social-link .fa-linkedin-in { color: #ffffff; }
.social-link .fa-linkedin-in:hover { color: #0A66C2; }
.social-link .fa-whatsapp { color: #ffffff; }
.social-link .fa-whatsapp:hover { color: #25D366; }
.social-link .fa-youtube { color: #ffffff; }
.social-link .fa-youtube:hover { color: #FF0000; }
.social-link .fa-pinterest-p { color: #ffffff; }
.social-link .fa-pinterest-p:hover { color: #BD081C; }
.social-link .fa-tiktok { color: #ffffff; }
.social-link .fa-tiktok:hover { color: #000000; }

.email-section {
    font-size: 14px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.email-link, .phone-link {
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.email-link:hover, .phone-link:hover {
    color: #ffffff;
}

.email-link i, .phone-link i {
    font-size: 18px;
    margin-right: 3px;
    color: #ebba41;
}

.social-link, .email-link, .phone-link {
    animation: slideIn 0.5s ease forwards;
}

.social-link:nth-child(1) { animation-delay: 0.1s; }
.social-link:nth-child(2) { animation-delay: 0.2s; }
.social-link:nth-child(3) { animation-delay: 0.3s; }
.social-link:nth-child(4) { animation-delay: 0.4s; }
.social-link:nth-child(5) { animation-delay: 0.5s; }
.social-link:nth-child(6) { animation-delay: 0.6s; }
.social-link:nth-child(7) { animation-delay: 0.7s; }
.social-link:nth-child(8) { animation-delay: 0.8s; }
email-link { animation-delay: 0.9s; }
.phone-link { animation-delay: 1.0s; }

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    border-bottom: 2px solid #874b05;
}

.navbar-brand .logo-img {
    height: 80px;
    animation: fadeIn 0.5s ease forwards;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
}

.nav-select-wrapper {
    display: block;
}

.nav-select {
    background-color: transparent;
    color: #333;
    font-size: 14px;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    border-radius: 5px;
    font-weight: 500;
    position: relative;
}

.nav-select i {
    margin-right: 5px;
    font-size: 14px;
    color: #058776;
}

.nav-select::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin-left: 5px;
    transition: transform 0.3s ease;
    color: #058776;
}

.nav-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    border-radius: 8px;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background-color: white;
    padding: 10px 0;
    z-index: 1000;
    animation: growDown 0.3s ease-in-out forwards;
}

.nav-options::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    transform: rotate(45deg);
    border-top: 1px solid #eee;
    border-left: 1px solid #eee;
}

.nav-option {
    display: flex;
    align-items: center;
    color: #333;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 12px;
    transition: all 0.3s ease;
    border-left: 1px solid transparent;
}

.nav-option i {
    margin-right: 10px;
    font-size: 18px;
    width: 20px;
    text-align: center;
    color: #ffe600;
}

.nav-option:hover {
    background-color: rgba(5, 135, 118, 0.05);
    color: #058776;
    border-left: 3px solid #058776;
    padding-left: 25px;
}

.nav-option:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-options.active {
    display: block;
}

@keyframes growDown {
    0% { opacity: 0; transform: scaleY(0) translateY(-10px); }
    80% { transform: scaleY(1.1) translateY(0); }
    100% { opacity: 1; transform: scaleY(1) translateY(0); }
}

.navbar-nav .nav-item:nth-child(1) .nav-select { animation-delay: 0.1s; }
.navbar-nav .nav-item:nth-child(2) .nav-select { animation-delay: 0.2s; }
.navbar-nav .nav-item:nth-child(3) .nav-select { animation-delay: 0.3s; }
.navbar-nav .nav-item:nth-child(4) .nav-select { animation-delay: 0.4s; }
.navbar-nav .nav-item:nth-child(5) .nav-select { animation-delay: 0.5s; }
.navbar-nav .nav-item:nth-child(6) .nav-select { animation-delay: 0.6s; }

.book-now {
    background-color: #058776;
    border-color: #058776;
    font-size: 14px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    animation-delay: 0.8s;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
}

.book-now i {
    margin-right: 5px;
    font-size: 14px;
    color: #ffe600;
}

.book-now:hover {
    background-color: #046b5f;
    border-color: #046b5f;
    color: #ffe600;
    transform: scale(1.05);
}

.book-now:active {
    transform: scale(0.95);
}

/* Mobile-specific Login Button */
.book-now-mobile {
    background-color: #058776;
    border-color: #058776;
    font-size: 12px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 5px;
    color: #ffffff;
    text-decoration: none;
    width: 40px;
    height: 40px;
    animation: slideIn 0.5s ease forwards;
}

.book-now-mobile i {
    font-size: 16px;
    color: #ffe600;
    margin: 0;
}

.book-now-mobile:hover {
    background-color: #046b5f;
    border-color: #046b5f;
    color: #ffe600;
    transform: scale(1.05);
}

.book-now-mobile:active {
    transform: scale(0.95);
}

.translate-btn {
    font-size: 14px;
    padding: 5px 15px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease forwards;
    animation-delay: 0.9s;
    border-color: #058776;
    color: #058776;
    background-color: #ffffff;
    border-radius: 5px;
}

.translate-btn i {
    margin-right: 5px;
    font-size: 14px;
    color: #058776;
}

.translate-btn:hover {
    background-color: #ffffff;
    color: #058776;
    border-color: #058776;
    transform: scale(1.05);
}

.translate-btn:active {
    transform: scale(0.95);
}

.top-translate-wrapper {
    position: relative;
}

.top-translate-wrapper .translate-element {
    display: none;
    position: absolute;
    background-color: white;
    border: 1px solid rgba(5, 135, 118, 0.2);
    border-radius: 10px;
    padding: 15px;
    z-index: 1100;
    margin-top: 5px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
    width: 250px;
    right: 0;
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.top-translate-wrapper .translate-element.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.top-translate-wrapper .translate-element::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background-color: #ffffff;
    transform: rotate(45deg);
    border-top: 1px solid rgba(5, 135, 118, 0.2);
    border-left: 1px solid rgba(5, 135, 118, 0.2);
}

.goog-te-combo {
    width: 100%;
    padding: 8px 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    color: #333;
    font-size: 14px;
    font-family: 'Figtree', sans-serif;
    background-color: white;
}

.navbar-toggler {
    border: none;
    animation: fadeIn 0.5s ease forwards;
    padding: 6px 12px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler .navbar-toggler-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #058776;
    font-size: 22px;
}

.navbar-toggler .menu-icon {
    display: inline-block;
}

.navbar-toggler .close-icon {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .menu-icon {
    display: none;
}

.navbar-toggler[aria-expanded="true"] .close-icon {
    display: inline-block;
}

.mobile-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    color: #058776;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(5, 135, 118, 0.1);
    transition: all 0.3s ease;
}

.mobile-close-btn:hover {
    background-color: rgba(5, 135, 118, 0.2);
    transform: rotate(90deg);
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: #ffffff;
        padding: 20px;
        box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1000;
    }

    .navbar-collapse.show {
        transform: translateX(0);
    }

    .navbar-nav {
        flex-direction: column;
        width: 100%;
        margin-top: 50px;
    }

    .nav-item {
        margin: 10px 0;
        width: 100%;
    }

    .nav-select-wrapper {
        display: block;
    }

    .nav-select {
        width: 100%;
        justify-content: flex-start;
        padding: 10px 15px;
        background-color: rgba(5, 135, 118, 0.05);
        border-radius: 8px;
        font-size: 16px;
    }

    .nav-select::after {
        position: absolute;
        right: 15px;
    }

    .nav-options {
        position: static;
        min-width: 100%;
        box-shadow: none;
        border: none;
        background-color: transparent;
        padding: 0;
        margin: 10px 0;
    }

    .nav-options::before {
        display: none;
    }

    .nav-option {
        padding: 10px 15px;
        font-size: 14px;
        border-left: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .nav-option:hover {
        background-color: rgba(5, 135, 118, 0.05);
        color: #058776;
        padding-left: 15px;
    }

    .mobile-buttons {
        width: 100%;
        flex-direction: column;
        margin-top: 20px;
    }

    .mobile-buttons .translate-btn {
        font-size: 16px;
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
        margin: 10px 0;
        border-radius: 8px;
    }

    .top-translate-wrapper {
        width: 100%;
        margin-left: 0;
    }

    .top-translate-wrapper .translate-element {
        width: 100%;
        margin-top: 10px;
        position: static;
        box-shadow: none;
        border: none;
        padding: 5px 0;
    }

    .goog-te-combo {
        width: 100%;
        padding: 12px;
        border-radius: 8px;
        border: 1px solid #058776;
        font-size: 16px;
    }

    /* Hide desktop buttons on mobile */
    .desktop-buttons {
        display: none !important;
    }

    /* Separate translate element for mobile */
    #google_translate_element_mobile {
        display: none;
        position: static;
        background-color: white;
        border: 1px solid rgba(5, 135, 118, 0.2);
        border-radius: 10px;
        padding: 15px;
        z-index: 1100;
        margin-top: 5px;
        box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
        width: 100%;
        transform: translateY(10px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    }

    #google_translate_element_mobile.active {
        display: block;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
}

@media (min-width: 992px) {
    /* Ensure mobile login is hidden on large screens */
    .book-now-mobile {
        display: none !important;
    }

    /* Show desktop buttons */
    .desktop-buttons {
        display: flex !important;
    }

    .mobile-buttons {
        display: none !important;
    }
}

@media (hover: hover) {
    .nav-item:hover .nav-options {
        display: block;
    }

    .nav-item:hover .nav-select::after {
        transform: rotate(-180deg);
    }
}

.nav-item.active .nav-options {
    display: block;
}

.nav-item.active .nav-select::after {
    transform: rotate(-180deg);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}