/* Places Search Dialog Styles */
.places-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 10vh;
    z-index: 10000;
    backdrop-filter: blur(4px);
}

.places-search-dialog {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 600px;
    max-height: 70vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 8px;
    font-family: inherit;
}

.search-input::placeholder {
    color: #9ca3af;
}

.close-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #111827;
}

.search-results {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
}

.search-result-item:hover {
    background: #f3f4f6;
}

.search-result-item .material-symbols-outlined {
    color: #f97316;
    font-size: 24px;
    margin-top: 2px;
}

.place-info {
    flex: 1;
}

.place-main {
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.place-secondary {
    font-size: 14px;
    color: #6b7280;
}

.search-results .loading,
.search-results .error,
.search-results .no-results {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.search-results .error {
    color: #ef4444;
}

.search-results .loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .places-search-dialog {
        width: 95%;
        max-height: 80vh;
        margin: 0 auto;
    }

    .search-header {
        padding: 16px;
    }

    .search-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}
