/* ===== Query Page Specific Styles ===== */

/* ============================================================================
   SEARCH SECTION
   ============================================================================ */
.query-search-section {
    padding: 32px;
    display: flex;
    justify-content: center;
}

.query-search-container {
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

.query-search-bar {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: stretch;
}

.meowql-input-wrapper {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.meowql-input {
    width: 100%;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    position: relative;
    z-index: 1;
}

.meowql-ghost {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    padding: 12px 16px;
    color: transparent;
    pointer-events: none;
    white-space: pre;
    overflow: hidden;
    z-index: 2;
    border: 1px solid transparent;
}

.meowql-ghost .ghost-completion {
    color: var(--text-dim);
    opacity: 0.5;
}

.meowql-tab-hint {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    font-family: inherit;
    font-size: 10px;
    font-weight: 500;
    padding: 2px 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    color: var(--text-dim);
    pointer-events: none;
    line-height: 1;
}

.meowql-tab-hint.show {
    display: inline-block;
}

.meowql-input::placeholder {
    color: var(--text-dim);
}

.meowql-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.15);
}

.query-help-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    border: 1px solid var(--border-primary);
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.query-help-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(74, 158, 255, 0.2);
}

.query-submit-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.query-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ============================================================================
   ERROR DISPLAY
   ============================================================================ */
.query-error {
    margin-top: 8px;
    padding: 10px 14px;
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: 8px;
    display: none;
    gap: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--error);
    flex-direction: column;
}

.query-error.show {
    display: flex;
}

.query-error-message {
    display: flex;
    align-items: center;
    gap: 8px;
}

.query-error-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.query-error-field {
    padding: 2px 8px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.query-error-field:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ============================================================================
   STATS BAR
   ============================================================================ */
.query-results-stats {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 12px 32px;
    border-bottom: 1px solid var(--border-primary);
    background: var(--gradient-card);
    position: sticky;
    top: var(--top-bar-height);
    z-index: 40;
}

.query-results-stats.show {
    display: flex;
}

.query-stats-left {
    font-size: 14px;
    color: var(--text-secondary);
}

.query-stats-left strong {
    color: var(--cyber-primary);
    font-family: 'JetBrains Mono', monospace;
}

.query-stats-left code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-primary);
}

.query-stats-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.query-time {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
}

/* View Toggle */
.view-toggle {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border-primary);
}

.view-toggle-btn {
    padding: 6px 16px;
    font-size: 13px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.view-toggle-btn:not(:last-child) {
    border-right: 1px solid var(--border-primary);
}

.view-toggle-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.view-toggle-btn.active {
    background: var(--accent-primary);
    color: white;
}

/* ============================================================================
   CHARTS ROW
   ============================================================================ */
.query-charts-row {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 16px 32px;
    margin-bottom: 0;
}

.query-charts-row.show {
    display: grid;
}

.query-chart-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    padding: 16px;
}

.query-chart-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
}

.query-chart-card canvas {
    max-height: 160px;
}

/* ============================================================================
   RESULTS TABLE
   ============================================================================ */
.query-results-wrapper {
    display: none;
    flex-direction: column;
    padding: 0 32px;
}

.query-results-wrapper.show {
    display: flex;
}

.query-table-scroll {
    overflow-x: auto;
}

.query-results-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.query-results-table th {
    background: var(--bg-secondary);
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    border-bottom: 1px solid var(--border-primary);
    user-select: none;
}

.query-results-table th:hover {
    color: var(--accent-primary);
}

.query-results-table th .sort-indicator {
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.5;
}

.query-results-table th.sorted .sort-indicator {
    opacity: 1;
    color: var(--accent-primary);
}

.query-results-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-primary);
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

.query-results-table tbody tr {
    transition: var(--transition);
    cursor: pointer;
}

.query-results-table tbody tr:hover {
    background: var(--bg-hover);
}

.query-results-table tbody tr.expanded {
    background: rgba(74, 158, 255, 0.05);
}

/* Expand row for host detail */
.query-host-expand-row td {
    padding: 0;
    background: var(--bg-tertiary);
    border-bottom: 2px solid var(--accent-primary);
}

