/* Search page styles */

.search-hero {
    text-align: center;
    padding: 60px 0 40px;
    color: white;
}

.search-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-hero p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Search form */
.search-section {
    padding: 0 0 80px;
}

.search-form {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 40px;
}

.search-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.input-group input,
.input-group select {
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #2d3748;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group input::placeholder {
    color: #a0aec0;
}

/* Location input with button */
.location-input-wrapper {
    display: flex;
    gap: 8px;
}

.location-input-wrapper input {
    flex: 1;
}

.location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.location-btn svg {
    width: 20px;
    height: 20px;
    color: #718096;
}

.location-btn:hover {
    border-color: #667eea;
    background: #f7fafc;
}

.location-btn:hover svg {
    color: #667eea;
}

.location-btn.loading {
    pointer-events: none;
}

.location-btn.loading svg {
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Search button */
.search-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.search-btn:active {
    transform: translateY(0);
}

.search-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Error message */
.search-error {
    background: #fed7d7;
    color: #c53030;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

/* Results section */
.results-header {
    margin-bottom: 20px;
    color: white;
    font-size: 1rem;
}

/* Results list */
.results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.venue-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.15s ease;
}

.venue-row:last-child {
    border-bottom: none;
}

.venue-row:hover {
    background-color: #f7fafc;
}

.venue-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.venue-name {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
}

.venue-location {
    font-size: 0.875rem;
    color: #718096;
}

.venue-distance {
    font-size: 0.875rem;
    color: #667eea;
    font-weight: 500;
    white-space: nowrap;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.pagination-btn {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    border-color: #667eea;
    color: #667eea;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: white;
    font-size: 0.9rem;
}

/* Empty and initial states */
.empty-state,
.initial-state {
    text-align: center;
    padding: 100px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
}

.empty-state h3,
.initial-state h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.empty-state p,
.initial-state p {
    opacity: 0.8;
    font-size: 1rem;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-hero {
        padding: 40px 0 30px;
    }

    .search-hero h1 {
        font-size: 2rem;
    }

    .search-form {
        padding: 20px;
    }

    .search-inputs {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .venue-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .venue-distance {
        align-self: flex-start;
    }

    .empty-state,
    .initial-state {
        padding: 40px 20px;
    }
}

.location-status {
  font-size: 0.78rem;
  color: #888;
  margin-top: 4px;
}
