/* Explore page container styles - moved from inline */
.explore-container {
    padding: 20px 6px 6px 6px;
}

.explore-search-container {
    max-width: 100%;
    margin-bottom: 22px;
}

.search-box button {
    padding: 18px 32px;
    border-radius: var(--radius-full);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-box button:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* explore.css - Explore Page Specific Styles */
.custom-alert-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.custom-alert-modal.show { opacity: 1; visibility: visible; }
.custom-alert-content {
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    max-width: 400px;
    width: 90%;
    padding: 0;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}
.custom-alert-modal.show .custom-alert-content { transform: scale(1); }
.custom-alert-header {
    padding: 20px 24px 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.custom-alert-header i { font-size: 1.8rem; }
.custom-alert-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}
.custom-alert-body {
    padding: 16px 24px;
    color: var(--text-secondary);
}
.custom-alert-body p { margin: 0; }
.custom-alert-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    justify-content: flex-end;
}
.loading-spinner {
    text-align: center;
    padding: 50px;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}
.page-btn {
    padding: 8px 14px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}
.page-btn:hover, .page-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.page-btn.disabled { opacity: 0.5; cursor: not-allowed; }
.no-results {
    text-align: center;
    padding: 60px;
    color: var(--text-secondary);
}
.filters-applied {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.filter-tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}
.filter-tag button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary);
    font-weight: bold;
}
.map-container-leaflet {
    height: 0;
    opacity: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    margin-bottom: 0;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease,
                margin 0.3s ease;
    scroll-margin-top: 80px;
}

.map-container-leaflet.open {
    height: 400px;
    opacity: 1;
    margin-bottom: 24px;
}

.map-container-leaflet .leaflet-container {
    height: 100%;
    width: 100%;
}
/* Adjust map position - move it down when opening */
.map-container-leaflet {
    scroll-margin-top: 120px;
}

/* When map opens, scroll to it but not to the very top */
.map-container-leaflet.open {
    scroll-margin-top: 80px;
}
.custom-marker {
    background: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;
    max-width: 50px;
    max-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    border: 3px solid var(--primary);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.custom-marker:hover { transform: scale(1.1); }
.custom-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.custom-marker span {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    background: var(--primary);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-popup {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
}
.custom-popup .shop-popup-image {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary);
}
.custom-popup .shop-popup-info { flex: 1; }
.custom-popup .shop-popup-info h4 {
    margin: 0 0 4px 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}
.custom-popup .shop-popup-info p {
    margin: 2px 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}
.custom-popup .shop-popup-info .status-open {
    color: #10b981;
    font-weight: 600;
}
.custom-popup .shop-popup-info .status-closed {
    color: #ef4444;
    font-weight: 600;
}
.custom-popup .shop-popup-info a {
    font-size: 0.7rem;
    color: var(--primary);
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}
.leaflet-popup-content-wrapper {
    background: var(--card-bg) !important;
    border-radius: 12px !important;
    padding: 10px 14px !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
}
.leaflet-popup-content{
    color: var(--text-primary);
}
.leaflet-popup-tip-container {
    position: absolute !important;
    bottom: 0px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 20px !important;
    height: 12px !important;
    overflow: visible !important;
}
.leaflet-popup-tip {
    background: var(--card-bg) !important;
    width: 14px !important;
    height: 14px !important;
    transform: rotate(45deg) !important;
    position: absolute !important;
    bottom: -7px !important;
    left: 50% !important;
    margin-left: -7px !important;
    border: 1px solid var(--border-color) !important;
    border-top: none !important;
    border-left: none !important;
    box-shadow: none !important;
}
.location-badge {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 8px 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 40px;
    width: fit-content;
}
/* Map loading spinner */
.map-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--card-bg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    border-radius: var(--radius-lg);
    transition: opacity 0.3s ease;
}
.map-loading-spinner.hide {
    opacity: 0;
    visibility: hidden;
}
.map-loading-spinner .spinner {
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
}
.map-loading-spinner p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}