/* Modal Location Search Styles */
.location-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.location-modal-content {
    background: #fff;
    border-radius: 18px;
    padding: 36px 28px 28px 28px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
    text-align: center;
    min-width: 400px;
    max-width: 90vw;
    position: relative;
}

.location-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 24px;
    display: block;
    text-align: center;
    position: relative;
}

.location-modal-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #ffd000;
}

.location-search-container {
    margin-bottom: 20px;
    position: relative;
}

.location-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.location-input:focus {
    outline: none;
    border-color: #ffd000;
}

.location-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    display: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.location-suggestions.active {
    display: block;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f5f5f5;
}

.suggestion-item.error {
    color: #c62828;
    font-style: italic;
}

.location-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    font-weight: 500;
    text-align: center;
    display: none;
}

.location-result.available {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}

.location-result.unavailable {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

.location-modal-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}

.location-btn {
    padding: 12px 28px;
    border-radius: 50px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}

.location-btn.primary-btn {
    background: #ffd000;
    color: #333;
}

.location-btn.primary-btn:hover {
    background: #e6bc00;
}

.location-btn.close-btn {
    background: #f5f5f5;
    color: #333;
}

.location-btn.close-btn:hover {
    background: #e0e0e0;
}

.close-modal-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: #333;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 208, 0, 0.3);
    border-radius: 50%;
    border-top-color: #ffd000;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
    vertical-align: middle;
    display: none;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

@keyframes spin {
    to { transform: rotate(360deg) translateY(-50%); }
}

@media (max-width: 480px) {
    .location-modal-content {
        padding: 24px 16px;
        min-width: 0;
        width: 90%;
    }
    
    .location-modal-title {
        font-size: 1.5rem;
    }
    
    .location-modal-buttons {
        flex-direction: column;
    }
} 