body {
    font-family: 'Playpen Sans Thai', 'Playpen Sans', sans-serif;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: 80px;
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background-color: #E3C565;
    border-radius: 20px;
}

.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.page-content {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float-mascot {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes tech-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes tech-spin-reverse {
    from {
        transform: rotate(360deg);
    }

    to {
        transform: rotate(0deg);
    }
}

@keyframes scan-line {
    0% {
        transform: translateY(-10px);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        transform: translateY(120px);
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.nav-item.active {
    color: #B8860B;
    background-color: #F8ECCC;
    border-radius: 1rem;
    padding: 0.5rem 0.5rem;
    transition: all 0.3s ease;
}

.dark .nav-item.active {
    color: #E3C565;
    background-color: rgba(184, 134, 11, 0.2);
}

.nav-item.active i {
    transform: scale(1.2);
    transition: transform 0.3s ease;
}

#real-map {
    z-index: 10;
    font-family: 'Playpen Sans Thai', sans-serif;
}

.custom-leaflet-icon {
    background: transparent;
    border: none;
}

.dark .leaflet-tile-pane {
    filter: invert(1) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.leaflet-popup-content {
    font-family: 'Playpen Sans Thai', sans-serif;
    margin: 12px;
}

.location-card.active-card {
    border-color: #B8860B !important;
    background-color: #F8ECCC !important;
}

.dark .location-card.active-card {
    border-color: #E3C565 !important;
    background-color: rgba(184, 134, 11, 0.2) !important;
}

.btn-speak {
    background-color: #F5F0E6;
    color: #B8860B;
    border: 1px solid #E3C565;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-speak:hover {
    background-color: #E3C565;
    color: white;
}

.dark .btn-speak {
    background-color: rgba(184, 134, 11, 0.2);
    color: #E3C565;
    border-color: rgba(227, 197, 101, 0.5);
}

.dark .btn-speak:hover {
    background-color: #E3C565;
    color: #1F2937;
}

.btn-speak.playing {
    animation: pulse-border 1.5s infinite;
    background-color: #B8860B;
    color: white;
}

.btn-speak[data-icon-only="true"] {
    padding: 0;
    width: 32px;
    height: 32px;
    justify-content: center;
}

.btn-speak[data-icon-only="true"] i {
    margin: 0;
}

@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0.7);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(184, 134, 11, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(184, 134, 11, 0);
    }
}
