/**
 * Dabilux Store Locator Frontend Styles
 * Version: 2.7.0
 * Description: Polished the exterior UI of the sidebar for a more modern, card-like appearance. The sticky positioning code is correct but may be affected by theme conflicts.
 */

/* --- Tailwind CSS Classes with dabilux-map prefix --- */
.dabilux-store-location .dabilux-map-bg-white { background-color: #ffffff; }
.dabilux-store-location .dabilux-map-rounded-lg { border-radius: 0.5rem; }
.dabilux-store-location .dabilux-map-overflow-hidden { overflow: hidden; }
.dabilux-store-location .dabilux-map-flex { display: flex; }
.dabilux-store-location .dabilux-map-flex-col { flex-direction: column; }
.dabilux-store-location .dabilux-map-flex-grow { flex-grow: 1; }
.dabilux-store-location .dabilux-map-relative { position: relative; }
.dabilux-store-location .dabilux-map-absolute { position: absolute; }
.dabilux-store-location .dabilux-map-w-full { width: 100%; }
.dabilux-store-location .dabilux-map-z-10 { z-index: 10; }
.dabilux-store-location .dabilux-map-border-r { border-right-width: 1px; }
.dabilux-store-location .dabilux-map-border-b { border-bottom-width: 1px; }
.dabilux-store-location .dabilux-map-border { border-width: 1px; }
.dabilux-store-location .dabilux-map-border-gray-200 { border-color: #e5e7eb; }
.dabilux-store-location .dabilux-map-border-gray-300 { border-color: #d1d5db; }
.dabilux-store-location .dabilux-map-p-6 { padding: 1.5rem; }
.dabilux-store-location .dabilux-map-p-8 { padding: 2rem; }
.dabilux-store-location .dabilux-map-py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.dabilux-store-location .dabilux-map-px-4 { padding-left: 1rem; padding-right: 1rem; }
.dabilux-store-location .dabilux-map-pl-10 { padding-left: 2.5rem; }
.dabilux-store-location .dabilux-map-pr-4 { padding-right: 1rem; }
.dabilux-store-location .dabilux-map-mb-4 { margin-bottom: 1rem; }
.dabilux-store-location .dabilux-map-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.dabilux-store-location .dabilux-map-text-gray-400 { color: #9ca3af; }
.dabilux-store-location .dabilux-map-text-gray-600 { color: #6b7280; }
.dabilux-store-location .dabilux-map-text-white { color: #ffffff; }
.dabilux-store-location .dabilux-map-bg-blue-600 { background-color: #2563eb; }
.dabilux-store-location .dabilux-map-bg-blue-700 { background-color: #1d4ed8; }
.dabilux-store-location .dabilux-map-font-bold { font-weight: 700; }
.dabilux-store-location .dabilux-map-items-center { align-items: center; }
.dabilux-store-location .dabilux-map-justify-center { justify-content: center; }
.dabilux-store-location .dabilux-map-space-x-2 > :not([hidden]) ~ :not([hidden]) { margin-left: 0.5rem; }
.dabilux-store-location .dabilux-map-space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.dabilux-store-location .dabilux-map-overflow-y-auto { overflow-y: auto; }
.dabilux-store-location .dabilux-map-top-1\/2 { top: 50%; }
.dabilux-store-location .dabilux-map-left-3\.5 { left: 0.875rem; }
.dabilux-store-location .dabilux-map-transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)); }
.dabilux-store-location .dabilux-map--translate-y-1\/2 { --tw-translate-y: -50%; }
.dabilux-store-location .dabilux-map-focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.dabilux-store-location .dabilux-map-focus\:ring-2:focus { --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color); --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color); box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000); }
.dabilux-store-location .dabilux-map-focus\:ring-blue-500:focus { --tw-ring-color: #3b82f6; }
.dabilux-store-location .dabilux-map-transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.dabilux-store-location .dabilux-map-hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.dabilux-store-location .dabilux-map-transition-colors { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }

/* Additional Tailwind classes used in JavaScript with dabilux-map prefix */
.dabilux-store-location .dabilux-map-text-center { text-align: center; }
.dabilux-store-location .dabilux-map-text-gray-500 { color: #6b7280; }
.dabilux-store-location .dabilux-map-text-gray-700 { color: #374151; }
.dabilux-store-location .dabilux-map-text-gray-800 { color: #1f2937; }
.dabilux-store-location .dabilux-map-text-blue-600 { color: #2563eb; }
.dabilux-store-location .dabilux-map-text-green-600 { color: #059669; }
.dabilux-store-location .dabilux-map-text-red-600 { color: #dc2626; }
.dabilux-store-location .dabilux-map-mt-1 { margin-top: 0.25rem; }
.dabilux-store-location .dabilux-map-mt-2 { margin-top: 0.5rem; }
.dabilux-store-location .dabilux-map-mt-2\.5 { margin-top: 0.625rem; }
.dabilux-store-location .dabilux-map-ml-4 { margin-left: 1rem; }
.dabilux-store-location .dabilux-map-mx-4 { margin-left: 1rem; margin-right: 1rem; }
.dabilux-store-location .dabilux-map-mb-0 { margin-bottom: 0; }
.dabilux-store-location .dabilux-map-mr-1 { margin-right: 0.25rem; }
.dabilux-store-location .dabilux-map-p-4 { padding: 1rem; }
.dabilux-store-location .dabilux-map-pt-3 { padding-top: 0.75rem; }
.dabilux-store-location .dabilux-map-px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.dabilux-store-location .dabilux-map-py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.dabilux-store-location .dabilux-map-w-24 { width: 6rem; }
.dabilux-store-location .dabilux-map-h-24 { height: 6rem; }
.dabilux-store-location .dabilux-map-w-4 { width: 1rem; }
.dabilux-store-location .dabilux-map-flex-shrink-0 { flex-shrink: 0; }
.dabilux-store-location .dabilux-map-gap-1\.5 { gap: 0.375rem; }
.dabilux-store-location .dabilux-map-gap-2\.5 { gap: 0.625rem; }
.dabilux-store-location .dabilux-map-space-y-2 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.5rem; }
.dabilux-store-location .dabilux-map-text-xs { font-size: 0.75rem; line-height: 1rem; }
.dabilux-store-location .dabilux-map-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.dabilux-store-location .dabilux-map-font-semibold { font-weight: 600; }
.dabilux-store-location .dabilux-map-text-\[11px\] { font-size: 11px; }
.dabilux-store-location .dabilux-map-bg-blue-500 { background-color: #3b82f6; }
.dabilux-store-location .dabilux-map-bg-blue-600 { background-color: #2563eb; }
.dabilux-store-location .dabilux-map-rounded-md { border-radius: 0.375rem; }
.dabilux-store-location .dabilux-map-rounded-full { border-radius: 9999px; }
.dabilux-store-location .dabilux-map-object-cover { object-fit: cover; }
.dabilux-store-location .dabilux-map-inline-flex { display: inline-flex; }
.dabilux-store-location .dabilux-map-cursor-pointer { cursor: pointer; }
.dabilux-store-location .dabilux-map-border-t { border-top-width: 1px; }
.dabilux-store-location .dabilux-map-border-dashed { border-style: dashed; }
.dabilux-store-location .dabilux-map-hover\:shadow-md:hover { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.dabilux-store-location .dabilux-map-hover\:border-blue-500:hover { border-color: #3b82f6; }
.dabilux-store-location .dabilux-map-duration-300 { transition-duration: 300ms; }
.dabilux-store-location .dabilux-map-items-start { align-items: flex-start; }
.dabilux-store-location .dabilux-map-mt-0\.5 { margin-top: 0.125rem; }

/* Admin Icon and Gallery Styles */
.dabilux-map-remove-icon-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    padding: 4px 8px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    margin-left: 10px !important;
    transition: background-color 0.3s ease !important;
}

.dabilux-map-remove-icon-btn:hover {
    background: #c82333 !important;
}

.dabilux-map-remove-gallery-btn {
    background: #dc3545 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 20px !important;
    height: 20px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    position: absolute !important;
    top: -5px !important;
    right: -5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background-color 0.3s ease !important;
}

.dabilux-map-remove-gallery-btn:hover {
    background: #c82333 !important;
}

#dabilux_map_icon_preview img {
    max-width: 40px !important;
    height: auto !important;
}

#dabilux_map_gallery_preview {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    margin-top: 15px !important;
}

#dabilux_map_gallery_preview > div {
    position: relative !important;
    display: inline-block !important;
    margin: 5px !important;
}

#dabilux_map_gallery_preview img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    border: 2px solid #ddd !important;
}

/* Sortable Gallery Styles */
.dabilux-map-sortable-gallery {
    min-height: 100px;
}

.dabilux-map-gallery-item {
    transition: all 0.3s ease !important;
}

.dabilux-map-gallery-item:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.dabilux-map-gallery-ghost {
    opacity: 0.4 !important;
    background: #f0f0f0 !important;
    border: 2px dashed #ccc !important;
}

.dabilux-map-gallery-chosen {
    transform: rotate(5deg) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}

.dabilux-map-gallery-drag {
    transform: rotate(5deg) !important;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2) !important;
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .dabilux-store-location.dabilux-map-store-locator-wrapper aside {
        height: 70vh;
        max-height: 70vh;
    }
    
    .dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected aside {
        height: 70vh !important;
        max-height: 70vh !important;
    }
    
    #dabilux-map-map-container {
        height: 30vh;
        max-height: 30vh;
    }
    
    .dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected #dabilux-map-map-container {
        height: 30vh !important;
        max-height: 30vh !important;
    }
    
    .dabilux-map-store-card {
        margin-bottom: 10px;
    }
    
    .dabilux-map-store-card .dabilux-map-w-24 {
        width: 60px;
    }
    
    .dabilux-map-store-card .dabilux-map-h-24 {
        height: 60px;
    }
    
    .dabilux-map-p-4 {
        padding: 12px;
    }
    
    .dabilux-map-text-lg {
        font-size: 1rem;
    }
    
    .dabilux-map-text-sm {
        font-size: 0.8rem;
    }
    
    .dabilux-map-p-6 {
        padding: 16px;
    }
    
    .dabilux-map-py-3 {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    
    .dabilux-map-px-4 {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Very Small Mobile Devices */
@media (max-width: 320px) {
    .dabilux-store-location.dabilux-map-store-locator-wrapper aside {
        height: 75vh;
        max-height: 75vh;
    }
    
    .dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected aside {
        height: 75vh !important;
        max-height: 75vh !important;
    }
    
    #dabilux-map-map-container {
        height: 25vh;
        max-height: 25vh;
    }
    
    .dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected #dabilux-map-map-container {
        height: 25vh !important;
        max-height: 25vh !important;
    }
    
    .dabilux-map-store-card .dabilux-map-w-24 {
        width: 50px;
    }
    
    .dabilux-map-store-card .dabilux-map-h-24 {
        height: 50px;
    }
    
    .dabilux-map-p-4 {
        padding: 8px;
    }
    
    .dabilux-map-p-6 {
        padding: 12px;
    }
    
    .dabilux-map-text-lg {
        font-size: 0.9rem;
    }
    
    .dabilux-map-text-sm {
        font-size: 0.75rem;
    }
    
    .dabilux-map-text-xs {
        font-size: 0.65rem;
    }
    
    .dabilux-map-py-3 {
        padding-top: 6px;
        padding-bottom: 6px;
    }
    
    .dabilux-map-px-4 {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* Responsive classes */
@media (min-width: 1024px) {
    .dabilux-store-location .dabilux-map-lg\:flex-row { flex-direction: row; }
    .dabilux-store-location .dabilux-map-lg\:w-1\/3 { width: 33.333333%; }
}

@media (min-width: 1280px) {
    .dabilux-store-location .dabilux-map-xl\:w-1\/4 { width: 25%; }
}

/* --- Main Wrapper & Layout --- */
.dabilux-store-location.dabilux-map-store-locator-wrapper {
    width: 100%;
    margin: 2rem auto;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.dabilux-store-location.dabilux-map-store-locator-wrapper > .dabilux-map-flex {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 2rem;
}
.dabilux-store-location .btn-text{
    color:#fff!important;
}
/* --- Left Panel (Aside) - STICKY --- */
/* The code below is the standard and correct way to create a sticky element. 
   If it doesn't work, it is almost certainly because a parent element from your WordPress theme has an 'overflow' property (e.g., overflow: hidden), which disables sticky positioning. */
.dabilux-store-location.dabilux-map-store-locator-wrapper aside {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
    position: -webkit-sticky;
    position: sticky;
    top: 40px; /* Adjust this for your theme's sticky header height */
    height: 80vh; /* Match the map container height */
    max-height: 80vh; /* Ensure it doesn't exceed map height */
    display: flex;
    flex-direction: column;
    z-index: 10; /* Ensure sidebar stays above other content */

    /* Modern card appearance for the entire sidebar */
    background-color: #ffffff;
    border-radius: 0.75rem; /* 12px */
    border: 1px solid #e5e7eb; /* gray-200 */
    overflow: hidden; /* Ensures content respects the rounded corners */
    
    /* Smooth transitions for all sticky-related properties */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0); /* Force hardware acceleration */
    will-change: transform, top, height;
}

/* Force sticky behavior when store is selected with smooth animation */
.dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected aside {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 40px !important; /* Keep same top position as original */
    height: 80vh !important; /* Keep original height when store is selected */
    max-height: 80vh !important;
    
    /* Enhanced elevation when sticky */
    border-color: #d1d5db; /* Slightly darker border */
    
    /* Remove scale effect to prevent shifting */
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Re-added overflow-y: auto to enable the internal scrollbar */
#dabilux-map-store-list-container {
    overflow-y: auto;
}

/* --- Right Panel (Main Content) --- */
.dabilux-store-location.dabilux-map-store-locator-wrapper main {
    flex-grow: 1;
    min-width: 0;
}

/* --- Custom Scrollbar --- */
.dabilux-map-custom-scrollbar::-webkit-scrollbar {
    width: 6px;
}
.dabilux-map-custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
}
.dabilux-map-custom-scrollbar::-webkit-scrollbar-thumb {
    background: #a8a8a8;
    border-radius: 3px;
}
.dabilux-map-custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #888;
}

/* --- Store Card Styling --- */
.dabilux-map-store-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateZ(0);
}

.dabilux-map-store-card:hover {
    transform: translateZ(0) translateY(-2px);
}

.dabilux-map-store-card.dabilux-map-active {
    border-color: #3b82f6;
    background-color: #eff6ff;
    transform: translateZ(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Detail View State Transitions --- */
#dabilux-map-map-container {
    height: 80vh;
    max-height: 80vh;
    transition: height 0.5s ease-in-out;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

#dabilux-map-article-container {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    margin-top: 2rem;
    padding: 1rem;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    text-align: left;
}


.dabilux-store-location main.dabilux-map-detail-view #dabilux-map-map-container {
    height: 50vh;
}

.dabilux-store-location main.dabilux-map-detail-view #dabilux-map-article-container {
    display: block;
    opacity: 1;
}


/* --- Article Content Styling --- */
#dabilux-map-article-content h1,
#dabilux-map-article-content h2,
#dabilux-map-article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
#dabilux-map-article-content p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #374151;
}
#dabilux-map-article-content img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}

/* --- 2.5D Image Gallery Slider --- */
.dabilux-map-gallery-slider {
    margin-top: 2rem;
    padding: 0;
    width: 100%;
}

.dabilux-map-gallery-title {
    font-size: 6rem;
    font-weight: 900;
    color: #00000013;
    margin-bottom: -100px !important;
    text-align: center;
}

.dabilux-map-gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    padding: 2rem 1rem;
    width: 100%;
    outline: none;
}

.dabilux-map-gallery-container:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.dabilux-map-gallery-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 1.5rem;
    padding: 1rem 0;
}

