body {
    background-color: #111827;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    overflow: hidden;
}
.noselect {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
#map_map {
    height: 100vh;
    width: 100vw;
    z-index: 0;
}
#map_side-panel {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 320px;
    background-color: rgba(17, 24, 39, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    z-index: 20;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
}
#map_side-panel.map_open {
    transform: translateX(0);
}
#map_tour-list {
    flex-grow: 1;
    overflow-y: auto;
    padding: 16px;
}
#map_tour-list::-webkit-scrollbar { width: 6px; }
#map_tour-list::-webkit-scrollbar-track { background: #1a202c; }
#map_tour-list::-webkit-scrollbar-thumb { background: #4a5568; border-radius: 3px; }
#map_tour-list::-webkit-scrollbar-thumb:hover { background: #718096; }
.map_tour-item {
    margin-bottom: 12px;
    background-color: #1f2937;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    gap: 12px;
    align-items: center;
}
.map_tour-item-image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}
.map_tour-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.map_tour-item-content {
    flex-grow: 1;
    padding: 8px 8px 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.map_tour-item h3 {
    font-weight: 600;
    color: #93c5fd;
    margin: 0 0 8px 0;
    font-size: 0.9rem;
}
.map_tour-item-buttons {
    display: flex;
    gap: 8px;
}
.map_tour-item-buttons button {
    flex: 1;
    padding: 6px;
    border: 1px solid #4b5563;
    border-radius: 6px;
    color: #d1d5db;
    background-color: transparent;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}
.map_tour-item-buttons button:hover {
    background-color: #374151;
    border-color: #6b7280;
}
#map_toggle-panel-btn {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 30;
    background-color: #1f2937;
    padding: 12px;
    border-radius: 9999px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    color: white;
    transition: transform 0.3s ease-in-out;
    border: none;
    cursor: pointer;
    width: 48px;
    height: 48px;
    font-size: 20px;
}
#map_toggle-panel-btn.map_open {
    transform: translateX(320px);
}
#map_close-icon {
    display: none;
}
#map_toggle-panel-btn.map_open #map_menu-icon {
    display: none;
}
#map_toggle-panel-btn.map_open #map_close-icon {
    display: inline;
}
.map_top-right-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.map_title {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
    margin: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
}
.map_modal-header .map_title {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
}
#map_modal-tour-title {
    font-size: 0.9rem;
    font-weight: 300;
    color: #9ca3af;
    margin: 4px 0 0 0;
    line-height: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow-x: hidden;
}
@media (max-width: 600px) {
    .map_title {
        font-size: 0.9rem;
    }
    .map_modal-header .map_title {
        font-size: 0.9rem;
    }
    #map_modal-tour-title {
        font-size: 0.7rem;
    }
}
.map_logo-container {
    height: 40px;
}
.map_logo-container img {
    height: 100%;
    width: auto;
}
.map_bottom-controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    gap: 8px;
    align-items: center;
}
.map_layer-switcher {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    overflow: hidden;
    display: flex;
    height: 32px;
}
.map_layer-switcher button {
    background-color: white;
    color: #333;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}
.map_layer-switcher button:hover {
    background-color: #f4f4f4;
}
.map_layer-switcher button.map_active {
    background-color: #1f2937;
    color: white;
}
#map_home-btn {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    color: #333;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
    text-align: center;
    width: 32px;
    height: 32px;
    line-height: 28px;
}
#map_home-btn:hover {
    background-color: #f4f4f4;
}
.map_bottom-right-controls {
    position: absolute;
    bottom: 24px;
    right: 16px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.map_zoom-controls, .map_geolocation-control {
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.65);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.map_bottom-right-controls button {
    background-color: white;
    color: #333;
    border: none;
    width: 32px;
    height: 32px;
    line-height: 28px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.map_bottom-right-controls button:hover {
    background-color: #f4f4f4;
}
#map_zoom-in-btn {
    border-bottom: 1px solid #ddd;
}
#map_geolocation-btn i {
    padding-top: 6px;
}
#map_geolocation-btn.map_active {
    color: #3b82f6;
}
.map_custom-popup .leaflet-popup-content-wrapper {
    padding: 0;
    background: transparent;
    box-shadow: none;
}
.map_custom-popup .leaflet-popup-content {
    margin: 0;
    width: 260px;
}
.map_custom-popup .leaflet-popup-close-button {
    display: none;
}
.map_popup-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    overflow: hidden;
    color: #1f2937;
    text-align: center;
}
.map_popup-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}
.map_popup-card .panorama_preview {
    width: 100%;
    height: 130px;
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    opacity: 0;
    border-radius: 8px 8px 0 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.map_popup-content-inner {
    padding: 12px;
}
.map_popup-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}
.map_popup-buttons button {
    flex: 1;
    padding: 6px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    color: #374151;
    transition: background-color 0.2s, border-color 0.2s;
    background-color: white;
    cursor: pointer;
    font-size: 18px;
}
.map_popup-buttons button:hover {
    background-color: #f3f4f6;
    border-color: #9ca3af;
}
.map_popup-content-inner h3 {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}
.map_popup-content-inner .map_subtitle {
    color: #6b7280;
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
}
.map_popup-content-inner .map_description {
    color: #4b5563;
    font-size: 0.8rem;
    margin-top: 8px;
    margin-bottom: 0;
}
@keyframes map_pulse {
    0% { transform: scale(0.9); opacity: 1; }
    70% { transform: scale(1.2); opacity: 0; }
    100% { transform: scale(0.9); opacity: 0; }
}
.leaflet-marker-icon .map_pulse {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: map_pulse 2s infinite;
    z-index: -1;
}
.leaflet-marker-icon.map_selected .map_pulse {
    display: none;
}
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(17, 24, 39, 0.6);
    border: 2px solid #60a5fa;
}
.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(17, 24, 39, 0.8);
    color: #fff;
    font-weight: bold;
}
.map_modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 1000;
    display: none;
    flex-direction: column;
}
.map_modal-overlay.map_open {
    display: flex;
}
.map_modal-header {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: rgba(17, 24, 39, 0.8);
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}
.map_modal-header .map_logo-container {
    position: static;
    height: 32px;
}
.map_modal-title-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    padding-left: 40px;
    width: calc(100% - 250px);
}
#map_modal-close-btn {
    background: transparent;
    border: 1px solid #4b5563;
    border-radius: 50%;
    color: white;
    font-size: 18px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
}
#map_modal-close-btn:hover {
    background-color: #374151;
}
.map_modal-content {
    width: 100%;
    height: 100%;
    flex-grow: 1;
}
#map_modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
}
.map_geolocation-marker {
    background-color: #3b82f6;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
}
.card-access {
    position: absolute;
    top: 10px;
    right: 0;
    padding: 2px 6px;
    background-color: white;
    font-size: 10px;
    z-index: 2;
}