/* Near Me Button Styles */
.location-input-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.near-me-button {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
    box-shadow: 0 2px 8px rgba(255, 102, 0, 0.3);
}

.near-me-button:hover {
    background: linear-gradient(135deg, #e55a00 0%, #ff7020 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.4);
}

.near-me-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(255, 102, 0, 0.3);
}

.near-me-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.near-me-button i {
    font-size: 14px;
}

/* Loading state */
.near-me-button.loading {
    position: relative;
    color: transparent;
}

.near-me-button.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success state */
.near-me-button.success {
    background: linear-gradient(135deg, #28a745 0%, #34ce57 100%);
}

.near-me-button.success:hover {
    background: linear-gradient(135deg, #218838 0%, #28a745 100%);
}

/* Location status indicator */
.location-status {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.location-status.success {
    color: #28a745;
}

.location-status.error {
    color: #dc3545;
}

.location-status i {
    font-size: 10px;
}

/* Responsive design */
@media (max-width: 768px) {
    .location-input-container {
        gap: 6px;
    }
    
    .near-me-button {
        padding: 10px 14px;
        font-size: 13px;
        min-height: 44px;
    }
}

/* Integration with existing select box */
.location-input-container .select-box {
    flex: 1;
}

/* Custom tooltip for location permission */
.location-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.location-tooltip.show {
    opacity: 1;
}

.location-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

/* Location badge in search results */
.location-badge {
    background: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.location-badge i {
    font-size: 10px;
} 