.search-section {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.header-search {
    margin-bottom: 0;
    width: min(100%, 460px);
}

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

#mountain-input {
    width: 100%;
    padding: 12px 14px;
    padding-right: 38px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 15px;
    box-shadow: var(--shadow);
}

#mountain-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(61, 156, 114, 0.12);
}

.search-clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: #e8edf2;
    color: #4b5563;
    font-size: 16px;
    line-height: 1;
    box-shadow: none;
}

.search-clear-btn:hover {
    background: #dce4ec;
    transform: translateY(-50%);
}

#search-results-dropdown {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin: 12px 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-title {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
}

.search-result-btn {
    text-align: left;
    background: var(--bg-button);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-main);
    box-shadow: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    gap: 8px;
}

.search-result-btn:hover {
    background: #dce4ec;
}

.result-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.result-location {
    color: var(--text-muted);
}

.search-result-btn .result-meta {
    color: var(--accent);
    font-weight: 600;
}

@media (max-width: 760px) {
    .header-actions {
        width: 100%;
        gap: 8px;
    }

    .header-search {
        width: 100%;
    }

    .header-search #search-submit-btn {
        padding: 10px 12px;
    }

    .header-title-link {
        white-space: nowrap;
    }
}

@media (max-width: 560px) {
    .header-row {
        flex-wrap: wrap;
        align-items: flex-start;
        gap: 8px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .header-actions {
        margin-left: 0;
        width: 100%;
    }
}