.dabilux-map-gallery-slide {
    flex: 0 0 280px;
    height: 250px;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.dabilux-map-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.15),
        0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dabilux-map-gallery-slide:hover {
    transform: translateY(-8px) rotateX(5deg) rotateY(5deg);
}

.dabilux-map-gallery-slide:hover img {
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.2),
        0 10px 25px rgba(0, 0, 0, 0.15);
}

.dabilux-map-gallery-slide.active {
    transform: translateY(-12px) rotateX(8deg) rotateY(8deg) scale(1.05);
}

.dabilux-map-gallery-slide.active img {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.25),
        0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Gallery Navigation */
.dabilux-map-gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.dabilux-map-gallery-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transform: translateY(0);
}

.dabilux-map-gallery-btn:hover {
    transform: translateY(-8px) scale(1.1);
    box-shadow: 0 12px 25px rgba(59, 130, 246, 0.5);
}

.dabilux-map-gallery-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: translateY(0);
}

/* --- Leaflet Map & Custom Icon Styling --- */
#dabilux-map-map {
    height: 100%;
    width: 100%;
}



.dabilux-map-custom-icon img {
    max-width: 40px !important;
    height: auto !important;
    object-fit: contain !important;
}

.dabilux-store-location .leaflet-popup-content-wrapper {
    border-radius: 8px;
}
.dabilux-store-location .leaflet-popup-content {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

/* Additional sticky enhancements */
.dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected {
    /* Ensure parent container doesn't interfere with sticky */
    overflow: visible;
}

.dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected aside {
    /* Enhanced sticky behavior with better browser support */
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Performance optimizations for smooth animations */
.dabilux-store-location.dabilux-map-store-locator-wrapper * {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Enhanced scrollbar styling for smoother scrolling */
#dabilux-map-store-list-container {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: #a8a8a8 #f1f1f1;
}

/* Search input styling */
#dabilux-map-search-input {
    width: 100%;
    /* Keep existing padding from HTML classes (pl-10 = 40px left padding) */
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
    background-color: #ffffff;
    /* Ensure padding is not overridden */
    padding-left: 2.5rem !important; /* 40px to match pl-10 */
    padding-right: 1rem !important; /* 16px to match pr-4 */
    padding-top: 0.75rem !important; /* 12px to match py-3 */
    padding-bottom: 0.75rem !important; /* 12px to match py-3 */
}

#dabilux-map-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Search input placeholder positioning */
#dabilux-map-search-input::placeholder {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* Beautiful Notification Popup */
.dabilux-map-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
    padding: 0;
    max-width: 400px;
    width: 90%;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.dabilux-map-notification.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.dabilux-map-notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.dabilux-map-notification-overlay.show {
    opacity: 1;
    visibility: visible;
}

.dabilux-map-notification-header {
    padding: 24px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.dabilux-map-notification-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
}

.dabilux-map-notification-icon.success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.dabilux-map-notification-icon.error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.dabilux-map-notification-icon.warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.dabilux-map-notification-icon.info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.dabilux-map-notification-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 8px;
}

