* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    flex-direction: column;
    height: 100vh;
    background-color: #121212;
    color: #f0f0f0;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow: hidden;
}

body.light-mode {
    background-color: #f5f5f5;
    color: #333;
}

header {
    background-color: rgba(26, 26, 26, 0);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(64, 224, 208, 0.5);
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

body.light-mode header {
    background-color: rgba(255, 255, 255, 0);
    color: #333;
    border-bottom: 2px solid rgba(39, 138, 122, 0.5);
}

header.header-collapsed {
    transform: translateY(-100%);
}

.header-toggle {
    position: fixed;
    top: 10px;
    right: 10px;
    background-color: #40E0D0;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
    opacity: 0;
    visibility: hidden;
}

.header-toggle.visible {
    opacity: 1;
    visibility: visible;
}

.header-toggle:hover {
    background-color: #5EEFE0;
}

body.light-mode .header-toggle {
    background-color: #278a7a;
}

body.light-mode .header-toggle:hover {
    background-color: #39afa1;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo h1 {
    font-weight: 700;
    background: linear-gradient(90deg, #9c27b0, #40E0D0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

body.light-mode .logo h1 {
    background: linear-gradient(90deg, #7b1fa2, #278a7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo svg {
    color: #40E0D0;
}

.search-container {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

#search-input {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    min-width: 300px;
    background-color: #2a2a2a;
    color: white;
    border: 1px solid #444;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode #search-input {
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

#search-button {
    padding: 0.5rem 1rem;
    background-color: #40E0D0;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

#search-button:hover {
    background-color: #5EEFE0;
}

.theme-toggle {
    display: flex;
    align-items: center;
    margin-left: 1rem;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2a2a2a;
    border-radius: 24px;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #40E0D0;
    border-radius: 50%;
    transition: .4s;
}

input:checked + .toggle-slider {
    background-color: #e0e0e0;
}

input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background-color: #ff9800;
}

.toggle-slider .moon, .toggle-slider .sun {
    font-size: 12px;
}

main {
    display: flex;
    flex: 1;
    overflow: hidden;
    position: relative;
    height: 100vh;
}

.map-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.sidebar {
    width: 300px;
    background-color: rgba(26, 26, 26, 0.8);
    border-right: 1px solid rgba(51, 51, 51, 0.5);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    margin-top: 70px;
    backdrop-filter: blur(5px);
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

.sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body.light-mode .sidebar {
    background-color: #ffffff;
    border-right: 1px solid #e0e0e0;
}

.sidebar-toggle {
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    background-color: #40E0D0;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 11;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s;
}

.sidebar-toggle:hover {
    background-color: #5EEFE0;
}

.sidebar-collapsed {
    transform: translateX(-290px);
}

.sidebar-collapsed {
    transform: translateX(-290px);
}

.filter-section {
    padding: 1.5rem;
    border-bottom: 1px solid #333;
}

body.light-mode .filter-section {
    border-bottom: 1px solid #e0e0e0;
}

.filter-section h3 {
    margin-bottom: 1rem;
    color: #f0f0f0;
    position: relative;
}

body.light-mode .filter-section h3,
body.light-mode .business-list h3 {
    color: #333;
}

.filter-section h3:after, .business-list h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #9c27b0, #40E0D0);
}

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.category-btn {
    padding: 0.5rem 0.75rem;
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #f0f0f0;
    cursor: pointer;
    transition: all 0.2s;
}

.category-btn:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.category-btn.active {
    background-color: #40E0D0;
    color: white;
    border-color: #5EEFE0;
}

body.light-mode .category-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    color: #555;
}

body.light-mode .category-btn:hover {
    background-color: #e5e5e5;
}

body.light-mode .category-btn.active {
    background-color: #278a7a;
    color: white;
    border-color: #39afa1;
}

.business-list {
    padding: 1.5rem;
    flex: 1;
}

.business-list h3 {
    margin-bottom: 1rem;
    color: #f0f0f0;
    position: relative;
}

.business-list h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #9c27b0, #40E0D0);
}

.business-card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.3s ease;
}

body.light-mode .business-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.business-card h4 {
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

body.light-mode .business-card h4 {
    color: #333;
}

.business-card p {
    color: #aaa;
    font-size: 0.9rem;
}

body.light-mode .business-card p {
    color: #666;
}

.business-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(64, 224, 208, 0.3);
    border-color: #40E0D0;
}

body.light-mode .business-card:hover {
    box-shadow: 0 4px 15px rgba(39, 138, 122, 0.3);
    border-color: #278a7a;
}