.query-host-expand-content {
    padding: 16px 24px;
    max-height: 600px;
    overflow-y: auto;
}

/* Cell styles */
.ip-cell {
    font-family: 'JetBrains Mono', monospace;
    color: var(--cyber-primary);
    font-weight: 500;
}

.port-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.cloud-badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
}

.cloud-badge.aws {
    background: rgba(255, 153, 0, 0.15);
    color: #ff9900;
    border: 1px solid rgba(255, 153, 0, 0.3);
}

.cloud-badge.gcp {
    background: rgba(66, 133, 244, 0.15);
    color: #4285f4;
    border: 1px solid rgba(66, 133, 244, 0.3);
}

.cloud-badge.azure {
    background: rgba(0, 120, 212, 0.15);
    color: #0078d4;
    border: 1px solid rgba(0, 120, 212, 0.3);
}

.cloud-badge.do {
    background: rgba(0, 105, 255, 0.15);
    color: #0069ff;
    border: 1px solid rgba(0, 105, 255, 0.3);
}

.cloud-badge.other {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-primary);
}

.country-cell {
    display: flex;
    gap: 6px;
    align-items: center;
    white-space: nowrap;
}

.country-cell img {
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-count-cell {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.timestamp-cell {
    font-size: 13px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

/* ============================================================================
   PAGINATION
   ============================================================================ */
.query-pagination {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 16px 32px;
    border-top: 1px solid var(--border-primary);
}

.query-pagination.show {
    display: flex;
}

/* ============================================================================
   EMPTY STATE
   ============================================================================ */
.query-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.query-empty-state .empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.4;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
}

.query-empty-state h3 {
    color: var(--text-secondary);
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
}

.query-empty-state p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 24px;
    line-height: 1.5;
}

.example-queries-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
}

.example-query-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    padding: 8px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    text-align: left;
}

.example-query-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    box-shadow: 0 0 10px rgba(74, 158, 255, 0.1);
}

/* ============================================================================
   HELP MODAL
   ============================================================================ */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
}

.help-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.help-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.help-modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.help-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
    border-radius: 12px 12px 0 0;
}

.help-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.help-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.help-close-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
}

/* Help Tabs */
.help-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-primary);
    background: var(--bg-tertiary);
}

.help-tab {
    padding: 10px 20px;
    font-size: 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.help-tab:hover {
    color: var(--text-primary);
}

.help-tab.active {
    color: var(--accent-primary);
    border-bottom-color: var(--accent-primary);
}

/* Help Content */
.help-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

.help-tab-content {
    display: none;
}

.help-tab-content.active {
    display: block;
}

.help-table {
    width: 100%;
    font-size: 13px;
    border-collapse: collapse;
}

.help-table td {
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-primary);
    vertical-align: top;
}

.help-table td:first-child {
    white-space: nowrap;
    width: 200px;
}

.help-operator-code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-secondary);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--accent-primary);
}

.help-field-category {
    margin-top: 16px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-muted);
    font-weight: 600;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--border-primary);
}

.help-field-category:first-child {
    margin-top: 0;
}

.help-example-item {
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: var(--transition);
    margin-bottom: 4px;
}

.help-example-item:hover {
    background: var(--bg-hover);
}

.help-example-code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent-primary);
    margin-bottom: 2px;
}

.help-example-desc {
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================================
   SERVICES TABLE (service-centric view)
   ============================================================================ */
.query-services-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.query-services-table th {
    background: var(--bg-secondary);
    padding: 10px 14px;
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    font-weight: 600;
    border-bottom: 1px solid var(--border-primary);
    white-space: nowrap;
}

.query-services-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-primary);
    font-size: 14px;
    color: var(--text-primary);
}

.query-services-table tbody tr {
    transition: var(--transition);
}

.query-services-table tbody tr:hover {
    background: var(--bg-hover);
}

.port-cell {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 500;
    color: var(--success);
}

.service-name-cell {
    font-weight: 500;
}

.product-cell {
    color: var(--text-secondary);
}

.version-cell {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-muted);
}

