/* ===================
   Global Styles
=================== */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    animation: fadeIn 1s ease-in;
}

.shop-card, .attraction-item, .category-link {
    transition: opacity 0.3s ease;
}
.shop-card[style*="display: none"], 
.attraction-item[style*="display: none"], 
.category-link[style*="display: none"] {
    opacity: 0;
}

/* ===================
   Navbar
=================== */
.navbar {
    display: flex;
    flex-direction: column;
    background-color: #FFC107;
    padding: 15px 20px;
    color: #000000;
    border-radius: 10px;
    position: relative;
}

/* Top Section */
.navbar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.navbar-left {
    display: flex;
    align-items: center;
}

/* Menu Icon */
.menu-icon {
    font-size: 26px;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 20px;
    color: #000;
    transition: transform 0.2s ease, color 0.3s ease;
}
.menu-icon:hover {
    color: #FF9800;
    transform: scale(1.2);
}

/* Brand */
.navbar-brand {
    display: flex;
    align-items: center;
    z-index: 1;
}
.logo-image {
    height: 60px;
    margin-right: 10px;
}
.bran-text {
    font-size: 28px;
    font-weight: bold;
    color: #000000;
}

/* Search Bar */
.search-bar-container {
    margin: 6px auto; /* Further reduced margin */
    display: flex;
    justify-content: center;
    width: 100%;
}
.search-bar {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #000; /* Thinner border to reduce visual height */
    border-radius: 6px; /* Smaller border-radius */
    padding: 4px 10px; /* Further reduced padding for smaller height */
    width: 100%;
    max-width: 600px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Lighter shadow */
    transition: all 0.15s ease; /* Even faster transition */
}
.search-bar:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.15); /* Smaller hover shadow */
    border-color: #FF9800;
}
.search-bar input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 12px; /* Smaller font size for reduced height */
    color: #000;
    padding: 4px; /* Minimal padding */
}
.search-bar input::placeholder {
    color: #666;
}
.search-bar button.close-btn {
    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px; /* Smaller button size */
    color: #000;
    margin-left: 4px; /* Tighter spacing */
    transition: transform 0.1s ease, color 0.15s ease; /* Faster transitions */
}
.search-bar button.close-btn:hover {
    color: #FF9800;
    transform: rotate(90deg);
}
/* Navbar Links */
.navbar-links {
    display: flex;
    justify-content: space-around;
    width: 100%;
    padding: 10px 0;
    background-color: #FFD54F;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.navbar-links a {
    text-decoration: none;
    color: #000000;
    font-size: 12px;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 5px;
}
.navbar-links a:hover {
    background-color: #FFB300;
    color: white;
}

.horizontal-line {
    width: 100%;
    height: 2px;
    background-color: #000000;
    margin-top: 5px;
}

/* ===================
   Sidebar
=================== */
/* Sidebar */
/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -100%;   /* Fully hidden regardless of width */
    width: 250px;
    height: 100%;
    background: white;
    box-shadow: 4px 0 12px rgba(0, 0, 0, 0.15);
    transition: left 0.35s ease-in-out;
    padding: 20px 15px;
    overflow-y: auto;
    z-index: 1000;
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
}
.sidebar.active {
    left: 0;
}


/* Sidebar links */
.sidebar a {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    margin: 8px 0;
    text-decoration: none;
    color: #212121;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: background 0.25s ease, transform 0.2s ease;
}
.sidebar a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}
.sidebar a.active {
    background: #fff;
    color: #d35400;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Sidebar icons */
.sidebar .icon {
    margin-right: 12px;
    font-size: 18px;
}

/* Headings inside sidebar */
.sidebar-heading {
    margin: 18px 10px 8px;
    font-size: 13px;
    font-weight: bold;
    color: #6d4c41;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown */
.sidebar .dropdown {
    margin: 8px 0;
}
.dropdown-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 15px;
    border-radius: 8px;
    color: #212121;
    font-weight: 600;
}
.dropdown-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
}
.dropdown-content {
    display: none;
    flex-direction: column;
    margin-top: 6px;
    padding-left: 12px;
}
.dropdown.open .dropdown-content {
    display: flex;
}
.dropdown-content a {
    padding: 8px 12px;
    font-size: 14px;
    color: #333;
    border-radius: 6px;
}
.dropdown-content a:hover {
    background: rgba(255,255,255,0.25);
}

/* Close Button */
.close-btn {
    background: transparent;
    border: none;
    font-size: 26px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.2s ease;
}
.close-btn:hover {
    color: #d35400;
    transform: rotate(90deg);
}

/* Mobile tweaks */
@media (max-width: 500px) {
    .sidebar {
        width: 80%; /* make it take most of screen */
        border-radius: 0; /* flush with screen for mobile */
    }
    .sidebar-heading {
        font-size: 12px;
    }
    .sidebar a {
        font-size: 14px;
        padding: 10px 12px;
    }
}

/* ===================
   Footer
=================== */
footer {
    background-color: white;
    padding: 20px;
    text-align: center;
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.footer-section p {
    color: black;
    margin: 5px 0;
}
.footer-section h3 {
    color: black;
    font-weight: bold;
    margin-bottom: 10px;
}
.footer-section a {
    color: black;
    text-decoration: none;
    margin: 0 8px;
}
.footer-section a:hover {
    text-decoration: underline;
}
.social-icons {
    margin-top: 10px;
}
.social-icon i {
    font-size: 24px;
    color: blue;
    margin: 0 10px;
    transition: color 0.3s ease;
}
.social-icon i:hover {
    color: white;
}

/* ===================
   Mobile View
=================== */
@media screen and (max-width: 768px) {
    .navbar-top {
        justify-content: flex-start;
        padding-right: 40px;
    }
    .menu-icon {
        right: 10px;
        top: 15px;
        padding: 0 10px;
    }
    .search-bar {
        max-width: 95%;
        padding: 10px 15px;
        margin: 10px auto 0;
    }
    footer .footer-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    footer .footer-section {
        width: 100%;
    }
    footer .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
    }
    footer .footer-section h3 {
        font-size: 14px;
    }
    footer .footer-section p {
        font-size: 12px;
    }
    footer .footer-section ul li a {
        font-size: 12px;
    }
}

/* ===================
   Animations & Effects
=================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Navbar Hover */
.navbar-links a:hover {
    color: red;
}

/* Footer Icon Animation */
.footer .social-icon:hover {
    color: #ff9800;
    transform: scale(1.2);
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Dropdown Animation */
.dropdown-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.dropdown:hover .dropdown-content {
    opacity: 1;
    transform: translateY(0);
}



/* Dropdown Styling */
.dropdown .dropdown-content {
    display: none;
    margin-left: 20px;
}

.dropdown.open .dropdown-content {
    display: block;
}

.dropdown-toggle .bi-chevron-right {
    transition: transform 0.3s ease;
}

.dropdown.open .dropdown-toggle .bi-chevron-right {
    transform: rotate(90deg);
}

/* Ensure sidebar links are styled consistently */
.sidebar a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    transition: background 0.3s ease;
}

.sidebar a:hover {
    background: #f0f0f0;
}