.dabilux-map-notification-message {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.5;
    margin: 0;
}

.dabilux-map-notification-body {
    padding: 16px 24px 24px;
}

.dabilux-map-notification-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.dabilux-map-notification-btn {
    flex: 1;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.dabilux-map-notification-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.dabilux-map-notification-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    transform: translateY(-1px);
}

.dabilux-map-notification-btn-secondary {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.dabilux-map-notification-btn-secondary:hover {
    background: #f1f5f9;
    color: #475569;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .dabilux-store-location.dabilux-map-store-locator-wrapper > .dabilux-map-flex {
        flex-direction: column;
    }
    .dabilux-store-location.dabilux-map-store-locator-wrapper aside,
    .dabilux-store-location.dabilux-map-store-locator-wrapper main {
        width: 100%;
        max-width: none;
    }
    .dabilux-store-location.dabilux-map-store-locator-wrapper aside {
        position: static;
        height: 60vh;
        max-height: 60vh;
        overflow-y: auto;
    }
    
    /* Override sticky behavior on mobile even when store is selected */
    .dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected aside {
        position: static !important;
        top: auto !important;
        height: 60vh !important;
        max-height: 60vh !important;
    }
    
    /* Adjust map height on mobile to match sidebar */
    #dabilux-map-map-container {
        height: 40vh;
        max-height: 40vh;
    }
    
    .dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected #dabilux-map-map-container {
        height: 40vh !important;
        max-height: 40vh !important;
    }
    
    /* Mobile Gallery */
    .dabilux-map-gallery-slide {
        flex: 0 0 200px;
        height: 180px;
    }
    
    .dabilux-map-gallery-slide img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .dabilux-map-gallery-container {
        padding: 1rem 0.5rem;
    }
    
    .dabilux-map-gallery-track {
        gap: 1rem;
    }
    
    .dabilux-map-gallery-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
