/* ========== GENERAL ========== */
body {
    font-family:  -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: aliceblue;
    margin: 0;
    padding: 0;
}

#map {
    height: 100vh;
    width: 100%;
}

.flex-1 {
    flex: 1;
}

/* ========== GALLERY STYLES ========== */
.location-images-gallery .gallery-thumbnail-wrapper {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.location-images-gallery .gallery-thumbnail-wrapper:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.location-images-gallery .gallery-thumbnail {
    transition: opacity 0.2s ease;
}

.location-images-gallery .gallery-thumbnail-wrapper:hover .gallery-thumbnail {
    opacity: 0.9;
}

/* Image carousel modal */
#imageCarouselModal .carousel-item img {
    border-radius: 8px;
}

#imageCarouselModal .carousel-control-prev,
#imageCarouselModal .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

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

#imageCarouselModal .carousel-indicators {
    margin-bottom: 20px;
}

#imageCarouselModal .carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 5px;
}

/* ========== DESKTOP: LEFT SIDEBAR MENU (Google Maps Style) ========== */
.left-sidebar-menu {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    z-index: 1000;
    display: flex;
    flex-direction: row;
    width: calc(100% - 20px);    
}

.left-sidebar-menu .dropdown {
    display: flex;
}

.sidebar-menu-btn {
    height: auto;
    min-height: 44px;
    background: transparent;
    border: none;
    color: #5f6368;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 4px;
    margin: 2px 0;
    border-radius: 0;
    transition: background-color 0.2s, color 0.2s;
    text-align: center;
}

.sidebar-menu-btn i,
.sidebar-menu-btn img {
    font-size: 20px;
    margin-bottom: 4px;
}

.sidebar-menu-text {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 500;
    white-space: nowrap;
}

.sidebar-menu-btn:hover,
.sidebar-menu-btn:focus {
    background-color: #f1f3f4;
    color: #202124;
    text-decoration: none;
    outline: none;
}

.sidebar-menu-btn:active {
    background-color: #e8eaed;
}

/* Dropdown arrow hidden for sidebar */
.sidebar-menu-btn.dropdown-toggle::after {
    display: none;
}

/* Dropdown menu positioning for sidebar */
.left-sidebar-menu .dropdown-menu {
    left: 100%;
    top: 0;
    margin-left: 8px;
    max-height: 400px;
    overflow-y: auto;
}

/* Dropdown no after arrow utility */
.dropdown-toggle.dropdown-no-after::after {
    content: inherit;
}

.sidebar-menu-spacer {
    flex: 1;
}

/* ========== DRAWERS ========== */
/* List Drawer */
.list-drawer {
    position: fixed;
    left: -400px;
    top: 76px;
    bottom: 0;
    width: 380px;
    background: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: left 0.3s ease;
    border-radius: 8px;
    height: calc(100vh - 86px);
}

.list-drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.list-drawer-header {
    padding: 1rem 1rem;
    /* border-bottom: 1px solid #e0e0e0; */
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.list-drawer-content:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./images/drawer-bg.png');
    background-position: top left;
    background-size: 200%;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: -1;
}
.list-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding-top: 1rem;
}

/* ========== DESKTOP: TOP BAR (Search & Statistics) ========== */
.top-bar {
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.top-bar .search-wapper {
    width: 100%;
    position: relative;
}

.top-bar .search-wapper .input-group {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 4px;
    overflow: hidden;
}

.top-bar .search-wapper input {
    border: none;
}

.top-bar .search-wapper .btn {
    height: 40px;
    border: none;
    background: #ffffff;
}

.statistics-wrapper {
    /* max-width: 40%;
    flex-wrap: wrap; */
    display: flex;
    gap: 0px;
}

.statistics-wrapper .btn {
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 4px;
    font-size: 13px;
    padding: 8px 12px;
}

.statistics-wrapper .unactive {
    opacity: 0.5;
}

/* ========== MOBILE: TOP BAR ========== */
.mobile-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 998;
    padding: 8px 12px;
}

.mobile-top-bar .search-wapper {
    position: relative;
}

.mobile-top-bar .statistics-wrapper {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-top-bar .statistics-wrapper .btn {
    font-size: 11px;
    padding: 4px 8px;
    white-space: nowrap;
}

/* ========== MOBILE: BOTTOM NAVIGATION ========== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 0px;
    background: #ffffff;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
    z-index: 998;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: #5f6368;
    cursor: pointer;
    padding: 0;
    min-width: 60px;
    transition: color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
    color: #1a73e8;
}

.mobile-nav-item i,
.mobile-nav-item img {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-label {
    font-size: 11px;
    text-align: center;
}

/* ========== MOBILE: INFO DRAWER ========== */
.mobile-info-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 80vh;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    z-index: 999;
    transition: bottom 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.mobile-info-drawer.active {
    bottom: 0;
}

.mobile-info-drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-info-drawer-header {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-info-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}

/* ========== MOBILE: FILTER DRAWER ========== */
.mobile-filter-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    height: 85vh;
    background: #ffffff;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.2);
    z-index: 999;
    transition: bottom 0.3s ease;
    border-radius: 16px 16px 0 0;
}

