#searchButton {
    position: relative;
    padding: 0;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    min-width: 160px;
    height: 50px;
    outline: none;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 100%;
    padding: 0 24px;
    position: relative;
    z-index: 3;
}

.button-border {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0.1) 75%, rgba(255, 255, 255, 0.4) 100%);
    background-size: 200% 200%;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: borderFlow 3s linear infinite;
}

@keyframes borderFlow {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 200% 200%;
    }
}

.search-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon {
    transition: all 0.3s ease;
    z-index: 2;
}

.search-glow {
    position: absolute;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s ease;
    animation: searchPulse 2s ease-in-out infinite;
}

@keyframes searchPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.3;
    }
}

.shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.2) 50%, transparent 100%);
    transition: left 0.6s ease;
}

.search-particles {
    display: flex;
    gap: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.particle {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: particleFloat 1.8s ease-in-out infinite;
}

    .particle:nth-child(1) {
        animation-delay: 0s;
    }

    .particle:nth-child(2) {
        animation-delay: 0.3s;
    }

    .particle:nth-child(3) {
        animation-delay: 0.6s;
    }

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }

    50% {
        transform: translateY(-8px) scale(1.2);
        opacity: 1;
    }
}

#searchButton:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

    #searchButton:hover .button-border {
        opacity: 1;
    }

    #searchButton:hover .search-icon {
        transform: scale(1.1);
        color: rgba(255, 255, 255, 1);
    }

    #searchButton:hover .search-glow {
        opacity: 0.5;
        animation-duration: 1s;
    }

    #searchButton:hover .shimmer {
        left: 100%;
    }

    #searchButton:hover .search-particles {
        opacity: 1;
    }

#searchButton:active {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.2);
}

#searchButton:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3), 0 8px 32px rgba(0, 0, 0, 0.1);
}

#searchButton.searching {
    pointer-events: none;
    background: rgba(255, 255, 255, 0.2);
}

    #searchButton.searching .search-icon {
        animation: searchSpin 1s linear infinite;
        color: rgba(255, 255, 255, 1);
    }

    #searchButton.searching .search-glow {
        opacity: 0.8;
        animation: searchingGlow 0.8s ease-in-out infinite alternate;
    }

    #searchButton.searching .search-particles {
        opacity: 1;
    }

    #searchButton.searching .particle {
        animation-duration: 1s;
        background: rgba(255, 255, 255, 0.9);
    }

@keyframes searchSpin {
    from {
        transform: scale(1.1) rotate(0deg);
    }

    to {
        transform: scale(1.1) rotate(360deg);
    }
}

@keyframes searchingGlow {
    from {
        transform: scale(1.2);
        opacity: 0.8;
    }

    to {
        transform: scale(1.6);
        opacity: 0.3;
    }
}

@media (max-width: 768px) {
    #searchButton {
        min-width: 140px;
        height: 46px;
        font-size: 14px;
    }

    .button-content {
        padding: 0 20px;
        gap: 10px;
    }

    .search-icon {
        width: 18px;
        height: 18px;
    }
}

@supports (-webkit-backdrop-filter: none) {
    #searchButton {
        -webkit-backdrop-filter: blur(20px) saturate(1.5);
    }
}




















.location-btn {
    position: relative;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.2px;
}

    .location-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.08), transparent);
        transition: left 0.5s ease;
    }

    .location-btn:hover::before {
        left: 100%;
    }

    .location-btn:hover {
        transform: translateY(-2px);
        border-color: #6366f1;
        color: #6366f1;
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(99, 102, 241, 0.2), 0 8px 25px -5px rgba(99, 102, 241, 0.15);
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    }

    .location-btn:active {
        transform: translateY(-1px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    }

.location-icon {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.location-btn:hover .location-icon {
    transform: scale(1.1);
    color: #6366f1;
}

.location-btn.searching {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-color: #3b82f6;
    color: #1d4ed8;
    pointer-events: none;
    transform: translateY(-1px);
}

    .location-btn.searching .location-icon {
        animation: searchPulse 1.5s infinite ease-in-out;
        color: #3b82f6;
    }

@keyframes searchPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(99, 102, 241, 0.2);
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Focus state for accessibility */
.location-btn:focus {
    outline: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(99, 102, 241, 0.2);
}

/* Glowing effect on dark background */
.location-btn:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(99, 102, 241, 0.2), 0 8px 25px -5px rgba(99, 102, 241, 0.15), 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Loading dots animation */
.loading-dots {
    display: inline-flex;
    gap: 3px;
    margin-left: 4px;
}

    .loading-dots span {
        width: 4px;
        height: 4px;
        background: currentColor;
        border-radius: 50%;
        animation: loadingDots 1.4s infinite ease-in-out;
    }

        .loading-dots span:nth-child(1) {
            animation-delay: -0.32s;
        }

        .loading-dots span:nth-child(2) {
            animation-delay: -0.16s;
        }

        .loading-dots span:nth-child(3) {
            animation-delay: 0s;
        }

@keyframes loadingDots {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}