/* ============================================================================
   SERVICE CARDS LIST
   ============================================================================ */
.service-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0;
}

.service-result-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-primary);
    border-radius: 10px;
    overflow: hidden;
    transition: var(--transition);
}

.service-result-card:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.service-result-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-primary);
    gap: 12px;
    flex-wrap: wrap;
}

.service-result-header-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.host-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    color: var(--cyber-primary, #00d4ff);
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
    flex-shrink: 0;
    text-decoration: none;
}

.host-link-icon:hover {
    color: #fff;
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.25), inset 0 0 8px rgba(0, 212, 255, 0.1);
    transform: scale(1.08);
}

.host-link-icon:active {
    transform: scale(0.95);
    background: rgba(0, 212, 255, 0.3);
}

.service-result-endpoint {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--cyber-primary);
    white-space: nowrap;
}

.service-result-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
}

.service-result-product {
    font-size: 12px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.service-result-header-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.service-result-country {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.service-result-asn {
    font-size: 11px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.service-result-body {
    padding: 12px 16px;
}

.service-result-http-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
}

.service-result-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

/* ============================================================================
   MATCHED TAGS
   ============================================================================ */
.matched-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.matched-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--cyber-primary);
    white-space: nowrap;
    max-width: 350px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.matched-tag.has-value {
    gap: 4px;
    padding: 2px 6px;
}

.matched-tag-key {
    opacity: 0.7;
    font-size: 10px;
}

.matched-tag-key::after {
    content: '=';
    opacity: 0.5;
}

.matched-tag-val {
    color: #7dffaa;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ============================================================================
   AUTOCOMPLETE DROPDOWN
   ============================================================================ */
.query-search-bar {
    position: relative;
}

.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 120px;
    margin-top: 4px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    max-height: 320px;
    overflow-y: auto;
    z-index: 1000;
}

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

.ac-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 4px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.ac-item + .ac-group-header,
.ac-group-header + .ac-group-header {
    border-top: 1px solid var(--border-primary);
}

.ac-group-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    font-weight: 600;
    padding: 8px 14px 4px;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-primary);
}

.ac-group-header .ac-group-label {
    padding: 0;
    background: none;
    border-bottom: none;
}

.ac-clear-btn {
    font-size: 11px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.15s;
    font-family: inherit;
}

.ac-clear-btn:hover {
    color: var(--accent-danger, #f87171);
    background: rgba(248, 113, 113, 0.1);
}

.ac-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 14px;
}

.ac-field-chip {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    padding: 4px 10px;
    background: var(--bg-primary);
    border: 1px solid var(--border-primary);
    border-radius: 6px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.ac-field-chip:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: rgba(0, 212, 255, 0.05);
}

.ac-field-chip-name {
    pointer-events: none;
}

.ac-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    transition: background 0.1s;
}

.ac-item:hover,
.ac-item.selected {
    background: var(--bg-hover);
}

.ac-item.selected {
    border-left: 2px solid var(--accent-primary);
    padding-left: 12px;
}

.ac-icon {
    font-size: 12px;
    color: var(--text-dim);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.ac-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--accent-primary);
}

.ac-detail {
    font-size: 12px;
    color: var(--text-muted);
    margin-left: auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

.ac-match {
    color: var(--accent-primary);
    font-weight: 600;
}

.ac-label .ac-match + span {
    color: var(--text-primary);
}

/* ============================================================================
   RESPONSIVE
   ============================================================================ */
@media (max-width: 768px) {
    .query-search-section {
        padding: 20px 16px;
    }

    .query-search-bar {
        flex-direction: column;
    }

    .query-submit-btn {
        width: 44px;
        min-width: 44px;
        align-self: flex-end;
    }

    .query-results-wrapper {
        padding: 0 16px;
    }

    .query-results-stats {
        padding: 12px 16px;
        flex-direction: column;
        gap: 8px;
    }

    .example-queries-grid {
        grid-template-columns: 1fr;
    }

    .query-pagination {
        padding: 16px;
    }

    .service-result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .autocomplete-dropdown {
        right: 0;
    }
}