.mobile-filter-drawer.active {
    bottom: 0;
}

.mobile-filter-drawer-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mobile-filter-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-filter-drawer-body {
    flex: 1;
    overflow-y: auto;
}

.mobile-filter-drawer-body .sidebar-filter-content {
    width: 100%;
    height: 100%;
}

/* ========== ADVANCED FILTER SIDEBAR ========== */
#sidebar {
    width: 350px;
    max-width: 100%;
    background: #fff;
    color: rgba(0,0,0,.85);
    transition: all 0.3s;
    position: fixed;
    z-index: 999;
    height: 100vh;
    top: 0;
    left: -350px;
}

#sidebar.active {
    left: 85px;
}

.sidebar-mask {
    position: fixed;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.3);
    left: 0;
    top: 0;
    z-index: 1;
    display: none;
}

#sidebar.active .sidebar-mask {
    display: block;
}

.sidebar-wapper {
    position: relative;
    z-index: 2;
    background: #fff;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
}

#sidebar .sidebar-header {
    padding: 16px 24px;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

#sidebar ul.components {
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    margin: 0;
    flex: 1;
}

/* ========== SEARCH WRAPPER ========== */
.search-wapper {
    position: relative;
}

.search-wapper .search-results {
    position: absolute;
    width: 100%;
    left: 0;
    top: 100%;
    z-index: 9999;
    display: none;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
}

.search-wapper .search-results.active {
    display: block !important;
}

/* ========== MAP CONTROLS ========== */
.rootmap-current-location {
    position: fixed;
    bottom: 10px;
    right: 45px;
    z-index: 996;
    padding: 6px;
    height: 40px;
    width: 40px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rootmap-current-location:hover {
    background: #f0f0f0;
}

/* Leaflet custom markers */
.flower-location-marker {
    background: transparent;
    border: none;
}

.current-location-marker {
    background: transparent;
    border: none;
}

.search-location-marker {
    background: transparent;
    border: none;
}

.location-select-marker {
    background: transparent;
    border: none;
}

/* Leaflet popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
}

.marker-popup {
    min-width: 200px;
}

.marker-popup h6 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.marker-popup p {
    margin-bottom: 4px;
    font-size: 12px;
}

.marker-popup img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 8px;
}

/* Leaflet GPS control */
.leaflet-gps-control {
    background: transparent;
    border: none;
}

/* Leaflet cluster styling */
.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}

.marker-cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(241, 211, 87, 0.6);
}

.marker-cluster-medium div {
    background-color: rgba(240, 194, 12, 0.6);
}

.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0.6);
}

.marker-cluster-large div {
    background-color: rgba(241, 128, 23, 0.6);
}

.modelmap-current-location {
    position: absolute;
    bottom: 8px;
    right: 8px;
    z-index: 2;
    padding: 6px;
    height: 34px;
    width: 34px;
}

/* ========== MODAL MAP ========== */
#modalMap {
    width: 100%;
}

/* ========== REQUEST IMAGES ========== */
.request-image {
    height: auto;
    border: 1px solid rgba(0,0,0,.7);
    border-radius: 5px;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    cursor: pointer;
}

.request-image:hover {
    opacity: 0.7;
}

/* ========== REQUEST LIST ITEMS ========== */
.request-list {
    padding: 0;
}

.request-item {
    cursor: pointer;
    transition: all 0.2s;
}

.request-item>div:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #d0d0d0;
}

.request-item:active {
    transform: scale(0.98);
}

.request-item .card-body {
    padding: 12px;
}

.request-item-image {
    flex-shrink: 0;
}

/* ========== SUPPORT TABLE ========== */
.support-table th, 
.support-table td {
    white-space: nowrap;
}

/* ========== HIDE GOONG/MAPBOX ATTRIBUTIONS ========== */
.mapboxgl-ctrl-logo, 
.mapboxgl-ctrl-attrib.mapboxgl-compact {
    display: none !important;
}

.list-drawer.active {
    left: 10px;
}

/* List drawer handle for mobile expand/collapse */
.list-drawer-handle {
    display: none;
    width: 100%;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font-size: 13px;
    background: transparent;
}

.list-drawer-handle:hover,
.list-drawer-handle:active {
    outline: none;
    box-shadow: none;
}

.list-drawer-handle i {
    font-size: 18px;
    margin-right: 8px;
}

