.inline-search-container {
    width: 100%;
    background: #ffffff;
    padding: 10px 15px;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e5e7eb;
    overflow: visible;
}

.inline-search-box {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
    align-items: center;
}

.inline-input-wrapper {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.inline-input-wrapper:focus-within {
    border-color: #ff6b6b;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.12);
}

.inline-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    padding: 2px 0;
    background: transparent;
    color: #333;
    min-width: 0;
}

.inline-search-input::placeholder {
    color: #aaa;
}

.input-icon {
    color: #ff6b6b;
    margin-right: 8px;
    font-size: 14px;
    flex-shrink: 0;
}

.locate-me-btn {
    background: none;
    border: none;
    color: #ff9500;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    flex-shrink: 0;
}

.locate-me-btn:hover {
    color: #ff6b6b;
}

.inline-search-btn {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.1s ease;
}

.inline-search-btn:hover {
    background: #e05555;
    transform: translateY(-1px);
}

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

/* Suggestions Dropdown */
.suggestions-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    max-height: 75vh;
    overflow-y: auto;
    z-index: 99999;
}

@media (max-width: 599px) {
    #searchSuggestions {
        position: fixed;
        left: 0;
        right: 0;
        width: 100vw;
        max-height: 60vh;
        border-radius: 0 0 10px 10px;
        border-left: none;
        border-right: none;
        border-top: 1px solid #e0e0e0;
    }

    #locationSuggestions {
        max-height: 200px;
        z-index: 99999;
    }
}

.suggestion-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.15s;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background-color: #fff5f5;
}

.suggestion-icon {
    font-size: 16px;
    flex-shrink: 0;
    min-width: 22px;
    text-align: center;
}

.suggestion-text {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.suggestion-name {
    flex: 1;
    font-weight: 500;
    color: #333;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-subtitle {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #aaa;
    white-space: nowrap;
}

.no-results {
    padding: 16px;
    text-align: center;
    color: #aaa;
    font-size: 13px;
}

/* Inline type tag — gray uppercase label beside the suggestion name */
.suggestion-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #aaa;
    white-space: nowrap;
    margin-left: 8px;
}

/* Mobile: single row, 30% location / 70% search / button */
@media (max-width: 599px) {
    .inline-search-container {
        padding: 8px 10px;
    }

    .inline-search-box {
        flex-wrap: nowrap;
        gap: 6px;
        align-items: center;
    }

    .inline-input-wrapper {
        min-width: 0;
        padding: 7px 8px;
    }

    .location-wrapper {
        flex: 0 0 30%;
        max-width: 30%;
    }

    .treatment-wrapper {
        flex: 1 1 0%;
        min-width: 0;
    }

    .inline-search-btn {
        flex: 0 0 auto;
        padding: 9px 12px;
        font-size: 14px;
    }

    .inline-search-input {
        font-size: 13px;
    }

    .locate-me-btn {
        display: none;
    }

    .location-wrapper .input-icon {
        margin-right: 4px;
        font-size: 12px;
    }

    .location-wrapper .inline-search-input {
        font-size: 12px;
    }
}

/* Desktop: horizontal row */
@media (min-width: 600px) {
    .inline-search-container {
        padding: 10px 20px;
    }

    .location-wrapper {
        flex: 0 0 220px;
    }
}

/* ============================================================
   MOBILE COMPACT BAR
   ============================================================ */
.mobile-compact-bar {
    background: #fff;
    padding: 10px 16px 8px;
    position: sticky;
    top: 0;
    z-index: 9999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-bottom: 1px solid #e5e7eb;
}

.mcb-city-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 0 6px;
    cursor: pointer;
}

.mcb-pin {
    color: #555;
    font-size: 13px;
}