.ct-container-full {
    padding: 0!important;
    margin-bottom: 40px!important;
}

/* --- 3D Carousel Gallery --- */
.dabilux-map-gallery-slider {
    margin-top: 2rem;
    padding: 0;
    width: 100%;
}

.dabilux-map-gallery-title {
    font-size: 3rem;
    font-weight: 900;
    color: #00000013;
    margin-bottom: -50px !important;
    text-align: center;
}

.team-carousel-wrapper-dabilux {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.carousel-container-dabilux {
    width: 100%;
    max-width: 1400px;
    height: 350px;
    position: relative;
    perspective: 1000px;
}

.carousel-track-dabilux {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-dabilux {
    position: absolute;
    width: 300px;
    height: 220px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.card-dabilux img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-dabilux.center-dabilux {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
}

.card-dabilux.center-dabilux img {
    filter: none;
}

.card-dabilux.left-2-dabilux {
    z-index: 1;
    transform: translateX(-240px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card-dabilux.left-2-dabilux img {
    filter: grayscale(100%);
}

.card-dabilux.left-1-dabilux {
    z-index: 5;
    transform: translateX(-120px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

.card-dabilux.left-1-dabilux img {
    filter: grayscale(100%);
}

.card-dabilux.right-1-dabilux {
    z-index: 5;
    transform: translateX(120px) scale(0.9) translateZ(-100px);
    opacity: 0.9;
}

.card-dabilux.right-1-dabilux img {
    filter: grayscale(100%);
}

.card-dabilux.right-2-dabilux {
    z-index: 1;
    transform: translateX(240px) scale(0.8) translateZ(-300px);
    opacity: 0.7;
}

.card-dabilux.right-2-dabilux img {
    filter: grayscale(100%);
}

.card-dabilux.hidden-dabilux {
    opacity: 0;
    pointer-events: none;
}

.nav-arrow-dabilux {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(59, 130, 246, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    padding-bottom: 4px;
}

.nav-arrow-dabilux:hover {
    background: rgba(59, 130, 246, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow-dabilux.left-dabilux {
    left: 20px;
    padding-right: 3px;
}

.nav-arrow-dabilux.right-dabilux {
    right: 20px;
    padding-left: 3px;
}

@media (max-width: 768px) {
    .carousel-container-dabilux {
        height: 250px;
    }
    
    .card-dabilux {
        width: 220px;
        height: 160px;
    }

    .card-dabilux.left-2-dabilux {
        transform: translateX(-160px) scale(0.7) translateZ(-400px);
        opacity: 0.4;
    }
    
    .card-dabilux.right-2-dabilux {
        transform: translateX(160px) scale(0.7) translateZ(-400px);
        opacity: 0.4;
    }
    
    .card-dabilux.left-1-dabilux {
        transform: translateX(-80px) scale(0.9) translateZ(-100px);
    }
    
    .card-dabilux.right-1-dabilux {
        transform: translateX(80px) scale(0.9) translateZ(-100px);
    }
}

/* Lightbox Styles */
.dabilux-map-lightbox-thumbnails {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.dabilux-map-lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.dabilux-map-lightbox-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.dabilux-map-lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.dabilux-map-lightbox-thumbnails::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.dabilux-map-lightbox-thumb:hover {
    transform: scale(1.05);
    border-color: rgba(59, 130, 246, 0.5) !important;
}

.dabilux-map-lightbox-thumb.active {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

@media (max-width: 768px) {
    .dabilux-map-lightbox-main {
        flex-direction: column;
        gap: 10px !important;
    }
    
    .dabilux-map-lightbox-prev,
    .dabilux-map-lightbox-next {
        width: 40px !important;
        height: 40px !important;
        font-size: 20px !important;
    }
    
    .dabilux-map-lightbox-thumbnails {
        gap: 8px !important;
    }
    
    .dabilux-map-lightbox-thumb {
        width: 60px !important;
        height: 45px !important;
    }
}

/* Comment Form Section (after content, before gallery) */
.dabilux-map-comment-form-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.dabilux-map-comment-form-section .dabilux-map-comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

/* Comments List Section (after gallery) */
.dabilux-map-comments-list-section {
    margin-top: 30px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.dabilux-map-comments-list-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 20px;
    text-align: center;
}

.dabilux-map-comment-form {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.dabilux-map-form-group {
    margin-bottom: 20px;
}

.dabilux-map-form-group label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.dabilux-map-form-group input,
.dabilux-map-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.dabilux-map-form-group input:focus,
.dabilux-map-form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.dabilux-map-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.dabilux-map-star-rating {
    display: flex;
    gap: 5px;
    margin-top: 8px;
}

.dabilux-map-star-rating .star {
    font-size: 2rem;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.dabilux-map-star-rating .star:hover,
.dabilux-map-star-rating .star.hover {
    color: #fbbf24;
}

.dabilux-map-star-rating .star.active {
    color: #f59e0b;
}

.dabilux-map-submit-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
}

.dabilux-map-submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.dabilux-map-submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.dabilux-map-comments-list {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dabilux-map-comment-item {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

.dabilux-map-comment-item:last-child {
    border-bottom: none;
}

.dabilux-map-comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.dabilux-map-comment-author strong {
    color: #1f2937;
    font-size: 1rem;
    display: block;
    margin-bottom: 4px;
}

.dabilux-map-comment-rating {
    color: #f59e0b;
    font-size: 0.9rem;
}

.dabilux-map-comment-date {
    color: #6b7280;
    font-size: 0.8rem;
}

.dabilux-map-comment-content {
    color: #374151;
    line-height: 1.6;
    font-size: 0.9rem;
}

.dabilux-map-no-comments,
.dabilux-map-comments-error,
.dabilux-map-loading-comments {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
}

.dabilux-map-comments-error {
    color: #dc2626;
}

@media (max-width: 768px) {
    .dabilux-store-location.dabilux-map-store-locator-wrapper aside {
        height: 65vh;
        max-height: 65vh;
    }
    
    .dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected aside {
        height: 65vh !important;
        max-height: 65vh !important;
    }
    
    #dabilux-map-map-container {
        height: 35vh;
        max-height: 35vh;
    }
    
    .dabilux-store-location.dabilux-map-store-locator-wrapper.dabilux-map-store-selected #dabilux-map-map-container {
        height: 35vh !important;
        max-height: 35vh !important;
    }
    
    .dabilux-map-comment-form-section,
    .dabilux-map-comments-list-section {
        margin-top: 20px;
        padding: 20px;
    }
    
    .dabilux-map-comment-form {
        padding: 20px;
    }
    
    .dabilux-map-comment-form-section .dabilux-map-comments-title,
    .dabilux-map-comments-list-title {
        font-size: 1.1rem;
    }
    
    .dabilux-map-star-rating .star {
        font-size: 1.5rem;
    }
    
    .dabilux-map-comment-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .dabilux-map-comment-date {
        align-self: flex-start;
    }
}

/* Modern Glassmorphism Sticky Navigation Menu */
.dabilux-map-sticky-menu {
    position: sticky;
    top: 0;
    z-index: 1000;
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.15);
    border-radius: 16px;
    margin: 20px auto;
    max-width: 1200px;
}

.dabilux-map-menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 16px;
    gap: 8px;
}

.dabilux-map-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 12px;
    min-width: 80px;
    position: relative;
    overflow: hidden;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
}

.dabilux-map-menu-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

.dabilux-map-menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.dabilux-map-menu-item.active::after,
.dabilux-map-menu-item:hover::after {
    width: 60%;
}

.dabilux-map-menu-item i {
    font-size: 1rem;
    margin-bottom: 4px;
    color: #64748b;
    transition: all 0.3s ease;
}

.dabilux-map-menu-item span {
    font-size: 0.75rem;
    font-weight: 500;
    color: #475569;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.dabilux-map-menu-item:hover i,
.dabilux-map-menu-item:hover span {
    color: #3b82f6;
}

.dabilux-map-menu-item.active i,
.dabilux-map-menu-item.active span {
    color: #3b82f6;
}


/* Mobile responsive for modern sticky menu */
@media (max-width: 768px) {
    .dabilux-map-sticky-menu {
        margin: 10px auto;
        border-radius: 12px;
    }
    
    .dabilux-map-menu-container {
        padding: 8px 12px;
        gap: 2px;
    }
    
    .dabilux-map-menu-item {
        padding: 10px 12px;
        min-width: 70px;
        border-radius: 12px;
    }
    
    .dabilux-map-menu-item i {
        font-size: 0.9rem;
        margin-bottom: 3px;
    }
    
    .dabilux-map-menu-item span {
        font-size: 0.7rem;
    }
}