.list-drawer-handle span {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.leaflet-bottom {
    bottom: 60px;
}
/* ========== MOBILE RESPONSIVE ========== */
@media (max-width: 767px) {
    .list-drawer-body {
        padding-top: 0;
    }
    .leaflet-bottom {
        bottom: 130px;
        right: -7px;
    }
    .statistics-wrapper {
        max-width: 100%;
    }
    .list-drawer {
        left: 0;
        right: 0;
        top: auto;
        bottom: -100%;
        width: 100%;
        max-width: 100%;
        height: 40vh;
        border-radius: 16px 16px 0 0;
        transition: bottom 0.3s ease, height 0.3s ease;
    }

    .list-drawer.active {
        bottom: 0;
        left: 0;
    }
    
    .list-drawer.expanded {
        height: 80vh;
    }
    
    .list-drawer-handle {
        display: flex;
        align-items: center;
    }
    
    #sidebar {
        left: -100%;
        width: 85%;
        max-width: 350px;
    }
    
    #sidebar.active {
        left: 0;
    }
    
    .rootmap-current-location {
        bottom: 60px;
    }
    .mapboxgl-ctrl-bottom-right{
        bottom: 50px;
    }
}
.mapboxgl-ctrl.mapboxgl-ctrl-attrib{
    display: none;
}

/* Item Categories Accordion */
#itemCategoriesAccordion .card {
    border: 1px solid rgba(0,0,0,.125);
    border-radius: 0.25rem;
}

#itemCategoriesAccordion .card-header {
    background-color: #f8f9fa;
}

#itemCategoriesAccordion .card-header .btn-link {
    text-decoration: none;
    color: #007bff;
    padding: 0.75rem 1rem;
}

#itemCategoriesAccordion .card-header .btn-link:hover {
    text-decoration: none;
    background-color: #e9ecef;
}

#itemCategoriesAccordion .card-header .btn-link i {
    transition: transform 0.3s ease;
}

#itemCategoriesAccordion .card-header .btn-link[aria-expanded="true"] i {
    transform: rotate(180deg);
}
.modal{
    overflow: auto !important;
}

.submit-form-modal:before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./images/submit-form-bg.png');
    background-position: top left;
    background-size: auto;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
}
.statistics-label{
    font-size: 13px;
    white-space: nowrap;
}
.modal-header{
    border-bottom: 0;
}
.modal-dialog-bg::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./images/submit-form-bg.png');
    background-position: top left;
    background-size: auto;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 1;
}
.leaflet-top, .leaflet-bottom{
    z-index: 998;
}
#copyright{
    position: fixed;
    bottom: 11px;
    left: 40px;
    z-index: 998;
    font-size: 11px;
    opacity: 0.5;
}
@media (max-width: 767px) {
    #copyright{
        bottom: 60px;
        right: 0;
        padding-left: 10px;
        padding-right: 50px;
        display: none;
    }
}

/* Festival Point Marker with Ripple Effect */
.festival-marker-wrapper {
    position: relative;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.festival-marker-icon {
    position: relative;
    width: 32px;
    height: 32px;
    background: #ff6b6b;
    border: 3px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    z-index: 2;
    color: white;
    font-size: 14px;
}

.festival-marker-ripple {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 3px solid #ff6b6b;
    border-radius: 50%;
    animation: festival-ripple 2s infinite;
    opacity: 0;
}

.festival-marker-ripple-delay {
    animation-delay: 1s;
}

@keyframes festival-ripple {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

/* Festival Program Items */
.festival-program-item {
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.festival-program-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.festival-images-gallery .gallery-thumbnail-wrapper:hover {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}
.white-space-pre-wrap{
    white-space: pre-wrap;
}
.cherry-blossom-texture-wrapper{
    position: fixed;
    z-index: 997;
    opacity: 1;
    pointer-events: none;
    max-width: 450px;
    width: 30%;
}
.cherry-blossom-texture-wrapper img{
    width: 100%;
    height: 100%;
}
.cherry-blossom-texture-1 {
    top: 0;
    left: 0;
}
.cherry-blossom-texture-2 {
    top: 64px;
    right: 0;
}
.cherry-blossom-texture-3 {
    bottom: 0;
    left: 0;
    display: none;
}
.cherry-blossom-texture-4 {
    bottom: 0;
    right: 0;
}
.index-image{
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.index-image-blur{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    filter: blur(10px);
    transform: scale(1.1);
    z-index: 1;
}
.index-image-img{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 2;
}
.redirect-counter{
    position: fixed;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 999;
    font-size: 16px;
    color: #ffffff;
    font-weight: bold;
}
@media (max-width: 767px) {
    .cherry-blossom-texture-wrapper{
        max-width: 100%;
        width: 100%;
    }   
    .cherry-blossom-texture-4 {
        bottom: 55px;
    }
    .cherry-blossom-texture-2 {
        top: 83px;
        width: 50%;
    }
    .index-image-img{
        max-width: 147%;
        width: auto;
        height: auto;
    }
}