.business-card .category {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background-color: rgba(64, 224, 208, 0.2);
    border-radius: 4px;
    font-size: 0.8rem;
    color: #40E0D0;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

body.light-mode .business-card .category {
    color: #278a7a;
    background-color: rgba(39, 138, 122, 0.1);
    border: 1px solid rgba(39, 138, 122, 0.3);
}

.map-container {
    flex: 1;
    position: relative;
}

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

.map-overlay {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    background-color: rgba(26, 26, 26, 0.8);
    border-radius: 8px;
    z-index: 1000;
    color: white;
    font-size: 0.8rem;
}

.custom-marker {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.custom-marker svg {
    filter: drop-shadow(0px 3px 3px rgba(0, 0, 0, 0.4));
}

.custom-popup .leaflet-popup-content-wrapper {
    background-color: #1a1a1a;
    color: white;
    border-radius: 8px;
    border: 1px solid #40E0D0;
}

body.light-mode .custom-popup .leaflet-popup-content-wrapper {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
}

.custom-popup .leaflet-popup-tip {
    background-color: #1a1a1a;
}

body.light-mode .custom-popup .leaflet-popup-tip {
    background-color: #ffffff;
}

.custom-popup .leaflet-popup-content {
    margin: 12px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    background-color: #1a1a1a;
    margin: 5% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 70%;
    max-width: 800px;
    position: relative;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #40E0D0;
    box-shadow: 0 0 20px rgba(64, 224, 208, 0.5);
    color: #f0f0f0;
    transition: background-color 0.3s ease, color 0.3s ease;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.modal-content::-webkit-scrollbar {
    display: none;
}

body.light-mode .modal-content {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #e0e0e0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.close-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.2s;
}

.close-btn:hover {
    color: white;
}

.business-detail-header {
    display: flex;
    margin-bottom: 2rem;
    gap: 1.5rem;
}

.business-logo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #2a2a2a;
    border: 1px solid #444;
}

.business-logo svg {
    width: 80px;
    height: 80px;
    color: #40E0D0;
}

.business-detail-info {
    flex: 1;
}

.business-detail-info h2 {
    margin-bottom: 0.5rem;
    color: #f0f0f0;
    position: inline-block;
    display: inline-block;
}

.business-detail-info h2:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, #9c27b0, #40E0D0);
}

.business-detail-category {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background-color: rgba(64, 224, 208, 0.2);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #40E0D0;
    margin: 1rem 0;
    border: 1px solid rgba(64, 224, 208, 0.3);
}

body.light-mode .business-detail-category {
    color: #278a7a;
    background-color: rgba(39, 138, 122, 0.1);
    border: 1px solid rgba(39, 138, 122, 0.3);
}

.business-contact {
    margin-bottom: 1.5rem;
}

.business-contact p {
    margin-bottom: 0.5rem;
    color: #aaa;
}

.business-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #f0f0f0;
    padding: 1rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    border-left: 3px solid #40E0D0;
}

body.light-mode .business-description {
    color: #333;
    background-color: #f5f5f5;
    border-left: 3px solid #278a7a;
}

.business-gallery {
    margin-bottom: 1.5rem;
}

.business-gallery h3 {
    margin-bottom: 1rem;
    color: #f0f0f0;
    position: relative;
    display: inline-block;
}

.business-gallery h3:after, .business-hours h3:after, .business-reviews h3:after, .artist-section h3:after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #9c27b0, #40E0D0);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.gallery-item {
    height: 150px;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.gallery-item svg {
    width: 100%;
    height: 100%;
    color: #444;
}

.business-hours h3, .business-reviews h3, .artist-section h3 {
    margin-bottom: 1rem;
    color: #f0f0f0;
    position: relative;
    display: inline-block;
}

.hours-list {
    list-style: none;
    margin-bottom: 1.5rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    overflow: hidden;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 1rem;
}

.hours-list li:not(:last-child) {
    border-bottom: 1px solid #333;
}

.hours-list li.today {
    background-color: rgba(64, 224, 208, 0.2);
}

body.light-mode .hours-list li.today {
    background-color: rgba(39, 138, 122, 0.2);
}

.artist-section {
    margin-bottom: 1.5rem;
}

.artists-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.artist-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid #444;
}

.artist-card .artist-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1rem;
    background-color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.artist-card .artist-avatar svg {
    width: 50px;
    height: 50px;
    color: #40E0D0;
}

.artist-card h4 {
    margin-bottom: 0.5rem;
    color: #f0f0f0;
}

.artist-card p {
    color: #aaa;
    font-size: 0.9rem;
}

.review {
    padding: 1.2rem;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-bottom: 1rem;
    border-left: 3px solid #40E0D0;
}

body.light-mode .review {
    background-color: #f5f5f5;
    border-left: 3px solid #278a7a;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.review-stars {
    color: #40E0D0;
}

body.light-mode .review-stars {
    color: #278a7a;
}

.review-text {
    color: #aaa;
    line-height: 1.5;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #aaa;
    background-color: #2a2a2a;
    border-radius: 8px;
    margin-top: 1rem;
}

.user-location-pulse {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(64, 224, 208, 0.3);
    position: relative;
}

.user-location-pulse::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #40E0D0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.user-location-pulse::before {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(64, 224, 208, 0.3);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    70% {
        transform: translate(-50%, -50%) scale(1.7);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }
}

.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background-color: rgba(26, 26, 26, 0.8);
    border: 1px solid #40E0D0;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    transition: background-color 0.2s, transform 0.2s;
}

.map-control-btn:hover {
    background-color: rgba(64, 224, 208, 0.8);
    transform: scale(1.1);
}

header .map-control-btn {
    background-color: rgba(26, 26, 26, 0.8);
}

body.light-mode .map-control-btn {
    background-color: rgba(255, 255, 255, 0.9);
    color: #40E0D0;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }

    .search-container {
        width: 100%;
    }

    #search-input {
        min-width: 0;
        flex: 1;
    }

    main {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 40%;
    }

    .map-container {
        height: 60%;
    }

    .modal-content {
        width: 90%;
        padding: 1.5rem;
    }

    .business-detail-header {
        flex-direction: column;
    }
}

/* Ocultar atribución de Leaflet y controles del mapa */
.leaflet-control-attribution {
    display: none !important;
}

.leaflet-control-zoom {
    display: none !important;
}

.leaflet-control {
    display: none !important;
}