/* Quest Diagnostics Locator Page Styles */
/* Extracted from embedded styles and refactored for brand consistency */

/* Hero Section */
.locator-hero {
    background: var(--color-primary);
    color: white;
    padding: var(--space-10) var(--space-4) var(--space-12);
    text-align: center;
}

.locator-hero h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-3);
    font-weight: 600;
    color: white !important
}

.locator-hero p {
    font-size: var(--text-lg);
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto var(--space-4);
}

/* Quest Statistics */
.quest-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    margin-top: var(--space-6);
    flex-wrap: wrap;
}

.quest-stat {
    text-align: center;
}

.quest-stat-number {
    font-size: var(--text-3xl);
    font-weight: 600;
    color: white;
    margin-bottom: var(--space-1);
}

.quest-stat-label {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* Locator Container */
.locator-container {
    max-width: var(--max-width-wide);
    margin: calc(var(--space-8) * -1) auto var(--space-10);
    padding: 0 var(--space-4);
}

.locator-card {
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Search Section */
.search-section {
    padding: var(--space-6);
    border-bottom: 1px solid var(--color-border-light);
}

.search-input-group {
    display: flex;
    gap: var(--space-2);
    max-width: 700px;
    margin: 0 auto;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

#locationInput {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    transition: all var(--transition-base);
}

#locationInput:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

#searchButton {
    padding: var(--space-3) var(--space-6);
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

#searchButton:hover:not(:disabled) {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

#searchButton:disabled {
    background: var(--color-border);
    cursor: not-allowed;
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid var(--color-accent);
    border-top: none;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: var(--shadow-md);
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: var(--space-2) var(--space-3);
    cursor: pointer;
    border-bottom: 1px solid var(--color-background-alt);
    transition: background var(--transition-fast);
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: var(--color-background-alt);
}

.autocomplete-item-main {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 2px;
}

.autocomplete-item-details {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
}

.autocomplete-loading,
.autocomplete-no-results {
    padding: var(--space-2) var(--space-3);
    color: var(--color-text-secondary);
    text-align: center;
}

/* Results Layout */
.locator-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    height: 600px;
}

.location-results {
    overflow-y: auto;
    padding: var(--space-4);
    border-right: 1px solid var(--color-border-light);
}

.location-results::-webkit-scrollbar {
    width: 8px;
}

.location-results::-webkit-scrollbar-track {
    background: var(--color-background-alt);
}

.location-results::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-sm);
}

.map-container {
    position: relative;
}

#questMap {
    width: 100%;
    height: 100%;
}

/* Location Cards */
.location-card {
    background: var(--color-background-alt);
    border: 2px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
    transition: all var(--transition-base);
}

.location-card:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
}

.location-name {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-2);
}

.location-address {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-2);
}

.location-distance {
    font-size: var(--text-sm);
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.location-details {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
}

.location-detail {
    margin-bottom: var(--space-1);
}

.location-hours {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    padding: var(--space-2) var(--space-2);
    background: white;
    border-radius: var(--radius-sm);
}

.hours-status {
    font-weight: 600;
    color: #059669;
}

.hours-status.closed {
    color: #dc2626;
}

.location-actions {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-2);
    flex-wrap: wrap;
}

.location-actions a {
    flex: 1;
    min-width: 140px;
    padding: var(--space-2) var(--space-3);
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-base);
}

.location-actions a:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
}

/* Loading & Error States */
.loading-spinner {
    text-align: center;
    padding: var(--space-8);
    color: var(--color-text-secondary);
    font-size: var(--text-base);
}

.no-results,
.error-message {
    text-align: center;
    padding: var(--space-8);
    color: var(--color-text-secondary);
}

.error-message {
    color: #dc2626;
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .locator-hero h1 {
        font-size: var(--text-3xl);
    }

    .quest-stats {
        gap: var(--space-4);
    }

    .quest-stat-number {
        font-size: var(--text-2xl);
    }

    .locator-layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .location-results {
        border-right: none;
        border-bottom: 1px solid var(--color-border-light);
        max-height: 400px;
    }

    .map-container {
        height: 400px;
    }

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

    #searchButton {
        width: 100%;
    }
}
