/* Tour Screen Styles */
.tour-screen {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Map Styles */
.map-container {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: 50px;
    background-color: #935337;
}

.map-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.map-scroll-container::-webkit-scrollbar {
    display: none;
}

.map-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.map-wrapper {
    width: 100%;
    min-height: 100vh;
    position: relative;
    margin-top: 50px;
    margin-bottom: 20px;
    cursor: crosshair;
}

.map-image {
    width: 100%;
    height: auto;
    display: block;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Markers */
.markers-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.marker {
    position: absolute;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: all 0.3s ease;
    pointer-events: all;
    transform: translate(-50%, -50%);
    /* Position will be set via JavaScript using percentages */
}

.marker:hover {
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}

.marker-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.marker-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    padding: 4px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

.marker-text {
    color: white;
    font-size: 10px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Audio Player */
.audio-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    height: 150px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.1);
    z-index: 900;
    transition: all 0.3s ease;
}

.player-content {
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.player-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.player-btn:hover {
    transform: scale(1.1);
}

.play-pause-btn {
    background: #ddd;
    color: white;
    font-size: 24px;
}

.play-pause-btn:hover {
    background: #ddd;
}

.player-title {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
}

.audio-slider-container {
    width: 100%;
    max-width: 400px;
}

.audio-slider {
    width: 100%;
}

.slider-track {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
    position: relative;
    cursor: pointer;
    margin-bottom: 10px;
}

.slider-progress {
    height: 100%;
    background: #492e57;
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

.time-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-wrapper {
        margin-top: 40px;
        margin-bottom: 15px;
    }

    .marker {
        width: 60px;
        height: 60px;
    }

    .marker-text {
        font-size: 9px;
    }

    .audio-player {
        height: 130px;
    }

    .player-controls {
        gap: 15px;
    }

    .player-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .play-pause-btn {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .map-wrapper {
        margin-top: 30px;
        margin-bottom: 50px;
    }

    .marker {
        width: 50px;
        height: 50px;
    }

    .marker-text {
        font-size: 8px;
        padding: 2px;
    }

    .audio-player {
        height: 120px;
    }

    .player-content {
        padding: 15px;
    }

    .player-controls {
        gap: 10px;
        margin-bottom: 10px;
    }

    .player-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .play-pause-btn {
        font-size: 18px;
    }

    .player-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
}

/* User Location Marker */
.user-location-marker {
    position: relative;
}

.user-dot {
    width: 16px;
    height: 16px;
    background-color: #4285F4;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.user-pulse {
    width: 40px;
    height: 40px;
    background-color: rgba(66, 133, 244, 0.4);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Map Controls */
.map-controls-container {
    position: absolute;
    bottom: 170px;
    /* Above audio player */
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 800;
}

.map-control-btn {
    width: 44px;
    height: 44px;
    background-color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: #492e57;
    transition: all 0.2s ease;
}

.map-control-btn:hover {
    transform: scale(1.1);
    background-color: #f8f8f8;
}

.map-control-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .map-controls-container {
        bottom: 150px;
        right: 15px;
    }

    .map-control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}