.mcb-city-name {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.mcb-change-location {
    font-size: 11px;
    color: #00A0B0;
    font-weight: 500;
    white-space: nowrap;
    flex: 1;
}

.mcb-chevron {
    color: #888;
    font-size: 11px;
}

.mcb-search-row {
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 9px 16px;
    cursor: pointer;
    gap: 10px;
}

.mcb-search-placeholder {
    flex: 1;
    font-size: 13px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mcb-search-icon {
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================================
   MOBILE SEARCH MODAL (full-screen)
   ============================================================ */
.msm-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 100000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.msm-container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.msm-header {
    display: flex;
    align-items: center;
    padding: 14px 16px 10px;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 1;
}

.msm-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px 4px 0;
    line-height: 1;
}

.msm-title {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 700;
    color: #1a1a6e;
    padding-right: 32px;
}

.msm-inputs {
    padding: 14px 16px 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.msm-pill {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #ccc;
    border-radius: 24px;
    padding: 10px 16px;
    gap: 10px;
    transition: border-color 0.2s;
}

.msm-pill:focus-within {
    border-color: #1a1a6e;
}

.msm-pill-search {
    border-color: #ddd;
    background: #fafafa;
}

.msm-pill-search:focus-within {
    border-color: #1a1a6e;
    background: #fff;
}

.msm-pill-icon {
    color: #888;
    font-size: 14px;
    flex-shrink: 0;
}

.msm-pill-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    color: #333;
    background: transparent;
    min-width: 0;
}

.msm-pill-input::placeholder {
    color: #bbb;
}

.msm-clear-btn {
    background: none;
    border: none;
    color: #bbb;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}

.msm-clear-btn:hover {
    color: #888;
}

.msm-section {
    flex: 1;
    overflow-y: auto;
}

.msm-use-location {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    cursor: pointer;
    color: #1565c0;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 1px solid #f0f0f0;
}

.msm-use-location:active {
    background: #f0f7ff;
}

.msm-location-arrow {
    font-size: 16px;
}

.msm-section-header {
    background: #f5f5f5;
    padding: 8px 20px;
    font-size: 12px;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.msm-city-list {
    overflow-y: auto;
}

.msm-city-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    gap: 12px;
}

.msm-city-item:active {
    background: #f8f8f8;
}

.msm-city-pin {
    width: 30px;
    height: 30px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    color: #777;
}

.msm-city-info {
    flex: 1;
    min-width: 0;
}

.msm-city-name {
    display: block;
    font-size: 14px;
    color: #222;
    font-weight: 500;
}

.msm-city-state {
    display: block;
    font-size: 11px;
    color: #999;
    margin-top: 1px;
}

.msm-city-type {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Clinic count badge on city rows */
.msm-clinic-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 7px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

.msm-badge-active {
    background: #e8f5e9;
    color: #2e7d32;
}

.msm-badge-soon {
    background: #f5f5f5;
    color: #999;
}

/* State group accordion */
.msm-state-group {
    border-bottom: 1px solid #efefef;
}

.msm-state-header {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    background: #fafafa;
    user-select: none;
    gap: 10px;
}

.msm-state-header:active {
    background: #f0f0f0;
}

.msm-state-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: #444;
}

.msm-state-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 10px;
    white-space: nowrap;
}

.msm-state-chevron {
    font-size: 11px;
    color: #aaa;
    transition: transform 0.2s;
    flex-shrink: 0;
}

.msm-state-cities {
    display: none;
}

.msm-state-open .msm-state-cities {
    display: block;
}

.msm-state-open .msm-state-chevron {
    transform: rotate(180deg);
}

/* Search results in modal */
.msm-results-list {
    overflow-y: auto;
}

.msm-result-item {
    display: flex;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    gap: 14px;
}

.msm-result-item:active {
    background: #f8f8f8;
}

.msm-result-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 13px;
    color: #555;
}

.msm-result-name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.3;
}

.msm-result-category {
    font-size: 11px;
    color: #aaa;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.msm-no-results {
    padding: 24px 20px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
}

/* "What are you looking for?" label above search bars */
.search-prompt-label {
    margin: 0 0 6px 0;
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    letter-spacing: 0.01em;
}
/* On desktop, align with the centred search box */
.inline-search-container .search-prompt-label {
    max-width: 900px;
    margin: 0 auto 6px;
}
