:root {
    --pristyn-navy: #0D1B2A;
    --pristyn-navy-light: #1B2838;
    --pristyn-orange: #F5A623;
    --pristyn-orange-light: #FFB84D;
    --pristyn-blue: #4A90D9;
    --pristyn-light-blue: #E8F4FD;
    --pristyn-gray: #6B7280;
    --pristyn-light-gray: #F3F4F6;
    --pristyn-white: #FFFFFF;
    --pristyn-border: #E5E7EB;
}

.mobile-search-bar-container {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1050 !important;
    background: #ffffff !important;
    padding: 10px 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid var(--pristyn-border);
}

.mobile-search-bar {
    display: flex;
    align-items: center;
    background: var(--pristyn-white);
    border: 1.5px solid var(--pristyn-border);
    border-radius: 30px;
    padding: 8px 15px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mobile-search-bar:hover,
.mobile-search-bar:active {
    border-color: var(--pristyn-orange);
    box-shadow: 0 2px 12px rgba(245, 166, 35, 0.15);
}

.location-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 12px;
}

.location-icon {
    color: var(--pristyn-orange);
    font-size: 14px;
    margin-right: 6px;
}

.location-text {
    font-size: 13px;
    font-weight: 500;
    color: var(--pristyn-navy);
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.detect-icon {
    color: var(--pristyn-orange);
    font-size: 12px;
    margin-left: 4px;
}

.search-divider {
    width: 1px;
    height: 24px;
    background: var(--pristyn-border);
    margin: 0 12px;
}

.search-section {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.search-placeholder {
    flex: 1;
    font-size: 13px;
    color: var(--pristyn-gray);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-icon {
    color: var(--pristyn-orange);
    font-size: 14px;
    margin-left: 8px;
}

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--pristyn-white);
    z-index: 9999;
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.mobile-search-overlay.active {
    display: flex;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background: var(--pristyn-navy);
    color: var(--pristyn-white);
}

.back-btn {
    background: none;
    border: none;
    color: var(--pristyn-white);
    font-size: 18px;
    padding: 8px;
    margin-right: 15px;
    cursor: pointer;
}

.header-title {
    font-size: 18px;
    font-weight: 600;
}

.search-overlay-content {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 80px;
}

.search-inputs-container {
    padding: 15px;
    background: var(--pristyn-navy);
}

.city-input-wrapper,
.treatment-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--pristyn-white);
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 10px;
}

.treatment-input-wrapper {
    margin-bottom: 0;
}

.input-icon {
    color: var(--pristyn-orange);
    font-size: 16px;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--pristyn-navy);
    background: transparent;
    min-width: 0;
}

.search-input::placeholder {
    color: var(--pristyn-gray);
}

.locate-me-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1.5px solid var(--pristyn-orange);
    border-radius: 20px;
    padding: 6px 12px;
    color: var(--pristyn-orange);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.locate-me-btn:hover {
    background: var(--pristyn-orange);
    color: var(--pristyn-white);
}

.section-container {
    padding: 15px;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--pristyn-navy);
    margin-bottom: 15px;
}

.popular-cities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.city-chip {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--pristyn-light-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-chip:hover,
.city-chip.selected {
    background: var(--pristyn-orange);
    color: var(--pristyn-white);
}

.city-chip.selected .city-chip-icon {
    color: var(--pristyn-white);
}

.city-chip-icon {
    color: var(--pristyn-orange);
    font-size: 14px;
    margin-right: 8px;
}

.city-chip-name {
    font-size: 14px;
    font-weight: 500;
}

.cities-list {
    max-height: 400px;
    overflow-y: auto;
}

.city-group {
    margin-bottom: 15px;
}

.city-group-letter {
    font-size: 14px;
    font-weight: 600;
    color: var(--pristyn-gray);
    padding: 8px 0;
    background: var(--pristyn-light-gray);
    padding-left: 15px;
    margin: 0 -15px;
}

.city-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--pristyn-border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.city-item:hover {
    background: var(--pristyn-light-blue);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.city-item-icon {
    color: var(--pristyn-blue);
    font-size: 14px;
    margin-right: 12px;
}

.city-item-name {
    font-size: 14px;
    color: var(--pristyn-blue);
    font-weight: 500;
}

.city-item-state {
    font-size: 12px;
    color: var(--pristyn-gray);
    margin-left: 8px;
}

.spotlight-section {
    margin-bottom: 20px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.spotlight-chip {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    background: var(--pristyn-light-blue);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.spotlight-chip:hover,
.spotlight-chip.selected {
    background: var(--pristyn-orange);
    color: var(--pristyn-white);
}

.spotlight-chip.selected .spotlight-icon {
    color: var(--pristyn-white);
}

.spotlight-icon {
    color: var(--pristyn-orange);
    font-size: 16px;
    margin-right: 10px;
}

.spotlight-name {
    font-size: 13px;
    font-weight: 500;
    text-align: left;
}

.suggestions-list {
    max-height: 400px;
    overflow-y: auto;
}

.suggestion-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--pristyn-border);
    cursor: pointer;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: var(--pristyn-light-blue);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
}

.suggestion-name {
    font-size: 14px;
    color: var(--pristyn-blue);
    font-weight: 500;
}

.suggestion-category {
    font-size: 11px;
    color: var(--pristyn-gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-overlay-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: var(--pristyn-white);
    border-top: 1px solid var(--pristyn-border);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
}

.search-submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px;
    background: var(--pristyn-orange);
    border: none;
    border-radius: 8px;
    color: var(--pristyn-white);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-submit-btn:disabled {
    background: var(--pristyn-gray);
    cursor: not-allowed;
}

.search-submit-btn:not(:disabled):hover {
    background: var(--pristyn-orange-light);
}

.no-results {
    text-align: center;
    padding: 30px;
    color: var(--pristyn-gray);
}

.no-results i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--pristyn-border);
}

.no-results p {
    font-size: 14px;
}

@media (max-width: 360px) {
    .mobile-search-bar {
        padding: 6px 12px;
    }
    
    .location-text {
        max-width: 60px;
        font-size: 12px;
    }
    
    .search-placeholder {
        font-size: 12px;
    }
    
    .locate-me-btn span {
        display: none;
    }
}

@media (min-width: 768px) {
    .mobile-search-overlay {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    }
}

/* Desktop styles for unified search bar */
@media (min-width: 992px) {
    .mobile-search-bar-container {
        padding: 8px 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
        border-bottom: 1px solid var(--pristyn-border);
        background: var(--pristyn-white) !important;
    }
    
    .mobile-search-bar {
        max-width: 600px;
        margin: 0 auto;
        padding: 10px 20px;
        border: 2px solid var(--pristyn-border);
    }
    
    .mobile-search-bar:hover {
        border-color: var(--pristyn-orange);
        box-shadow: 0 4px 16px rgba(245, 166, 35, 0.2);
    }
    
    .location-text {
        max-width: 120px;
        font-size: 14px;
    }
    
    .search-placeholder {
        font-size: 14px;
    }
    
    .location-icon,
    .search-icon,
    .detect-icon {
        font-size: 16px;
    }
    
    .search-divider {
        height: 28px;
        margin: 0 16px;
    }
}
